/* ============================================
   MODERN UI OVERRIDE - POOLPAL ADMIN DASHBOARD
   ============================================ */

/* CSS Variables for easy theming */
:root {
  --primary-color: #E7C334;
  --primary-hover: #d4af2a;
  --primary-light: rgba(231, 195, 52, 0.1);
  --secondary-color: #E7C334;
  --sidebar-bg: linear-gradient(180deg, #1a1c2e 0%, #0f1019 100%);
  --sidebar-width: 280px;
  --sidebar-collapsed-width: 80px;
  --header-height: 75px;
  --text-light: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.6);
  --text-dark: #1a1a1a;
  --border-radius: 12px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
  --shadow-glow: 0 0 20px rgba(231, 195, 52, 0.3);
}

/* ============================================
   GLOBAL ENHANCEMENTS
   ============================================ */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
  min-height: 100vh;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* ============================================
   SIDEBAR STYLES - MODERN GLASSMORPHISM
   ============================================ */
.sidebar-wrapper,
.sidebar-wrapper > div {
  background: linear-gradient(180deg, #1e2140 0%, #141627 50%, #0d0f1a 100%) !important;
  width: var(--sidebar-width) !important;
}

.sidebar-wrapper {
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.3) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
  transition: all var(--transition-slow) !important;
  z-index: 1000;
  position: fixed !important;
  left: 0;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.sidebar-wrapper > div {
  position: relative;
  height: 100%;
  box-shadow: none !important;
  border-right: none !important;
}

/* Desktop: sidebar visible by default */
@media (min-width: 1200px) {
  .sidebar-wrapper {
    transform: translateX(0) !important;
  }
}

/* Sidebar Header/Logo */
.sidebar-wrapper .logo-wrapper {
  background: rgba(255, 255, 255, 0.02) !important;
  padding: 18px 20px !important;
  min-height: var(--header-height) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sidebar-wrapper .logo-wrapper a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-grow: 1;
  min-width: 0;
}

.sidebar-wrapper .logo-wrapper img {
  max-height: 42px !important;
  width: auto !important;
  max-width: 130px !important;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  transition: transform var(--transition-normal);
  flex-shrink: 0;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.sidebar-wrapper .logo-wrapper:hover img {
  transform: scale(1.05);
}

.sidebar-wrapper .logo-wrapper h6,
.sidebar-wrapper .logo-wrapper span {
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Toggle button inside sidebar */
.sidebar-wrapper .logo-wrapper .back-btn,
.sidebar-wrapper .logo-wrapper .toggle-sidebar,
.sidebar-wrapper .icon-box-sidebar {
  background: rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-wrapper .logo-wrapper .back-btn:hover,
.sidebar-wrapper .logo-wrapper .toggle-sidebar:hover,
.sidebar-wrapper .icon-box-sidebar:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  transform: scale(1.05);
}

.sidebar-wrapper .logo-wrapper .back-btn svg,
.sidebar-wrapper .logo-wrapper .toggle-sidebar svg,
.sidebar-wrapper .icon-box-sidebar svg {
  width: 20px !important;
  height: 20px !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Logo icon wrapper for collapsed state */
.sidebar-wrapper .logo-icon-wrapper {
  display: none;
  padding: 20px 0;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Sidebar Navigation */
.sidebar-wrapper .sidebar-main {
  padding: 0 !important;
  height: calc(100vh - var(--header-height));
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.sidebar-wrapper .sidebar-main .sidebar-links {
  padding: 20px 16px !important;
  min-height: 100%;
  overflow: visible !important;
}

/* Fix simplebar if present */
.sidebar-wrapper .simplebar-content-wrapper {
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.sidebar-wrapper .simplebar-mask,
.sidebar-wrapper .simplebar-offset {
  overflow: visible !important;
}

/* Custom scrollbar for sidebar */
.sidebar-wrapper .sidebar-main::-webkit-scrollbar {
  width: 5px;
}

.sidebar-wrapper .sidebar-main::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-wrapper .sidebar-main::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

.sidebar-wrapper .sidebar-main::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Firefox scrollbar */
.sidebar-wrapper .sidebar-main {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

/* Menu Box */
.sidebar-wrapper .sidebar-main .sidebar-links .menu-box {
  padding: 0 !important;
}

.sidebar-wrapper .sidebar-main .sidebar-links .menu-box > ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Sidebar List Item */
.sidebar-wrapper .sidebar-list {
  margin-bottom: 2px !important;
  position: relative;
}

/* Sidebar Links - Main Menu Items */
.sidebar-wrapper .sidebar-list > a,
.sidebar-wrapper .sidebar-list > .sidebar-link,
.sidebar-wrapper .sidebar-list > .sidebar-title,
.sidebar-wrapper .sidebar-list > .menu-links {
  display: flex !important;
  align-items: center !important;
  padding: 14px 16px !important;
  min-height: 48px !important;
  color: rgba(255, 255, 255, 0.65) !important;
  text-decoration: none !important;
  border-radius: 10px !important;
  margin: 3px 0 !important;
  transition: all 0.25s ease !important;
  position: relative;
  overflow: hidden;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.2px;
  gap: 14px !important;
  border: 1px solid transparent;
  background: transparent;
}

/* Icon Styling */
.sidebar-wrapper .sidebar-list > a svg,
.sidebar-wrapper .sidebar-list > .sidebar-link svg,
.sidebar-wrapper .sidebar-list > .sidebar-title svg,
.sidebar-wrapper .sidebar-list > .menu-links svg {
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0;
  transition: all 0.25s ease !important;
  opacity: 0.7;
  stroke-width: 1.8;
}

/* Text Styling */
.sidebar-wrapper .sidebar-list > a span,
.sidebar-wrapper .sidebar-list > .sidebar-link span,
.sidebar-wrapper .sidebar-list > .sidebar-title span,
.sidebar-wrapper .sidebar-list > .menu-links span {
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.25s ease;
}

/* ============================================
   HOVER EFFECT - GOLDEN THEME
   ============================================ */
.sidebar-wrapper .sidebar-list > a:hover:not(.active),
.sidebar-wrapper .sidebar-list > .sidebar-link:hover:not(.active),
.sidebar-wrapper .sidebar-list > .sidebar-title:hover:not(.active),
.sidebar-wrapper .sidebar-list > .menu-links:hover:not(.active),
.page-wrapper .sidebar-wrapper .sidebar-list > a:hover:not(.active),
.page-wrapper .sidebar-wrapper .sidebar-list > .sidebar-link:hover:not(.active),
.page-wrapper .sidebar-wrapper .sidebar-list > .sidebar-title:hover:not(.active),
.page-wrapper .sidebar-wrapper .sidebar-list > .menu-links:hover:not(.active) {
  background: rgba(231, 195, 52, 0.12) !important;
  border-color: rgba(231, 195, 52, 0.25) !important;
  color: rgba(255, 215, 0, 0.95) !important;
}

.sidebar-wrapper .sidebar-list > a:hover:not(.active) svg,
.sidebar-wrapper .sidebar-list > .sidebar-link:hover:not(.active) svg,
.sidebar-wrapper .sidebar-list > .sidebar-title:hover:not(.active) svg,
.sidebar-wrapper .sidebar-list > .menu-links:hover:not(.active) svg,
.sidebar-wrapper .sidebar-list > a:hover:not(.active) svg path,
.sidebar-wrapper .sidebar-list > .sidebar-link:hover:not(.active) svg path,
.sidebar-wrapper .sidebar-list > .sidebar-title:hover:not(.active) svg path,
.sidebar-wrapper .sidebar-list > .menu-links:hover:not(.active) svg path {
  opacity: 1 !important;
  color: #FFD700 !important;
  fill: #FFD700 !important;
  stroke: #FFD700 !important;
}

/* ============================================
   ACTIVE STATE - GOLDEN HIGHLIGHT
   ============================================ */
.sidebar-wrapper .sidebar-list > a.active,
.sidebar-wrapper .sidebar-list > .sidebar-link.active,
.sidebar-wrapper .sidebar-list > .sidebar-title.active,
.sidebar-wrapper .sidebar-list > .menu-links.active,
.sidebar-wrapper .sidebar-list.active > a,
.sidebar-wrapper .sidebar-list.active > .sidebar-link,
.sidebar-wrapper .sidebar-list.active > .sidebar-title,
.sidebar-wrapper .sidebar-list.active > .menu-links {
  background: linear-gradient(135deg,
    rgba(231, 195, 52, 0.25) 0%,
    rgba(231, 195, 52, 0.15) 100%) !important;
  border-color: rgba(231, 195, 52, 0.5) !important;
  color: #FFD700 !important;
  box-shadow: 0 2px 8px rgba(231, 195, 52, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.sidebar-wrapper .sidebar-list > a.active svg,
.sidebar-wrapper .sidebar-list.active > a svg,
.sidebar-wrapper .sidebar-list > .sidebar-link.active svg,
.sidebar-wrapper .sidebar-list > .sidebar-title.active svg,
.sidebar-wrapper .sidebar-list > .menu-links.active svg,
.sidebar-wrapper .sidebar-list > a.active svg path,
.sidebar-wrapper .sidebar-list.active > a svg path,
.sidebar-wrapper .sidebar-list > .sidebar-link.active svg path,
.sidebar-wrapper .sidebar-list > .sidebar-title.active svg path,
.sidebar-wrapper .sidebar-list > .menu-links.active svg path {
  opacity: 1 !important;
  color: #FFD700 !important;
  fill: #FFD700 !important;
  stroke: #FFD700 !important;
}

/* Active indicator bar - bold golden line */
.sidebar-wrapper .sidebar-list > a.active::before,
.sidebar-wrapper .sidebar-list.active > a::before,
.sidebar-wrapper .sidebar-list > .sidebar-link.active::before,
.sidebar-wrapper .sidebar-list > .sidebar-title.active::before,
.sidebar-wrapper .sidebar-list > .menu-links.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: linear-gradient(180deg, #FFD700 0%, #E7C334 100%);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 8px rgba(231, 195, 52, 0.5);
}

/* According Menu (Dropdown Arrow) */
.sidebar-wrapper .according-menu {
  margin-left: auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.25s ease !important;
}

.sidebar-wrapper .according-menu i {
  font-size: 10px !important;
  transition: transform 0.25s ease !important;
  color: rgba(255, 255, 255, 0.4);
}

.sidebar-wrapper .sidebar-title.active .according-menu {
  background: rgba(231, 195, 52, 0.2);
}

.sidebar-wrapper .sidebar-title.active .according-menu i {
  color: rgba(255, 255, 255, 0.85);
  transform: rotate(90deg);
}

/* ============================================
   SUBMENU STYLES - CLEAN DESIGN
   ============================================ */
.sidebar-wrapper .sidebar-submenu {
  background: rgba(0, 0, 0, 0.12) !important;
  border: none !important;
  border-radius: 8px !important;
  margin: 4px 8px 8px 8px !important;
  padding: 6px 0 !important;
  list-style: none !important;
  overflow: hidden;
}

.sidebar-wrapper .sidebar-submenu li {
  margin: 0 !important;
  padding: 0 !important;
}

.sidebar-wrapper .sidebar-submenu li a {
  display: flex !important;
  align-items: center !important;
  padding: 12px 16px 12px 44px !important;
  min-height: 44px !important;
  color: rgba(255, 255, 255, 0.55) !important;
  text-decoration: none !important;
  font-size: 13.5px !important;
  font-weight: 400 !important;
  transition: all 0.2s ease !important;
  position: relative;
  margin: 2px 8px;
  border-radius: 8px;
}

/* Submenu bullet point */
.sidebar-wrapper .sidebar-submenu li a::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}

.sidebar-wrapper .sidebar-submenu li a:hover {
  color: rgba(255, 255, 255, 0.9) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

.sidebar-wrapper .sidebar-submenu li a:hover::before {
  background: rgba(231, 195, 52, 0.8);
}

/* Submenu Active State */
.sidebar-wrapper .sidebar-submenu li a.active,
.sidebar-wrapper .sidebar-submenu li.active a {
  color: rgba(255, 255, 255, 1) !important;
  background: rgba(231, 195, 52, 0.15) !important;
  font-weight: 500 !important;
}

.sidebar-wrapper .sidebar-submenu li a.active::before,
.sidebar-wrapper .sidebar-submenu li.active a::before {
  background: #E7C334;
}

/* ============================================
   HEADER STYLES
   ============================================ */
.page-header {
  background: #ffffff !important;
  box-shadow: var(--shadow-md) !important;
  border-bottom: 2px solid rgba(231, 195, 52, 0.1) !important;
  height: var(--header-height) !important;
  margin-left: var(--sidebar-width) !important;
  z-index: 999;
  position: fixed;
  top: 0;
  right: 0;
  left: var(--sidebar-width);
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(231, 195, 52, 0.3) 20%,
    rgba(231, 195, 52, 0.5) 50%,
    rgba(231, 195, 52, 0.3) 80%,
    transparent 100%);
}

.page-header .header-wrapper {
  padding: 15px 30px !important;
  display: flex;
  align-items: center;
  height: 100%;
}

/* Toggle Sidebar Button - Modern Glass Style */
.toggle-sidebar {
  background: linear-gradient(135deg,
    rgba(231, 195, 52, 0.95) 0%,
    rgba(212, 175, 42, 1) 100%) !important;
  border-radius: 12px !important;
  padding: 11px !important;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 15px rgba(231, 195, 52, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-sidebar:hover {
  transform: scale(1.08) translateY(-1px);
  box-shadow: 0 8px 25px rgba(231, 195, 52, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.toggle-sidebar:active {
  transform: scale(0.98);
}

.toggle-sidebar svg,
.toggle-sidebar i {
  color: #1a1a1a !important;
  stroke: #1a1a1a !important;
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.toggle-sidebar:hover svg,
.toggle-sidebar:hover i {
  transform: rotate(90deg);
  color: #0d0d0d !important;
  stroke: #0d0d0d !important;
}

/* Sidebar toggle icon animation */
.page-wrapper.compact-wrapper.sidebar-open .toggle-sidebar svg,
.page-wrapper.compact-wrapper.sidebar-open .toggle-sidebar i {
  transform: rotate(45deg);
}

/* Header Logo */
.header-logo-wrapper .logo-header-main img {
  max-height: 40px;
  width: auto;
}

/* Navigation Right Side */
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menus {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menus > li {
  position: relative;
}

.nav-menus > li > a,
.page-header .nav-menus > li > a,
.header-wrapper .nav-menus > li > a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  background: rgba(231, 195, 52, 0.08) !important;
  color: #6B7280 !important;
  transition: all var(--transition-fast) !important;
  cursor: pointer !important;
  border: 1px solid transparent !important;
  overflow: hidden !important;
}

.nav-menus > li > a:hover,
.page-header .nav-menus > li > a:hover,
.header-wrapper .nav-menus > li > a:hover {
  background: rgba(231, 195, 52, 0.15) !important;
  color: #E7C334 !important;
  transform: translateY(-2px) !important;
  border-color: rgba(231, 195, 52, 0.2) !important;
  box-shadow: 0 4px 12px rgba(231, 195, 52, 0.2) !important;
}

.nav-menus > li > a svg,
.nav-menus > li > a i {
  width: 20px !important;
  height: 20px !important;
  color: currentColor !important;
  stroke: currentColor !important;
  transition: all var(--transition-fast) !important;
}

/* Maximize button and other nav items - ensure rounded */
.nav-menus > li.maximize > a,
.nav-menus > li > a {
  border-radius: 12px !important;
}

.nav-menus > li.maximize > a svg,
.nav-menus > li.maximize > a i {
  color: currentColor !important;
  stroke: currentColor !important;
}

/* Profile Dropdown */
.profile-nav .profile-dropdown {
  background: #ffffff !important;
  border-radius: var(--border-radius) !important;
  box-shadow: var(--shadow-lg) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  padding: 8px !important;
  min-width: 180px !important;
  margin-top: 10px !important;
}

.profile-nav .profile-dropdown li {
  margin: 0 !important;
}

.profile-nav .profile-dropdown li a {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 16px !important;
  border-radius: 8px !important;
  color: var(--text-dark) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: all var(--transition-fast) !important;
}

.profile-nav .profile-dropdown li a:hover {
  background: var(--primary-light) !important;
  color: var(--primary-color) !important;
}

.profile-nav .profile-dropdown li a svg,
.profile-nav .profile-dropdown li a i {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

/* ============================================
   PAGE BODY STYLES
   ============================================ */
.page-body-wrapper {
  background: transparent !important;
}

.page-body {
  min-height: 100vh;
  margin-left: var(--sidebar-width) !important;
  transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Smooth transitions for sidebar collapse/expand */
.page-wrapper.compact-wrapper .page-body-wrapper .page-body,
.page-wrapper.compact-wrapper .page-header,
.footer {
  transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Desktop collapsed state - override the default 280px to 85px */
.page-wrapper.compact-wrapper .page-header.close_icon {
  margin-left: var(--sidebar-collapsed-width) !important;
  left: var(--sidebar-collapsed-width) !important;
  width: calc(100% - var(--sidebar-collapsed-width)) !important;
}

.page-wrapper.compact-wrapper .page-body-wrapper .page-body.close_icon,
.close_icon ~ .page-body-wrapper .page-body,
.page-wrapper.compact-wrapper.close_icon .page-body-wrapper .page-body {
  margin-left: var(--sidebar-collapsed-width) !important;
}

.footer.close_icon {
  margin-left: var(--sidebar-collapsed-width) !important;
}

/* ============================================
   CARD STYLES
   ============================================ */
.card {
  background: #ffffff !important;
  border-radius: 16px !important;
  border: none !important;
  box-shadow: var(--shadow-sm) !important;
  transition: all var(--transition-normal) !important;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-md) !important;
  transform: translateY(-2px);
}

.card-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  padding: 20px 24px !important;
}

.card-header h4,
.card-header h5,
.card-header .card-title {
  font-weight: 600 !important;
  color: var(--text-dark) !important;
  margin: 0 !important;
}

.card-body {
  padding: 24px !important;
}

.card-footer {
  background: #f8fafc !important;
  border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
  padding: 16px 24px !important;
}

/* ============================================
   BUTTON STYLES
   ============================================ */
.btn {
  border-radius: 10px !important;
  padding: 10px 20px !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  transition: all var(--transition-fast) !important;
  border: none !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%) !important;
  color: #1a1a1a !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(231, 195, 52, 0.3) !important;
}

.btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(231, 195, 52, 0.4) !important;
  color: #1a1a1a !important;
}

.btn-secondary {
  background: #f1f5f9 !important;
  color: var(--text-dark) !important;
}

.btn-secondary:hover {
  background: #e2e8f0 !important;
  transform: translateY(-2px) !important;
}

.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

.btn-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3) !important;
}

.btn-info {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

/* ============================================
   TABLE STYLES
   ============================================ */
.table {
  border-collapse: separate;
  border-spacing: 0;
}

.table thead {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.table thead th {
  font-weight: 600 !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: #64748b !important;
  padding: 16px !important;
  border-bottom: 2px solid #e2e8f0 !important;
  white-space: nowrap;
}

.table tbody td {
  padding: 16px !important;
  vertical-align: middle !important;
  border-bottom: 1px solid #f1f5f9 !important;
  font-size: 14px !important;
  color: var(--text-dark) !important;
}

.table tbody tr {
  transition: all var(--transition-fast);
}

.table tbody tr:hover {
  background: #f8fafc !important;
}

.table tbody tr:last-child td {
  border-bottom: none !important;
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-control,
.form-select {
  border-radius: 10px !important;
  border: 2px solid #e2e8f0 !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  transition: all var(--transition-fast) !important;
  background: #f8fafc !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 4px rgba(231, 195, 52, 0.15) !important;
  background: #ffffff !important;
  outline: none !important;
}

.form-label {
  font-weight: 500 !important;
  font-size: 13px !important;
  color: #475569 !important;
  margin-bottom: 8px !important;
}

/* Select2 Styling */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  border-radius: 10px !important;
  border: 2px solid #e2e8f0 !important;
  min-height: 46px !important;
  background: #f8fafc !important;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 4px rgba(231, 195, 52, 0.15) !important;
}

.select2-dropdown {
  border-radius: 10px !important;
  border: 2px solid #e2e8f0 !important;
  box-shadow: var(--shadow-lg) !important;
}

/* ============================================
   BADGE STYLES
   ============================================ */
.badge {
  padding: 6px 12px !important;
  border-radius: 20px !important;
  font-weight: 500 !important;
  font-size: 12px !important;
}

.badge-primary,
.badge.bg-primary {
  background: var(--primary-light) !important;
  color: var(--primary-color) !important;
}

.badge-success,
.badge.bg-success {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #059669 !important;
}

.badge-warning,
.badge.bg-warning {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #d97706 !important;
}

.badge-danger,
.badge.bg-danger {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #dc2626 !important;
}

.badge-info,
.badge.bg-info {
  background: rgba(59, 130, 246, 0.15) !important;
  color: #2563eb !important;
}

/* ============================================
   PAGINATION STYLES
   ============================================ */
.pagination {
  gap: 4px;
}

.pagination .page-item .page-link {
  border-radius: 8px !important;
  border: none !important;
  padding: 10px 16px !important;
  font-weight: 500 !important;
  color: var(--text-dark) !important;
  background: #f1f5f9 !important;
  transition: all var(--transition-fast) !important;
}

.pagination .page-item .page-link:hover {
  background: #e2e8f0 !important;
  transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%) !important;
  color: #1a1a1a !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(231, 195, 52, 0.3) !important;
}

/* Legacy loader - replaced by modern progress bar */
.loader-wrapper {
  display: none !important;
}

/* ============================================
   FOOTER STYLES
   ============================================ */
.footer {
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
  padding: 20px 30px !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05) !important;
}

.footer p {
  color: #64748b !important;
  font-size: 14px !important;
  margin: 0 !important;
}

.footer .fa-heart {
  color: var(--primary-color) !important;
  animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* ============================================
   TOAST STYLES
   ============================================ */
.toast-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.toast-error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
}

.toast-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

.toast-info {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
}

/* ============================================
   DATATABLE STYLES
   ============================================ */
.dataTables_wrapper {
  padding: 0 !important;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
  border-radius: 8px !important;
  border: 2px solid #e2e8f0 !important;
  padding: 8px 12px !important;
}

.dataTables_wrapper .dataTables_length select:focus,
.dataTables_wrapper .dataTables_filter input:focus {
  border-color: var(--primary-color) !important;
  outline: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 8px !important;
  border: none !important;
  margin: 0 2px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%) !important;
  color: #1a1a1a !important;
  font-weight: 600 !important;
  border: none !important;
}

/* ============================================
   COLLAPSED SIDEBAR STATE - PROFESSIONAL DESIGN
   ============================================ */
.sidebar-wrapper.close_icon {
  width: 80px !important;
}

.sidebar-wrapper.close_icon .logo-wrapper {
  padding: 18px 0 !important;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-wrapper.close_icon .logo-wrapper a {
  justify-content: center;
}

.sidebar-wrapper.close_icon .logo-wrapper a img {
  max-width: 38px !important;
  max-height: 38px !important;
}

.sidebar-wrapper.close_icon .logo-wrapper a span,
.sidebar-wrapper.close_icon .logo-wrapper .back-btn {
  display: none !important;
}

.sidebar-wrapper.close_icon .logo-icon-wrapper {
  display: block;
}

.sidebar-wrapper.close_icon .sidebar-main {
  overflow-y: auto !important;
}

.sidebar-wrapper.close_icon .sidebar-main .sidebar-links {
  padding: 12px 10px !important;
}

/* Hide text in collapsed state */
.sidebar-wrapper.close_icon .sidebar-list > a span,
.sidebar-wrapper.close_icon .sidebar-list > .sidebar-link span,
.sidebar-wrapper.close_icon .sidebar-list > .sidebar-title span,
.sidebar-wrapper.close_icon .sidebar-list > .menu-links span {
  display: none !important;
}

/* Collapsed menu item styling */
.sidebar-wrapper.close_icon .sidebar-list > a,
.sidebar-wrapper.close_icon .sidebar-list > .sidebar-link,
.sidebar-wrapper.close_icon .sidebar-list > .sidebar-title,
.sidebar-wrapper.close_icon .sidebar-list > .menu-links {
  width: 48px !important;
  height: 48px !important;
  padding: 0 !important;
  margin: 4px auto !important;
  justify-content: center;
  align-items: center;
  gap: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  position: relative;
}

/* Collapsed state hover */
.sidebar-wrapper.close_icon .sidebar-list > a:hover,
.sidebar-wrapper.close_icon .sidebar-list > .sidebar-link:hover,
.sidebar-wrapper.close_icon .sidebar-list > .sidebar-title:hover,
.sidebar-wrapper.close_icon .sidebar-list > .menu-links:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  transform: none !important;
}

.sidebar-wrapper.close_icon .sidebar-list > a:hover svg,
.sidebar-wrapper.close_icon .sidebar-list > .sidebar-link:hover svg,
.sidebar-wrapper.close_icon .sidebar-list > .sidebar-title:hover svg,
.sidebar-wrapper.close_icon .sidebar-list > .menu-links:hover svg {
  opacity: 1;
  color: #fff !important;
  stroke: #fff !important;
}

.sidebar-wrapper.close_icon .sidebar-list > a svg,
.sidebar-wrapper.close_icon .sidebar-list > .sidebar-link svg,
.sidebar-wrapper.close_icon .sidebar-list > .sidebar-title svg,
.sidebar-wrapper.close_icon .sidebar-list > .menu-links svg {
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  opacity: 0.65;
}

/* Hide dropdown arrow in collapsed state */
.sidebar-wrapper.close_icon .according-menu {
  display: none !important;
}

/* Hide submenu in collapsed state */
.sidebar-wrapper.close_icon .sidebar-submenu,
.sidebar-wrapper.close_icon .menu-content {
  display: none !important;
}

/* Professional Tooltip for collapsed sidebar */
.sidebar-wrapper.close_icon .sidebar-list > a[data-title],
.sidebar-wrapper.close_icon .sidebar-list > .sidebar-link[data-title],
.sidebar-wrapper.close_icon .sidebar-list > .sidebar-title[data-title],
.sidebar-wrapper.close_icon .sidebar-list > .menu-links[data-title] {
  position: relative;
}

.sidebar-wrapper.close_icon .sidebar-list > a[data-title]::after,
.sidebar-wrapper.close_icon .sidebar-list > .sidebar-link[data-title]::after,
.sidebar-wrapper.close_icon .sidebar-list > .sidebar-title[data-title]::after,
.sidebar-wrapper.close_icon .sidebar-list > .menu-links[data-title]::after {
  content: attr(data-title);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-5px);
  background: #1a1c2e;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

/* Tooltip arrow */
.sidebar-wrapper.close_icon .sidebar-list > a[data-title]::before,
.sidebar-wrapper.close_icon .sidebar-list > .sidebar-link[data-title]::before,
.sidebar-wrapper.close_icon .sidebar-list > .sidebar-title[data-title]::before,
.sidebar-wrapper.close_icon .sidebar-list > .menu-links[data-title]::before {
  content: '';
  position: absolute;
  left: calc(100% + 4px);
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: #1a1c2e;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 9999;
}

/* Show tooltip on hover */
.sidebar-wrapper.close_icon .sidebar-list > a[data-title]:hover::after,
.sidebar-wrapper.close_icon .sidebar-list > .sidebar-link[data-title]:hover::after,
.sidebar-wrapper.close_icon .sidebar-list > .sidebar-title[data-title]:hover::after,
.sidebar-wrapper.close_icon .sidebar-list > .menu-links[data-title]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.sidebar-wrapper.close_icon .sidebar-list > a[data-title]:hover::before,
.sidebar-wrapper.close_icon .sidebar-list > .sidebar-link[data-title]:hover::before,
.sidebar-wrapper.close_icon .sidebar-list > .sidebar-title[data-title]:hover::before,
.sidebar-wrapper.close_icon .sidebar-list > .menu-links[data-title]:hover::before {
  opacity: 1;
  visibility: visible;
}

/* Active state in collapsed mode */
.sidebar-wrapper.close_icon .sidebar-list.active > a,
.sidebar-wrapper.close_icon .sidebar-list > a.active,
.sidebar-wrapper.close_icon .sidebar-list.active > .sidebar-link,
.sidebar-wrapper.close_icon .sidebar-list.active > .sidebar-title,
.sidebar-wrapper.close_icon .sidebar-list.active > .menu-links {
  background: linear-gradient(135deg, rgba(231, 195, 52, 0.25) 0%, rgba(231, 195, 52, 0.15) 100%) !important;
  border-color: rgba(231, 195, 52, 0.5) !important;
  box-shadow: 0 2px 8px rgba(231, 195, 52, 0.2) !important;
}

.sidebar-wrapper.close_icon .sidebar-list.active > a svg,
.sidebar-wrapper.close_icon .sidebar-list > a.active svg,
.sidebar-wrapper.close_icon .sidebar-list.active > .sidebar-title svg,
.sidebar-wrapper.close_icon .sidebar-list.active > .menu-links svg,
.sidebar-wrapper.close_icon .sidebar-list.active > a svg path,
.sidebar-wrapper.close_icon .sidebar-list > a.active svg path,
.sidebar-wrapper.close_icon .sidebar-list.active > .sidebar-title svg path,
.sidebar-wrapper.close_icon .sidebar-list.active > .menu-links svg path {
  opacity: 1 !important;
  color: #FFD700 !important;
  fill: #FFD700 !important;
  stroke: #FFD700 !important;
}

/* Active tooltip style */
.sidebar-wrapper.close_icon .sidebar-list.active > a[data-title]::after,
.sidebar-wrapper.close_icon .sidebar-list > a.active[data-title]::after {
  background: linear-gradient(135deg, #E7C334 0%, #d4af2a 100%);
  color: #1a1a1a;
  font-weight: 600;
}

.sidebar-wrapper.close_icon .sidebar-list.active > a[data-title]::before,
.sidebar-wrapper.close_icon .sidebar-list > a.active[data-title]::before {
  border-right-color: #E7C334;
}

/* Remove active indicator bar in collapsed mode */
.sidebar-wrapper.close_icon .sidebar-list > a.active::before,
.sidebar-wrapper.close_icon .sidebar-list.active > a::before,
.sidebar-wrapper.close_icon .sidebar-list > .sidebar-title.active::before,
.sidebar-wrapper.close_icon .sidebar-list > .menu-links.active::before {
  display: none;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

/* Tablet and small desktop */
@media (max-width: 1199px) {
  .sidebar-wrapper {
    transform: translateX(-100%) !important;
    width: var(--sidebar-width) !important;
  }

  /* Only show sidebar when it has .open class on mobile/tablet */
  .sidebar-wrapper.open {
    transform: translateX(0) !important;
  }

  .page-body {
    margin-left: 0 !important;
  }

  .page-header {
    margin-left: 0 !important;
    left: 0 !important;
    width: 100% !important;
  }

  .footer {
    margin-left: 0 !important;
  }

  /* Overlay when sidebar is open on tablet */
  .page-wrapper.compact-wrapper .page-body-wrapper::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 999;
    pointer-events: none;
    transition: background 0.3s ease;
  }

  .page-wrapper.compact-wrapper.sidebar-open .page-body-wrapper::before {
    background: rgba(0, 0, 0, 0.5);
    pointer-events: auto;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --sidebar-width: 280px;
    --header-height: 65px;
  }

  .sidebar-wrapper {
    transform: translateX(-100%) !important;
    width: var(--sidebar-width) !important;
  }

  .sidebar-wrapper.open {
    transform: translateX(0) !important;
  }

  .page-body {
    padding: 16px !important;
    padding-top: calc(var(--header-height) + 16px) !important;
    margin-left: 0 !important;
  }

  .page-header {
    margin-left: 0 !important;
    left: 0 !important;
    width: 100% !important;
  }

  .footer {
    margin-left: 0 !important;
  }

  .card-body {
    padding: 16px !important;
  }

  .table thead th,
  .table tbody td {
    padding: 12px 8px !important;
    font-size: 13px !important;
  }

  /* Mobile header adjustments */
  .page-header .header-wrapper {
    padding: 10px 16px !important;
  }

  .toggle-sidebar {
    padding: 8px !important;
    display: flex !important;
  }

  /* Mobile back button */
  .sidebar-wrapper .back-btn,
  .sidebar-wrapper .mobile-back {
    display: flex !important;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .page-body {
    padding: 12px !important;
  }

  .card {
    border-radius: 12px !important;
  }

  .card-body {
    padding: 12px !important;
  }

  .btn {
    padding: 8px 16px !important;
    font-size: 13px !important;
  }
}

/* ============================================
   COMPACT WRAPPER SPECIFIC STYLES
   ============================================ */
.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper {
  background: linear-gradient(180deg, #1e2140 0%, #141627 50%, #0d0f1a 100%) !important;
}

/* Apply glass effect to menu items */
.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content .menu-box > ul > li > a {
  color: rgba(255, 255, 255, 0.6) !important;
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content .menu-box > ul > li > a:hover {
  color: rgba(255, 255, 255, 0.95) !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

/* Glass active state */
.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content .menu-box > ul > li > a.active {
  background: linear-gradient(135deg,
    rgba(231, 195, 52, 0.25) 0%,
    rgba(231, 195, 52, 0.15) 100%) !important;
  color: #FFD700 !important;
  border: 1px solid rgba(231, 195, 52, 0.5);
  box-shadow: 0 2px 8px rgba(231, 195, 52, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Collapsed Sidebar State */
.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper.close_icon {
  width: var(--sidebar-collapsed-width) !important;
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper.close_icon .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content .menu-box > ul > li > a span {
  opacity: 0;
  visibility: hidden;
  width: 0;
}

/* NO hover expand - sidebar stays collapsed until toggle button is clicked */

/* ============================================
   SIDEBAR OVERLAY FOR MOBILE
   ============================================ */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  z-index: 999;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

.sidebar-overlay.active {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: auto;
  opacity: 1;
}

/* Body scroll lock when sidebar open */
body.sidebar-open-body {
  overflow: hidden;
}

/* Mobile open state - ensure sidebar slides in properly */
@media (max-width: 1199px) {
  .sidebar-wrapper.open {
    transform: translateX(0) !important;
    box-shadow: 10px 0 50px rgba(0, 0, 0, 0.3) !important;
    z-index: 1001 !important;
  }

  /* Ensure toggle button is always visible on mobile */
  .toggle-sidebar {
    display: flex !important;
  }
}

/* ============================================
   UTILITY ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================
   ADDITIONAL POLISH
   ============================================ */
/* Better focus states for accessibility */
.sidebar-wrapper .sidebar-list > a:focus,
.sidebar-wrapper .sidebar-list > .sidebar-link:focus,
.sidebar-wrapper .sidebar-list > .sidebar-title:focus,
.sidebar-wrapper .sidebar-list > .menu-links:focus {
  outline: none;
}

/* Enhanced scrollbar for the whole page */
.page-body-wrapper::-webkit-scrollbar {
  width: 8px;
}

.page-body-wrapper::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.page-body-wrapper::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
  border-radius: 4px;
}

.page-body-wrapper::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #64748b 0%, #475569 100%);
}

/* ============================================
   HEADER STYLES - MODERN GOLDEN THEME
   ============================================ */
.page-header {
  background: #ffffff !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08) !important;
  border-bottom: 1px solid rgba(231, 195, 52, 0.1) !important;
  transition: all 0.3s ease !important;
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  height: var(--header-height);
}

.header-wrapper {
  height: var(--header-height);
  padding: 0 2rem !important;
  display: flex;
  align-items: center;
}

/* Logo area */
.header-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo-header-main {
  display: flex;
  align-items: center;
}

.logo-header-main img {
  max-height: 50px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo-header-main:hover img {
  transform: scale(1.05);
}

/* Toggle sidebar button */
.toggle-sidebar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: linear-gradient(135deg,
    rgba(231, 195, 52, 0.95) 0%,
    rgba(212, 175, 42, 1) 100%) !important;
  border: none !important;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(231, 195, 52, 0.35);
}

.toggle-sidebar:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(231, 195, 52, 0.45);
}

.toggle-sidebar:active {
  transform: translateY(0) scale(0.98);
}

.toggle-sidebar svg,
.toggle-sidebar i {
  color: #ffffff !important;
  stroke: #ffffff !important;
  font-size: 20px;
}

/* Header navigation */
.nav-right {
  margin-left: auto;
}

.nav-menus {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menus > li {
  display: flex;
  align-items: center;
}

/* Maximize button */
.nav-menus .maximize a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(231, 195, 52, 0.1);
  transition: all 0.3s ease;
  color: #E7C334;
}

.nav-menus .maximize a:hover {
  background: rgba(231, 195, 52, 0.2);
  transform: scale(1.1);
}

.nav-menus .maximize a svg {
  width: 20px;
  height: 20px;
  stroke: #E7C334;
}

/* Profile dropdown */
.profile-nav {
  position: relative;
}

.account-user {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E7C334 0%, #D1AF2D 100%);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(231, 195, 52, 0.3);
}

.account-user:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(231, 195, 52, 0.4);
}

.account-user svg,
.account-user i {
  color: #ffffff !important;
  stroke: #ffffff !important;
  font-size: 18px;
}

/* Profile dropdown menu */
.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  list-style: none;
  margin: 0;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.profile-nav:hover .profile-dropdown,
.profile-nav .profile-dropdown.show,
.onhover-show-div.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-dropdown li {
  margin: 0;
  padding: 0;
}

.profile-dropdown li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  color: #374151;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  font-weight: 500;
}

.profile-dropdown li a:hover {
  background: rgba(231, 195, 52, 0.08);
  color: #E7C334;
  padding-left: 1.5rem;
}

.profile-dropdown li a svg,
.profile-dropdown li a i {
  width: 18px;
  height: 18px;
  color: currentColor;
  stroke: currentColor;
}

/* ============================================
   FOOTER STYLES - MODERN GOLDEN THEME
   ============================================ */
.footer {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
  border-top: 2px solid rgba(231, 195, 52, 0.15) !important;
  padding: 1.75rem 0 !important;
  margin-top: 3rem;
  margin-left: var(--sidebar-width) !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05) !important;
  position: relative;
  z-index: 10;
  transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    #E7C334 20%,
    #D1AF2D 50%,
    #E7C334 80%,
    transparent 100%);
}

.footer .container-fluid {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
  color: #6B7280;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.footer-left p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-right p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
}

.footer .fa-heart {
  color: #E7C334 !important;
  animation: heartbeat 1.5s ease-in-out infinite;
  font-size: 1.1rem;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  10%, 30% { transform: scale(1.1); }
  20%, 40% { transform: scale(1); }
}

/* Responsive footer */
@media (max-width: 768px) {
  .footer {
    padding: 1.5rem 0 !important;
  }

  .footer .container-fluid {
    padding: 0 1rem;
  }

  .footer .row {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .footer-left,
  .footer-right {
    width: 100%;
  }

  .footer-left p,
  .footer-right p {
    justify-content: center;
    font-size: 0.85rem;
  }
}

/* ============================================
   PAGE BODY WRAPPER ADJUSTMENTS
   ============================================ */
.page-body-wrapper {
  margin-top: var(--header-height);
  padding-bottom: 2rem;
  min-height: calc(100vh - var(--header-height));
}

/* Adjust main content padding when sidebar is open/closed */
@media (min-width: 1200px) {
  .page-body-wrapper {
    transition: margin-left var(--transition-slow);
  }

  
}

@media (max-width: 1199px) {
  .page-body-wrapper {
    margin-left: 0 !important;
  }
}

/* ============================================
   MODERN TABLE STYLES - LIST VIEWS
   ============================================ */

/* Page Title Modern Styles */
.page-title {
  margin-bottom: 2rem !important;
  padding-bottom: 1.5rem !important;
  border-bottom: 2px solid rgba(231, 195, 52, 0.1) !important;
}

.page-title h3 {
  color: #1a1a1a !important;
  font-weight: 700 !important;
  font-size: 1.75rem !important;
  margin: 0 !important;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.page-title h3::before {
  content: '';
  width: 4px;
  height: 28px;
  background: linear-gradient(180deg, #E7C334 0%, #D1AF2D 100%);
  border-radius: 2px;
}

.page-title .breadcrumb {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

.page-title .breadcrumb-item {
  color: #6B7280 !important;
  font-size: 0.875rem !important;
}

.page-title .breadcrumb-item a {
  color: #E7C334 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.page-title .breadcrumb-item a:hover {
  color: #D1AF2D !important;
}

.page-title .breadcrumb-item.active {
  color: #1a1a1a !important;
  font-weight: 500 !important;
}

/* Modern Card Container */
.page-body .card {
  border: none !important;
  border-radius: 16px !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
  overflow: visible !important;
  background: #ffffff !important;
}



/* Modern Table Styles */
.table-responsive {
  border-radius: 12px !important;
  overflow: hidden !important;
  border: 1px solid #F3F4F6 !important;
  background: #ffffff !important;
  margin-top: 1.5rem !important;
}

table.display,
table.dataTable {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin: 0 !important;
}

/* Table Header */
table.display thead,
table.dataTable thead {
  background: linear-gradient(135deg, #F8F9FA 0%, #F3F4F6 100%) !important;
  border-bottom: 2px solid rgba(231, 195, 52, 0.15) !important;
}

table.display thead th,
table.dataTable thead th {
  padding: 1.25rem 1.5rem !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #374151 !important;
  border-bottom: none !important;
  white-space: nowrap !important;
  background: transparent !important;
}

/* Table Body */
table.display tbody tr,
table.dataTable tbody tr {
  border-bottom: 1px solid #F3F4F6 !important;
  transition: all 0.2s ease !important;
}

table.display tbody tr:hover,
table.dataTable tbody tr:hover {
  background: rgba(231, 195, 52, 0.04) !important;
  transform: translateX(2px);
}

table.display tbody td,
table.dataTable tbody td {
  padding: 1.125rem 1.5rem !important;
  font-size: 0.9375rem !important;
  color: #4B5563 !important;
  vertical-align: middle !important;
  border-top: none !important;
}

/* First column (row numbers) */
table.display tbody td:first-child,
table.dataTable tbody td:first-child {
  color: #9CA3AF !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
}

/* Empty State */
table tbody tr td.text-center.text-muted {
  padding: 4rem 2rem !important;
  color: #9CA3AF !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
}

/* Action Buttons */
.btn-outline-primary {
  background: rgba(231, 195, 52, 0.08) !important;
  border: 1.5px solid rgba(231, 195, 52, 0.3) !important;
  color: #E7C334 !important;
  padding: 8px 16px !important;
  border-radius: 10px !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  transition: all 0.25s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.btn-outline-primary:hover {
  background: linear-gradient(135deg, #E7C334 0%, #D1AF2D 100%) !important;
  border-color: #E7C334 !important;
  color: #1a1a1a !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(231, 195, 52, 0.3) !important;
}

.btn-outline-primary i {
  font-size: 1rem !important;
}

/* Invosymbol (currency) styling */
.invosymbol {
  font-weight: 600 !important;
  color: #10B981 !important;
  font-size: 1rem !important;
}

/* Responsive Table */
@media (max-width: 768px) {
  .page-title h3 {
    font-size: 1.5rem !important;
  }

  table.display thead th,
  table.dataTable thead th {
    padding: 1rem !important;
    font-size: 0.8125rem !important;
  }

  table.display tbody td,
  table.dataTable tbody td {
    padding: 0.875rem 1rem !important;
    font-size: 0.875rem !important;
  }

  .btn-outline-primary {
    padding: 6px 12px !important;
    font-size: 0.8125rem !important;
  }
}

@media (max-width: 576px) {
  .page-title {
    margin-bottom: 1.5rem !important;
    padding-bottom: 1rem !important;
  }

  .page-title h3 {
    font-size: 1.25rem !important;
  }

  table.display thead th,
  table.dataTable thead th {
    padding: 0.875rem 0.75rem !important;
    font-size: 0.75rem !important;
  }

  table.display tbody td,
  table.dataTable tbody td {
    padding: 0.75rem !important;
    font-size: 0.8125rem !important;
  }
}

/* ============================================
   FILTER TABS & SEARCH BAR STYLES
   ============================================ */

/* Filter Tabs Container */
.filter-tabs,
.btn-group {
  display: flex;
  gap: 8px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

/* Filter Tab Buttons */
.filter-tabs .btn,
.btn-group .btn,
button[class*="filter"],
.tab-button {
  padding: 10px 20px !important;
  border-radius: 10px !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  border: 1.5px solid transparent !important;
  transition: all 0.25s ease !important;
  background: #F3F4F6 !important;
  color: #6B7280 !important;
  cursor: pointer;
}

.filter-tabs .btn:hover,
.btn-group .btn:hover,
button[class*="filter"]:hover,
.tab-button:hover {
  background: rgba(231, 195, 52, 0.1) !important;
  color: #E7C334 !important;
  border-color: rgba(231, 195, 52, 0.2) !important;
}

/* Active Filter Tab */
.filter-tabs .btn.active,
.btn-group .btn.active,
.filter-tabs .btn-primary,
.btn-group .btn-primary,
button[class*="filter"].active,
.tab-button.active {
  background: linear-gradient(135deg, #E7C334 0%, #D1AF2D 100%) !important;
  color: #1a1a1a !important;
  border-color: #E7C334 !important;
  box-shadow: 0 4px 12px rgba(231, 195, 52, 0.25) !important;
}

/* Search Bar Container */
.dataTables_filter,
.search-container,
div[style*="display: flex"] > input[type="text"] {
  margin-bottom: 1.5rem;
}

/* Search Input */
.dataTables_filter input,
input[type="text"][placeholder*="Search"],
input[placeholder*="search" i] {
  padding: 12px 20px !important;
  border: 1.5px solid #E5E7EB !important;
  border-radius: 10px !important;
  font-size: 0.9375rem !important;
  color: #374151 !important;
  background: #FFFFFF !important;
  transition: all 0.25s ease !important;
  min-width: 280px;
}

.dataTables_filter input:focus,
input[type="text"][placeholder*="Search"]:focus,
input[placeholder*="search" i]:focus {
  outline: none !important;
  border-color: #E7C334 !important;
  box-shadow: 0 0 0 3px rgba(231, 195, 52, 0.1) !important;
}

/* Search Button */
button[onclick*="search" i],
button.search-btn,
.btn-search {
  padding: 12px 24px !important;
  background: linear-gradient(135deg, #E7C334 0%, #D1AF2D 100%) !important;
  color: #1a1a1a !important;
  border: none !important;
  border-radius: 10px !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: all 0.25s ease !important;
  box-shadow: 0 2px 8px rgba(231, 195, 52, 0.2) !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

button[onclick*="search" i]:hover,
button.search-btn:hover,
.btn-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(231, 195, 52, 0.35) !important;
}

/* Entries Selector */
.dataTables_length select,
select[name*="entries" i] {
  padding: 8px 32px 8px 12px !important;
  border: 1.5px solid #E5E7EB !important;
  border-radius: 8px !important;
  font-size: 0.875rem !important;
  color: #374151 !important;
  background: #FFFFFF !important;
  cursor: pointer;
  transition: all 0.2s ease !important;
}

.dataTables_length select:focus,
select[name*="entries" i]:focus {
  outline: none !important;
  border-color: #E7C334 !important;
  box-shadow: 0 0 0 3px rgba(231, 195, 52, 0.1) !important;
}

.dataTables_length label {
  font-size: 0.875rem !important;
  color: #6B7280 !important;
  font-weight: 500 !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================
   PAGINATION STYLES
   ============================================ */

.dataTables_paginate,
.pagination-container {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.dataTables_paginate .paginate_button,
.pagination .page-item .page-link {
  padding: 10px 16px !important;
  border: 1.5px solid #E5E7EB !important;
  border-radius: 8px !important;
  color: #6B7280 !important;
  background: #FFFFFF !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
  cursor: pointer;
  margin: 0 3px;
}

.dataTables_paginate .paginate_button:hover,
.pagination .page-item .page-link:hover {
  background: rgba(231, 195, 52, 0.1) !important;
  border-color: rgba(231, 195, 52, 0.3) !important;
  color: #E7C334 !important;
}

.dataTables_paginate .paginate_button.current,
.dataTables_paginate .paginate_button.active,
.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, #E7C334 0%, #D1AF2D 100%) !important;
  border-color: #E7C334 !important;
  color: #1a1a1a !important;
  box-shadow: 0 2px 8px rgba(231, 195, 52, 0.2) !important;
}

.dataTables_paginate .paginate_button.disabled,
.pagination .page-item.disabled .page-link {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Pagination Info */
.dataTables_info {
  font-size: 0.875rem !important;
  color: #6B7280 !important;
  font-weight: 500 !important;
  margin-top: 1rem;
}

/* ============================================
   TABLE COLUMN-SPECIFIC STYLES
   ============================================ */

/* Rider Name Column */
table tbody td:nth-child(2) {
  font-weight: 600 !important;
  color: #1F2937 !important;
}

/* Location Columns */
table tbody td:nth-child(3),
table tbody td:nth-child(4) {
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
  color: #6B7280 !important;
  max-width: 300px;
}

/* Detail Button with Icon */
.btn-outline-primary i.icon-info-alt::before {
  content: '\24D8';
  font-style: normal;
  margin-right: 4px;
}

/* Responsive Filter & Search */
@media (max-width: 768px) {
  .filter-tabs,
  .btn-group {
    gap: 6px;
  }

  .filter-tabs .btn,
  .btn-group .btn,
  .tab-button {
    padding: 8px 14px !important;
    font-size: 0.8125rem !important;
  }

  .dataTables_filter input,
  input[type="text"][placeholder*="Search"] {
    min-width: 100%;
    margin-bottom: 1rem;
  }

  .dataTables_length {
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .filter-tabs .btn,
  .btn-group .btn {
    flex: 1;
    min-width: calc(50% - 4px);
  }

  button[onclick*="search" i],
  button.search-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   FILTER SECTION SPACING & LAYOUT
   ============================================ */

/* Filter Section Container */
.dataTables_wrapper,
.table-responsive-wrapper {
  padding: 0 !important;
}

/* Top Controls Bar (Entries + Search) */
.dataTables_length,
.dataTables_filter {
  margin-bottom: 1.25rem !important;
}

/* Space between filters and search */
.filter-tabs + .dataTables_length,
.btn-group + div[style*="display"] {
  margin-top: 1.5rem;
}

/* Filter Section Background */
.filter-section,
div:has(.filter-tabs),
div:has(.btn-group) {
  background: #FAFBFC;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 1px solid #F3F4F6;
}

/* Search Row Flex Layout */
div[style*="display: flex"][style*="justify-content"] {
  background: transparent !important;
  padding: 0 !important;
  margin: 1.25rem 0 !important;
  border: none !important;
  gap: 1rem;
  align-items: center;
}

/* Entries Label Spacing */
.dataTables_length {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Table First & Last Row Rounded Corners */
table.display tbody tr:first-child td:first-child,
table.dataTable tbody tr:first-child td:first-child {
  border-top-left-radius: 0px;
}

table.display tbody tr:first-child td:last-child,
table.dataTable tbody tr:first-child td:last-child {
  border-top-right-radius: 0px;
}

table.display tbody tr:last-child td:first-child,
table.dataTable tbody tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

table.display tbody tr:last-child td:last-child,
table.dataTable tbody tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

/* Remove last row bottom border */
table.display tbody tr:last-child,
table.dataTable tbody tr:last-child {
  border-bottom: none !important;
}

/* Add subtle inner shadow to table */
.table-responsive::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* Pagination Bottom Spacing */
.dataTables_paginate {
  padding-top: 1.5rem;
  padding-bottom: 0.5rem;
}

.dataTables_info {
  padding-top: 1rem;
  text-align: center;
}

/* Mobile Responsive Spacing */
@media (max-width: 768px) {
  .page-body .card-body {
    padding: 1.25rem !important;
  }

  .filter-section,
  div:has(.filter-tabs) {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .table-responsive {
    margin-top: 1rem !important;
  }
}

@media (max-width: 576px) {
  .page-body .card-body {
    padding: 1rem !important;
  }

  .filter-section,
  div:has(.filter-tabs) {
    padding: 0.75rem;
  }

  .dataTables_length,
  .dataTables_filter {
    margin-bottom: 1rem !important;
  }
}

/* ============================================
   FINAL POLISH & REFINEMENTS
   ============================================ */

/* Full-width filter section */
.filter-section,
.card-body > div:first-child {
  margin: -2rem -2rem 1.5rem -2rem;
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, #FAFBFC 0%, #F8F9FA 100%);
  border-bottom: 1px solid #E5E7EB;
  border-radius: 16px 16px 0 0;
}

/* Entries and Search Row - Better Alignment */
.dataTables_length {
  flex: 0 0 auto;
}

.dataTables_filter {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* Search container proper spacing */
.dataTables_filter label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

/* Rider Column Styling (2nd column) */
table tbody td:nth-child(2) {
  font-weight: 600 !important;
  color: #1F2937 !important;
  font-size: 0.9375rem !important;
}

/* Adjust location columns when Rider is present */
table tbody td:nth-child(3) {
  color: #6B7280 !important;
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
}

table tbody td:nth-child(4) {
  color: #6B7280 !important;
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
}

/* Better hover effect on table rows */
table.display tbody tr:hover,
table.dataTable tbody tr:hover {
  background: linear-gradient(90deg, 
    rgba(231, 195, 52, 0.02) 0%, 
    rgba(231, 195, 52, 0.05) 50%, 
    rgba(231, 195, 52, 0.02) 100%) !important;
  transform: translateX(0) scale(1.002);
  box-shadow: 0 2px 8px rgba(231, 195, 52, 0.08);
  position: relative;
  z-index: 1;
}

/* Smooth table row transition */
table tbody tr {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Header text styling */
table thead th {
  position: relative;
}

table thead th::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #E7C334;
  transition: width 0.3s ease;
}

table thead th:hover::after {
  width: 100%;
}

/* Empty state enhancement */
table tbody tr td[colspan] {
  background: linear-gradient(135deg, #FAFBFC 0%, #F8F9FA 100%) !important;
  border-radius: 12px !important;
}

/* Detail button icon color fix */
.btn-outline-primary i {
  color: inherit !important;
}

/* Card shadow on hover */
.page-body .card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
  transition: box-shadow 0.3s ease !important;
}

/* Mobile adjustments for filter section */
@media (max-width: 768px) {
  .filter-section,
  .card-body > div:first-child {
    margin: -1.25rem -1.25rem 1rem -1.25rem;
    padding: 1.25rem;
  }

  .dataTables_length,
  .dataTables_filter {
    flex: 1 1 100%;
  }

  .dataTables_filter {
    justify-content: flex-start;
    margin-top: 1rem;
  }
}

@media (max-width: 576px) {
  .filter-section,
  .card-body > div:first-child {
    margin: -1rem -1rem 0.75rem -1rem;
    padding: 1rem;
  }
}

/* Ensure proper table column widths */
table thead th:nth-child(1) { width: 60px; }      /* # */
table thead th:nth-child(2) { width: 150px; }     /* Rider */
table thead th:nth-child(3) { width: auto; }      /* Pickup */
table thead th:nth-child(4) { width: auto; }      /* Drop */
table thead th:nth-child(5) { width: 120px; }     /* Fare */
table thead th:nth-child(6) { width: 130px; }     /* Action */

/* Text alignment for better readability */
table tbody td:nth-child(1) { text-align: center; }
table tbody td:nth-child(5) { text-align: right; }
table tbody td:nth-child(6) { text-align: center; }

table thead th:nth-child(1) { text-align: center; }
table thead th:nth-child(5) { text-align: right; }
table thead th:nth-child(6) { text-align: center; }

/* ============================================
   RIDE DETAIL PAGE - MODERN DESIGN
   ============================================ */

/* Detail Header with Gold Theme */
.detail-header {
  background: linear-gradient(135deg, #E7C334 0%, #d4af2a 100%);
  padding: 40px 0;
  margin-bottom: 32px;
  box-shadow: 0 4px 20px rgba(231, 195, 52, 0.3);
  position: relative;
  overflow: hidden;
  margin-left: calc(var(--sidebar-width) * -1);
  margin-right: 0;
  margin-top: calc(var(--header-height) * -1 - 24px);
  padding-left: var(--sidebar-width);
}

.detail-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.detail-header::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.detail-header .container-fluid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-title h1 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.ride-id-badge {
  font-size: 15px;
  color: #1a1a1a;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 1;
}

.breadcrumb-nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.2s;
}

.breadcrumb-nav a:hover {
  color: #fff;
  transform: translateY(-1px);
}

/* Content Container */
.content-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

/* Detail Page Card Styles */
.detail-header ~ * .card,
.content-container .card {
  background: #fff;
  border-radius: 16px;
  border: none;
  margin-bottom: 24px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.detail-header ~ * .card:hover,
.content-container .card:hover {
  box-shadow: 0 8px 32px rgba(231, 195, 52, 0.2);
  transform: translateY(-4px);
}

.detail-header ~ * .card-header,
.content-container .card-header {
  padding: 24px 28px;
  border-bottom: 1px solid #f0f0f0;
  background: linear-gradient(135deg, #f8f9fc 0%, #fff 100%);
  border-radius: 16px 16px 0 0;
}

.detail-header ~ * .card-header h3,
.content-container .card-header h3 {
  font-size: 13px;
  font-weight: 700;
  color: #E7C334;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.detail-header ~ * .card-body,
.content-container .card-body {
  padding: 24px;
}

/* Clickable Card */
.card-clickable {
  cursor: pointer;
  position: relative;
  overflow: visible;
}

.card-clickable::after {
  content: '→';
  position: absolute;
  top: 28px;
  right: 28px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #E7C334 0%, #d4af2a 100%);
  color: #1a1a1a;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(231, 195, 52, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-clickable:hover::after {
  transform: translateX(4px) scale(1.1);
  box-shadow: 0 6px 20px rgba(231, 195, 52, 0.5);
}

/* Info Item */
.info-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid #f5f5f5;
}

.info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-item:first-child {
  padding-top: 0;
}

.info-label {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.info-value {
  font-size: 14px;
  color: #1a1a1a;
  font-weight: 600;
  text-align: right;
  max-width: 60%;
}

/* Status Badges */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.status-new {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  color: #92400e;
  border-color: #E7C334;
}

.status-new .status-dot {
  background: #E7C334;
  box-shadow: 0 0 8px rgba(231, 195, 52, 0.3);
}

.status-active {
  background: #e3f2fd;
  color: #1565c0;
  border-color: #2196f3;
}

.status-active .status-dot {
  background: #2196f3;
}

.status-completed {
  background: #e8f5e9;
  color: #2e7d32;
  border-color: #4caf50;
}

.status-completed .status-dot {
  background: #4caf50;
}

.status-cancelled {
  background: #ffebee;
  color: #c62828;
  border-color: #ef5350;
}

.status-cancelled .status-dot {
  background: #ef5350;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.stat-box {
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fc 0%, #fff 100%);
  border-radius: 12px;
  border: 2px solid #f0f0f0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #E7C334 0%, #d4af2a 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.stat-box:hover {
  border-color: #E7C334;
  box-shadow: 0 4px 20px rgba(231, 195, 52, 0.2);
  transform: translateY(-4px);
}

.stat-box:hover::before {
  opacity: 1;
}

.stat-label {
  font-size: 11px;
  color: #E7C334;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 24px;
  color: #1a1a1a;
  font-weight: 700;
}

/* Service Badge */
.service-badge {
  display: inline-block;
  padding: 5px 12px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

/* Payment Flow */
.payment-flow {
  background: linear-gradient(135deg, #f8f9fc 0%, #fff 100%);
  border: 2px solid #e8ecf1;
  border-radius: 16px;
  padding: 28px;
  margin-top: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.flow-step:hover {
  box-shadow: 0 4px 16px rgba(231, 195, 52, 0.15);
  transform: translateX(4px);
}

.flow-step:last-child {
  margin-bottom: 0;
}

.flow-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.flow-step:hover .flow-icon {
  transform: scale(1.1);
}

.flow-icon.customer {
  background: linear-gradient(135deg, #E7C334 0%, #d4af2a 100%);
  color: #1a1a1a;
}

.flow-icon.platform {
  background: linear-gradient(135deg, #ef5350 0%, #e53935 100%);
  color: #fff;
}

.flow-icon.driver {
  background: linear-gradient(135deg, #4caf50 0%, #43a047 100%);
  color: #fff;
}

.flow-content {
  flex: 1;
}

.flow-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.flow-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

.flow-amount {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}

/* Payment Summary */
.payment-summary {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 20px;
  margin-top: 20px;
}

.payment-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
}

.payment-row.total {
  border-top: 2px solid #E7C334;
  margin-top: 10px;
  padding-top: 14px;
  font-weight: 700;
  font-size: 16px;
}

.payment-label {
  color: #666;
}

.payment-value {
  color: #1a1a1a;
  font-weight: 600;
}

.payment-total-box {
  background: linear-gradient(135deg, #E7C334 0%, #d4af2a 100%);
  color: #1a1a1a;
  padding: 32px;
  border-radius: 16px;
  margin-top: 24px;
  box-shadow: 0 8px 24px rgba(231, 195, 52, 0.3);
  position: relative;
  overflow: hidden;
}

.payment-total-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.payment-total-label {
  font-size: 13px;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  font-weight: 600;
}

.payment-total-value {
  font-size: 36px;
  font-weight: 700;
  position: relative;
  z-index: 1;
  color: #1a1a1a;
}

/* Route Section */
.pickup-box {
  background: linear-gradient(135deg, #fffbeb 0%, #fff 100%);
  border: 2px solid #E7C334;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  position: relative;
  padding-left: 60px;
  box-shadow: 0 2px 12px rgba(231, 195, 52, 0.1);
}

.pickup-box::before {
  content: '📍';
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
}

.pickup-title {
  font-size: 12px;
  font-weight: 700;
  color: #666;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.pickup-address {
  font-size: 14px;
  color: #1a1a1a;
  font-weight: 600;
  margin-bottom: 3px;
}

.pickup-subtitle {
  font-size: 13px;
  color: #666;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 36px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e0e0e0;
}

.timeline-item {
  position: relative;
  padding-bottom: 24px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -36px;
  top: 4px;
  width: 24px;
  height: 24px;
  background: #fff;
  border: 2px solid #d0d0d0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #666;
  z-index: 1;
}

.timeline-item.completed .timeline-marker {
  background: #4caf50;
  border-color: #4caf50;
  color: #fff;
}

.timeline-item.active .timeline-marker {
  background: linear-gradient(135deg, #E7C334 0%, #d4af2a 100%);
  border-color: #E7C334;
  color: #1a1a1a;
  font-weight: 700;
}

.timeline-content {
  background: #fff;
  padding: 14px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  transition: all 0.2s ease;
}

.timeline-content:hover {
  border-color: #E7C334;
  box-shadow: 0 2px 12px rgba(231, 195, 52, 0.15);
}

.timeline-title {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.timeline-address {
  font-size: 13px;
  color: #666;
}

/* Parcel Grid */
.parcel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.parcel-item {
  background: #fafafa;
  padding: 16px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  transition: all 0.2s ease;
}

.parcel-item:hover {
  border-color: #E7C334;
  box-shadow: 0 2px 12px rgba(231, 195, 52, 0.1);
}

.parcel-label {
  font-size: 11px;
  color: #666;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.parcel-value {
  font-size: 14px;
  color: #1a1a1a;
  font-weight: 600;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Accent Border */
.accent-border {
  border-left: 3px solid #E7C334;
}

/* Responsive for Detail Page */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .parcel-grid {
    grid-template-columns: 1fr;
  }

  .info-value {
    max-width: 100%;
  }

  .detail-header {
    margin-left: 0;
    margin-top: 0;
    padding-left: 0;
  }
}
