/* Sidebar & Layout Fix - Clean Modern Styles */
/* Remove old conflicting styles and apply modern design */

/* Reset and fix sidebar positioning */
.main-sidebar {
  position: fixed !important;
  top: 70px !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 250px !important;
  z-index: 998 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scroll-behavior: smooth !important;
  padding-top: 0.75rem !important;
}

/* Prevent sidebar from scrolling on click */
#sidebar-wrapper {
  height: 100% !important;
  overflow-y: auto !important;
}

/* Keep scroll position when clicking links */
.sidebar-menu li a {
  scroll-margin-top: 100px !important;
}

/* Fix main content to not overlap with sidebar */
.main-content {
  margin-left: 250px !important;
  min-height: calc(100vh - 70px) !important;
  padding: 1.5rem !important;
  overflow-x: hidden !important;
  max-width: calc(100vw - 250px) !important;
  box-sizing: border-box !important;
}

/* Top navbar - Full width horizontal bar */
.main-navbar {
  margin-left: 0 !important;
  width: 100% !important;
  padding: 0 1.5rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 999 !important;
  height: 70px !important;
}

.navbar-bg {
  margin-left: 0 !important;
  width: 100% !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 70px !important;
  z-index: 999 !important;
}

/* Navbar brand wrapper */
.navbar-brand-wrapper {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
}

/* Navbar top logo */
.navbar-brand-top {
  display: flex !important;
  align-items: center !important;
  text-decoration: none !important;
  color: var(--text-primary) !important;
  transition: opacity 0.15s ease !important;
}

.navbar-brand-top:hover {
  opacity: 0.8 !important;
  text-decoration: none !important;
}

/* Navbar right alignment */
.navbar-nav.navbar-right {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  margin: 0 !important;
}

.navbar-nav.navbar-right > li {
  list-style: none !important;
}

/* Modern sidebar toggle button (mobile only) */
.sidebar-toggle-btn {
  display: none !important;
  background: transparent !important;
  border: none !important;
  font-size: 1.25rem !important;
  color: var(--text-primary) !important;
  padding: 0.5rem !important;
  cursor: pointer !important;
  border-radius: 0.375rem !important;
  transition: background-color 0.15s ease !important;
}

.sidebar-toggle-btn:hover {
  background-color: var(--sidebar-hover-bg) !important;
}

.sidebar-toggle-btn:focus {
  outline: none !important;
}

/* Modern Theme Toggle Button */
.theme-toggle-btn {
  position: relative !important;
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border-color) !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--text-primary) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  overflow: hidden !important;
}

.theme-toggle-btn:hover {
  background-color: var(--sidebar-hover-bg) !important;
  border-color: var(--bs-primary) !important;
  transform: scale(1.05) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.theme-toggle-btn:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
}

.theme-toggle-btn:active {
  transform: scale(0.95) !important;
}

/* Icon animations */
.theme-toggle-btn i {
  font-size: 1.125rem !important;
  position: absolute !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Icon visibility logic:
   - Light mode: Show MOON icon (to switch TO dark)
   - Dark mode: Show SUN icon (to switch TO light)
*/

/* Moon icon (default visible - shows in light mode) */
.theme-icon-dark {
  color: #6366f1 !important;
  opacity: 1 !important;
  transform: rotate(0deg) scale(1) !important;
}

/* Sun icon (default hidden) */
.theme-icon-light {
  color: #f59e0b !important;
  opacity: 0 !important;
  transform: rotate(-180deg) scale(0) !important;
}

/* Light mode: Show moon, hide sun */
[data-theme="light"] .theme-icon-dark {
  opacity: 1 !important;
  transform: rotate(0deg) scale(1) !important;
}

[data-theme="light"] .theme-icon-light {
  opacity: 0 !important;
  transform: rotate(180deg) scale(0) !important;
}

/* Dark mode: Show sun, hide moon */
[data-theme="dark"] .theme-icon-light {
  opacity: 1 !important;
  transform: rotate(0deg) scale(1) !important;
}

[data-theme="dark"] .theme-icon-dark {
  opacity: 0 !important;
  transform: rotate(180deg) scale(0) !important;
}

/* Hover effects for icons */
.theme-toggle-btn:hover .theme-icon-light,
.theme-toggle-btn:hover .theme-icon-dark {
  transform: rotate(0deg) scale(1.1) !important;
}

/* Mobile adjustments */
@media (max-width: 576px) {
  .theme-toggle-btn {
    width: 36px !important;
    height: 36px !important;
  }
  
  .theme-toggle-btn i {
    font-size: 1rem !important;
  }
}

/* Remove sidebar brand (logo now in top navbar) */
.sidebar-brand,
.sidebar-brand-sm {
  display: none !important;
}

/* Modern Compact Sidebar Menu */
.sidebar-menu {
  padding: 0.5rem 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

.sidebar-menu li {
  margin: 0 !important;
  padding: 0 0.75rem !important;
  list-style: none !important;
}

.sidebar-menu li a {
  display: flex !important;
  align-items: center !important;
  padding: 0.35rem 0.6rem !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  color: var(--sidebar-text) !important;
  border-radius: 0.375rem !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-decoration: none !important;
  position: relative !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

.sidebar-menu li a i {
  width: 1.1rem !important;
  height: 1.1rem !important;
  font-size: 0.9rem !important;
  margin-right: 0.6rem !important;
  color: var(--text-muted) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-align: center !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.sidebar-menu li a span {
  flex: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Hover state - Modern subtle effect */
.sidebar-menu li a:hover {
  background-color: var(--sidebar-hover-bg) !important;
  color: var(--text-primary) !important;
  transform: translateX(2px) !important;
}

.sidebar-menu li a:hover i {
  color: var(--bs-primary) !important;
  transform: scale(1.05) !important;
}

/* Active state - Modern bold accent */
.sidebar-menu li.active > a {
  background: linear-gradient(90deg, rgba(103, 119, 239, 0.1) 0%, transparent 100%) !important;
  color: var(--text-primary) !important;
  font-weight: 600 !important;
  border-left: 3px solid var(--bs-primary) !important;
  padding-left: calc(0.75rem - 3px) !important;
}

.sidebar-menu li.active > a i {
  color: var(--bs-primary) !important;
  font-weight: 700 !important;
}

/* Dark mode active state */
[data-theme="dark"] .sidebar-menu li.active > a {
  background: linear-gradient(90deg, rgba(139, 152, 255, 0.12) 0%, transparent 100%) !important;
}

[data-theme="dark"] .sidebar-menu li.active > a i {
  color: #8b98ff !important;
}

/* Hide menu headers - cleaner look */
.sidebar-menu .menu-header {
  display: none !important;
}

/* Incidents Section - Visual Distinction */

/* Add divider before first incident item */
.sidebar-menu li.incident-item:first-of-type {
  margin-top: 0.75rem !important;
  padding-top: 0.75rem !important;
  border-top: 1px solid var(--border-color) !important;
  position: relative !important;
}

/* Subtle background for incident section */
.sidebar-menu li.incident-item {
  position: relative !important;
}

.sidebar-menu li.incident-item > a {
  background-color: rgba(251, 146, 60, 0.05) !important;
}

/* Warning/Alert icon color for incidents */
.sidebar-menu li.incident-item > a i {
  color: #f59e0b !important;
}

/* Hover state for incidents */
.sidebar-menu li.incident-item > a:hover {
  background-color: rgba(251, 146, 60, 0.1) !important;
}

.sidebar-menu li.incident-item > a:hover i {
  color: #f59e0b !important;
}

/* Active incident link */
.sidebar-menu li.incident-item.active > a {
  background: linear-gradient(90deg, rgba(251, 146, 60, 0.12) 0%, transparent 100%) !important;
  font-weight: 600 !important;
  border-left: 3px solid #f59e0b !important;
  padding-left: calc(0.75rem - 3px) !important;
}

.sidebar-menu li.incident-item.active > a i {
  color: #f59e0b !important;
  font-weight: 700 !important;
}

/* Dark mode adjustments for incidents */
[data-theme="dark"] .sidebar-menu li.incident-item > a {
  background-color: rgba(251, 146, 60, 0.08) !important;
}

[data-theme="dark"] .sidebar-menu li.incident-item > a:hover {
  background-color: rgba(251, 146, 60, 0.12) !important;
}

[data-theme="dark"] .sidebar-menu li.incident-item.active > a {
  background: linear-gradient(90deg, rgba(251, 146, 60, 0.15) 0%, transparent 100%) !important;
  border-left: 3px solid #fbbf24 !important;
}

[data-theme="dark"] .sidebar-menu li.incident-item > a i {
  color: #fbbf24 !important;
}

[data-theme="dark"] .sidebar-menu li.incident-item > a:hover i,
[data-theme="dark"] .sidebar-menu li.incident-item.active > a i {
  color: #fbbf24 !important;
}

/* Logo components */
.logo-mz {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-primary-dark) 100%) !important;
  border-radius: 0.5rem !important;
  color: white !important;
  font-weight: 700 !important;
  font-size: 0.9375rem !important;
  letter-spacing: -0.025em !important;
  flex-shrink: 0 !important;
}

.logo-text {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  letter-spacing: -0.01em !important;
}

/* Dashboard grid fix */
.row {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
}

.row > [class*='col-'] {
  padding-left: 0.75rem !important;
  padding-right: 0.75rem !important;
}

/* Prevent any element from causing horizontal scroll */
.main-content * {
  max-width: 100%;
}

.main-content .row,
.main-content [class*='container'] {
  overflow-x: hidden !important;
}

/* Ensure cards are visible */
.card {
  margin-bottom: 1.5rem !important;
  position: relative !important;
  z-index: 1 !important;
}

/* Remove unnecessary section header box */
.section-header {
  display: none !important;
}

/* Section spacing */
.section {
  padding: 0 !important;
  margin-bottom: 0 !important;
  margin-top: 70px !important;
}

/* Ensure all cards and headings have same width as alert boxes and section-title */
.card {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  border-left: none !important;
  border-right: none !important;
}

.card .card-header {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  border-left: none !important;
  border-right: none !important;
}

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

.section-body {
  padding: 0 !important;
}

/* ═══════════════════════════════════════════════════════════════════
   PRICING PLANS - Aligned with Alert Box Width
   ═══════════════════════════════════════════════════════════════════
   
   IMPORTANT: Pricing card container must match alert box width!
   The card-deck should span the same total width as .modern-alert
   
   Strategy:
   - Use Bootstrap grid (col-*) to ensure proper alignment
   - Cards auto-size within the constrained width
   - Maintains alignment with "No Active Subscription" box
   ═══════════════════════════════════════════════════════════════════ */

/* Make card-deck honor the col-12 width constraint */
.card-deck {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
}

.price-width {
  /* Let cards auto-size to fit 4 per row within container */
  min-width: 0 !important;
  max-width: none !important;
  flex: 1 1 calc(25% - 16px) !important; /* 4 cards with gaps */
  min-height: 25pc;
  margin: 8px !important; /* Consistent gap between cards */
}

@media (max-width: 1200px) {
  .price-width {
    flex: 1 1 calc(25% - 16px) !important; /* Still 4 cards, smaller */
  }
}

@media (max-width: 992px) {
  /* 2 cards per row on tablets */
  .price-width {
    flex: 1 1 calc(50% - 16px) !important;
  }
}

@media (max-width: 576px) {
  /* 1 card per row on mobile */
  .price-width {
    flex: 1 1 calc(100% - 16px) !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   DARK MODE - Pricing Cards & All Headings
   ═══════════════════════════════════════════════════════════════════
   
   GLOBAL dark mode fixes that apply to ALL pages automatically.
   ═══════════════════════════════════════════════════════════════════ */

/* Pricing card container */
[data-theme="dark"] .pricing {
  background-color: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
}

/* Pricing title (e.g., "Trial", "Basic", "Premium") */
[data-theme="dark"] .pricing .pricing-title {
  background-color: rgba(59, 130, 246, 0.1) !important; /* Subtle blue background */
  color: #60a5fa !important; /* Light blue text */
  border-radius: 6px !important;
}

/* Pricing highlight variant */
[data-theme="dark"] .pricing.pricing-highlight .pricing-title {
  background-color: #3b82f6 !important;
  color: #ffffff !important;
}

/* Ensure all headings are theme-friendly in dark mode */
[data-theme="dark"] .card-header h1,
[data-theme="dark"] .card-header h2,
[data-theme="dark"] .card-header h3,
[data-theme="dark"] .card-header h4 {
  color: #f9fafb !important;
}

/* List items in pricing cards and all pages */
[data-theme="dark"] .list-group-item {
  background-color: transparent !important;
  border-color: var(--border-color) !important;
  color: var(--text-primary) !important;
}

[data-theme="dark"] .borderless li {
  color: var(--text-primary) !important;
}

/* Main content starts properly below navbar */
.main-content {
  padding-top: 0 !important;
  margin-top: 70px !important;
}

/* Mobile responsive - Improved */
@media (max-width: 991px) {
  /* Show sidebar toggle button on mobile */
  .sidebar-toggle-btn {
    display: block !important;
  }
  
  /* Hide logo text on small mobile */
  @media (max-width: 576px) {
    .navbar-brand-top .logo-text {
      display: none !important;
    }
  }
  
  /* Sidebar off-screen by default */
  .main-sidebar {
    top: 70px !important;
    margin-left: -250px !important;
    transition: margin-left 0.3s ease !important;
  }
  
  /* Show sidebar when active */
  .main-sidebar.active {
    margin-left: 0 !important;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2) !important;
  }
  
  /* Adjust navbar for mobile */
  .main-navbar,
  .navbar-bg {
    padding: 0 1rem !important;
  }
  
  /* Main content on mobile */
  .main-content {
    margin-left: 0 !important;
    padding: 1rem !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  
  /* Hide some navbar items text on mobile, keep icons */
  .navbar-nav.navbar-right .d-sm-none {
    display: none !important;
  }
  
  /* Compact navbar items on mobile */
  .navbar-nav.navbar-right {
    gap: 0.25rem !important;
  }
  
  .navbar-nav.navbar-right .nav-link {
    padding: 0.5rem !important;
    font-size: 0.875rem !important;
  }
  
  /* Dropdown menu positioning on mobile */
  .navbar-nav .dropdown-menu {
    position: absolute !important;
    right: 0 !important;
    left: auto !important;
  }
}

/* =====================================================
   NAVBAR DROPDOWN STYLES - Theme Aware
   ===================================================== */

/* Main dropdown container - theme aware with solid background */
.navbar-nav .dropdown-menu {
  background-color: #ffffff !important; /* Solid white for light theme */
  border: 1px solid var(--border-color) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  border-radius: 0.5rem !important;
  padding: 0.5rem 0 !important;
  min-width: 200px !important;
  opacity: 1 !important; /* Ensure full opacity */
}

[data-theme="dark"] .navbar-nav .dropdown-menu {
  background-color: #1a1d2e !important; /* Solid dark background */
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

/* Dropdown items - white/light text, theme aware */
.navbar-nav .dropdown-menu .dropdown-item {
  color: var(--text-primary) !important;
  font-size: 0.875rem !important;
  padding: 0.5rem 1rem !important;
  border-radius: 0.35rem !important;
  margin: 0.1rem 0.5rem !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
}

[data-theme="dark"] .navbar-nav .dropdown-menu .dropdown-item {
  color: #e4e6eb !important;
}

/* Dropdown item icons - theme aware */
.navbar-nav .dropdown-menu .dropdown-item i {
  margin-right: 0.75rem !important;
  width: 1.25rem !important;
  text-align: center !important;
  color: var(--text-muted) !important;
  transition: all 0.2s ease !important;
}

[data-theme="dark"] .navbar-nav .dropdown-menu .dropdown-item i {
  color: #b0b3b8 !important;
}

/* Hover state - theme aware */
.navbar-nav .dropdown-menu .dropdown-item:hover {
  background-color: var(--bs-primary-lite) !important;
  color: var(--bs-primary) !important;
}

[data-theme="dark"] .navbar-nav .dropdown-menu .dropdown-item:hover {
  background-color: rgba(139, 152, 255, 0.12) !important;
  color: #8b98ff !important;
}

.navbar-nav .dropdown-menu .dropdown-item:hover i {
  color: var(--bs-primary) !important;
  transform: scale(1.1) !important;
}

[data-theme="dark"] .navbar-nav .dropdown-menu .dropdown-item:hover i {
  color: #8b98ff !important;
}

/* Active state - theme aware */
.navbar-nav .dropdown-menu .dropdown-item:active,
.navbar-nav .dropdown-menu .dropdown-item.active {
  background-color: var(--bs-primary) !important;
  color: white !important;
}

.navbar-nav .dropdown-menu .dropdown-item:active i,
.navbar-nav .dropdown-menu .dropdown-item.active i {
  color: white !important;
}

/* Dropdown divider - theme aware */
.navbar-nav .dropdown-menu .dropdown-divider {
  border-top: 1px solid var(--border-color) !important;
  margin: 0.5rem 0 !important;
}

[data-theme="dark"] .navbar-nav .dropdown-menu .dropdown-divider {
  border-top-color: rgba(255, 255, 255, 0.1) !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .navbar-nav .dropdown-menu {
    min-width: 180px !important;
  }
  
  .navbar-nav .dropdown-menu .dropdown-item {
    font-size: 0.8125rem !important;
    padding: 0.45rem 0.85rem !important;
  }
}

/* =====================================================
   CLICKABLE STAT CARDS - Dashboard
   ===================================================== */

/* Remove link styling */
.stat-card-link {
  text-decoration: none !important;
  color: inherit !important;
  display: block !important;
}

/* Clickable stat box styling */
.modern-stat-box.stat-clickable {
  position: relative !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  overflow: visible !important;
}

/* Arrow indicator for clickable cards */
.stat-arrow {
  position: absolute !important;
  right: 1.25rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 1.25rem !important;
  opacity: 0 !important;
  transition: all 0.3s ease !important;
  color: currentColor !important;
}

/* Hover effect for clickable stat boxes */
.modern-stat-box.stat-clickable:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

[data-theme="dark"] .modern-stat-box.stat-clickable:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

/* Show arrow on hover */
.modern-stat-box.stat-clickable:hover .stat-arrow {
  opacity: 1 !important;
  right: 1rem !important;
}

/* Adjust content padding on hover to make room for arrow */
.modern-stat-box.stat-clickable:hover .stat-content {
  padding-right: 2.5rem !important;
}

/* Subtext styling */
.stat-subtext {
  margin-top: 0.5rem !important;
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 0.25rem !important;
}

/* Badge styling within stat cards */
.stat-subtext .badge {
  font-size: 0.7rem !important;
  padding: 0.25rem 0.5rem !important;
  border-radius: 0.25rem !important;
  font-weight: 500 !important;
}

/* =====================================================
   Color variants for stat boxes - Using default card colors
   ===================================================== */

/* Use same color as Total Servers - clean and simple */
.modern-stat-box.stat-primary,
.modern-stat-box.stat-info,
.modern-stat-box.stat-warning {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  color: inherit !important;
}

/* Dark theme - same as default stat boxes */
[data-theme="dark"] .modern-stat-box.stat-primary,
[data-theme="dark"] .modern-stat-box.stat-info,
[data-theme="dark"] .modern-stat-box.stat-warning {
  background: #1f2937 !important;
  border-color: #374151 !important;
}

/* Text colors - inherit from default */
.modern-stat-box.stat-primary .stat-label,
.modern-stat-box.stat-info .stat-label,
.modern-stat-box.stat-warning .stat-label {
  color: #6b7280 !important;
}

[data-theme="dark"] .modern-stat-box.stat-primary .stat-label,
[data-theme="dark"] .modern-stat-box.stat-info .stat-label,
[data-theme="dark"] .modern-stat-box.stat-warning .stat-label {
  color: #9ca3af !important;
}

.modern-stat-box.stat-primary .stat-number,
.modern-stat-box.stat-info .stat-number,
.modern-stat-box.stat-warning .stat-number {
  color: #111827 !important;
}

[data-theme="dark"] .modern-stat-box.stat-primary .stat-number,
[data-theme="dark"] .modern-stat-box.stat-info .stat-number,
[data-theme="dark"] .modern-stat-box.stat-warning .stat-number {
  color: #f9fafb !important;
}

.modern-stat-box.stat-primary .stat-icon,
.modern-stat-box.stat-info .stat-icon,
.modern-stat-box.stat-warning .stat-icon {
  color: #6b7280 !important;
}

[data-theme="dark"] .modern-stat-box.stat-primary .stat-icon,
[data-theme="dark"] .modern-stat-box.stat-info .stat-icon,
[data-theme="dark"] .modern-stat-box.stat-warning .stat-icon {
  color: #9ca3af !important;
}

/* Hover effects - subtle */
.modern-stat-box.stat-primary:hover,
.modern-stat-box.stat-info:hover,
.modern-stat-box.stat-warning:hover {
  border-color: #d1d5db !important;
}

[data-theme="dark"] .modern-stat-box.stat-primary:hover,
[data-theme="dark"] .modern-stat-box.stat-info:hover,
[data-theme="dark"] .modern-stat-box.stat-warning:hover {
  border-color: #4b5563 !important;
}

/* Badge adjustments for stat boxes - Clean modern design */
.modern-stat-box.stat-primary .badge,
.modern-stat-box.stat-info .badge,
.modern-stat-box.stat-warning .badge {
  font-weight: 600 !important;
  font-size: 0.7rem !important;
  padding: 0.25rem 0.6rem !important;
}

/* Success badge - Green */
.modern-stat-box.stat-primary .badge-success,
.modern-stat-box.stat-info .badge-success,
.modern-stat-box.stat-warning .badge-success {
  background-color: #dcfce7 !important;
  color: #166534 !important;
  border: none !important;
}

[data-theme="dark"] .modern-stat-box.stat-primary .badge-success,
[data-theme="dark"] .modern-stat-box.stat-info .badge-success,
[data-theme="dark"] .modern-stat-box.stat-warning .badge-success {
  background-color: #14532d !important;
  color: #86efac !important;
}

/* Warning badge - Amber/Yellow */
.modern-stat-box.stat-primary .badge-warning,
.modern-stat-box.stat-info .badge-warning,
.modern-stat-box.stat-warning .badge-warning {
  background-color: #fef3c7 !important;
  color: #92400e !important;
  border: none !important;
}

[data-theme="dark"] .modern-stat-box.stat-primary .badge-warning,
[data-theme="dark"] .modern-stat-box.stat-info .badge-warning,
[data-theme="dark"] .modern-stat-box.stat-warning .badge-warning {
  background-color: #78350f !important;
  color: #fcd34d !important;
}

/* Secondary badge - Gray */
.modern-stat-box.stat-primary .badge-secondary,
.modern-stat-box.stat-info .badge-secondary,
.modern-stat-box.stat-warning .badge-secondary {
  background-color: #f3f4f6 !important;
  color: #4b5563 !important;
  border: none !important;
}

[data-theme="dark"] .modern-stat-box.stat-primary .badge-secondary,
[data-theme="dark"] .modern-stat-box.stat-info .badge-secondary,
[data-theme="dark"] .modern-stat-box.stat-warning .badge-secondary {
  background-color: #374151 !important;
  color: #d1d5db !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .stat-arrow {
    font-size: 1rem !important;
    right: 1rem !important;
  }
  
  .modern-stat-box.stat-clickable:hover .stat-arrow {
    right: 0.85rem !important;
  }

  /* Smaller text on mobile for better fit */
  .card-statistic-1 .card-header h4,
  .card-statistic-2 .card-header h4,
  .card-stats h4 {
    font-size: 1.75rem !important;
  }
  
  .card-statistic-1,
  .card-statistic-2,
  .card-stats {
    padding: 1rem !important;
  }
}

#/* Mobile sidebar overlay backdrop */
#.sidebar-overlay {
#  display: none;
#  position: fixed;
#  top: 0;
#  left: 0;
#  right: 0;
#  bottom: 0;
#  background: rgba(0, 0, 0, 0.5);
#  z-index: 998;
#  opacity: 0;
#  transition: opacity 0.3s ease;
#}

#.
sidebar-overlay.show {
#  display: block;
#  opacity: 1;
#}

@media (max-width: 768px) {
  /* Increase touch targets on mobile */
  .sidebar-menu li {
    padding: 0 0.75rem !important;
  }
  
  .sidebar-menu li a {
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
    min-height: 42px !important;
    display: flex !important;
    align-items: center !important;
    margin: 0.125rem 0 !important;
  }
  
  /* Larger icons on mobile */
  .sidebar-menu li a i {
    font-size: 1rem !important;
    width: 1.5rem !important;
    margin-right: 0.875rem !important;
  }
  
  /* Better logo visibility on mobile */
  .sidebar-brand {
    padding: 1.25rem 1rem !important;
  }
  
  .logo-mz {
    width: 40px !important;
    height: 40px !important;
    font-size: 1rem !important;
  }
  
  .logo-text {
    font-size: 1.125rem !important;
  }
  
  /* Incident items better spacing on mobile */
  .sidebar-menu li.incident-item:first-of-type {
    margin-top: 0.75rem !important;
    padding-top: 0.75rem !important;
  }
  
  /* Prevent body scroll when sidebar open */
  body.sidebar-open {
    overflow: hidden;
  }
}

/* Scrollbar for sidebar */
.main-sidebar::-webkit-scrollbar {
  width: 4px;
}

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

.main-sidebar::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 2px;
}

.main-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--border-dark);
}

/* Footer fix */
.main-footer {
  margin-left: 250px !important;
  width: calc(100% - 250px) !important;
}

@media (max-width: 991px) {
  .main-footer {
    margin-left: 0 !important;
    width: 100% !important;
  }
}

/* Stat cards moved to dashboard-stats.css for cleaner separation */

/* Remove any conflicting position styles */
.main-wrapper {
  position: relative !important;
}

/* Ensure proper stacking */
.main-wrapper-1 {
  min-height: 100vh !important;
  position: relative !important;
}

/* 
 * Modern Stat Boxes - 3x3 Grid
 * Clean single boxes with icon + label + number
 * Override all conflicting styles
 */

/* Hide all old card styles that might interfere */
.dashboard-stats-grid .card,
.dashboard-stats-grid .card-statistic-1,
.dashboard-stats-grid .card-statistic-2,
.dashboard-stats-grid .card-stats,
.dashboard-stats-grid .card-icon,
.dashboard-stats-grid .card-header,
.dashboard-stats-grid .card-body,
.dashboard-stats-grid .card-wrap {
  display: none !important;
}

/* Grid container */
.dashboard-stats-grid {
  margin-bottom: 2rem !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100%;
}

.dashboard-stats-grid > [class*='col-'] {
  padding-left: 12px;
  padding-right: 12px;
  margin-bottom: 20px;
}

/* Modern stat box - everything inside one clean box */
.modern-stat-box {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s ease;
  height: 100%;
  min-height: 90px;
}

[data-theme="dark"] .modern-stat-box {
  background: #1f2937;
  border-color: #374151;
}

.modern-stat-box:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .modern-stat-box:hover {
  border-color: #4b5563;
}

/* Icon - small and subtle */
.modern-stat-box .stat-icon {
  font-size: 20px;
  color: #6b7280;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

[data-theme="dark"] .modern-stat-box .stat-icon {
  color: #9ca3af;
}

/* Success state (Up) */
.modern-stat-box.stat-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

[data-theme="dark"] .modern-stat-box.stat-success {
  background: #064e3b;
  border-color: #065f46;
}

.modern-stat-box.stat-success .stat-icon {
  color: #16a34a;
}

[data-theme="dark"] .modern-stat-box.stat-success .stat-icon {
  color: #4ade80;
}

/* Danger state (Down) */
.modern-stat-box.stat-danger {
  background: #fef2f2;
  border-color: #fecaca;
}

[data-theme="dark"] .modern-stat-box.stat-danger {
  background: #7f1d1d;
  border-color: #991b1b;
}

.modern-stat-box.stat-danger .stat-icon {
  color: #dc2626;
}

[data-theme="dark"] .modern-stat-box.stat-danger .stat-icon {
  color: #f87171;
}

/* Content area */
.modern-stat-box .stat-content {
  flex: 1;
  min-width: 0;
}

/* Label - small gray text */
.modern-stat-box .stat-label {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 4px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="dark"] .modern-stat-box .stat-label {
  color: #9ca3af;
}

.modern-stat-box.stat-success .stat-label {
  color: #15803d;
}

[data-theme="dark"] .modern-stat-box.stat-success .stat-label {
  color: #86efac;
}

.modern-stat-box.stat-danger .stat-label {
  color: #b91c1c;
}

[data-theme="dark"] .modern-stat-box.stat-danger .stat-label {
  color: #fca5a5;
}

/* Number - large bold */
.modern-stat-box .stat-number {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

[data-theme="dark"] .modern-stat-box .stat-number {
  color: #f9fafb;
}

.modern-stat-box.stat-success .stat-number {
  color: #15803d;
}

[data-theme="dark"] .modern-stat-box.stat-success .stat-number {
  color: #4ade80;
}

.modern-stat-box.stat-danger .stat-number {
  color: #b91c1c;
}

[data-theme="dark"] .modern-stat-box.stat-danger .stat-number {
  color: #f87171;
}

/* Responsive */
@media (max-width: 991px) {
  .modern-stat-box .stat-number {
    font-size: 22px;
  }
  
  .modern-stat-box .stat-label {
    font-size: 11px;
  }
}

@media (max-width: 767px) {
  .dashboard-stats-grid > [class*='col-'] {
    margin-bottom: 14px;
  }
  
  .modern-stat-box {
    padding: 14px 16px;
    min-height: 80px;
  }
  
  .modern-stat-box .stat-icon {
    font-size: 18px;
  }
  
  .modern-stat-box .stat-number {
    font-size: 20px;
  }
}

/* 
 * Modern Incident Cards - Professional & Theme-Friendly
 * Inspired by Flowbite SaaS design
 */

/* Section Title - Modern Clean Design */
.section-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  margin-top: 2.5rem;
  padding-bottom: 0.75rem;
  padding-left: 12px;
  padding-right: 12px;
  border-bottom: 2px solid var(--border-color);
  letter-spacing: -0.025em;
}

[data-theme="dark"] .section-title {
  color: #f9fafb;
  border-bottom-color: #374151;
}

/* Incidents Grid */
.incidents-grid {
  margin-bottom: 2rem;
}

.incidents-grid > [class*='col-'] {
  padding-left: 12px;
  padding-right: 12px;
  margin-bottom: 24px;
}

/* Modern Incident Card */
.modern-incident-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Ensure white background in light mode */
[data-theme="light"] .modern-incident-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.modern-incident-card:hover {
  border: 2px solid #3b82f6 !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15) !important;
  transform: translateY(-2px);
}

.incidents-grid .modern-incident-card:hover {
  border: 2px solid #3b82f6 !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15) !important;
}

[data-theme="dark"] .modern-incident-card {
  background: #1f2937;
  border-color: #374151;
}

[data-theme="dark"] .modern-incident-card:hover {
  border: 2px solid #60a5fa !important;
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.2) !important;
}

[data-theme="dark"] .incidents-grid .modern-incident-card:hover {
  border: 2px solid #60a5fa !important;
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.2) !important;
}

/* Incident Header */
.incident-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

/* Incident Icon */
.incident-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.incident-icon-warning {
  background: rgba(251, 146, 60, 0.1);
  color: #f97316;
}

[data-theme="dark"] .incident-icon-warning {
  background: rgba(251, 146, 60, 0.15);
  color: #fb923c;
}

.modern-incident-card:hover .incident-icon {
  transform: scale(1.05);
}

/* Incident Title */
.incident-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.4;
}

/* Incident Stats - Horizontal Layout */
.incident-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px 0;
}

.incident-stat-item {
  flex: 1;
  text-align: center;
}

.incident-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-color);
  flex-shrink: 0;
}

/* Stat Values */
.stat-value {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-total {
  color: #6b7280;
}

[data-theme="dark"] .stat-total {
  color: #9ca3af;
}

.stat-pending {
  color: #ef4444;
}

[data-theme="dark"] .stat-pending {
  color: #f87171;
}

.stat-resolved {
  color: #10b981;
}

[data-theme="dark"] .stat-resolved {
  color: #34d399;
}

/* Stat Labels */
.stat-label {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

[data-theme="dark"] .stat-label {
  color: #9ca3af;
}

/* Incident Footer */
.incident-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

/* View Button */
.incident-view-btn {
  display: inline-flex;
  align-items: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--bs-primary);
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 8px 12px;
  border-radius: 6px;
  margin: -8px -12px;
}

.incident-view-btn:hover {
  background: rgba(59, 130, 246, 0.08);
  color: var(--bs-primary);
  text-decoration: none;
  transform: translateX(2px);
}

.incident-view-btn i {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.incident-view-btn:hover i {
  transform: translateX(4px);
}

[data-theme="dark"] .incident-view-btn:hover {
  background: rgba(59, 130, 246, 0.15);
}

/* Responsive Design */
@media (max-width: 991px) {
  .stat-value {
    font-size: 1.5rem;
  }
  
  .incident-title {
    font-size: 0.9375rem;
  }
  
  .incident-icon {
    width: 40px;
    height: 40px;
    font-size: 1.125rem;
  }
}

@media (max-width: 767px) {
  .modern-incident-card {
    padding: 20px;
  }
  
  .incidents-grid > [class*='col-'] {
    margin-bottom: 16px;
  }
  
  .stat-value {
    font-size: 1.375rem;
  }
  
  .stat-label {
    font-size: 0.6875rem;
  }
  
  .incident-stat-divider {
    height: 35px;
  }
  
  .section-title {
    font-size: 1.125rem;
    margin-top: 1.5rem;
  }
}

/* Print Styles */
@media print {
  .modern-incident-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #e5e7eb;
  }
  
  .incident-view-btn {
    display: none;
  }
}

/* Accessibility */
.incident-view-btn:focus {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .modern-incident-card,
  .incident-icon,
  .incident-view-btn,
  .incident-view-btn i {
    transition: none;
  }
  
  .modern-incident-card:hover {
    transform: none;
  }
}

/* Loading State (Optional) */
.modern-incident-card.loading {
  pointer-events: none;
  opacity: 0.6;
}

.modern-incident-card.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--border-color);
  border-top-color: var(--bs-primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* ═══════════════════════════════════════════════════════════════════
   PRICING PAGE - Single Page Pricing Selector
   ═══════════════════════════════════════════════════════════════════ */

/* Modern Pricing Page Layout */
.pricing-selector {
    padding: 0 15px;
    margin-bottom: 1rem;
}

.pricing-interval-select {
    width: 100%;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233b82f6' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.pricing-interval-select:hover {
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.02);
}

.pricing-interval-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Dark mode pricing selector */
[data-theme="dark"] .pricing-interval-select {
    background-color: #1f2937;
    border-color: #374151;
    color: #f9fafb;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2360a5fa' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
}

[data-theme="dark"] .pricing-interval-select:hover {
    border-color: #60a5fa;
    background-color: rgba(96, 165, 250, 0.05);
}

[data-theme="dark"] .pricing-interval-select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

/* Pricing Period Text */
.pricing-period-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: -8px;
    margin-bottom: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[data-theme="dark"] .pricing-period-text {
    color: #9ca3af;
}

/* Price Display Animation */
.card-title.pricing-card-title {
    transition: all 0.3s ease;
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.price-amount {
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 700;
}

.price-currency {
    font-size: 1.2rem !important;
    font-weight: 400 !important;
}

/* Improved Subscribe Button */
.pricing-button-new {
    transition: all 0.3s ease;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
}

.pricing-button-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2) !important;
}

.pricing-button-new:active {
    transform: translateY(0);
}

[data-theme="dark"] .pricing-button-new:hover {
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3) !important;
}

/* Pricing Card Hover Effect Enhancement */
.price-width {
    transition: all 0.3s ease;
}

.price-width:hover {
    transform: translateY(-4px);
}

/* Mobile Responsive Pricing */
@media (max-width: 768px) {
    .pricing-selector {
        padding: 0 10px;
    }
    
    .pricing-interval-select {
        font-size: 0.9rem;
        padding: 10px 12px;
        padding-right: 35px;
    }
    
    .pricing-card-title {
        font-size: 1.8rem !important;
    }
}

/* Modern Price Display with Currency Prefix */
.price-currency-prefix {
    font-size: 1.5rem !important;
    font-weight: 500 !important;
    vertical-align: top !important;
    margin-right: 4px !important;
    color: var(--text-secondary) !important;
    position: relative;
    top: 8px;
}

[data-theme="dark"] .price-currency-prefix {
    color: #9ca3af !important;
}

/* Adjust price amount to work with prefix */
.pricing-card-title .price-amount {
    font-size: 3rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
}

/* Better spacing for pricing title */
.pricing-card-title {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    line-height: 1;
    margin-bottom: 0.25rem !important;
}

@media (max-width: 768px) {
    .price-currency-prefix {
        font-size: 1.2rem !important;
        top: 6px;
    }
    
    .pricing-card-title .price-amount {
        font-size: 2.5rem !important;
    }
}

/* Override uppercase text-transform on pricing titles */
.pricing .pricing-title {
    text-transform: none !important;
}

.pricing.pricing-highlight .pricing-title {
    text-transform: none !important;
}

/* Override uppercase for period text */
.pricing-period-text {
    text-transform: none !important;
}

/* ============================================
   Modern Invoice Page Styles
   ============================================ */

/* Invoice Container */
.modern-invoice-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Modern Card */
.modern-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.modern-card-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 24px;
}

.modern-card-header h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.modern-card-header i {
    color: var(--bs-primary);
}

.modern-card-body {
    padding: 24px;
}

/* Info Blocks */
.info-block {
    margin-bottom: 16px;
}

.info-title {
    font-size: 0.875rem !important;
    font-weight: 600;
    letter-spacing: 0.3px !important;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: none !important;
}

.info-content {
    color: var(--text-primary);
    margin: 0;
    line-height: 1.6;
}

/* Modern Table */
.modern-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.modern-table thead th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 12px 16px;
    border-bottom: 2px solid var(--border-color);
    text-align: left;
}

.modern-table tbody td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

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

.modern-table tbody tr:hover {
    background: var(--bg-hover);
}

/* Coupon Section */
.coupon-section {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.coupon-section .form-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.modern-input {
    height: 48px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 0 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.modern-input:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.coupon-apply-btn {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: 8px;
}

/* Payment Methods */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.payment-method-option {
    margin: 0;
    cursor: pointer;
}

.payment-method-option input[type="radio"] {
    display: none;
}

.payment-method-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-height: 140px;
    justify-content: center;
}

.payment-method-card:hover {
    border-color: var(--bs-primary);
    background: var(--bg-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.payment-method-option input[type="radio"]:checked + .payment-method-card {
    border-color: var(--bs-primary);
    background: rgba(59, 130, 246, 0.05);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.payment-method-card img {
    height: 40px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.payment-method-card i {
    font-size: 2.5rem;
    color: var(--bs-primary);
}

.payment-method-card span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* Price Summary */
.price-summary {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.price-row:last-child {
    margin-bottom: 0;
}

.price-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.price-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.price-total {
    margin-top: 16px;
    padding-top: 16px;
}

.price-total .price-label {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.price-total .price-value {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--bs-primary);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    width: 100%;
    box-sizing: border-box;
}

.action-buttons .btn-lg {
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 8px;
    font-size: 1rem;
}

.action-btn-process {
    min-width: 200px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-btn-cancel {
    min-width: 150px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

.action-btn-cancel:hover {
    color: var(--text-primary) !important;
    background-color: var(--bg-hover) !important;
    border-color: var(--text-secondary) !important;
}

[data-theme="dark"] .action-btn-cancel {
    color: #f9fafb !important;
    border-color: #6b7280 !important;
}

[data-theme="dark"] .action-btn-cancel:hover {
    color: #f9fafb !important;
    background-color: #374151 !important;
    border-color: #9ca3af !important;
}

/* Ensure btn-custom works in action buttons */
.action-buttons .btn-custom {
    color: #fff !important;
}

/* Ensure equal height columns */
.modern-invoice-container .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: 0;
    margin-right: 0;
}

.modern-invoice-container .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    padding-right: 0;
}

.modern-invoice-container .row > .col-12 {
    padding-left: 0;
    padding-right: 0;
}

.modern-invoice-container .row > .col-lg-6 {
    padding-left: 12px;
    padding-right: 12px;
}

.modern-invoice-container .row > .col-lg-6:first-child {
    padding-left: 0;
}

.modern-invoice-container .row > .col-lg-6:last-child {
    padding-right: 0;
}

.modern-invoice-container .row > [class*="col-"] > .modern-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modern-invoice-container .modern-card-body {
    flex: 1;
}

.modern-invoice-container .row > [class*="col-"] > .action-buttons {
    width: 100%;
}

/* Ensure consistent spacing between sections */
.modern-invoice-container > form > .row {
    margin-top: 0;
}

/* Sticky Summary */
@media (min-width: 992px) {
    .sticky-summary {
        position: sticky;
        top: 100px;
    }
}

/* Dark Mode Adjustments */
[data-theme="dark"] .modern-card {
    background: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .modern-card-header {
    background: #111827;
    border-color: #374151;
}

[data-theme="dark"] .modern-card-header h4 {
    color: #f9fafb;
}

[data-theme="dark"] .info-title {
    color: #9ca3af;
}

[data-theme="dark"] .info-content {
    color: #e5e7eb;
}

[data-theme="dark"] .modern-table thead th {
    background: #111827;
    color: #f9fafb;
    border-color: #374151;
}

[data-theme="dark"] .modern-table tbody td {
    color: #e5e7eb;
    border-color: #374151;
}

[data-theme="dark"] .modern-table tbody tr:hover {
    background: #374151;
}

[data-theme="dark"] .coupon-section {
    background: #111827;
    border-color: #374151;
}

[data-theme="dark"] .coupon-section .form-label {
    color: #f9fafb;
}

[data-theme="dark"] .modern-input {
    background: #111827;
    border-color: #374151;
    color: #f9fafb;
}

[data-theme="dark"] .modern-input:focus {
    background: #1f2937;
    border-color: #60a5fa;
    color: #f9fafb;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

/* Dark mode styling for all form controls */
/* Ensures consistent dark theme appearance for all inputs, textareas, and selects */
[data-theme="dark"] .form-control,
[data-theme="dark"] input.form-control,
[data-theme="dark"] textarea.form-control,
[data-theme="dark"] select.form-control {
    background-color: #111827; /* Dark background for form inputs */
    color: #f9fafb; /* Light text color for readability */
    border-color: #374151; /* Dark border color */
}

/* Dark mode styling for focused form controls */
[data-theme="dark"] .form-control:focus,
[data-theme="dark"] input.form-control:focus,
[data-theme="dark"] textarea.form-control:focus,
[data-theme="dark"] select.form-control:focus {
    background-color: #1f2937; /* Slightly lighter on focus */
    color: #f9fafb; /* Keep text color bright */
    border-color: #60a5fa; /* Blue border on focus */
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1); /* Subtle blue glow */
}

/* Dark mode styling for readonly form controls */
/* Fixes white background issue - readonly fields look like normal fields */
[data-theme="dark"] .form-control[readonly],
[data-theme="dark"] input[readonly].form-control,
[data-theme="dark"] textarea[readonly].form-control,
[data-theme="dark"] select[readonly].form-control {
    background-color: #111827 !important; /* Same background as normal fields */
    color: #f9fafb !important; /* Same text color as normal fields */
    border-color: #374151 !important; /* Consistent border with dark theme */
    opacity: 1 !important; /* Ensure full opacity */
    cursor: not-allowed; /* Show that field is not editable */
}

/* Dark mode styling for disabled form controls */
[data-theme="dark"] .form-control:disabled,
[data-theme="dark"] input.form-control:disabled,
[data-theme="dark"] textarea.form-control:disabled,
[data-theme="dark"] select.form-control:disabled {
    background-color: #0f172a; /* Even darker for disabled state */
    color: #6b7280; /* Very muted text */
    border-color: #1f2937; /* Subtle border */
    opacity: 0.6; /* Lower opacity for disabled */
    cursor: not-allowed; /* Show not allowed cursor */
}

[data-theme="dark"] .payment-method-card {
    background: #111827;
    border-color: #374151;
}

[data-theme="dark"] .payment-method-card:hover {
    border-color: #60a5fa;
    background: #1f2937;
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.15);
}

[data-theme="dark"] .payment-method-option input[type="radio"]:checked + .payment-method-card {
    border-color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

[data-theme="dark"] .payment-method-card img {
    background: white;
    padding: 8px;
    border-radius: 6px;
}

[data-theme="dark"] .payment-method-card i {
    color: #60a5fa;
}

[data-theme="dark"] .payment-method-card span {
    color: #f9fafb;
}

[data-theme="dark"] .price-summary {
    background: #111827;
}

[data-theme="dark"] .price-label {
    color: #9ca3af;
}

[data-theme="dark"] .price-value {
    color: #f9fafb;
}

[data-theme="dark"] .price-total .price-label {
    color: #f9fafb;
}

[data-theme="dark"] .price-total .price-value {
    color: #60a5fa;
}

[data-theme="dark"] .action-buttons {
    background: #111827;
    border-color: #374151;
}

/* ============================================
   Gateway Payment Pages Styles
   ============================================ */

.modern-gateway-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 15px;
}

.gateway-header {
    margin-bottom: 32px;
}

.gateway-logo {
    max-width: 150px;
    height: auto;
}

.gateway-title {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.gateway-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.gateway-icon i {
    color: var(--bs-primary);
}

/* Payment Summary */
.payment-summary {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    color: var(--text-primary);
}

.summary-row:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.total-row {
    margin-top: 12px;
    padding-top: 16px;
    font-size: 1.1rem;
}

/* Dark Mode Gateway Styles */
[data-theme="dark"] .gateway-title {
    color: #f9fafb;
}

[data-theme="dark"] .gateway-subtitle {
    color: #9ca3af;
}

[data-theme="dark"] .payment-summary {
    background: #111827;
}

[data-theme="dark"] .summary-row {
    color: #e5e7eb;
    border-color: #374151;
}

[data-theme="dark"] .gateway-logo {
    background: white;
    padding: 12px;
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .modern-card-body {
        padding: 16px;
    }
    
    .action-buttons {
        flex-direction: column-reverse;
    }
    
    .action-buttons .btn-lg {
        width: 100%;
    }
    
    .action-btn-process,
    .action-btn-cancel {
        min-width: auto;
    }
    
    /* Reset padding on mobile */
    .modern-invoice-container .row > .col-lg-6 {
        padding-left: 0;
        padding-right: 0;
    }
    
    /* Stack cards on tablet */
    .modern-invoice-container .row > .col-lg-6:first-child {
        margin-bottom: 24px;
    }
    
    .modern-gateway-container {
        padding: 20px 15px;
    }
}

@media (max-width: 575.98px) {
    .modern-card-header {
        padding: 16px;
    }
    
    .price-summary {
        padding: 16px;
    }
    
    .coupon-section {
        padding: 16px;
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
    }
    
    .gateway-logo {
        max-width: 120px;
    }
    
    .gateway-title {
        font-size: 1.5rem;
    }
    
    .payment-summary {
        padding: 16px;
    }
}

/* ============================================
   ADMIN DASHBOARD - MODERN THEME-FRIENDLY STYLES
   ============================================ */

/* Admin Stats Cards (Order Statistics, Paid Orders, Trial Orders) */
.admin-stats-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .admin-stats-card {
    background: #1f2937;
    border-color: #374151;
}

.admin-stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.admin-card-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 12px;
}

[data-theme="dark"] .admin-card-header {
    border-bottom-color: #374151;
}

.admin-card-header h4 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #191d21;
}

[data-theme="dark"] .admin-card-header h4 {
    color: #e4e6fc;
}

.admin-card-icon {
    font-size: 1.5rem;
    color: #6777ef;
    opacity: 0.8;
}

.admin-card-body {
    padding: 20px;
    flex: 1;
}

.admin-stat-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 16px;
}

[data-theme="dark"] .admin-stat-total {
    background: #1f2937;
    border-color: #374151;
}

.admin-stat-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

[data-theme="dark"] .admin-stat-label {
    color: #a0a3bd;
}

.admin-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #191d21;
}

[data-theme="dark"] .admin-stat-value {
    color: #e4e6fc;
}

.admin-stat-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

[data-theme="dark"] .admin-stat-item {
    background: #1f2937;
    border-color: #374151;
}

.stat-item-label {
    font-size: 0.875rem;
    color: #6c757d;
}

[data-theme="dark"] .stat-item-label {
    color: #a0a3bd;
}

.stat-item-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #191d21;
}

[data-theme="dark"] .stat-item-value {
    color: #e4e6fc;
}

.admin-card-footer {
    padding: 16px 20px;
    background: linear-gradient(135deg, #e8ecff 0%, #f0f3ff 100%);
    border-top: 1px solid #e5e7eb;
    text-align: center;
    color: #6777ef;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    display: block;
}

[data-theme="dark"] .admin-card-footer {
    background: linear-gradient(135deg, #2d3340 0%, #353b4a 100%);
    border-top-color: #374151;
    color: #8b98ff;
}

.admin-card-footer:hover {
    background: #6777ef;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.admin-card-footer i {
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.admin-card-footer:hover i {
    transform: translateX(4px);
}

/* Admin Banner Card (Congratulations) */
.admin-banner-card {
    background: linear-gradient(135deg, #6777ef 0%, #394eea 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
}

.banner-content {
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.banner-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.95);
    flex-shrink: 0;
}

.banner-text {
    flex: 1;
}

.banner-text h3 {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.banner-text p {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
    opacity: 0.95;
}

.banner-text strong {
    color: #ffffff;
    font-weight: 700;
}

.banner-text .btn {
    background: #ffffff;
    color: #6777ef;
    border: none;
    font-weight: 600;
}

.banner-text .btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Admin Income Card */
.admin-income-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
}

[data-theme="dark"] .admin-income-card {
    background: #1f2937;
    border-color: #374151;
}

.income-total-section {
    padding: 28px;
    background: linear-gradient(135deg, #e8ecff 0%, #f0f3ff 100%);
    border-radius: 8px;
    text-align: center;
    margin-bottom: 24px;
}

[data-theme="dark"] .income-total-section {
    background: linear-gradient(135deg, #2d3340 0%, #353b4a 100%);
}

.income-total-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[data-theme="dark"] .income-total-label {
    color: #a0a3bd;
}

.income-total-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #191d21;
    margin-bottom: 12px;
    display: block;
}

[data-theme="dark"] .income-total-value {
    color: #e4e6fc;
}

.income-link {
    color: #6777ef;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.income-link:hover {
    color: #394eea;
    text-decoration: none;
}

.income-link i {
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.income-link:hover i {
    transform: translateX(4px);
}

.income-breakdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.income-stat-item {
    padding: 16px;
    background: linear-gradient(135deg, #e8ecff 0%, #f0f3ff 100%);
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

[data-theme="dark"] .income-stat-item {
    background: linear-gradient(135deg, #2d3340 0%, #353b4a 100%);
    border-color: #374151;
}

.income-stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(103, 119, 239, 0.15);
}

.income-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.income-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.income-indicator.income-primary {
    background: #6777ef;
}

.income-indicator.income-info {
    background: #3abaf4;
}

.income-indicator.income-success {
    background: #47c363;
}

.income-indicator.income-custom {
    background: #6777ef;
}

.income-percentage {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
}

[data-theme="dark"] .income-percentage {
    color: #a0a3bd;
}

.income-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #191d21;
    margin-bottom: 6px;
}

[data-theme="dark"] .income-stat-value {
    color: #e4e6fc;
}

.income-stat-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

[data-theme="dark"] .income-stat-label {
    color: #a0a3bd;
}

/* Admin Monitor Summary */
.admin-monitor-summary {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
}

[data-theme="dark"] .admin-monitor-summary {
    background: #1f2937;
    border-color: #374151;
}

.monitor-summary-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

[data-theme="dark"] .monitor-summary-item {
    border-bottom-color: #374151;
}

.monitor-summary-item:last-child {
    border-bottom: none;
}

.monitor-summary-item:hover {
    background: #f8f9fc;
}

[data-theme="dark"] .monitor-summary-item:hover {
    background: #232629;
}

.monitor-summary-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e8ecff 0%, #f0f3ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

[data-theme="dark"] .monitor-summary-icon {
    background: linear-gradient(135deg, #2d3340 0%, #353b4a 100%);
}

.monitor-summary-item:hover .monitor-summary-icon {
    background: linear-gradient(135deg, #6777ef 0%, #5a67d8 100%);
    transform: scale(1.05);
}

[data-theme="dark"] .monitor-summary-item:hover .monitor-summary-icon {
    background: linear-gradient(135deg, #6777ef 0%, #5a67d8 100%);
}

.monitor-summary-icon i {
    font-size: 1.5rem;
    color: #6777ef;
    transition: all 0.3s ease;
}

[data-theme="dark"] .monitor-summary-icon i {
    color: #8b98ff;
}

.monitor-summary-item:hover .monitor-summary-icon i {
    color: white;
}

.monitor-summary-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.monitor-summary-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

[data-theme="dark"] .monitor-summary-label {
    color: #a0a3bd;
}

.monitor-summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #191d21;
}

[data-theme="dark"] .monitor-summary-value {
    color: #e4e6fc;
}

/* ============================================
   MODERN TABLE DESIGN - THEME-FRIENDLY
   ============================================ */

/* Table Card Container */
.modern-table-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

[data-theme="dark"] .modern-table-card {
    background: #1f2937;
    border-color: #374151;
}

/* Table Header */
.modern-table-header {
    padding: 24px 28px;
    background: linear-gradient(135deg, #e8ecff 0%, #f0f3ff 100%);
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

[data-theme="dark"] .modern-table-header {
    background: linear-gradient(135deg, #2d3340 0%, #353b4a 100%);
    border-bottom-color: #374151;
}

.table-header-left {
    flex: 1;
    min-width: 250px;
}

.table-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #191d21;
    margin: 0 0 6px 0;
}

[data-theme="dark"] .table-title {
    color: #e4e6fc;
}

.table-subtitle {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
}

[data-theme="dark"] .table-subtitle {
    color: #a0a3bd;
}

.table-subtitle strong {
    color: #6777ef;
    font-weight: 600;
}

/* Modern Search Box */
.table-header-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.modern-search-form {
    margin: 0;
}

.table-add-btn {
    white-space: nowrap;
    padding: 10px 20px;
}

.modern-search-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

[data-theme="dark"] .modern-search-box {
    background: #1f2937;
    border-color: #374151;
}

.modern-search-box:focus-within {
    border-color: #6777ef;
    box-shadow: 0 0 0 3px rgba(103, 119, 239, 0.1);
}

.modern-search-input {
    flex: 1;
    border: none;
    padding: 10px 16px;
    font-size: 0.875rem;
    background: transparent;
    color: #191d21;
    min-width: 250px;
    outline: none;
}

[data-theme="dark"] .modern-search-input {
    color: #e4e6fc;
}

.modern-search-input::placeholder {
    color: #9ca3af;
}

.modern-search-btn {
    border: none;
    background: #6777ef;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.modern-search-btn:hover {
    background: #5a67d8;
}

/* Table Body */
.modern-table-body {
    padding: 0;
}

/* Modern Table Styles */
.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.modern-table thead tr {
    background: #f8f9fc;
}

[data-theme="dark"] .modern-table thead tr {
    background: #232629;
}

.modern-table thead th {
    padding: 16px 20px;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: capitalize;
    color: #6c757d;
    border-bottom: 2px solid #e5e7eb;
}

[data-theme="dark"] .modern-table thead th {
    color: #a0a3bd;
    border-bottom-color: #374151;
}

.modern-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid #e5e7eb;
}

[data-theme="dark"] .modern-table tbody tr {
    border-bottom-color: #374151;
}

.modern-table tbody tr:hover {
    background: #f8f9fc;
}

[data-theme="dark"] .modern-table tbody tr:hover {
    background: #232629;
}

.modern-table tbody tr:last-child {
    border-bottom: none;
}

.modern-table tbody td {
    padding: 16px 20px;
    vertical-align: middle;
    font-size: 0.875rem;
    color: #191d21;
}

[data-theme="dark"] .modern-table tbody td {
    color: #e4e6fc;
}

/* Order ID */
.order-id {
    font-weight: 500;
    color: #191d21;
}

[data-theme="dark"] .order-id {
    color: #e4e6fc;
}

/* User Link */
.user-link {
    color: #191d21;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

[data-theme="dark"] .user-link {
    color: #e4e6fc;
}

.user-link:hover {
    color: #6777ef;
    text-decoration: none;
}

.user-link i {
    color: #6777ef;
    font-size: 1.1rem;
}

/* Amount Value */
.amount-value {
    font-weight: 600;
    color: #191d21;
    font-size: 0.9375rem;
}

[data-theme="dark"] .amount-value {
    color: #e4e6fc;
}

.currency-badge {
    display: inline-block;
    padding: 3px 8px;
    background: #e8ecff;
    color: #6777ef;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    margin-left: 6px;
    text-transform: uppercase;
}

[data-theme="dark"] .currency-badge {
    background: #2d3340;
    color: #8b98ff;
}

/* Gateway Badge */
.gateway-badge {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: capitalize;
    color: #191d21;
}

[data-theme="dark"] .gateway-badge {
    color: #e4e6fc;
}

/* Status Badges and Button */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #191d21;
}

[data-theme="dark"] .status-badge {
    color: #e4e6fc;
}

.status-badge i {
    font-size: 0.875rem;
}

.status-badge.status-accepted i {
    color: #10b981;
}

.status-badge.status-incomplete i {
    color: #ef4444;
}

.status-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.status-btn:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.status-btn i {
    font-size: 0.875rem;
}

/* Date Value */
.date-value {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 0.875rem;
}

[data-theme="dark"] .date-value {
    color: #a0a3bd;
}

.date-value i {
    color: #6777ef;
}

/* Pagination */
.modern-pagination {
    padding: 20px 28px;
    border-top: 1px solid #e5e7eb;
}

[data-theme="dark"] .modern-pagination {
    border-top-color: #374151;
}

/* Table Action Icons */
.table-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: transparent;
    border: none;
    color: #6777ef;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-icon:hover {
    background: #f0f3ff;
    color: #5a67d8;
    transform: translateY(-1px);
    text-decoration: none;
}

[data-theme="dark"] .action-icon:hover {
    background: #2d3340;
}

.action-icon.action-delete {
    color: #ef4444;
}

.action-icon.action-delete:hover {
    background: #fee2e2;
    color: #dc2626;
}

[data-theme="dark"] .action-icon.action-delete:hover {
    background: rgba(239, 68, 68, 0.15);
}

/* User-specific Styles */
.user-name {
    font-weight: 500;
    color: #191d21;
}

[data-theme="dark"] .user-name {
    color: #e4e6fc;
}

.user-email {
    color: #6c757d;
    font-size: 0.875rem;
}

[data-theme="dark"] .user-email {
    color: #a0a3bd;
}

/* Plan-specific Styles */
.plan-name {
    font-weight: 500;
    color: #191d21;
    text-transform: capitalize;
}

[data-theme="dark"] .plan-name {
    color: #e4e6fc;
}

.status-badge.status-enabled i {
    color: #10b981;
}

.status-badge.status-disabled i {
    color: #ef4444;
}

/* Invoice-specific Styles */
.invoice-link {
    color: #6777ef;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.invoice-link:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.coupon-code {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f3ff;
    color: #6777ef;
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
}

[data-theme="dark"] .coupon-code {
    background: #2d3340;
    color: #8b98ff;
}

.discount-value {
    color: #10b981;
    font-weight: 600;
}

.payment-status {
    color: #191d21;
    font-weight: 500;
    text-transform: capitalize;
}

[data-theme="dark"] .payment-status {
    color: #e4e6fc;
}

.invoice-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #191d21;
}

[data-theme="dark"] .invoice-type {
    color: #e4e6fc;
}

.invoice-type i {
    font-size: 0.75rem;
    color: #6777ef;
}

.invoice-type.type-renew i {
    color: #10b981;
}

.time-value {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 2px;
}

.text-muted {
    color: #9ca3af !important;
}

[data-theme="dark"] .text-muted {
    color: #6b7280 !important;
}

/* Responsive Design */
@media (max-width: 992px) {
    .income-breakdown {
        grid-template-columns: 1fr;
    }
    
    .banner-content {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    
    .banner-icon {
        font-size: 3rem;
    }
    
    .banner-text h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .admin-stat-breakdown {
        gap: 8px;
    }
    
    .admin-stat-item {
        padding: 10px 12px;
    }
    
    .admin-stat-value {
        font-size: 1.125rem;
    }
    
    .income-total-value {
        font-size: 2rem;
    }
    
    .income-stat-value {
        font-size: 1.25rem;
    }
    
    .monitor-summary-item {
        padding: 16px;
    }
    
    .monitor-summary-icon {
        width: 40px;
        height: 40px;
    }
    
    .monitor-summary-icon i {
        font-size: 1.25rem;
    }
    
    .monitor-summary-value {
        font-size: 1.25rem;
    }
    
    /* Modern Table Responsive */
    .modern-table-header {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .table-header-left,
    .table-header-right {
        width: 100%;
    }
    
    .table-header-right {
        flex-direction: column;
        align-items: stretch;
    }
    
    .modern-search-form,
    .table-add-btn {
        width: 100%;
    }
    
    .modern-search-input {
        min-width: 100%;
    }
    
    .modern-table thead th {
        padding: 12px 16px;
        font-size: 0.8125rem;
    }
    
    .modern-table tbody td {
        padding: 12px 16px;
        font-size: 0.8125rem;
    }
    
    .order-id,
    .amount-value,
    .gateway-badge,
    .date-value {
        font-size: 0.8125rem;
    }
    
    .status-badge,
    .status-btn {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
    
    .modern-pagination {
        padding: 16px 20px;
    }
}

@media (max-width: 576px) {
    .modern-table-header {
        padding: 16px;
    }
    
    .table-title {
        font-size: 1.125rem;
    }
    
    .modern-search-box {
        flex-direction: column;
    }
    
    .modern-search-input {
        border-bottom: 1px solid #e5e7eb;
        padding: 12px;
    }
    
    [data-theme="dark"] .modern-search-input {
        border-bottom-color: #374151;
    }
    
    .modern-search-btn {
        width: 100%;
        padding: 12px;
    }
}

/* ============================================
   ALERT MESSAGES - THEME-AWARE
   ============================================ */

/* Success Alert */
.alert.alert-success {
    background-color: #f0fdf4 !important;
    border-color: #86efac !important;
    color: #15803d !important;
}

[data-theme="dark"] .alert.alert-success {
    background-color: #064e3b !important;
    border-color: #065f46 !important;
    color: #86efac !important;
}

.alert.alert-success .close,
.alert.alert-success button.close {
    color: #15803d !important;
    opacity: 0.8 !important;
}

[data-theme="dark"] .alert.alert-success .close,
[data-theme="dark"] .alert.alert-success button.close {
    color: #86efac !important;
}

.alert.alert-success strong {
    color: #15803d !important;
}

[data-theme="dark"] .alert.alert-success strong {
    color: #4ade80 !important;
}

/* Error/Danger Alert */
.alert.alert-danger {
    background-color: #fef2f2 !important;
    border-color: #fca5a5 !important;
    color: #b91c1c !important;
}

[data-theme="dark"] .alert.alert-danger {
    background-color: #7f1d1d !important;
    border-color: #991b1b !important;
    color: #fca5a5 !important;
}

.alert.alert-danger .close,
.alert.alert-danger button.close {
    color: #b91c1c !important;
    opacity: 0.8 !important;
}

[data-theme="dark"] .alert.alert-danger .close,
[data-theme="dark"] .alert.alert-danger button.close {
    color: #fca5a5 !important;
}

.alert.alert-danger strong {
    color: #b91c1c !important;
}

[data-theme="dark"] .alert.alert-danger strong {
    color: #f87171 !important;
}

/* Warning Alert */
.alert.alert-warning {
    background-color: #fef3c7 !important;
    border-color: #fcd34d !important;
    color: #92400e !important;
}

[data-theme="dark"] .alert.alert-warning {
    background-color: #78350f !important;
    border-color: #92400e !important;
    color: #fde68a !important;
}

.alert.alert-warning .close,
.alert.alert-warning button.close {
    color: #92400e !important;
    opacity: 0.8 !important;
}

[data-theme="dark"] .alert.alert-warning .close,
[data-theme="dark"] .alert.alert-warning button.close {
    color: #fde68a !important;
}

.alert.alert-warning strong {
    color: #92400e !important;
}

[data-theme="dark"] .alert.alert-warning strong {
    color: #fbbf24 !important;
}

/* Info Alert */
.alert.alert-info {
    background-color: #eff6ff !important;
    border-color: #93c5fd !important;
    color: #1e40af !important;
}

[data-theme="dark"] .alert.alert-info {
    background-color: #1e3a8a !important;
    border-color: #1e40af !important;
    color: #bfdbfe !important;
}

.alert.alert-info .close,
.alert.alert-info button.close {
    color: #1e40af !important;
    opacity: 0.8 !important;
}

[data-theme="dark"] .alert.alert-info .close,
[data-theme="dark"] .alert.alert-info button.close {
    color: #bfdbfe !important;
}

.alert.alert-info strong {
    color: #1e40af !important;
}

[data-theme="dark"] .alert.alert-info strong {
    color: #60a5fa !important;
}

/* General Alert Styling */
.alert {
    border-radius: 10px !important;
    padding: 16px 20px !important;
    margin-bottom: 20px !important;
    font-size: 0.9375rem !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.alert .close {
    font-size: 1.5rem !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-shadow: none !important;
}

.alert .close:hover {
    opacity: 1 !important;
}

/* ============================================
   BADGE STYLING - THEME-AWARE
   ============================================ */

/* Secondary Badge (used for N/A status) */
.badge.badge-secondary {
    background-color: #6c757d !important;
    color: #ffffff !important;
    padding: 6px 12px !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
}

[data-theme="dark"] .badge.badge-secondary {
    background-color: #4b5563 !important;
    color: #f9fafb !important;
}

/* Modern Table Footer with Pagination - Theme Aware */
.modern-table-footer {
    padding: 1rem 1.5rem;
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    border-radius: 0 0 8px 8px;
}

[data-theme="dark"] .modern-table-footer {
    background-color: #1f2937;
    border-top-color: #374151;
}

.pagination-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Bootstrap 4 Pagination Theme Styles */
.pagination {
    margin-bottom: 0;
}

.page-link {
    color: #6366f1;
    background-color: #ffffff;
    border-color: #e5e7eb;
}

.page-link:hover {
    color: #4f46e5;
    background-color: #f3f4f6;
    border-color: #d1d5db;
}

.page-item.active .page-link {
    background-color: #6366f1;
    border-color: #6366f1;
    color: #ffffff;
}

.page-item.disabled .page-link {
    color: #9ca3af;
    background-color: #ffffff;
    border-color: #e5e7eb;
}

/* Dark Theme Pagination */
[data-theme="dark"] .page-link {
    color: #818cf8;
    background-color: #374151;
    border-color: #4b5563;
}

[data-theme="dark"] .page-link:hover {
    color: #a5b4fc;
    background-color: #4b5563;
    border-color: #6b7280;
}

[data-theme="dark"] .page-item.active .page-link {
    background-color: #6366f1;
    border-color: #6366f1;
    color: #ffffff;
}

[data-theme="dark"] .page-item.disabled .page-link {
    color: #6b7280;
    background-color: #374151;
    border-color: #4b5563;
}

/* Theme-aware Button Styles for Primary and Secondary - Modern Flat Design */
.btn-primary {
    background-color: #6366f1;
    border: none;
    color: #ffffff;
    padding: 0.625rem 1.75rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: #4f46e5;
    border: none;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.2);
}

.btn-primary:focus,
.btn-primary:active {
    background-color: #4338ca;
    border: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
    outline: none;
}

[data-theme="dark"] .btn-primary {
    background-color: #6366f1;
    border: none;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .btn-primary:hover {
    background-color: #818cf8;
    border: none;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(129, 140, 248, 0.3);
}

[data-theme="dark"] .btn-primary:focus,
[data-theme="dark"] .btn-primary:active {
    background-color: #a5b4fc;
    border: none;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.4);
    outline: none;
}

/* Secondary Button Styles - Modern Flat Design */
.btn-secondary {
    background-color: #6b7280;
    border: none;
    color: #ffffff;
    padding: 0.625rem 1.75rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background-color: #4b5563;
    border: none;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(107, 114, 128, 0.2);
}

.btn-secondary:focus,
.btn-secondary:active {
    background-color: #374151;
    border: none;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.3);
    outline: none;
}

[data-theme="dark"] .btn-secondary {
    background-color: #4b5563;
    border: none;
    color: #f9fafb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .btn-secondary:hover {
    background-color: #6b7280;
    border: none;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(107, 114, 128, 0.3);
}

[data-theme="dark"] .btn-secondary:focus,
[data-theme="dark"] .btn-secondary:active {
    background-color: #9ca3af;
    border: none;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.4);
    outline: none;
}

/* ========================================
   MODERN INPUT BORDERS FOR INTERVAL PAGE
   ======================================== */

.modern-input-border {
    border: 2px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
    transition: all 0.3s ease !important;
    background: #ffffff !important;
}

.modern-input-border:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
    outline: none !important;
}

/* Dark theme adjustments for modern input borders */
[data-theme="dark"] .modern-input-border {
    background: rgba(30, 30, 50, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #e5e7eb !important;
}

[data-theme="dark"] .modern-input-border:focus {
    border-color: #8b5cf6 !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1) !important;
}

/* ========================================
   SELECTRIC DROPDOWN STYLING FIXES
   ======================================== */

/* Fix selectric dropdown styling */
.selectric {
    border: 2px solid #e5e7eb !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    transition: all 0.3s ease !important;
}

.selectric:hover {
    border-color: #d1d5db !important;
}

.selectric:focus,
.selectric.selectric-focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
    outline: none !important;
}

.selectric .label {
    color: #374151 !important;
    font-size: 0.875rem !important;
    padding: 0.75rem 1rem !important;
    line-height: 1.5 !important;
    background: transparent !important;
}

.selectric .button {
    background: #f9fafb !important;
    border-left: 1px solid #e5e7eb !important;
    color: #6b7280 !important;
    width: 2.5rem !important;
}

.selectric .button:hover {
    background: #f3f4f6 !important;
    color: #374151 !important;
}

.selectric .button:after {
    border-top-color: #6b7280 !important;
    border-width: 4px 4px 0 4px !important;
}

/* Dropdown items styling */
.selectric-items {
    border: 2px solid #e5e7eb !important;
    border-top: none !important;
    border-radius: 0 0 8px 8px !important;
    background: #ffffff !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    max-height: 200px !important;
}

.selectric-items .selectric-scroll {
    max-height: 200px !important;
}

.selectric-items li {
    color: #374151 !important;
    font-size: 0.875rem !important;
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid #f3f4f6 !important;
    background: #ffffff !important;
    transition: all 0.2s ease !important;
}

.selectric-items li:hover {
    background: #f8fafc !important;
    color: #1f2937 !important;
}

.selectric-items li.selected {
    background: #667eea !important;
    color: #ffffff !important;
}

.selectric-items li.highlighted {
    background: #e0e7ff !important;
    color: #3730a3 !important;
}

.selectric-items li:last-child {
    border-bottom: none !important;
}

/* Dark theme adjustments for selectric */
[data-theme="dark"] .selectric {
    background: rgba(30, 30, 50, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .selectric:hover {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

[data-theme="dark"] .selectric:focus,
[data-theme="dark"] .selectric.selectric-focus {
    border-color: #8b5cf6 !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1) !important;
}

[data-theme="dark"] .selectric .label {
    color: #e5e7eb !important;
}

[data-theme="dark"] .selectric .button {
    background: rgba(50, 50, 70, 0.8) !important;
    border-left-color: rgba(255, 255, 255, 0.2) !important;
    color: #9ca3af !important;
}

[data-theme="dark"] .selectric .button:hover {
    background: rgba(60, 60, 80, 0.8) !important;
    color: #d1d5db !important;
}

[data-theme="dark"] .selectric .button:after {
    border-top-color: #9ca3af !important;
}

[data-theme="dark"] .selectric-items {
    background: rgba(30, 30, 50, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .selectric-items li {
    color: #e5e7eb !important;
    background: rgba(30, 30, 50, 0.95) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .selectric-items li:hover {
    background: rgba(50, 50, 70, 0.8) !important;
    color: #f3f4f6 !important;
}

[data-theme="dark"] .selectric-items li.selected {
    background: #8b5cf6 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .selectric-items li.highlighted {
    background: rgba(139, 92, 246, 0.2) !important;
    color: #c4b5fd !important;
}


