@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root, [data-theme="midnight_onyx"] {
  --bg-primary: #000000;
  --bg-secondary: #050505;
  --bg-glass: rgba(10, 10, 10, 0.6);
  --card-glow: 0 8px 32px rgba(212, 175, 55, 0.05); /* Subtle Gold Glow */
  
  --text-primary: #FFFFFF;
  --text-muted: #E5E4E2;
  
  --accent-primary: #D4AF37; /* Luxury Gold */
  --accent-secondary: #E5E4E2; /* Platinum */
  --accent-purple: #D4AF37; /* mapped to gold */
  --accent-cyan: #E5E4E2;   /* mapped to silver */
  --accent-pink: #c59f2a;
  
  /* Ultra-thin 0.5px equivalent border */
  --glass-border: 1px solid rgba(212, 175, 55, 0.3); 
  
  --radius-lg: 12.0px; /* STRICT 12px for Luxury Standard */
  --radius-md: 8px; /* 8dp Grid Alignment */
  --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.35);

  --gradient-primary: linear-gradient(135deg, #0a0a0a, #000000 50%, #050505);
  --gradient-accent: linear-gradient(120deg, #D4AF37, #E5E4E2 45%, #c59f2a);
  
  --font-display: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;
  
  --spacing-base: 8px; /* Everything must be a multiple of this */
}

/* Executive Dark Mode */

[data-theme="executive_dark"] {
  --bg-primary: #0F111A;
  --bg-secondary: #161925;
  --bg-glass: rgba(22, 25, 37, 0.6);
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
  --text-primary: #FFFFFF;
  --text-muted: #B0B3C1;
  --accent-primary: #E5E4E2;
  --accent-secondary: #FFFFFF;
  --card-glow: 0 12px 40px rgba(0, 0, 0, 0.5);
  --gradient-primary: linear-gradient(135deg, #161925, #0F111A 50%, #161925);
  --gradient-accent: linear-gradient(120deg, #FFFFFF, #E5E4E2 45%, #B0B3C1);
}

/* Elite Light Mode */

[data-theme="elite_light"] {
  --bg-primary: #FBFBF9; /* Warm Ivory */
  --bg-secondary: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.8);
  --text-primary: #1A1A1A;
  --text-muted: #4A4A4A;
  --glass-border: 1px solid rgba(0, 0, 0, 0.08);
  --accent-primary: #1E2022;
  --accent-secondary: #1A1A1A;
  --card-glow: 0 4px 20px rgba(0, 0, 0, 0.03);
  --gradient-primary: linear-gradient(135deg, #FFFFFF, #FBFBF9 50%, #FFFFFF);
  --gradient-accent: linear-gradient(120deg, #1E2022, #333333 45%, #1A1A1A);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

a {
  color: inherit;
}

button {
  font-family: var(--font-body); /* Changed to body for buttons */
}

input, textarea, select {
  font-family: var(--font-body);
  background: var(--bg-secondary);
  border: var(--glass-border);
  color: var(--text-primary);
  padding: 12px 16px; /* align to 8dp grid */
  border-radius: var(--radius-lg);
  transition: all 0.2s ease-in-out;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  background: var(--bg-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.1);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23D4AF37" stroke-width="2"><polyline points="6 9 12 15 18 9"></polyline></svg>');
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 20px;
  padding-right: 2.5rem;
}

select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 8px;
}

/* Enforce spacing and radius system on inputs/cards */

.card, .panel {
  border-radius: var(--radius-lg);
  border: var(--glass-border);
  background: var(--bg-elevated, var(--bg-secondary));
  box-shadow: var(--card-glow);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: var(--radius-lg);
  border: 2px solid var(--bg-primary); /* create spacing */
}

code {
  font-family: 'JetBrains Mono', 'SFMono-Regular', Menlo, Monaco, Consolas, 'Courier New', monospace;
}

@media (max-width: 900px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .page-header .btn-primary,
  .page-header button {
    width: 100%;
  }

  .filter-tabs,
  .theme-tabs,
  .wheel-tabs {
    flex-wrap: wrap;
  }

  .reservations-table-wrapper,
  .rewards-table {
    overflow-x: auto;
  }

  table {
    min-width: 680px;
  }
}

/* Sapphire Noir */

[data-theme="sapphire_noir"] {
  --bg-primary: #020617;
  --bg-secondary: #0F172A;
  --bg-glass: rgba(15, 23, 42, 0.6);
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
  --text-primary: #F8FAFC;
  --text-muted: #94A3B8;
  --accent-primary: #A6B5C5;
  --accent-secondary: #E2E8F0;
  --card-glow: 0 12px 40px rgba(0, 0, 0, 0.6);
  --gradient-primary: linear-gradient(135deg, #0F172A, #020617 50%, #0F172A);
  --gradient-accent: linear-gradient(120deg, #A6B5C5, #E2E8F0 45%, #94A3B8);
  --radius-lg: 12px;
  --radius-md: 8px;
}

/* Royal Pearl */

[data-theme="royal_pearl"] {
  --bg-primary: #FDFBF7;
  --bg-secondary: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.8);
  --glass-border: 1px solid rgba(183, 110, 121, 0.15);
  --text-primary: #2C2B2A;
  --text-muted: #6B6865;
  --accent-primary: #B76E79; /* Rose Gold */
  --accent-secondary: #9F8A80;
  --card-glow: 0 8px 30px rgba(183, 110, 121, 0.08);
  --gradient-primary: linear-gradient(135deg, #FFFFFF, #FDFBF7 50%, #FFFFFF);
  --gradient-accent: linear-gradient(120deg, #B76E79, #E0BFB8 45%, #9F8A80);
  --radius-lg: 12px;
  --radius-md: 8px;
}

/* Champagne Minimal (Elevated 3-Tier Light Mode) */

[data-theme="champagne_minimal"] {
  --bg-primary: #F9F7F2;     /* Ambient Champagne/Bone */
  --bg-secondary: #EFECE5;   /* Deeper Ivory */
  --bg-elevated: #FFFFFF;    /* Pure white for popping cards */
  --bg-glass: rgba(255, 255, 255, 0.85);
  
  --text-primary: #1A1A1A;
  --text-muted: #57534E;
  
  --accent-primary: #2C2B2A; /* High Contrast Black */
  --accent-secondary: #78716C;
  --accent-gold: #B79F70;
  
  --glass-border: 1px solid rgba(44, 43, 42, 0.08); /* 2C2B2A */
  --card-glow: 0 12px 30px rgba(0, 0, 0, 0.04);
  
  --gradient-primary: linear-gradient(135deg, #FFFFFF, #F9F7F2);
  --gradient-accent: linear-gradient(120deg, #2C2B2A, #4A4846 45%, #1A1A1A);
  
  --radius-lg: 12.0px; /* STRICT */
  --radius-md: 8px;
}

/* Executive Charcoal (3-Tier Professional Dark Mode) */

[data-theme="executive_charcoal"] {
  --bg-primary: #0B0E14;     /* Deep Navy Background */
  --bg-secondary: #111620;   /* Surface */
  --bg-elevated: #1A1F2C;    /* Elevated Panels */
  --bg-glass: rgba(26, 31, 44, 0.8);
  
  --text-primary: #F0F4F8;
  --text-muted: #94A3B8;
  
  --accent-primary: #E5E4E2;
  --accent-secondary: #B0B3C1;
  --accent-gold: #C6A87C;
  
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
  --card-glow: 0 16px 40px rgba(0, 0, 0, 0.4);
  
  --gradient-primary: linear-gradient(135deg, #111620, #0B0E14);
  --gradient-accent: linear-gradient(120deg, #FFFFFF, #E5E4E2 45%, #B0B3C1);
  
  --radius-lg: 12.0px; /* STRICT */
  --radius-md: 8px;
}

/* Emerald Enclave (Private Club Green & Brass) */

[data-theme="emerald_enclave"] {
  --bg-primary: #041510;
  --bg-secondary: #07211A;
  --bg-elevated: #0B3026;
  --bg-glass: rgba(11, 48, 38, 0.85);

  --text-primary: #F0F4F2;
  --text-muted: #A3C5B8;

  --accent-primary: #C19A6B;
  --accent-secondary: #7BD389;
  --accent-gold: #D4AF37;

  --glass-border: 1px solid rgba(193, 154, 107, 0.15);
  --card-glow: 0 16px 40px rgba(0, 0, 0, 0.5);

  --gradient-primary: linear-gradient(135deg, #07211A, #041510);
  --gradient-accent: linear-gradient(120deg, #C19A6B, #EAD7B6 45%, #B3864D);
  --radius-lg: 12.0px;
  --radius-md: 8px;
}

/* Velvet Merlot (VIP Burgundy & Rose Gold) */

[data-theme="velvet_merlot"] {
  --bg-primary: #140508;
  --bg-secondary: #210B10;
  --bg-elevated: #30121A;
  --bg-glass: rgba(48, 18, 26, 0.85);

  --text-primary: #FDF5F7;
  --text-muted: #D1A5AE;

  --accent-primary: #E0A96D;
  --accent-secondary: #E6B8C2;
  --accent-gold: #FFD1A6;

  --glass-border: 1px solid rgba(224, 169, 109, 0.15);
  --card-glow: 0 16px 40px rgba(0, 0, 0, 0.5);

  --gradient-primary: linear-gradient(135deg, #210B10, #140508);
  --gradient-accent: linear-gradient(120deg, #E0A96D, #F1D4B3 45%, #D08F52);
  --radius-lg: 12.0px;
  --radius-md: 8px;
}

/* Nordic Aurora (Midnight Teal & Neon Cyan) */

[data-theme="nordic_aurora"] {
  --bg-primary: #021115;
  --bg-secondary: #051A20;
  --bg-elevated: #0A262E;
  --bg-glass: rgba(10, 38, 46, 0.85);

  --text-primary: #E0FAFE;
  --text-muted: #85C0D4;

  --accent-primary: #00E5FF;
  --accent-secondary: #A1FCEA;
  --accent-gold: #E0FAFE;

  --glass-border: 1px solid rgba(0, 229, 255, 0.15);
  --card-glow: 0 16px 40px rgba(0, 229, 255, 0.1);

  --gradient-primary: linear-gradient(135deg, #051A20, #021115);
  --gradient-accent: linear-gradient(120deg, #00E5FF, #80F2FF 45%, #00B1C8);
  --radius-lg: 12.0px;
  --radius-md: 8px;
}

/* Glacier Silver (Executive White & Slate) */

[data-theme="glacier_silver"] {
  --bg-primary: #F3F5F7;
  --bg-secondary: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.9);

  --text-primary: #1E232A;
  --text-muted: #6A7B8C;

  --accent-primary: #2B303A;
  --accent-secondary: #6A7B8C;
  --accent-gold: #9AA7B6;

  --glass-border: 1px solid rgba(43, 48, 58, 0.1);
  --card-glow: 0 8px 30px rgba(43, 48, 58, 0.05);

  --gradient-primary: linear-gradient(135deg, #FFFFFF, #F3F5F7);
  --gradient-accent: linear-gradient(120deg, #2B303A, #465163 45%, #15181D);
  --radius-lg: 12.0px;
  --radius-md: 8px;
}
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 20%, rgba(127, 90, 240, 0.35), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(77, 226, 255, 0.28), transparent 30%),
    radial-gradient(circle at 50% 80%, rgba(255, 99, 195, 0.18), transparent 32%),
    var(--bg-secondary);
  padding: 1.5rem;
}

.login-card {
  background: rgba(255, 255, 255, 0.04);
  padding: 3rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  width: 100%;
  max-width: 430px;
  backdrop-filter: blur(14px);
  color: var(--text-primary);
}

.login-card h1 {
  margin: 0 0 0.4rem;
  font-size: 2rem;
}

.login-subtitle {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.error-message {
  background: rgba(255, 99, 122, 0.15);
  color: #ff9aa5;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  margin-bottom: 1.1rem;
  font-size: 0.92rem;
  border: 1px solid rgba(255, 99, 122, 0.35);
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.55rem;
  font-weight: 700;
  color: var(--text-primary);
}

.form-group input {
  width: 100%;
  padding: 0.9rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: rgba(127, 90, 240, 0.6);
  box-shadow: 0 0 0 3px rgba(127, 90, 240, 0.18);
}

.login-button {
  width: 100%;
  padding: 0.95rem;
  background: var(--gradient-accent);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 12px 35px rgba(79, 202, 255, 0.25);
}

.login-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 45px rgba(79, 202, 255, 0.35);
}

.login-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.login-footer {
  margin-top: 1.75rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}
/* Responsive Dashboard Layout Styles */

.dashboard-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg-secondary);
  position: relative;
}

/* Desktop Header */
.desktop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-secondary) 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
  transition: transform 0.2s ease;
}

.header-logo-img:hover {
  transform: scale(1.05);
}

.header-logo-section h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.header-logo-section .version {
  display: block;
  font-size: 11px;
  color: rgba(212, 175, 55, 0.8);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-user-info {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  padding: 12px 20px;
  color: var(--text-primary);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 250px;
  max-width: 350px;
}

.header-user-info:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-1px);
}

.user-email {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  width: 100%;
  line-height: 1.4;
}

.user-role {
  font-size: 12px;
  color: rgba(229, 228, 226, 0.9);
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.header-logout {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 59, 48, 0.2));
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 8px;
  padding: 8px 16px;
  color: #ff6b6b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-logout:hover {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.3), rgba(255, 59, 48, 0.3));
  border-color: #ff6b6b;
}

/* Dashboard Content Wrapper */
.dashboard-layout > div:not(.desktop-header):not(.mobile-header):not(.sidebar-overlay) {
  display: flex;
  flex: 1;
}

.dashboard-layout-content {
  display: flex;
  flex: 1;
}

/* Mobile Header */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-secondary) 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 1000;
}

.hamburger-button {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger-icon {
  width: 24px;
  height: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-icon span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger-icon.open span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

.mobile-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.mobile-logout {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
}

/* Sidebar Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 998;
}

/* Sidebar */
.sidebar {
  width: 280px;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-secondary) 100%);
  border-right: 1px solid rgba(212, 175, 55, 0.2);
  position: fixed;
  top: 80px;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 80px);
  overflow-y: auto;
  z-index: 999;
  transition: width 0.3s ease, transform 0.3s ease;
}

/* Collapsed Sidebar */
.sidebar.collapsed {
  width: 80px;
}

.sidebar.collapsed .nav-label {
  display: none;
}

.sidebar.collapsed .sidebar-header-top {
  justify-content: center;
}

.sidebar-header {
  padding: 24px;
  border-bottom: 1px solid var(--glass-border);
}

.sidebar-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.collapse-toggle {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--accent-primary);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.collapse-toggle:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: rgba(212, 175, 55, 0.5);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.pulse-dot {
  width: 12px;
  height: 12px;
  background: var(--gradient-accent) 100%);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

.role-badge {
  display: inline-block;
  padding: 6px 12px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(229, 228, 226, 0.2));
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Navigation */
.sidebar-nav {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
}

.nav-section {
  margin-bottom: 24px;
}

.nav-section-title {
  padding: 0 24px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.nav-item:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--text-primary);
  border-left-color: var(--accent-primary);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.2), transparent);
  color: var(--text-primary);
  border-left-color: var(--accent-primary);
}

.nav-icon {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.nav-label {
  font-size: 14px;
  font-weight: 500;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--glass-border);
  text-align: center;
}

.sidebar-footer-text {
  font-size: 11px;
  color: rgba(212, 175, 55, 0.6);
  margin: 0;
  font-weight: 600;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 280px;
  margin-top: 80px;
  padding: 32px;
  overflow-y: auto;
  min-width: 0;
  transition: margin-left 0.3s ease;
}

.sidebar.collapsed ~ .main-content {
  margin-left: 80px;
}

/* Tablet Styles (768px - 1024px) */
@media (max-width: 1024px) {
  .sidebar {
    width: 240px;
  }
  
  .sidebar.collapsed {
    width: 70px;
  }

  .main-content {
    margin-left: 240px;
    padding: 24px;
  }

  .sidebar.collapsed ~ .main-content {
    margin-left: 70px;
  }

  .desktop-header {
    padding: 0 24px;
  }
}

/* Mobile Styles (< 768px) */
@media (max-width: 768px) {
  .mobile-header {
    display: flex;
  }

  .desktop-header {
    display: none;
  }

  .sidebar {
    top: 60px;
    height: calc(100vh - 60px);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay {
    display: block;
  }

  .main-content {
    margin-left: 0;
    margin-top: 60px;
    padding: 16px;
  }

  .collapse-toggle {
    display: none;
  }
}

/* Small Mobile (< 480px) */
@media (max-width: 480px) {
  .sidebar {
    width: 80%;
    max-width: 280px;
  }

  .main-content {
    padding: 12px;
  }

  .brand-mark {
    font-size: 18px;
  }

  .mobile-brand {
    font-size: 16px;
  }
}

/* Scrollbar Styling */
.sidebar-nav::-webkit-scrollbar {
  width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.5);
}
.overview-page {
  max-width: 1400px;
  margin: 0 auto;
  color: var(--text-primary);
}

.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  margin: 0 0 0.35rem;
  font-size: 2.1rem;
  color: var(--text-primary);
}

.page-header p {
  margin: 0;
  color: var(--text-muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-glass);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  right: -20px;
  top: -20px;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle, rgba(127, 90, 240, 0.35), transparent 60%);
  border-radius: 50%;
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.stat-content {
  position: relative;
  z-index: 1;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.stat-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.stat-detail {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.3rem;
}

/* Charts Grid */
.charts-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.chart-card {
  background: var(--bg-glass);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.chart-card h3 {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  color: #fff;
}

.chart-card.full-width {
  grid-column: 1 / -1;
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-value {
    font-size: 1.4rem;
  }

  .charts-row {
    grid-template-columns: 1fr;
  }
}
  filter: blur(8px);
}

.stat-icon {
  font-size: 2rem;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(127, 90, 240, 0.35), rgba(77, 226, 255, 0.25));
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.stat-content h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
}

.stat-value {
  margin: 0 0 0.15rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.quick-actions h2 {
  margin: 0 0 1.1rem;
  font-size: 1.45rem;
  color: var(--text-primary);
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.9rem;
}

.action-button {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1.05rem 1.1rem;
  background: linear-gradient(135deg, rgba(8, 11, 26, 0.9), rgba(14, 18, 38, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border 0.18s ease;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.action-button::before {
  content: '';
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle, rgba(77, 226, 255, 0.15), transparent 55%);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.action-button:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(163, 113, 255, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.action-button:hover::before {
  opacity: 1;
}

.action-icon {
  font-size: 1.35rem;
}
.departments-page {
  max-width: 1400px;
  margin: 0 auto;
  color: var(--text-primary);
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.page-header h1 {
  margin: 0;
  font-size: 1.9rem;
}

.btn-primary {
  padding: 0.8rem 1.35rem;
  background: var(--gradient-accent);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 12px 30px rgba(79, 202, 255, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(79, 202, 255, 0.38);
}

.loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

.departments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.25rem;
}

.dept-card {
  background: var(--bg-glass);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dept-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.dept-image {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.dept-content {
  padding: 1.25rem 1.2rem;
}

.dept-content h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}

.dept-description {
  margin: 0 0 0.45rem;
  color: var(--text-muted);
  min-height: 40px;
}

.dept-capacity,
.dept-whatsapp {
  margin: 0 0 0.35rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.dept-status {
  display: inline-block;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dept-status.active {
  background: rgba(77, 226, 255, 0.15);
  color: #c1f3ff;
}

.dept-status.inactive {
  background: rgba(255, 99, 195, 0.14);
  color: #ffcce9;
}

.accent-chip {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0a0b17;
  margin-bottom: 0.7rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.dept-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-edit, .btn-delete, .btn-menus {
  flex: 1;
  padding: 0.55rem;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.btn-edit {
  background: rgba(127, 90, 240, 0.22);
  color: #e6dbff;
}

.btn-menus {
  background: rgba(77, 226, 255, 0.22);
  color: #c1f3ff;
}

.btn-delete {
  background: rgba(255, 99, 122, 0.25);
  color: #ffd6de;
}

.btn-edit:hover, .btn-menus:hover, .btn-delete:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .btn-primary {
    width: 100%;
  }

  .dept-actions {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .departments-grid {
    grid-template-columns: 1fr;
  }

  .dept-image {
    height: 160px;
  }
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1rem;
}

.modal {
  background: rgba(8, 10, 24, 0.95);
  padding: 2rem;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  color: var(--text-primary);
}

.modal h2 {
  margin: 0 0 1.25rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 700;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="file"],
.form-group input[type="tel"],
.form-group textarea,
.form-group input[type="color"] {
  width: 100%;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(127, 90, 240, 0.6);
  box-shadow: 0 0 0 3px rgba(127, 90, 240, 0.18);
}

.form-group.checkbox {
  display: flex;
  align-items: center;
}

.form-group.checkbox label {
  display: flex;
  align-items: center;
  margin: 0;
  gap: 0.5rem;
}

.form-group.checkbox input {
  width: auto;
}

.current-image {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.modal-actions {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.btn-cancel, .btn-submit {
  flex: 1;
  padding: 0.85rem;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.btn-cancel {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.btn-submit {
  background: var(--gradient-accent);
  color: white;
  box-shadow: 0 12px 30px rgba(79, 202, 255, 0.28);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-cancel:hover, .btn-submit:hover:not(:disabled) {
  opacity: 0.95;
  transform: translateY(-1px);
}
.menus-page {
  max-width: 1400px;
  margin: 0 auto;
  color: var(--text-primary);
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.header-left {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.btn-back {
  padding: 0.75rem 1rem;
  background: rgba(127, 90, 240, 0.15);
  color: #e6dbff;
  border: 1px solid rgba(127, 90, 240, 0.3);
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  margin-top: 0.25rem;
  align-self: flex-start;
}

.btn-back:hover {
  background: rgba(127, 90, 240, 0.25);
  transform: translateX(-2px);
}

.page-header h1 {
  margin: 0;
  font-size: 1.9rem;
}

.dept-name {
  color: var(--text-muted);
  margin: 0.5rem 0 0 0;
  font-size: 0.95rem;
}

.btn-primary {
  padding: 0.8rem 1.35rem;
  background: var(--gradient-accent);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 12px 30px rgba(79, 202, 255, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(79, 202, 255, 0.38);
}

.loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

.menus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  background: var(--bg-glass);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  color: var(--text-muted);
}

.empty-state p {
  margin: 0;
  font-size: 1.1rem;
}

.menu-card {
  background: var(--bg-glass);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.menu-preview {
  position: relative;
  width: 100%;
  height: 200px;
  background: rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.menu-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.menu-card:hover .menu-preview img {
  transform: scale(1.05);
}

.menu-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-card:hover .menu-overlay {
  opacity: 1;
}

.btn-view {
  padding: 0.7rem 1.3rem;
  background: var(--gradient-accent);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease;
}

.btn-view:hover {
  transform: scale(1.05);
}

.menu-content {
  padding: 1.25rem;
}

.menu-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.menu-category {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: rgba(127, 90, 240, 0.15);
  color: #e6dbff;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0 0 0.65rem 0;
  text-transform: capitalize;
}

.menu-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0.5rem 0;
  line-height: 1.4;
}

.menu-status {
  display: inline-block;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-status.active {
  background: rgba(77, 226, 255, 0.15);
  color: #c1f3ff;
}

.menu-status.inactive {
  background: rgba(255, 99, 195, 0.14);
  color: #ffcce9;
}

.menu-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.btn-edit, .btn-delete {
  flex: 1;
  padding: 0.55rem;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.btn-edit {
  background: rgba(127, 90, 240, 0.22);
  color: #e6dbff;
}

.btn-delete {
  background: rgba(255, 99, 122, 0.25);
  color: #ffd6de;
}

.btn-edit:hover, .btn-delete:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1rem;
}

.modal {
  background: rgba(8, 10, 24, 0.95);
  padding: 2rem;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.modal h2 {
  margin: 0 0 1.25rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 700;
}

.form-group input[type="text"],
.form-group input[type="file"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-family: inherit;
}

.form-group select {
  cursor: pointer;
}

.form-group select option {
  background: #080a18;
  color: var(--text-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: rgba(127, 90, 240, 0.6);
  box-shadow: 0 0 0 3px rgba(127, 90, 240, 0.18);
}

.form-group.checkbox {
  display: flex;
  align-items: center;
}

.form-group.checkbox label {
  display: flex;
  align-items: center;
  margin: 0;
  gap: 0.5rem;
}

.form-group.checkbox input {
  width: auto;
}

.current-file {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.modal-actions {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.btn-cancel, .btn-submit {
  flex: 1;
  padding: 0.85rem;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.btn-cancel {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.btn-submit {
  background: var(--gradient-accent);
  color: white;
  box-shadow: 0 12px 30px rgba(79, 202, 255, 0.28);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-cancel:hover, .btn-submit:hover:not(:disabled) {
  opacity: 0.95;
  transform: translateY(-1px);
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
  .menus-page {
    padding: 0 12px;
  }

  .page-header {
    flex-direction: column;
    gap: 1rem;
  }

  .header-left {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .btn-back {
    width: fit-content;
  }

  .menus-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .menu-card {
    margin: 0 auto;
    max-width: 100%;
  }

  .menu-preview {
    height: 180px;
  }

  .modal {
    padding: 1.5rem;
    max-width: 95vw;
  }

  .modal-actions {
    flex-direction: column;
  }

  .btn-cancel, .btn-submit {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .page-header h1 {
    font-size: 1.25rem;
  }

  .menu-preview {
    height: 150px;
  }

  .menu-content {
    padding: 1rem;
  }
}
.delivery-admin-page {
  max-width: 1400px;
  margin: 0 auto;
  color: var(--text-primary);
}

.subtitle {
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.user-meta,
.dept-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.8rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.dept-row strong {
  color: #f4f6ff;
}

.action-banner {
  margin-top: 0.75rem;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.action-banner.success {
  color: #c1f3ff;
  background: rgba(77, 226, 255, 0.15);
}

.action-banner.error {
  color: #ffd6de;
  background: rgba(255, 99, 195, 0.18);
}

.action-banner.info {
  color: #e6dbff;
  background: rgba(127, 90, 240, 0.2);
}

.dup-warning {
  margin-top: 0.75rem;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  background: rgba(255, 176, 59, 0.15);
  color: #ffd9a3;
  font-weight: 600;
}

.dept-id {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.25rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e6dbff;
  font-weight: 600;
}

.pill-active {
  background: rgba(77, 226, 255, 0.2);
  color: #c1f3ff;
}

.pill-inactive {
  background: rgba(255, 99, 195, 0.2);
  color: #ffd6de;
}

.delivery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 1.2rem;
}

.delivery-panel {
  background: var(--bg-glass);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.departments-list,
.categories-list,
.items-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1rem;
}

.dept-row,
.category-row,
.item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(15, 18, 36, 0.8);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.dept-row.active,
.category-row.active {
  border: 1px solid rgba(77, 226, 255, 0.5);
  box-shadow: 0 10px 25px rgba(77, 226, 255, 0.15);
}

.drag-handle {
  opacity: 0.7;
  margin-right: 0.5rem;
}

.dept-status {
  margin-top: 0.4rem;
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.dept-status.active {
  background: rgba(77, 226, 255, 0.2);
  color: #c1f3ff;
}

.dept-status.inactive {
  background: rgba(255, 99, 195, 0.2);
  color: #ffd6de;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transition: 0.2s;
  border-radius: 999px;
}

.slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
}

.switch input:checked + .slider {
  background: var(--gradient-accent);
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}

.category-controls {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.sync-controls {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  align-items: center;
}

.sync-controls select {
  flex: 1;
  background: rgba(7, 10, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.75rem;
  color: var(--text-primary);
}

.category-controls input {
  flex: 1;
  background: rgba(7, 10, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.8rem;
  color: var(--text-primary);
}

.item-form input,
.item-form textarea {
  width: 100%;
  margin-bottom: 0.75rem;
  background: rgba(7, 10, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.8rem;
  color: var(--text-primary);
}

.item-form textarea {
  min-height: 80px;
  resize: vertical;
}

.item-flags {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.item-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.item-actions input {
  width: 90px;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.preview-card {
  background: rgba(15, 18, 36, 0.8);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.preview-photo img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.photo-placeholder {
  height: 140px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  background: rgba(10, 10, 20, 0.6);
}

.preview-info {
  padding: 0.8rem;
}

.preview-info h4 {
  margin: 0 0 0.4rem;
}

.preview-info p {
  color: var(--text-muted);
  font-size: 0.85rem;
  min-height: 40px;
}

.preview-info .price {
  font-weight: 700;
  color: #c1f3ff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.preview-toggle label {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.empty-state {
  color: var(--text-muted);
  padding: 1rem 0;
}

/* Edit Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-content {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content h3 {
  margin: 0 0 1.5rem 0;
  color: var(--text-primary);
  font-size: 1.5rem;
}

.modal-content .item-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-content .item-form input[type="text"],
.modal-content .item-form input[type="number"],
.modal-content .item-form textarea {
  width: 100%;
  box-sizing: border-box;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field > label {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.form-field input[type="file"] {
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  cursor: pointer;
}

.form-field input[type="file"]:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 1100px) {
  .delivery-grid {
    grid-template-columns: 1fr;
  }
}
.delivery-orders-page {
  padding: 24px;
  color: #f5f5f5;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.delivery-orders-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f0f1b, #1a1233);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.delivery-orders-header h1 {
  margin: 0 0 6px 0;
  font-size: 26px;
  font-weight: 700;
}

.delivery-orders-header p {
  margin: 0;
  color: #9ca3af;
}

.delivery-orders-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent-secondary);
  font-weight: 600;
  text-decoration: none;
  font-size: 13px;
}

.delivery-orders-link:hover {
  text-decoration: underline;
}

.delivery-orders-metric {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.metric-label {
  color: #9ca3af;
  font-size: 12px;
}

.metric-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-secondary);
}

.orders-card,
.recipients-card {
  background: #0f0f1b;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.orders-card h2,
.recipients-card h2 {
  margin: 0 0 16px 0;
  font-size: 18px;
}

.orders-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.orders-row {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1.6fr 2fr 0.8fr 0.8fr 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #121226;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.orders-head {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 12px;
  text-transform: uppercase;
}

.primary {
  font-weight: 600;
  font-size: 13px;
}

.secondary {
  color: #9ca3af;
  font-size: 12px;
}

.items-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.item-pill {
  padding: 4px 8px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 999px;
  font-size: 11px;
}

.status-badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
}

.status-pending {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-accepted {
  background: rgba(229, 228, 226, 0.15);
  color: var(--accent-secondary);
  border: 1px solid rgba(229, 228, 226, 0.3);
}

.status-preparing {
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent-primary);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.status-picked_up {
  background: rgba(255, 165, 0, 0.15);
  color: #ffa500;
  border: 1px solid rgba(255, 165, 0, 0.3);
}

.status-on_the_way {
  background: rgba(138, 43, 226, 0.15);
  color: #8a2be2;
  border: 1px solid rgba(138, 43, 226, 0.3);
}

.status-delivered {
  background: rgba(0, 255, 163, 0.15);
  color: #00ffa3;
  border: 1px solid rgba(0, 255, 163, 0.3);
}

.status-cancelled {
  background: rgba(255, 99, 99, 0.15);
  color: #ff6b6b;
  border: 1px solid rgba(255, 99, 99, 0.3);
}

.action-button {
  padding: 8px 14px;
  border-radius: 10px;
  border: none;
  background: var(--gradient-accent);
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.action-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.action-button:active {
  transform: translateY(0);
}

.completed-label {
  color: #00ffa3;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.orders-empty {
  padding: 16px;
  text-align: center;
  color: #9ca3af;
}

.recipients-form {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 12px;
  margin-bottom: 16px;
}

.recipients-quick {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.recipients-quick button {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #121226;
  color: #fff;
  cursor: pointer;
}

.recipients-form input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #121226;
  color: #fff;
}

.recipients-form button {
  padding: 10px 16px;
  background: var(--gradient-accent);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
}

.recipients-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.recipient-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: #121226;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.recipient-edit {
  display: flex;
  gap: 8px;
}

.recipient-edit input {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0f0f1b;
  color: #fff;
}

.recipient-actions {
  display: flex;
  gap: 8px;
}

.recipient-actions button {
  padding: 8px 12px;
  border-radius: 10px;
  border: none;
  color: #fff;
  background: #2b2b3f;
}

.recipient-actions .active {
  background: rgba(229, 228, 226, 0.2);
  color: var(--accent-secondary);
}

.recipient-actions .inactive {
  background: rgba(255, 255, 255, 0.08);
  color: #9ca3af;
}

.recipient-actions .danger {
  background: rgba(255, 99, 99, 0.2);
  color: #ff6b6b;
}

.recipient-actions .edit {
  background: rgba(229, 228, 226, 0.2);
  color: var(--accent-secondary);
}

.recipient-actions .save {
  background: rgba(0, 255, 163, 0.2);
  color: #00ffa3;
}

/* Responsive Design for Mobile */
@media (max-width: 1024px) {
  .orders-row {
    grid-template-columns: 1fr 1fr 1.5fr 1.5fr 0.7fr 0.7fr 1fr;
    gap: 8px;
    font-size: 12px;
  }

  .primary {
    font-size: 12px;
  }

  .secondary {
    font-size: 11px;
  }
}

@media (max-width: 768px) {
  .delivery-orders-page {
    padding: 16px;
  }

  .delivery-orders-header {
    flex-direction: column;
    text-align: left;
    padding: 16px;
  }

  .delivery-orders-metric {
    align-self: flex-start;
    align-items: flex-start;
  }

  .orders-card,
  .recipients-card {
    padding: 12px;
    overflow-x: auto;
  }

  .orders-table {
    min-width: 800px;
  }

  .orders-row {
    grid-template-columns: repeat(7, minmax(100px, 1fr));
  }

  .recipients-form {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .recipients-quick {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .delivery-orders-page {
    padding: 12px;
  }

  .delivery-orders-header h1 {
    font-size: 20px;
  }

  .metric-value {
    font-size: 22px;
  }

  .orders-card h2,
  .recipients-card h2 {
    font-size: 16px;
  }

  .action-button {
    padding: 6px 10px;
    font-size: 11px;
  }

  .recipient-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .recipient-actions {
    width: 100%;
    justify-content: space-between;
  }
}
.delivery-order-logs-page {
  padding: 28px;
  color: #f5f5f5;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.delivery-order-logs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 32px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(16, 16, 32, 0.95), rgba(32, 22, 56, 0.95));
  border: 1px solid rgba(212, 175, 55, 0.18);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.delivery-order-logs-header h1 {
  margin: 0 0 6px 0;
  font-size: 28px;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.delivery-order-logs-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
}

.delivery-log-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  padding: 22px;
  border-radius: 18px;
  background: rgba(12, 12, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.08);
}

.filter-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 6px;
}

.filter-button {
  padding: 10px 18px;
  border-radius: 12px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.filter-button.apply {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.35);
}

.filter-button.clear {
  background: rgba(255, 255, 255, 0.08);
  color: #f5f5f5;
}

.filter-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-group label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.filter-group input,
.filter-group select {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 18, 38, 0.9);
  color: #f5f5f5;
  font-size: 13px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.filter-group input:focus,
.filter-group select:focus {
  outline: none;
  border-color: rgba(229, 228, 226, 0.4);
  box-shadow: 0 0 0 2px rgba(229, 228, 226, 0.15);
}

.delivery-log-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.metric-card {
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(34, 34, 64, 0.9));
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.metric-card span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-card strong {
  font-size: 22px;
  color: var(--accent-secondary);
}

.delivery-log-table {
  background: rgba(12, 12, 26, 0.92);
  border-radius: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.delivery-log-row {
  display: grid;
  grid-template-columns: 1.2fr 1.3fr 1fr 0.8fr 0.8fr 0.6fr 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(18, 18, 38, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.delivery-log-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.delivery-log-head {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.delivery-log-empty {
  padding: 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

.primary {
  font-weight: 600;
  font-size: 13px;
}

.secondary {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.status-badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
}

.status-delivered {
  background: rgba(0, 255, 163, 0.15);
  color: #00ffa3;
  border: 1px solid rgba(0, 255, 163, 0.3);
}

.status-completed {
  background: rgba(229, 228, 226, 0.15);
  color: var(--accent-secondary);
  border: 1px solid rgba(229, 228, 226, 0.3);
}

.status-cancelled {
  background: rgba(255, 99, 99, 0.15);
  color: #ff6b6b;
  border: 1px solid rgba(255, 99, 99, 0.3);
}

@media (max-width: 900px) {
  .delivery-log-row {
    grid-template-columns: 1fr 1fr;
  }

  .delivery-log-head {
    display: none;
  }
}
/* ========================================
   Delivery Deals Management Page
   Dark nightlife theme matching GAS admin
   ======================================== */

.deals-page {
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

/* Toast Messages */
.toast-message {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  z-index: 9999;
  animation: slideIn 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.toast-success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(5, 150, 105, 0.9));
  color: #fff;
  border: 1px solid rgba(16, 185, 129, 0.5);
}

.toast-error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(185, 28, 28, 0.9));
  color: #fff;
  border: 1px solid rgba(239, 68, 68, 0.5);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Page Header */
.deals-page .page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.deals-page .page-header h1 {
  margin: 0;
  font-size: 2rem;
  color: #f5f7fb;
}

.page-subtitle {
  margin: 0.25rem 0 0;
  color: #9ca3af;
  font-size: 0.95rem;
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: rgba(18, 21, 44, 0.85);
  border: 1px solid rgba(123, 92, 255, 0.2);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: #f5f7fb;
}

.stat-label {
  font-size: 0.8rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-active .stat-value {
  color: #10b981;
}

.stat-offers .stat-value {
  color: #ef4444;
}

.stat-deals .stat-value {
  color: #f59e0b;
}

.stat-happy .stat-value {
  color: var(--accent-primary);
}

/* Filters Row */
.deals-page .filters-row {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(123, 92, 255, 0.08), rgba(94, 240, 255, 0.08));
  border: 1px solid rgba(123, 92, 255, 0.15);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.filter-group label {
  font-size: 0.75rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.deals-page .filter-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(94, 240, 255, 0.3);
  color: #f5f7fb;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  min-width: 160px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.deals-page .filter-select:hover {
  border-color: rgba(94, 240, 255, 0.6);
  background: rgba(94, 240, 255, 0.1);
}

.deals-page .filter-select:focus {
  outline: none;
  border-color: #5ef0ff;
  background: rgba(94, 240, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(94, 240, 255, 0.2);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(18, 21, 44, 0.5);
  border: 1px dashed rgba(123, 92, 255, 0.3);
  border-radius: 16px;
}

.empty-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.empty-state h3 {
  color: #f5f7fb;
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
}

.empty-state p {
  color: #9ca3af;
  margin: 0 0 1.5rem;
}

/* Deals Grid */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.deal-card {
  background: rgba(18, 21, 44, 0.85);
  border: 1px solid rgba(123, 92, 255, 0.2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.deal-card:hover {
  transform: translateY(-4px);
  border-color: rgba(94, 240, 255, 0.35);
  box-shadow: 0 24px 70px rgba(123, 92, 255, 0.25);
}

.deal-inactive {
  opacity: 0.55;
}

.deal-inactive:hover {
  opacity: 0.8;
}

/* Deal Image */
.deal-image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.deal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1);
}

.deal-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(123, 92, 255, 0.15), rgba(94, 240, 255, 0.1));
  font-size: 3rem;
}

.deal-type-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.badge-top-offer {
  background: rgba(239, 68, 68, 0.85);
  color: #fff;
  border: 1px solid rgba(239, 68, 68, 0.5);
}

.badge-best-deal {
  background: rgba(245, 158, 11, 0.85);
  color: #fff;
  border: 1px solid rgba(245, 158, 11, 0.5);
}

.badge-happy-hour {
  background: rgba(139, 92, 246, 0.85);
  color: #fff;
  border: 1px solid rgba(139, 92, 246, 0.5);
}

.badge-promo {
  background: rgba(16, 185, 129, 0.85);
  color: #fff;
  border: 1px solid rgba(16, 185, 129, 0.5);
}

.deal-inactive-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(75, 85, 99, 0.9);
  color: #d1d5db;
  border: 1px solid rgba(107, 114, 128, 0.5);
}

/* Deal Content */
.deal-content {
  padding: 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.deal-title {
  margin: 0;
  font-size: 1.2rem;
  color: #f5f7fb;
  font-weight: 700;
}

.deal-department {
  margin: 0;
  color: #9ca3af;
  font-size: 0.85rem;
}

.deal-description {
  margin: 0;
  color: #9ca3af;
  font-size: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pricing */
.deal-pricing {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.discount-badge {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 800;
}

.original-price {
  color: #6b7280;
  text-decoration: line-through;
  font-size: 0.9rem;
}

.discounted-price {
  color: #10b981;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Validity */
.deal-validity {
  margin-top: 0.25rem;
}

.deal-validity span {
  color: #6b7280;
  font-size: 0.8rem;
}

.deal-sort {
  color: #6b7280;
  font-size: 0.78rem;
}

/* Card Actions */
.deal-actions {
  padding: 0.75rem 1.5rem 1rem;
  display: flex;
  gap: 0.5rem;
  border-top: 1px solid rgba(123, 92, 255, 0.1);
}

.btn-icon {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(123, 92, 255, 0.3);
}

.btn-toggle {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.btn-activate {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.1);
}

.btn-activate:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
}

.btn-deactivate {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.1);
}

.btn-deactivate:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.5);
}

.btn-edit:hover {
  border-color: rgba(94, 240, 255, 0.4);
  background: rgba(94, 240, 255, 0.1);
}

.btn-duplicate:hover {
  border-color: rgba(123, 92, 255, 0.4);
  background: rgba(123, 92, 255, 0.1);
}

.btn-delete:hover {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.15);
}

/* ========================================
   Modal
   ======================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-content {
  background: linear-gradient(135deg, #12152c, #1a1e3d);
  border: 1px solid rgba(123, 92, 255, 0.3);
  border-radius: 20px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(123, 92, 255, 0.15);
}

.modal-header h2 {
  margin: 0;
  color: #f5f7fb;
  font-size: 1.3rem;
}

.modal-close {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  transition: all 0.2s;
}

.modal-close:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* Form */
.deal-form {
  padding: 1.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  color: #d1d5db;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(94, 240, 255, 0.2);
  color: #f5f7fb;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #5ef0ff;
  background: rgba(94, 240, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(94, 240, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #6b7280;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group select option {
  background: #1a1e3d;
  color: #f5f7fb;
}

/* Row layouts */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

/* Deal Type Selector */
.deal-type-selector {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.type-btn {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #d1d5db;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.85rem;
  font-weight: 500;
}

.type-btn:hover {
  border-color: rgba(123, 92, 255, 0.4);
  background: rgba(123, 92, 255, 0.1);
}

.type-btn.active {
  background: linear-gradient(120deg, rgba(94, 240, 255, 0.15), rgba(123, 92, 255, 0.2));
  border-color: rgba(123, 92, 255, 0.6);
  color: #5ef0ff;
  box-shadow: 0 4px 20px rgba(123, 92, 255, 0.2);
}

/* Image Upload */
.image-upload-area {
  border: 2px dashed rgba(123, 92, 255, 0.3);
  border-radius: 12px;
  overflow: hidden;
  min-height: 120px;
}

.upload-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  cursor: pointer;
  color: #9ca3af;
  font-size: 1rem;
  transition: all 0.2s;
}

.upload-placeholder:hover {
  background: rgba(123, 92, 255, 0.08);
  color: #5ef0ff;
}

.image-preview-wrapper {
  position: relative;
}

.image-preview {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  display: block;
}

.btn-remove-image {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Toggle Switch */
.toggle-switch {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  border: 1.5px solid rgba(107, 114, 128, 0.3);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.3s;
}

.toggle-switch.active {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
}

.toggle-knob {
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #4b5563;
  position: relative;
  transition: background 0.3s;
}

.toggle-knob::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  left: 2px;
  transition: transform 0.3s;
}

.toggle-switch.active .toggle-knob {
  background: #10b981;
}

.toggle-switch.active .toggle-knob::after {
  transform: translateX(16px);
}

.toggle-label {
  font-size: 0.9rem;
  color: #d1d5db;
  font-weight: 500;
}

/* Form actions */
.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(123, 92, 255, 0.1);
}

.btn-cancel {
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  border: 1px solid rgba(107, 114, 128, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: #9ca3af;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f5f7fb;
}

.deals-page .btn-primary {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(120deg, #5ef0ff, #7b5cff);
  color: #0a0b1a;
  border: 1px solid #7b5cff;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 10px 40px rgba(94, 240, 255, 0.25);
}

.deals-page .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 50px rgba(123, 92, 255, 0.35);
}

.deals-page .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Loading */
.deals-page .loading {
  text-align: center;
  padding: 4rem;
  color: #9ca3af;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(123, 92, 255, 0.3);
  border-top-color: #7b5cff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .deals-page .page-header {
    flex-direction: column;
    gap: 1rem;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .deals-grid {
    grid-template-columns: 1fr;
  }

  .form-row-2,
  .form-row-3 {
    grid-template-columns: 1fr;
  }

  .deal-form {
    padding: 1rem 1.25rem 1.5rem;
  }

  .modal-content {
    max-width: 95%;
  }
}
.quick-links-page {
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.quick-links-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.quick-links-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #f0f0f0;
  margin: 0;
}

.quick-links-header p {
  color: #888;
  font-size: 0.9rem;
  margin: 4px 0 0 0;
}

.btn-add {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: var(--gradient-accent);
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-add:hover {
  opacity: 0.9;
}

/* Preview Row */
.preview-section {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-secondary));
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid #2a2a4a;
}

.preview-section h3 {
  color: var(--accent-primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 16px 0;
}

.preview-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.preview-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 72px;
}

.preview-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border: 1px solid #3a3a5a;
  background: #252545;
  color: #d4d4e8;
}

.preview-icon.active {
  background: var(--gradient-accent);
  border-color: #a855f7;
  color: white;
}

.preview-item span {
  font-size: 0.72rem;
  color: #999;
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Table */
.quick-links-table-wrap {
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid #2a2a4a;
  overflow: hidden;
}

.quick-links-table {
  width: 100%;
  border-collapse: collapse;
}

.quick-links-table thead th {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  border-bottom: 1px solid #2a2a4a;
  background: #151528;
}

.quick-links-table tbody tr {
  border-bottom: 1px solid #1f1f3a;
  transition: background 0.15s;
}

.quick-links-table tbody tr:hover {
  background: #1f1f3a;
}

.quick-links-table td {
  padding: 12px 16px;
  font-size: 0.9rem;
  color: #d4d4e8;
  vertical-align: middle;
}

.icon-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: #252545;
  border: 1px solid #3a3a5a;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}

.status-badge.active {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.status-badge.disabled {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.actions-cell {
  display: flex;
  gap: 6px;
}

.btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #3a3a5a;
  background: transparent;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.15s;
}

.btn-icon:hover {
  background: #252545;
  color: #d4d4e8;
}

.btn-icon.danger:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.btn-icon.up:hover,
.btn-icon.down:hover {
  background: rgba(124, 58, 237, 0.15);
  color: #a855f7;
  border-color: rgba(124, 58, 237, 0.3);
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid #2a2a4a;
  width: 90%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 28px;
}

.modal-content h2 {
  color: #f0f0f0;
  margin: 0 0 20px 0;
  font-size: 1.3rem;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  color: #aaa;
  font-size: 0.82rem;
  margin-bottom: 6px;
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #3a3a5a;
  background: #151528;
  color: #f0f0f0;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent-primary);
}

.icon-selector {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.icon-option {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  border: 2px solid #3a3a5a;
  background: #151528;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.15s;
}

.icon-option:hover {
  background: #252545;
  color: #d4d4e8;
}

.icon-option.selected {
  border-color: #a855f7;
  background: rgba(124, 58, 237, 0.2);
  color: #a855f7;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.toggle-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #3a3a5a;
  border-radius: 12px;
  transition: background 0.2s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--accent-primary);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  justify-content: flex-end;
}

.btn-cancel {
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid #3a3a5a;
  background: transparent;
  color: #999;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-cancel:hover {
  background: #252545;
}

.btn-save {
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  background: var(--gradient-accent);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-save:hover {
  opacity: 0.9;
}

.btn-save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Toast */
.action-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  border-radius: 10px;
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 1100;
  animation: slideUp 0.3s ease;
}

.action-toast.success {
  background: linear-gradient(135deg, #059669, #10b981);
}

.action-toast.error {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Drag handle */
.drag-handle {
  cursor: grab;
  color: #555;
  font-size: 1rem;
}

.drag-handle:active {
  cursor: grabbing;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #888;
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.empty-state p {
  font-size: 1rem;
  margin: 4px 0;
}

/* Responsive */
@media (max-width: 768px) {
  .quick-links-page {
    padding: 16px;
  }

  .quick-links-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .quick-links-table-wrap {
    overflow-x: auto;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .icon-selector {
    grid-template-columns: repeat(5, 1fr);
  }
}
.audit-logs-page {
  max-width: 1600px;
  margin: 0 auto;
  padding: 2rem;
  background: linear-gradient(135deg, #0f0f1e 0%, var(--bg-secondary) 100%);
  min-height: 100vh;
  color: #f5f5f5;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Header Section */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.header-title h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #00d4ff 0%, #6b5bfd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-title .subtitle {
  margin: 0.5rem 0 0 0;
  font-size: 1rem;
  color: #aaa;
  font-weight: 400;
}

.page-header h1 {
  margin: 0;
  font-size: 2rem;
  color: var(--bg-secondary);
}

.filter-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}

.filter-btn {
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #aaa;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.filter-btn:hover {
  background: rgba(107, 91, 253, 0.1);
  border-color: rgba(107, 91, 253, 0.5);
  color: #6b5bfd;
}

.filter-btn.active {
  background: linear-gradient(135deg, rgba(107, 91, 253, 0.3) 0%, rgba(0, 212, 255, 0.3) 100%);
  border-color: rgba(107, 91, 253, 0.8);
  color: #f5f5f5;
  box-shadow: 0 0 20px rgba(107, 91, 253, 0.3);
}

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  color: #aaa;
  font-size: 1.1rem;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(107, 91, 253, 0.2);
  border-top: 4px solid #6b5bfd;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: #777;
  font-size: 1.1rem;
  margin-top: 2rem;
}

.logs-table {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: #f8f9fa;
}

th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--bg-secondary);
  border-bottom: 2px solid #e0e0e0;
}

td {
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

tbody tr:hover {
  background: #f8f9fa;
}

/* Logs Container */
.logs-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Log Card */
.log-card {
  background: rgba(255, 255, 255, 0.03);
  border-left: 4px solid #6b5bfd;
  border-radius: 12px;
  overflow: hidden;
  padding: 1.5rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.log-card:hover {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(107, 91, 253, 0.2);
  transform: translateY(-4px);
}

.log-card.log-role_management {
  border-left-color: #6b5bfd;
}

.log-card.log-reservations {
  border-left-color: #00d4ff;
}

.log-card.log-security {
  border-left-color: #ff006e;
}

.log-card.log-financial {
  border-left-color: #1db854;
}

.log-card.log-system {
  border-left-color: #ffa500;
}

.mono {
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  color: #666;
}

/* Log Header */
.log-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.log-title {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
}

.log-icon {
  font-size: 1.8rem;
  min-width: 2rem;
  margin-top: 0.25rem;
}

.log-info h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.05rem;
  color: #f5f5f5;
  font-weight: 600;
}

.log-action-badge {
  display: inline-block;
  background: rgba(107, 91, 253, 0.2);
  color: #6b5bfd;
  padding: 0.25rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.log-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  text-align: right;
}

.log-time {
  color: #999;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

/* Log Details */
.log-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-item.full-width {
  grid-column: 1 / -1;
}

.detail-label {
  font-size: 0.75rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.detail-value {
  font-size: 0.95rem;
  color: #e8e8e8;
  font-weight: 500;
  word-break: break-word;
}

.detail-value.highlight-amount {
  color: #1db854;
  font-weight: 700;
  font-size: 1rem;
}

.role-badge {
  display: inline-block;
  background: rgba(107, 91, 253, 0.15);
  color: #6b5bfd;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-weight: 600;
  width: fit-content;
}

.action-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
/* Zoom Controls */
.zoom-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.zoom-btn {
  background: rgba(107, 91, 253, 0.2);
  border: 1px solid rgba(107, 91, 253, 0.5);
  color: #6b5bfd;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.zoom-btn:hover {
  background: rgba(107, 91, 253, 0.3);
  border-color: rgba(107, 91, 253, 0.8);
  transform: translateY(-2px);
}

.zoom-btn.reset {
  background: rgba(255, 255, 255, 0.1);
  color: #f5f5f5;
  border-color: rgba(255, 255, 255, 0.2);
}

.zoom-btn.reset:hover {
  background: rgba(255, 255, 255, 0.15);
}

.zoom-value {
  font-weight: 600;
  color: #6b5bfd;
  min-width: 3rem;
  text-align: center;
}

/* Filter Section */
.filter-section {
  margin-bottom: 2.5rem;
}

.filter-section h3 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .audit-logs-page {
    padding: 1.5rem;
  }

  .page-header {
    flex-direction: column;
    gap: 1.5rem;
  }

  .zoom-controls {
    width: 100%;
    justify-content: center;
  }

  .filter-buttons {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .log-details {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 768px) {
  .audit-logs-page {
    padding: 1rem;
  }

  .page-header {
    padding-bottom: 1.5rem;
  }

  .header-title h1 {
    font-size: 1.8rem;
  }

  .header-title .subtitle {
    font-size: 0.85rem;
  }

  .filter-buttons {
    grid-template-columns: repeat(2, 1fr);
  }

  .log-header {
    flex-direction: column;
    gap: 1rem;
  }

  .log-meta {
    align-items: flex-start;
  }

  .log-details {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .detail-label {
    font-size: 0.7rem;
  }

  .detail-value {
    font-size: 0.9rem;
  }

  .zoom-controls {
    padding: 0.5rem 0.75rem;
  }

  .zoom-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .audit-logs-page {
    padding: 0.75rem;
  }

  .header-title h1 {
    font-size: 1.5rem;
  }

  .filter-buttons {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .log-icon {
    font-size: 1.5rem;
  }

  .log-info h4 {
    font-size: 0.95rem;
  }

  .logs-container {
    gap: 1rem;
  }

  .log-card {
    padding: 1rem;
  }
}

/* Scrollbar Styling */
.logs-container::-webkit-scrollbar {
  width: 8px;
}

.logs-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.logs-container::-webkit-scrollbar-thumb {
  background: rgba(107, 91, 253, 0.4);
  border-radius: 4px;
}

.logs-container::-webkit-scrollbar-thumb:hover {
  background: rgba(107, 91, 253, 0.6);
}
.users-roles-page {
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.page-header h1 {
  margin: 0;
  font-size: 2rem;
  color: #f5f7fb;
}

.btn-primary {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(120deg, #5ef0ff, #7b5cff);
  color: #0a0b1a;
  border: 1px solid #7b5cff;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.loading {
  text-align: center;
  padding: 3rem;
  color: #9ca3af;
}

.users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.user-card {
  background: rgba(18, 21, 44, 0.85);
  border: 1px solid rgba(123, 92, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform 0.2s, border-color 0.2s;
}

.user-card:hover {
  transform: translateY(-4px);
  border-color: rgba(94, 240, 255, 0.35);
}

.user-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.user-header h3 {
  margin: 0;
  color: #f5f7fb;
  font-size: 1.1rem;
}

.badge {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge.super {
  background: linear-gradient(120deg, rgba(94, 240, 255, 0.2), rgba(123, 92, 255, 0.2));
  color: #5ef0ff;
  border: 1px solid rgba(94, 240, 255, 0.4);
}

.user-email,
.user-role,
.user-dept {
  margin: 0.35rem 0;
  color: #9ca3af;
  font-size: 0.9rem;
}

.btn-delete {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  width: 100%;
  background: rgba(255, 99, 132, 0.12);
  color: #ff6384;
  border: 1px solid rgba(255, 99, 132, 0.3);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-delete:hover {
  background: rgba(255, 99, 132, 0.2);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 17, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal {
  background: rgba(18, 21, 44, 0.9);
  border: 1px solid rgba(123, 92, 255, 0.25);
  border-radius: 18px;
  padding: 1.75rem;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal h2 {
  margin: 0 0 1.25rem;
  color: #f5f7fb;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
  color: #e5e7eb;
  font-size: 0.95rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #f5f7fb;
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: rgba(94, 240, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(94, 240, 255, 0.15);
}

.form-group.checkbox {
  display: flex;
  align-items: center;
}

.form-group.checkbox label {
  display: flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
}

.form-group.checkbox input {
  width: auto;
  margin-right: 0.5rem;
  cursor: pointer;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-cancel,
.btn-submit {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cancel {
  background: rgba(255, 255, 255, 0.04);
  color: #e5e7eb;
}

.btn-submit {
  background: linear-gradient(120deg, #5ef0ff, #7b5cff);
  color: #0a0b1a;
}

.btn-cancel:hover,
.btn-submit:hover {
  transform: translateY(-2px);
}
.permission-management-page {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: #888;
  font-size: 1rem;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid #2a2a3e;
}

.tab {
  padding: 1rem 2rem;
  background: transparent;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
}

.tab:hover {
  color: var(--accent-secondary);
}

.tab.active {
  color: var(--accent-secondary);
  border-bottom-color: var(--accent-secondary);
}

/* Alerts */
.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.alert-error {
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.3);
  color: #FF3B30;
}

.alert-success {
  background: rgba(52, 199, 89, 0.1);
  border: 1px solid rgba(52, 199, 89, 0.3);
  color: #34C759;
  white-space: pre-line;
}

/* Search Section */
.search-box {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.search-box input {
  flex: 1;
  padding: 1rem;
  background: #2a2a3e;
  border: 2px solid #3a3a4e;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent-secondary);
}

.search-box button {
  padding: 1rem 2rem;
  background: var(--gradient-accent);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

.search-box button:hover {
  transform: translateY(-2px);
}

.search-box button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* User Card */
.user-card {
  background: #1e1e2e;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.user-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #2a2a3e;
}

.user-info h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.email {
  color: #888;
  margin-bottom: 1rem;
}

.role-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--gradient-accent);
  border-radius: 20px;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  margin-right: 0.5rem;
}

.dept-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 149, 0, 0.2);
  border: 1px solid rgba(255, 149, 0, 0.5);
  border-radius: 20px;
  color: #FF9500;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Preset Roles */
.preset-roles-section {
  margin-bottom: 2rem;
}

.preset-roles-section h4 {
  color: #fff;
  margin-bottom: 1rem;
}

.preset-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.preset-btn {
  padding: 1rem 1.5rem;
  border: 2px solid;
  border-radius: 8px;
  background: transparent;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.preset-btn.super-admin {
  color: #FFD700;
  border-color: #FFD700;
}

.preset-btn.super-admin:hover {
  background: rgba(255, 215, 0, 0.1);
}

.preset-btn.admin {
  color: var(--accent-secondary);
  border-color: var(--accent-secondary);
}

.preset-btn.admin:hover {
  background: rgba(229, 228, 226, 0.1);
}

.preset-btn.manager {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.preset-btn.manager:hover {
  background: rgba(212, 175, 55, 0.1);
}

.preset-btn.security {
  color: #34C759;
  border-color: #34C759;
}

.preset-btn.security:hover {
  background: rgba(52, 199, 89, 0.1);
}

/* Custom Role */
.custom-role-section {
  margin-bottom: 2rem;
}

.custom-role-section h4 {
  color: #fff;
  margin-bottom: 1rem;
}

.custom-role-input {
  width: 100%;
  padding: 1rem;
  background: #2a2a3e;
  border: 2px solid #3a3a4e;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
}

.custom-role-input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

/* Department Selection */
.department-section {
  margin-bottom: 2rem;
}

.department-section h4 {
  color: #fff;
  margin-bottom: 1rem;
}

.department-select {
  width: 100%;
  padding: 1rem;
  background: #2a2a3e;
  border: 2px solid #3a3a4e;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

.department-select:focus {
  outline: none;
  border-color: var(--accent-secondary);
}

/* Permissions Matrix */
.permissions-matrix {
  margin-bottom: 2rem;
}

.permissions-matrix h4 {
  color: #fff;
  margin-bottom: 1rem;
}

.matrix-table {
  background: #2a2a3e;
  border-radius: 8px;
  overflow: hidden;
}

.matrix-header,
.matrix-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 0.5fr;
  gap: 1rem;
  padding: 1rem;
  align-items: center;
}

.matrix-header {
  background: var(--bg-secondary);
  color: var(--accent-secondary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.matrix-row {
  border-bottom: 1px solid #3a3a4e;
}

.matrix-row:last-child {
  border-bottom: none;
}

.resource-col {
  color: #fff;
  text-transform: capitalize;
}

.action-col {
  text-align: center;
}

.action-col input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--accent-secondary);
}

.btn-mini {
  padding: 0.3rem 0.8rem;
  background: #3a3a4e;
  border: none;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

.btn-mini:hover {
  background: #4a4a5e;
}

/* Menu Visibility */
.menu-visibility-section {
  margin-bottom: 2rem;
}

.menu-visibility-section h4 {
  color: #fff;
  margin-bottom: 1rem;
}

.menu-toggles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.menu-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: #2a2a3e;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.menu-toggle:hover {
  background: #3a3a4e;
}

.menu-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent-secondary);
}

.menu-toggle span {
  color: #fff;
  text-transform: capitalize;
  font-size: 0.9rem;
}

/* Additional Options */
.additional-options {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.option-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #2a2a3e;
  border-radius: 8px;
  cursor: pointer;
}

.option-toggle input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--accent-primary);
}

.option-toggle span {
  color: #fff;
  font-size: 1rem;
}

/* Save Button */
.btn-save {
  width: 100%;
  padding: 1.2rem;
  background: var(--gradient-accent);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-save:hover {
  transform: translateY(-2px);
}

.btn-save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.warning-text {
  color: #FF9500;
  text-align: center;
  margin-top: 1rem;
  font-weight: 500;
}

/* All Users Grid */
.users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.user-card-mini {
  background: #1e1e2e;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.user-header-mini {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 0.75rem;
}

.user-header-mini h4 {
  color: #fff;
  font-size: 1.1rem;
}

.role-badge-mini {
  padding: 0.3rem 0.6rem;
  background: var(--gradient-accent);
  border-radius: 12px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

.email-mini {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.dept-mini {
  color: #FF9500;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.btn-edit-mini {
  width: 100%;
  padding: 0.75rem;
  background: #2a2a3e;
  border: 2px solid #3a3a4e;
  border-radius: 6px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-edit-mini:hover {
  border-color: var(--accent-secondary);
  background: rgba(229, 228, 226, 0.1);
}

/* Guide Section */
.guide-section {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1.5rem;
}

.guide-card {
  background: #1e1e2e;
  border-radius: 12px;
  padding: 1.5rem;
  border-left: 4px solid var(--accent-secondary);
}

.guide-card.important {
  border-left-color: #FF3B30;
}

.guide-card h3 {
  color: #fff;
  margin-bottom: 1rem;
}

.guide-card ul {
  list-style: none;
  padding: 0;
}

.guide-card li {
  color: #aaa;
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.guide-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 6px;
  height: 6px;
  background: var(--accent-secondary);
  border-radius: 50%;
}

/* Responsive */
@media (max-width: 768px) {
  .matrix-header,
  .matrix-row {
    grid-template-columns: 1.5fr 0.8fr 0.8fr 0.8fr 0.8fr 0.5fr;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
  }

  .preset-buttons {
    flex-direction: column;
  }

  .users-grid,
  .guide-section {
    grid-template-columns: 1fr;
  }
}
/* RoleManagementPage.css - Phase 2 RBAC UI */

.role-management-page {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  gap: 1rem;
}

.page-header h1 {
  font-size: 2rem;
  margin: 0 0 0.5rem 0;
  color: #fff;
}

.page-header p {
  color: #aaa;
  margin: 0;
}

.btn-create-role {
  background: var(--gradient-accent);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.95rem;
}

.btn-create-role:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

/* ROLES GRID */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.role-card {
  background: rgba(30, 30, 46, 0.8);
  border: 2px solid;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 220px;
}

.role-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.role-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.role-card-header > div {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.role-card-header h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  color: #fff;
}

.role-level-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #000;
  margin-right: 0.5rem;
}

.system-badge {
  background: rgba(229, 228, 226, 0.2);
  color: var(--accent-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid var(--accent-secondary);
}

.role-actions {
  display: flex;
  gap: 0.5rem;
}

.role-actions button {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
  min-width: 36px;
  min-height: 36px;
}

.role-actions button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.role-description {
  color: #aaa;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
  min-height: 42px;
}

.role-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  justify-content: center;
}

.stat-icon {
  font-size: 1.1rem;
}

.role-flag {
  background: rgba(255, 215, 0, 0.1);
  color: #FFD700;
  padding: 0.5rem;
  border-radius: 6px;
  font-size: 0.85rem;
  text-align: center;
  margin-top: 0.5rem;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

/* View Details Button */
.btn-view-details {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid;
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.9rem;
  margin-top: auto;
}

.btn-view-details:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

/* Page Header Badge */
.page-header-badge {
  background: rgba(229, 228, 226, 0.2);
  color: var(--accent-secondary);
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid var(--accent-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-header-badge span {
  white-space: nowrap;
}

/* Role Card Header Title with Icon */
.role-card-header h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.modal-content {
  background: var(--bg-secondary);
  border-radius: 16px;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow: auto;
  border: 2px solid rgba(212, 175, 55, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
  margin: 0;
  color: #fff;
  font-size: 1.5rem;
}

.modal-header button {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-header button:hover {
  background: rgba(255, 0, 0, 0.3);
}

.modal-body {
  padding: 1.5rem;
}

.form-section {
  margin-bottom: 2rem;
}

.form-section h3 {
  color: #fff;
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: #aaa;
  font-size: 0.9rem;
  font-weight: 600;
}

input[type="text"],
input[type="number"],
select,
textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(212, 175, 55, 0.1);
}

input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* MENU GRID */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.menu-grid.read-only {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.menu-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #777;
  font-size: 0.85rem;
  font-weight: 600;
}

.menu-chip.active {
  color: var(--accent-secondary);
  border-color: rgba(229, 228, 226, 0.4);
  background: rgba(229, 228, 226, 0.08);
}

.role-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  color: #ddd;
  font-size: 0.95rem;
}

.role-details-description {
  margin-top: 0.75rem;
  color: #aaa;
}

.checkbox-label {
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.checkbox-label:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--accent-primary);
}

.checkbox-label input[type="checkbox"] {
  cursor: pointer;
}

.checkbox-label span {
  color: #fff;
  font-weight: 500;
  font-size: 0.9rem;
}

/* PERMISSION MATRIX */
.permission-matrix {
  overflow-x: auto;
}

.permission-matrix table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  overflow: hidden;
}

.permission-matrix th {
  background: rgba(212, 175, 55, 0.2);
  color: var(--accent-primary);
  padding: 1rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.permission-matrix td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff;
  text-align: center;
}

.permission-matrix tr:hover {
  background: rgba(212, 175, 55, 0.05);
}

.permission-matrix td:first-child {
  text-align: left;
  font-weight: 600;
}

.permission-matrix input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--accent-primary);
}

/* MODAL FOOTER */
.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.btn-primary,
.btn-secondary {
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--gradient-accent);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* LOADING STATE */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  color: #aaa;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(212, 175, 55, 0.2);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .role-management-page {
    padding: 1.5rem;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-create-role {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .roles-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .permission-matrix {
    font-size: 0.85rem;
  }

  .modal-content {
    width: 95%;
    max-height: 95vh;
  }
}
/* UserManagementPage.css */

.user-management-page {
  padding: 2rem;
  max-width: 1600px;
  margin: 0 auto;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 2rem;
  margin: 0 0 0.5rem 0;
  color: #fff;
}

.page-header p {
  color: #aaa;
  margin: 0;
}

.btn-refresh {
  background: var(--gradient-accent);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-refresh:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(229, 228, 226, 0.3);
}

/* FILTERS */
.filters-bar {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 1rem;
  align-items: end;
  background: rgba(30, 30, 46, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: #aaa;
  font-size: 0.85rem;
}

.filter-field label {
  font-weight: 600;
  color: #bdbdbd;
}

.filter-field input,
.filter-field select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.filter-field input:focus,
.filter-field select:focus {
  outline: none;
  border-color: var(--accent-secondary);
  background: rgba(229, 228, 226, 0.08);
}

.btn-clear-filters {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.65rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
  min-width: 90px;
}

.btn-clear-filters:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* STATS BAR */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: rgba(30, 30, 46, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-secondary);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #aaa;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* USERS TABLE */
.users-table-container {
  background: rgba(30, 30, 46, 0.8);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.users-table {
  width: 100%;
  border-collapse: collapse;
}

.users-table thead {
  background: rgba(212, 175, 55, 0.2);
}

.users-table th {
  padding: 1rem;
  text-align: left;
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.users-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff;
}

.users-table tbody tr:hover {
  background: rgba(212, 175, 55, 0.05);
}

.user-email {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge-super-admin {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #000;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
}

.badge-verified {
  margin-left: 0.4rem;
  font-size: 0.85rem;
}

.badge-unverified {
  margin-left: 0.4rem;
  background: rgba(255, 165, 0, 0.15);
  color: #FFA500;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 600;
  border: 1px solid rgba(255, 165, 0, 0.3);
}

.role-badge {
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  display: inline-block;
}

.no-role {
  color: #888;
  font-style: italic;
}

.gas-coins {
  font-weight: 700;
  color: #FFD700;
}

.actions-cell {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-action {
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-assign {
  background: var(--gradient-accent);
  color: white;
}

.btn-assign:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 228, 226, 0.3);
}

.btn-verify {
  background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
  color: white;
}

.btn-verify:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-verify:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-revoke {
  background: rgba(255, 100, 100, 0.2);
  color: #FF6464;
  border: 1px solid #FF6464;
}

.btn-revoke:hover {
  background: rgba(255, 100, 100, 0.3);
}

.btn-delete {
  background: rgba(255, 0, 0, 0.2);
  color: #FF3366;
  border: 1px solid #FF3366;
}

.btn-delete:hover {
  background: rgba(255, 0, 0, 0.3);
  transform: scale(1.05);
}

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.modal-content {
  background: var(--bg-secondary);
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow: auto;
  border: 2px solid rgba(212, 175, 55, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
  margin: 0;
  color: #fff;
  font-size: 1.5rem;
}

.modal-header button {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-header button:hover {
  background: rgba(255, 0, 0, 0.3);
}

.modal-body {
  padding: 1.5rem;
}

.modal-body label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: #aaa;
  font-size: 0.9rem;
  font-weight: 600;
}

.modal-body select,
.modal-body input[type="text"] {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.modal-body select:focus,
.modal-body input:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(212, 175, 55, 0.1);
}

.checkbox-label {
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 215, 0, 0.1);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #FFD700;
}

.checkbox-label span {
  color: #FFD700;
  font-weight: 700;
}

.role-preview {
  background: rgba(229, 228, 226, 0.1);
  border: 1px solid rgba(229, 228, 226, 0.3);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.role-preview h4 {
  margin: 0 0 0.5rem 0;
  color: var(--accent-secondary);
}

.role-preview p {
  margin: 0.25rem 0;
  color: #fff;
  font-size: 0.9rem;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.btn-primary,
.btn-secondary {
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--gradient-accent);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* LOADING STATE */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  color: #aaa;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(212, 175, 55, 0.2);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .users-table {
    font-size: 0.85rem;
  }
  
  .users-table th,
  .users-table td {
    padding: 0.75rem;
  }
}

@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .btn-refresh {
    width: 100%;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .filters-bar {
    grid-template-columns: 1fr;
  }
  
  .users-table-container {
    overflow-x: auto;
  }
  
  .users-table {
    min-width: 800px;
  }
  
  .actions-cell {
    min-width: 150px;
  }
}

@media (max-width: 640px) {
  .stats-bar {
    grid-template-columns: 1fr;
  }

  .users-table thead {
    display: none;
  }

  .users-table,
  .users-table tbody,
  .users-table tr,
  .users-table td {
    display: block;
    width: 100%;
  }

  .users-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem 0;
  }

  .users-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    border-bottom: none;
    gap: 1rem;
  }

  .users-table td::before {
    content: attr(data-label);
    color: #aaa;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 0 0 110px;
  }

  .actions-cell {
    justify-content: flex-start;
  }

  .modal-footer {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}

/* MULTI-SELECT DEPARTMENTS */
.departments-multi-select {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  margin-top: 0.5rem;
}

.checkbox-dept {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border: 1px solid rgba(229, 228, 226, 0.2);
  border-radius: 4px;
  cursor: pointer;
  background: rgba(229, 228, 226, 0.05);
  transition: all 0.2s;
}

.checkbox-dept:hover {
  background: rgba(229, 228, 226, 0.1);
  border-color: rgba(229, 228, 226, 0.4);
}

.checkbox-dept input[type="checkbox"] {
  cursor: pointer;
  width: 18px;
  height: 18px;
  accent-color: var(--accent-secondary);
}

.checkbox-dept span {
  color: #fff;
  font-size: 0.9rem;
}

.checkbox-dept input[type="checkbox"]:checked {
  accent-color: #FFD700;
}
/* WALLET DETAILS - COLLAPSIBLE */
.wallet-cell {
  padding: 0.5rem 1rem !important;
}

.btn-expand-wallet {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #000;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-expand-wallet:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.wallet-details-row {
  background: rgba(212, 175, 55, 0.08) !important;
}

.wallet-details-row td {
  padding: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.wallet-details {
  padding: 1.5rem;
  background: rgba(30, 30, 46, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  margin: 0.5rem;
}

.wallet-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.wallet-info-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(229, 228, 226, 0.1);
  border-radius: 6px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wallet-info-item label {
  color: var(--accent-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wallet-info-item .value {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
}

.wallet-info-item .value.coins {
  color: #FFD700;
  font-size: 1.3rem;
}

.wallet-info-item .value.level {
  color: var(--accent-primary);
  text-transform: uppercase;
}

.wallet-info-item .value.complete {
  color: #4CAF50;
}

.wallet-info-item .value.incomplete {
  color: #FF6B6B;
}
/* ═══════════════════════════════════════════════════════════════
   GAS Admin — Theme Management Page
   ═══════════════════════════════════════════════════════════════ */

.theme-mgmt-page {
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 3rem;
}

/* ─── Loading ─── */
.theme-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  color: var(--text-muted);
  gap: 1rem;
}

.theme-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(212, 175, 55, 0.2);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── Header ─── */
.theme-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.theme-header h1 {
  margin: 0;
  font-size: 2rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.theme-subtitle {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.theme-header-right {
  text-align: right;
}

.current-theme-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  padding: 0.5rem 1rem;
  color: #e0e0e0;
  font-size: 0.9rem;
}

.badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}

.last-updated {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ─── Toast ─── */
.theme-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  animation: slideInRight 0.3s ease, fadeOut 0.4s ease 3.6s forwards;
  backdrop-filter: blur(12px);
}

.toast-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.toast-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(100px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeOut {
  to { opacity: 0; transform: translateY(-10px); }
}

/* ─── Tabs ─── */
.theme-tabs {
  display: flex;
  gap: 0.25rem;
  background: rgba(18, 21, 44, 0.6);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.theme-tab {
  flex: 1;
  min-width: fit-content;
  padding: 0.7rem 1.2rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  var(--text-primary)-space: nowrap;
}

.theme-tab:hover {
  color: #e0e0e0;
  background: rgba(255, 255, 255, 0.04);
}

.theme-tab.active {
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent-primary);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

/* ─── Themes Grid ─── */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.5rem;
}

/* ─── Theme Card ─── */
.theme-card {
  background: var(--bg-elevated, var(--bg-secondary));
  border: var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.theme-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.theme-card-active {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.12);
}

/* Preview banner */
.theme-card-preview {
  position: relative;
  height: 140px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.preview-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.preview-elements {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 1;
}

.preview-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.preview-circle.small {
  width: 20px;
  height: 20px;
}

.preview-bar {
  height: 8px;
  width: 80px;
  border-radius: 12px;
}

.preview-bar.short {
  width: 50px;
}

.active-ribbon {
  position: absolute;
  top: 14px;
  right: -30px;
  background: var(--gradient-accent);
  color: var(--text-primary);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 4px 40px;
  transform: rotate(45deg);
}

/* Card body */
.theme-card-body {
  padding: 1.25rem;
}

.theme-card-body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
  color: var(--text-primary);
}

@media (max-width: 900px) {
  .theme-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .theme-header-right {
    text-align: left;
  }

  .themes-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 600px) {
  .themes-grid {
    grid-template-columns: 1fr;
  }

  .theme-card-preview {
    height: 120px;
  }
}

.theme-desc {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Color swatches */
.color-swatches {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.swatch-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.swatch {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.swatch-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: capitalize;
}

/* Fonts */
.theme-fonts {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.font-tag {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 8px;
  border-radius: 12px;
}

.font-tag strong {
  color: var(--text-muted);
}

/* Tags */
.theme-tags {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.tag-chip {
  font-size: 0.7rem;
  color: var(--accent-primary);
  background: rgba(229, 228, 226, 0.1);
  border: 1px solid rgba(229, 228, 226, 0.2);
  padding: 2px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Apply button */
.btn-apply {
  width: 100%;
  padding: 12px 16px; /* align to 8dp grid */
  border: 1px solid var(--text-primary);
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  color: var(--text-primary);
}

.btn-apply:hover:not(:disabled) {
  background: var(--text-primary);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-apply:disabled {
  cursor: default;
  opacity: 0.5;
  border-color: var(--text-muted);
  color: var(--text-muted);
}

.btn-applied {
  background: var(--bg-secondary);
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
}

.btn-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--text-primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ─── Panel Section ─── */
.panel-section {
  background: var(--bg-elevated, var(--bg-secondary));
  border: var(--glass-border);
  border-radius: 12px;
  padding: 2rem;
}

.panel-intro {
  margin-bottom: 1.5rem;
}

.panel-intro h2 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  color: var(--text-primary);
}

.panel-intro p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Toggle */
.toggle-row {
  margin-bottom: 1.5rem;
}

.toggle-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #e0e0e0;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
}

.toggle-switch {
  width: 52px;
  height: 28px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-switch.on {
  background: rgba(212, 175, 55, 0.4);
  border-color: rgba(212, 175, 55, 0.6);
}

.toggle-knob {
  width: 22px;
  height: 22px;
  background: #e0e0e0;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.toggle-switch.on .toggle-knob {
  transform: translateX(24px);
  background: var(--accent-primary);
}

/* Config groups */
.config-group {
  margin-bottom: 1.25rem;
}

.config-group label {
  display: block;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.config-group select,
.config-group input[type="date"] {
  width: 100%;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.config-group select:focus,
.config-group input[type="date"]:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.config-group select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* Time slider */
.time-config {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.time-slider {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.time-slider input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  outline: none;
}

.time-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--accent-primary);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.time-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  color: var(--accent-primary);
  font-weight: 700;
  min-width: 50px;
  text-align: center;
}

/* Timeline visualization */
.timeline-viz {
  margin: 1.5rem 0;
}

.timeline-bar {
  display: flex;
  height: 32px;
  border-radius: 12px;
  overflow: hidden;
  gap: 1px;
}

.timeline-hour {
  flex: 1;
  transition: background 0.3s ease;
  cursor: pointer;
}

.timeline-hour:hover {
  opacity: 1 !important;
  filter: brightness(1.3);
}

.timeline-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Date range */
.date-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Seasonal preview */
.seasonal-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.seasonal-icon {
  font-size: 1.5rem;
}

/* Duration slider */
.duration-slider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.duration-slider input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  outline: none;
}

.duration-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--accent-primary);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.duration-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  color: var(--accent-primary);
  font-weight: 700;
  min-width: 70px;
  text-align: center;
}

.duration-presets {
  display: flex;
  gap: 0.5rem;
}

.duration-presets button {
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.duration-presets button:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.3);
  color: var(--accent-primary);
}

/* Transition demo */
.transition-demo {
  margin: 2rem 0;
}

.demo-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.demo-bar-container {
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
}

.demo-bar {
  height: 100%;
  width: 100%;
  background: var(--gradient-accent), #c084fc);
  border-radius: 12px;
  animation: demoSlide 2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes demoSlide {
  0%   { transform: scaleX(0); transform-origin: left; }
  50%  { transform: scaleX(1); transform-origin: left; }
  51%  { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* Save button */
.btn-save {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 320px;
  margin-top: 2rem;
  padding: 0.85rem 1.5rem;
  background: var(--gradient-accent);
  border: none;
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-save:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.4);
}

.btn-save:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .themes-grid {
    grid-template-columns: 1fr;
  }

  .theme-header {
    flex-direction: column;
  }

  .theme-header-right {
    text-align: left;
  }

  .time-config,
  .date-range {
    grid-template-columns: 1fr;
  }

  .theme-tabs {
    flex-wrap: nowrap;
  }

  .theme-tab {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
  }

  .panel-section {
    padding: 1.25rem;
  }

  .duration-presets {
    flex-wrap: wrap;
  }
}
.analytics-page {
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.analytics-page h1 {
  margin: 0 0 2rem;
  font-size: 2rem;
  color: #f5f7fb;
}

.loading {
  text-align: center;
  padding: 3rem;
  color: #9ca3af;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: rgba(18, 21, 44, 0.85);
  border: 1px solid rgba(123, 92, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  transition: transform 0.2s, border-color 0.2s;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(94, 240, 255, 0.35);
}

.stat-icon {
  font-size: 2.5rem;
}

.stat-content {
  flex: 1;
}

.stat-content h3 {
  margin: 0 0 0.25rem;
  font-size: 2rem;
  color: #5ef0ff;
}

.stat-content p {
  margin: 0 0 0.35rem;
  color: #f5f7fb;
  font-weight: 600;
}

.stat-sub {
  color: #9ca3af;
  font-size: 0.85rem;
}

.charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.chart-card {
  background: rgba(18, 21, 44, 0.85);
  border: 1px solid rgba(123, 92, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
}

.chart-card h2 {
  margin: 0 0 1rem;
  color: #f5f7fb;
  font-size: 1.25rem;
}

.dept-stats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dept-stat-row {
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

.dept-name {
  color: #f5f7fb;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.dept-metrics {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: #9ca3af;
}

.recent-events {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.event-row {
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.event-info strong {
  color: #f5f7fb;
}

.event-info span {
  font-size: 0.85rem;
  color: #9ca3af;
}

.event-date {
  font-size: 0.85rem;
  color: #5ef0ff;
}

@media (max-width: 1024px) {
  .charts-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
/* Transaction History Styles */

.transaction-history-container {
  padding: 24px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-secondary) 100%);
  border-radius: 16px;
  margin-top: 24px;
}

.transaction-history-container h2 {
  font-size: 28px;
  font-weight: 700;
  color: #F1F5F9;
  margin-bottom: 24px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Filters Section */
.filters-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
  background: rgba(30, 41, 59, 0.5);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-group label {
  font-size: 14px;
  font-weight: 600;
  color: #CBD5E1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-select,
.filter-input {
  padding: 10px 12px;
  background: var(--bg-secondary);
  border: 1px solid #334155;
  border-radius: 8px;
  color: #F1F5F9;
  font-size: 14px;
  transition: all 0.3s ease;
}

.filter-select:hover,
.filter-input:hover {
  border-color: #475569;
  background: var(--bg-secondary);
}

.filter-select:focus,
.filter-input:focus {
  outline: none;
  border-color: var(--accent-secondary);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.filter-select option {
  background: var(--bg-secondary);
  color: #F1F5F9;
}

.search-btn,
.refresh-btn {
  padding: 10px 16px;
  background: var(--gradient-accent) 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  align-self: flex-end;
}

.search-btn:hover:not(:disabled),
.refresh-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(6, 182, 212, 0.3);
}

.search-btn:disabled,
.refresh-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Table Wrapper */
.transactions-table-wrapper {
  overflow-x: auto;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.no-data {
  text-align: center;
  padding: 48px 24px;
  color: #94A3B8;
  font-size: 16px;
}

/* Transactions Table */
.transactions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.transactions-table thead {
  background: rgba(30, 41, 59, 0.8);
  border-bottom: 2px solid #334155;
  position: sticky;
  top: 0;
}

.transactions-table thead th {
  padding: 16px 12px;
  text-align: left;
  font-weight: 700;
  color: #CBD5E1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 12px;
}

.transaction-row {
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  transition: all 0.2s ease;
}

.transaction-row:hover {
  background: rgba(6, 182, 212, 0.05);
}

.transactions-table td {
  padding: 16px 12px;
  color: #E2E8F0;
}

.timestamp {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: #94A3B8;
  white-space: nowrap;
}

/* Type Badge */
.type-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 11px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Actor & Target Info */
.actor-info,
.target-info {
  font-size: 13px;
}

.actor-info div,
.target-info div {
  font-weight: 500;
  margin-bottom: 4px;
}

.actor-info small,
.target-info small {
  display: block;
  font-size: 11px;
}

/* Amount */
.amount {
  font-weight: 700;
  font-size: 14px;
  text-align: right;
}

/* Balance Change */
.balance-change {
  font-size: 12px;
  text-align: center;
}

.balance-change div {
  line-height: 1.6;
  color: #CBD5E1;
}

/* Status Badge */
.status-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
  text-transform: capitalize;
}

.status-badge.success {
  background: rgba(16, 185, 129, 0.2);
  color: #10B981;
  border: 1px solid #10B981;
}

.status-badge.pending {
  background: rgba(245, 158, 11, 0.2);
  color: #F59E0B;
  border: 1px solid #F59E0B;
}

.status-badge.failed {
  background: rgba(239, 68, 68, 0.2);
  color: #EF4444;
  border: 1px solid #EF4444;
}

/* Details Button */
.details-btn {
  padding: 6px 12px;
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.details-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-secondary) 100%);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  padding: 32px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-content h3 {
  font-size: 24px;
  font-weight: 700;
  color: #F1F5F9;
  margin-bottom: 24px;
}

/* Detail Grid */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.detail-item {
  background: rgba(30, 41, 59, 0.5);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.detail-item.full-width {
  grid-column: 1 / -1;
}

.detail-item label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.detail-item code {
  display: block;
  background: var(--bg-secondary);
  padding: 8px 12px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: var(--accent-secondary);
  word-break: break-all;
  margin-top: 8px;
}

.detail-item strong {
  color: #F1F5F9;
  font-size: 14px;
}

.detail-item small {
  display: block;
  color: #64748B;
  font-size: 12px;
  margin-top: 4px;
}

.detail-item pre {
  margin: 0 !important;
  max-height: 300px;
  font-size: 11px !important;
}

/* Close Modal Button */
.close-modal-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.close-modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(239, 68, 68, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
  .filters-section {
    grid-template-columns: 1fr;
  }

  .transactions-table thead th {
    padding: 12px 8px;
    font-size: 11px;
  }

  .transactions-table td {
    padding: 12px 8px;
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .transaction-history-container {
    padding: 16px;
  }

  .modal-content {
    padding: 24px;
    max-width: 95vw;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .type-badge,
  .status-badge {
    font-size: 10px;
    padding: 4px 8px;
  }
}
.wallet-management {
  padding: 2rem;
  max-width: 100%;
  background: #0a0a0a;
  min-height: 100vh;
}

.page-header {
  margin-bottom: 2rem;
}

.header-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Tab Navigation */
.tab-navigation {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  border-bottom: 2px solid #334155;
  padding-bottom: 0;
}

.tab-button {
  padding: 12px 24px;
  background: transparent;
  border: none;
  color: #94A3B8;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tab-button:hover {
  color: #CBD5E1;
}

.tab-button.active {
  color: var(--accent-secondary);
  border-bottom-color: var(--accent-secondary);
}

.header-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-title h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.subtitle {
  color: #888;
  font-size: 0.95rem;
  margin: 0;
}

.search-bar {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.search-input-wrapper {
  flex: 1;
  min-width: 300px;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #666;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  color: #fff;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.stats {
  display: flex;
  gap: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #1a1a1a;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
}

.stat-label {
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #667eea;
}

.table-container {
  background: #1a1a1a;
  border-radius: 16px;
  border: 1px solid #2a2a2a;
  overflow: hidden;
}

.wallet-table {
  width: 100%;
  border-collapse: collapse;
}

.wallet-table thead {
  background: #0f0f0f;
  border-bottom: 1px solid #2a2a2a;
}

.wallet-table th {
  padding: 1rem;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wallet-table tbody tr {
  border-bottom: 1px solid #2a2a2a;
  transition: background 0.2s;
}

.wallet-table tbody tr:hover {
  background: #222;
}

.wallet-table tbody tr.loading-row {
  opacity: 0.6;
  pointer-events: none;
}

.wallet-table td {
  padding: 1.25rem 1rem;
  color: #ddd;
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.user-name {
  font-weight: 600;
  color: #fff;
  font-size: 0.95rem;
}

.badge-tier {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-block;
}

.badge-tier.bronze {
  background: #cd7f32;
  color: white;
}

.badge-tier.silver {
  background: #c0c0c0;
  color: #333;
}

.badge-tier.gold {
  background: #ffd700;
  color: #333;
}

.badge-tier.diamond {
  background: #b9f2ff;
  color: #333;
}

.badge-tier.vip {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

/* Role badges */
.badge-role {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  font-weight: 600;
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.contact-cell {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.email {
  color: #ddd;
  font-size: 0.9rem;
}

.phone {
  color: #888;
  font-size: 0.85rem;
}

.status-badge {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-badge.active {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge.frozen {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-badge.no-wallet {
  background: rgba(107, 114, 128, 0.15);
  color: #6b7280;
  border: 1px solid rgba(107, 114, 128, 0.3);
}

.balance-cell,
.credit-cell {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.balance-cell .amount,
.credit-cell .amount {
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}

.balance-cell .consumed,
.credit-cell .received {
  font-size: 0.75rem;
  color: #888;
}

.no-data {
  color: #555;
  font-style: italic;
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  transform: translateY(-1px);
}

.btn-success {
  background: #22c55e;
  color: white;
}

.btn-success:hover:not(:disabled) {
  background: #16a34a;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-danger {
  background: #ef4444;
  color: white;
}

.btn-danger:hover:not(:disabled) {
  background: #dc2626;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-warning {
  background: #f59e0b;
  color: white;
}

.btn-warning:hover:not(:disabled) {
  background: #d97706;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-info {
  background: var(--gradient-accent);
  color: white;
}

.btn-info:hover:not(:disabled) {
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.btn-secondary {
  background: #374151;
  color: white;
}

.btn-secondary:hover:not(:disabled) {
  background: #4b5563;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #666;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: #1a1a1a;
  border-radius: 16px;
  border: 1px solid #2a2a2a;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #2a2a2a;
}

.modal-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  color: #888;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s;
}

.close-btn:hover {
  background: #2a2a2a;
  color: #fff;
}

.modal-body {
  padding: 1.5rem;
}

.user-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #0f0f0f;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.user-preview .user-avatar {
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.user-details strong {
  color: #fff;
  font-weight: 600;
}

.user-details span {
  color: #888;
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: #ddd;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.input,
.textarea {
  width: 100%;
  padding: 0.875rem;
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  color: #fff;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.textarea {
  resize: vertical;
  font-family: inherit;
}

.info-box {
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 10px;
  padding: 1rem;
}

.info-box p {
  color: #ddd;
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}

.info-box ul {
  margin: 0;
  padding-left: 1.5rem;
  color: #aaa;
}

.info-box li {
  margin-bottom: 0.25rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid #2a2a2a;
}

/* Loading State */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 1rem;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #2a2a2a;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-state p {
  color: #888;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 1200px) {
  .action-buttons {
    flex-direction: column;
  }
  
  .btn-sm {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .wallet-management {
    padding: 1rem;
  }
  
  .search-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .stats {
    justify-content: space-between;
  }
  
  .table-container {
    overflow-x: auto;
  }
  
  .wallet-table {
    min-width: 900px;
  }
}
.gas-coin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gas-coin-header {
  margin-bottom: 32px;
  text-align: center;
}

.gas-coin-header h1 {
  font-size: 32px;
  color: #fff;
  margin: 0 0 8px 0;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gas-coin-header p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin: 0;
}

/* Top Tabs */
.gas-coin-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

.gas-coin-tabs .tab {
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gas-coin-tabs .tab:hover {
  color: #fff;
  border-color: rgba(229, 228, 226, 0.6);
}

.gas-coin-tabs .tab.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(229, 228, 226, 0.25));
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 8px 18px rgba(212, 175, 55, 0.2);
}

/* Overview */
.gas-coin-overview {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.summary-card {
  background: linear-gradient(135deg, rgba(30, 30, 46, 0.85), rgba(42, 42, 62, 0.85));
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  backdrop-filter: blur(12px);
}

.summary-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.4), rgba(229, 228, 226, 0.35));
  color: #fff;
}

.summary-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  margin: 0;
}

.summary-value {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin: 4px 0 0 0;
}

/* Access Denied */
.access-denied {
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.15), rgba(255, 107, 107, 0.15));
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 16px;
  padding: 48px 24px;
  text-align: center;
  margin-top: 40px;
}

.access-denied h2 {
  color: #ff6b6b;
  font-size: 24px;
  margin-bottom: 12px;
}

.access-denied p {
  color: rgba(255, 107, 107, 0.8);
  font-size: 14px;
}

/* Search Section */
.gas-coin-search {
  background: linear-gradient(135deg, rgba(30, 30, 46, 0.8), rgba(42, 42, 62, 0.8));
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.search-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-tabs .tab {
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-tabs .tab:hover {
  color: #fff;
}

.search-tabs .tab.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

.search-form {
  display: flex;
  gap: 12px;
}

.search-input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(229, 228, 226, 0.3);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-secondary);
  background: rgba(229, 228, 226, 0.1);
  box-shadow: 0 0 16px rgba(229, 228, 226, 0.2);
}

.search-button {
  padding: 12px 24px;
  background: var(--gradient-accent);
  border: none;
  border-radius: 8px;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.search-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(229, 228, 226, 0.3);
}

.search-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Messages */
.error-message {
  background: rgba(255, 107, 107, 0.15);
  border-left: 4px solid #ff6b6b;
  color: #ff9b9b;
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 12px;
  font-size: 14px;
}

.success-message {
  background: rgba(52, 199, 89, 0.15);
  border-left: 4px solid #34C759;
  color: #66d876;
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 12px;
  font-size: 14px;
}

/* Client Info Card */
.client-info-card {
  background: linear-gradient(135deg, rgba(30, 30, 46, 0.9), rgba(42, 42, 62, 0.9));
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  animation: slideIn 0.3s ease-out;
}

.client-header {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.client-avatar {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--gradient-accent);
  padding: 2px;
  flex-shrink: 0;
}

.client-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-accent);
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  border-radius: 10px;
}

.client-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.client-details h2 {
  font-size: 22px;
  color: #fff;
  margin: 0 0 4px 0;
}

.client-details p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin: 4px 0;
}

.fidelity-badge {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  text-transform: uppercase;
}

/* Coins Balance */
.coins-balance {
  margin-bottom: 24px;
}

.balance-card {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(229, 228, 226, 0.1));
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.balance-icon {
  font-size: 40px;
}

.balance-info {
  flex: 1;
}

.balance-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 8px 0;
}

.balance-value {
  font-size: 32px;
  color: #fff;
  font-weight: 900;
  margin: 0;
}

/* Add Coins Form */
.add-coins-form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(229, 228, 226, 0.2);
  border-radius: 12px;
  padding: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-input,
.form-select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(229, 228, 226, 0.3);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-secondary);
  background: rgba(229, 228, 226, 0.1);
  box-shadow: 0 0 16px rgba(229, 228, 226, 0.2);
}

.form-select option {
  background: #1A1A2E;
  color: #fff;
}

.submit-button {
  width: 100%;
  padding: 14px 24px;
  margin-top: 20px;
  background: var(--gradient-accent);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.4);
}

.submit-button.danger {
  background: linear-gradient(135deg, #FF6B6B, #FF3B30);
}

.submit-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Transaction History */
.transaction-history {
  background: linear-gradient(135deg, rgba(30, 30, 46, 0.9), rgba(42, 42, 62, 0.9));
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
}

.transaction-history h3 {
  color: #fff;
  font-size: 18px;
  margin: 0 0 20px 0;
}

.loading {
  text-align: center;
  padding: 40px 24px;
  color: rgba(255, 255, 255, 0.6);
}

.no-data {
  text-align: center;
  padding: 40px 24px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* Transactions Table */
.transactions-table {
  overflow-x: auto;
}

.table-header,
.table-row {
  display: grid;
  grid-template-columns: 120px 140px 100px 150px 140px;
  gap: 12px;
  padding: 12px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table-header {
  background: rgba(212, 175, 55, 0.1);
  border-bottom: 2px solid rgba(212, 175, 55, 0.3);
  font-weight: 600;
  color: var(--accent-primary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0;
}

.table-row {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  transition: background 0.2s ease;
}

.table-row:hover {
  background: rgba(212, 175, 55, 0.05);
}

.col-date {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.col-type {
  font-weight: 600;
  color: var(--accent-secondary);
}

.col-amount {
  font-weight: 700;
  text-align: center;
}

.col-amount.positive {
  color: #34C759;
}

.col-amount.negative {
  color: #ff6b6b;
}

.col-reason {
  font-size: 13px;
  text-transform: capitalize;
}

.col-balance {
  text-align: right;
  color: #FFD700;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .gas-coin-container {
    padding: 16px;
  }

  .search-form {
    flex-direction: column;
  }

  .client-header {
    flex-direction: column;
    text-align: center;
  }

  .table-header,
  .table-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .table-header {
    display: none;
  }

  .table-row {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
  }

  .col-date,
  .col-type,
  .col-amount,
  .col-reason,
  .col-balance {
    display: flex;
    justify-content: space-between;
  }

  .col-date::before,
  .col-type::before,
  .col-amount::before,
  .col-reason::before,
  .col-balance::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    font-size: 10px;
  }
}
.gas-coins-distribution-page {
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.page-header {
  margin-bottom: 3rem;
  border-bottom: 2px solid var(--accent-primary);
  padding-bottom: 1rem;
}

.page-header h1 {
  color: white;
  font-size: 2.5rem;
  margin: 0;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p {
  color: #aaa;
  margin: 0.5rem 0 0 0;
  font-size: 1.1rem;
}

/* Distribution Method Selection */
.distribution-method {
  margin-bottom: 2rem;
}

.distribution-method h2 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.method-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.method-btn {
  flex: 1;
  min-width: 200px;
  padding: 1rem;
  border: 2px solid #444;
  background: transparent;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  text-align: center;
}

.method-btn:hover {
  border-color: var(--accent-primary);
  background: rgba(212, 175, 55, 0.1);
}

.method-btn.active {
  background: var(--gradient-accent);
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* Form Content */
.form-content {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-secondary));
  border: 1px solid #333;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.form-section {
  animation: slideIn 0.3s ease;
}

.form-section h3 {
  color: white;
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
}

.form-section.warning h3 {
  color: #ffa500;
}

.form-section.warning {
  border: 2px solid #ffa500;
  padding: 1.5rem;
  border-radius: 8px;
  background: rgba(255, 165, 0, 0.05);
}

.description {
  color: #aaa;
  margin: 0.5rem 0 1.5rem 0;
  line-height: 1.6;
}

.form-section.warning .description strong {
  color: #ff6b6b;
}

/* Form Groups */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: white;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #444;
  border-radius: 6px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(212, 175, 55, 0.1);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.form-group input::placeholder {
  color: #666;
}

/* Action Buttons */
.action-btn {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.action-btn.primary {
  background: var(--gradient-accent);
  color: white;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.action-btn.primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.4);
}

.action-btn.danger {
  background: linear-gradient(135deg, #ff6b6b, #ff4757);
  color: white;
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.action-btn.danger:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 107, 107, 0.4);
}

.action-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Messages */
.message {
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  animation: slideIn 0.3s ease;
}

.message strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.message.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid #10b981;
  color: #10b981;
}

.message.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid #ef4444;
  color: #ef4444;
}

.result-details {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid currentColor;
  font-size: 0.95rem;
  line-height: 1.8;
}

.result-details p {
  margin: 0.5rem 0;
}

.result-details strong {
  font-weight: 700;
}

/* Animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .page-header h1 {
    font-size: 2rem;
  }

  .method-buttons {
    flex-direction: column;
  }

  .method-btn {
    min-width: unset;
  }

  .gas-coins-distribution-page {
    padding: 1rem;
  }

  .form-content {
    padding: 1.5rem;
  }
}
/* ─── Spin Wheel Manager ─── Dark glassmorphism admin styling ─── */

.wheel-manager {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  color: #e0e0e0;
}

.wheel-manager h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.wheel-manager .subtitle {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* ─── Tabs ─── */
.wheel-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0;
}

.wheel-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #888;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.wheel-tab:hover {
  color: #ccc;
}

.wheel-tab.active {
  color: #fff;
  border-bottom-color: #E60000;
}

.wheel-tab .tab-icon {
  font-size: 1.1rem;
}

/* ─── Toggle card ─── */
.wheel-toggle-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.wheel-toggle-card .toggle-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.25rem;
}

.wheel-toggle-card .toggle-info p {
  font-size: 0.8rem;
  color: #888;
  margin: 0;
}

/* ─── Settings row ─── */
.wheel-settings-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.setting-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}

.setting-card label {
  display: block;
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.setting-card input,
.setting-card select {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
}

.setting-card input:focus,
.setting-card select:focus {
  outline: none;
  border-color: #E60000;
  box-shadow: 0 0 0 2px rgba(230, 0, 0, 0.15);
}

/* ═══════════════════════════════════════════════════════════════ */
/* ─── Probability Section ─── */
/* ═══════════════════════════════════════════════════════════════ */
.probability-section {
  margin: 2rem 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 1.5rem;
}

.probability-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.25rem;
}

.probability-subtitle {
  font-size: 0.8rem;
  color: #888;
  margin: 0 0 1.25rem;
}

.probability-bars {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.prob-bar-row {
  display: grid;
  grid-template-columns: 220px 1fr 60px;
  align-items: center;
  gap: 1rem;
}

.prob-bar-row.disabled {
  opacity: 0.35;
}

.prob-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.prob-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.prob-label {
  font-size: 0.85rem;
  color: #e0e0e0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prob-type-badge {
  font-size: 0.65rem;
  color: #888;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.prob-bar-track {
  height: 24px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.prob-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.4s ease;
  min-width: 2px;
}

.prob-pct {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ─── Rewards table ─── */
.rewards-section {
  margin-top: 1rem;
}

.rewards-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}

.rewards-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
}

.rewards-table thead th {
  background: rgba(255, 255, 255, 0.04);
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rewards-table tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

@media (max-width: 900px) {
  .wheel-manager {
    padding: 1.5rem;
  }

  .wheel-tabs {
    flex-wrap: wrap;
  }

  .wheel-toggle-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .prob-bar-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .prob-pct {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .wheel-manager {
    padding: 1.1rem;
  }
}

.rewards-table tbody tr:last-child td {
  border-bottom: none;
}

.rewards-table tbody tr.row-disabled {
  opacity: 0.4;
}

.rewards-table input,
.rewards-table select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #fff;
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  width: 100%;
  min-width: 60px;
}

.rewards-table input:focus,
.rewards-table select:focus {
  outline: none;
  border-color: #E60000;
}

.rewards-table .weight-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pct-badge {
  display: inline-block;
  background: rgba(230, 0, 0, 0.15);
  color: #FF6666;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  min-width: 48px;
  text-align: center;
}

/* ─── Color swatch ─── */
.color-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.color-input-wrap input[type="color"] {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
}

/* ─── Toggle switch ─── */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.toggle-switch input {
  display: none;
}

.toggle-switch .slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  transition: background 0.2s;
}

.toggle-switch input:checked + .slider {
  background: #E60000;
}

.toggle-switch .slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
}

.toggle-switch input:checked + .slider::before {
  transform: translateX(20px);
}

/* ─── Action buttons ─── */
.rewards-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.btn-add-slot {
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #ccc;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-add-slot:hover {
  border-color: #E60000;
  color: #E60000;
}

.btn-remove {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.2rem 0.4rem;
  transition: color 0.2s;
}

.btn-remove:hover {
  color: #E60000;
}

.btn-save {
  background: linear-gradient(135deg, #E60000, #CC0000);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.7rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(230, 0, 0, 0.3);
}

.btn-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(230, 0, 0, 0.4);
}

.btn-save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ─── Visibility checkboxes ─── */
.visibility-section {
  margin-top: 2rem;
}

.visibility-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}

.visibility-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.visibility-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.visibility-chip.active {
  border-color: #E60000;
  background: rgba(230, 0, 0, 0.08);
}

.visibility-chip input[type="checkbox"] {
  accent-color: #E60000;
}

.visibility-chip span {
  font-size: 0.85rem;
  color: #ccc;
}

/* ─── Stats section ─── */
.stats-section {
  margin-top: 2rem;
}

.stats-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}

.stat-card .stat-label {
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.stat-card .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.stat-card .stat-sub {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.25rem;
}

/* ─── Save message ─── */
.save-message {
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-top: 1rem;
}

.save-message.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.save-message.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* ═══════════════════════════════════════════════════════════════ */
/* ─── WINNING HISTORY ─── */
/* ═══════════════════════════════════════════════════════════════ */
.history-section {
  margin-top: 0.5rem;
}

.history-filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  align-items: stretch;
}

.filter-search {
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0 1rem;
  transition: border-color 0.2s;
}

.filter-search:focus-within {
  border-color: #E60000;
}

.filter-search .search-icon {
  font-size: 1rem;
  margin-right: 0.5rem;
  opacity: 0.5;
}

.filter-search input {
  flex: 1;
  background: none;
  border: none;
  color: #fff;
  font-size: 0.9rem;
  padding: 0.65rem 0;
  outline: none;
}

.filter-search input::placeholder {
  color: #666;
}

.filter-type {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #fff;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  cursor: pointer;
  min-width: 150px;
}

.filter-type:focus {
  outline: none;
  border-color: #E60000;
}

.btn-refresh {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #ccc;
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-refresh:hover {
  border-color: #E60000;
  color: #E60000;
}

.btn-refresh:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ─── History table ─── */
.history-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.history-table thead th {
  background: rgba(255, 255, 255, 0.04);
  padding: 0.7rem 0.75rem;
  text-align: left;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.history-table tbody td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
  vertical-align: middle;
}

.history-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.history-table tbody tr.row-delivered {
  opacity: 0.5;
}

.history-table tbody tr:last-child td {
  border-bottom: none;
}

/* ─── Date cell ─── */
.date-cell {
  display: flex;
  flex-direction: column;
}

.date-main {
  color: #e0e0e0;
  font-size: 0.8rem;
  white-space: nowrap;
}

.date-time {
  color: #666;
  font-size: 0.7rem;
}

/* ─── User / Contact cells ─── */
.user-name {
  color: #e0e0e0;
  font-weight: 500;
}

.contact-cell {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact-email {
  color: #aaa;
  font-size: 0.8rem;
}

.contact-phone {
  color: #888;
  font-size: 0.75rem;
}

.contact-none {
  color: #555;
}

/* ─── Type badges ─── */
.type-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.type-badge.type-gas_coins {
  background: rgba(59, 130, 246, 0.12);
  color: #60A5FA;
}

.type-badge.type-wallet_credit {
  background: rgba(245, 158, 11, 0.12);
  color: #FBBF24;
}

.type-badge.type-physical_item {
  background: rgba(230, 0, 0, 0.12);
  color: #FF6666;
}

.type-badge.type-try_again {
  background: rgba(255, 255, 255, 0.05);
  color: #888;
}

.reward-label {
  color: #e0e0e0;
}

.value-cell {
  font-variant-numeric: tabular-nums;
  color: #ccc;
}

/* ─── Voucher code ─── */
.voucher-code {
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: #FFD700;
  letter-spacing: 0.5px;
}

/* ─── Status badges ─── */
.status-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
}

.status-badge.status-awarded {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.status-badge.status-pending {
  background: rgba(245, 158, 11, 0.12);
  color: #FBBF24;
}

.status-badge.status-claimed {
  background: rgba(59, 130, 246, 0.1);
  color: #60A5FA;
}

.status-badge.status-delivered {
  background: rgba(255, 255, 255, 0.05);
  color: #888;
}

/* ─── Deliver button ─── */
.btn-deliver {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-deliver:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(34, 197, 94, 0.3);
}

.btn-deliver:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.delivered-check {
  color: #22c55e;
  font-weight: 700;
  font-size: 1rem;
}

/* ─── Empty / loading states ─── */
.history-loading {
  text-align: center;
  padding: 3rem;
  color: #888;
  font-size: 0.9rem;
}

.history-empty {
  text-align: center;
  padding: 3rem;
  color: #666;
}

.history-empty .empty-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
}

.history-empty p {
  font-size: 0.9rem;
  margin: 0;
}

.history-count {
  text-align: right;
  font-size: 0.75rem;
  color: #666;
  margin-top: 0.75rem;
}
.reservations-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  margin: 0 0 1rem;
  font-size: 2rem;
  color: #f5f7fb;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid rgba(94, 240, 255, 0.2);
  padding-bottom: 0.5rem;
}

.filter-tabs button {
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  font-weight: 600;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  font-size: 0.95rem;
}

.filter-tabs button:hover {
  color: #5ef0ff;
}

.filter-tabs button.active {
  color: #5ef0ff;
}

.filter-tabs button.active::after {
  content: '';
  position: absolute;
  bottom: -0.6rem;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(120deg, #5ef0ff, #7b5cff);
}

.loading {
  text-align: center;
  padding: 3rem;
  color: #9ca3af;
  font-size: 1rem;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(18, 21, 44, 0.85);
  border: 1px solid rgba(94, 240, 255, 0.2);
  border-radius: 16px;
  color: #9ca3af;
}

.reservations-table-wrapper {
  background: rgba(18, 21, 44, 0.85);
  border: 1px solid rgba(123, 92, 255, 0.2);
  border-radius: 16px;
  overflow-x: auto;
  overflow-y: visible;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-overflow-scrolling: touch;
}

.reservations-table {
  width: 100%;
  min-width: 900px;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

thead {
  background: rgba(123, 92, 255, 0.1);
  border-bottom: 2px solid rgba(94, 240, 255, 0.2);
  position: sticky;
  top: 0;
  z-index: 10;
}

th {
  padding: 1rem 0.75rem;
  text-align: left;
  font-weight: 700;
  color: #5ef0ff;
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  vertical-align: middle;
  height: 50px;
}

th:nth-child(1) { width: 12%; }
th:nth-child(2) { width: 14%; }
th:nth-child(3) { width: 12%; }
th:nth-child(4) { width: 10%; }
th:nth-child(5) { width: 10%; }
th:nth-child(6) { width: 14%; }
th:nth-child(7) { width: 10%; }
th:nth-child(8) { width: 8%; }
th:nth-child(9) { width: 10%; }

td {
  padding: 0.6rem 0.6rem;
  border-bottom: 1px solid rgba(94, 240, 255, 0.1);
  color: #e5e7eb;
  font-family: 'Manrope', sans-serif;
  vertical-align: middle;
  height: auto;
  min-height: 50px;
  word-break: break-word;
  overflow-wrap: break-word;
}

tbody tr {
  transition: all 0.2s;
}

tbody tr:hover {
  background: rgba(94, 240, 255, 0.05);
}

.contact-cell {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0.6rem !important;
  white-space: normal;
  width: 100%;
  overflow: hidden;
}

.contact-cell .phone-number {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 500;
  word-break: break-word;
  max-width: 100%;
  font-size: 0.85rem;
}

.contact-actions {
  display: flex;
  gap: 0.15rem;
  flex-wrap: nowrap;
  margin-top: 0.2rem;
  width: 100%;
  overflow: hidden;
}

.btn-call {
  padding: 0.15rem 0.3rem;
  background: linear-gradient(120deg, #5ef0ff, #7b5cff);
  border-radius: 2px;
  color: #0a0c1a;
  font-weight: 600;
  font-size: 0.55rem;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(94, 240, 255, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 30px;
  height: 16px;
}

.btn-call:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(123, 92, 255, 0.35);
}

.btn-whatsapp {
  padding: 0.15rem 0.3rem;
  background: linear-gradient(120deg, #25d366, #128c7e);
  border-radius: 2px;
  color: #0a0c1a;
  font-weight: 600;
  font-size: 0.55rem;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 40px;
  height: 16px;
}

.btn-whatsapp:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(18, 140, 126, 0.35);
}

.status-badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.pending {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.approved {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge.declined {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-badge.checked-in {
  background: rgba(94, 240, 255, 0.2);
  color: #5ef0ff;
  border: 1px solid rgba(94, 240, 255, 0.3);
}

.status-badge.accepted {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge.completed {
  background: rgba(14, 165, 233, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.status-badge.cancelled {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.actions {
  display: flex;
  gap: 0.75rem;
}

.btn-approve, .btn-decline {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
  font-family: 'Space Grotesk', sans-serif;
}

.btn-approve {
  background: linear-gradient(120deg, #22c55e, #16a34a);
  color: white;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-approve:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.5);
}

.btn-decline {
  background: linear-gradient(120deg, #ef4444, #dc2626);
  color: white;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-decline:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.5);
}
/* Mobile Responsiveness */
@media (max-width: 768px) {
  .reservations-page {
    padding: 1rem;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .filter-tabs {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
  }

  .filter-tabs button {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }

  .reservations-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
  }

  .reservations-table {
    min-width: 600px;
  }

  /* Hide Email and Placement columns on mobile to make Actions visible */
  th:nth-child(2), td:nth-child(2),
  th:nth-child(4), td:nth-child(4) {
    display: none;
  }

  th, td {
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
  }

  th {
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .actions {
    flex-direction: column;
    gap: 0.5rem;
    min-width: 110px;
  }

  .btn-approve, .btn-decline {
    width: 100%;
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
  }

  .contact-cell {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-actions {
    width: 100%;
  }

  .btn-call, .btn-whatsapp {
    flex: 1;
    text-align: center;
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
  }

  .status-badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }

  /* Make Event column more compact */
  th:nth-child(5), td:nth-child(5) {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .page-header h1 {
    font-size: 1.25rem;
  }

  .filter-tabs button {
    font-size: 0.8rem;
    padding: 0.35rem 0.7rem;
  }

  .reservations-table {
    min-width: 550px;
  }

  th, td {
    padding: 0.6rem 0.3rem;
    font-size: 0.8rem;
  }

  .btn-approve, .btn-decline {
    font-size: 0.75rem;
    padding: 0.5rem 0.6rem;
  }

  .empty-state {
    padding: 2rem 1rem;
    font-size: 0.9rem;
  }

  /* Further compact on small phones */
  .actions {
    min-width: 100px;
  }

  .btn-call, .btn-whatsapp {
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
  }
}

/* Sticky Actions column for mobile/tablet */
@media (max-width: 900px) {
  th:last-child, td:last-child {
    position: sticky;
    right: 0;
    background: rgba(18, 21, 44, 0.98);
    z-index: 2;
    box-shadow: -2px 0 8px rgba(0,0,0,0.08);
    min-width: 110px;
    max-width: 140px;
  }
  .actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }
}

/* ADVANCED FILTERS */
.advanced-filters {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  padding: 1.5rem;
  background: rgba(30, 30, 46, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 180px;
}

.filter-group label {
  color: var(--accent-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-group select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(229, 228, 226, 0.2);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-group select:hover {
  border-color: rgba(229, 228, 226, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

.filter-group select:focus {
  outline: none;
  border-color: var(--accent-secondary);
  background: rgba(229, 228, 226, 0.05);
}

.filter-group select option {
  background: var(--bg-secondary);
  color: #fff;
}

.btn-clear-filters {
  background: rgba(255, 107, 107, 0.15);
  border: 1px solid rgba(255, 107, 107, 0.3);
  color: #FF6B6B;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.btn-clear-filters:hover {
  background: rgba(255, 107, 107, 0.25);
  border-color: rgba(255, 107, 107, 0.5);
}

/* DATE CREATED COLUMN */
.date-created {
  font-size: 0.9rem;
  color: var(--accent-secondary);
}

@media (max-width: 900px) {
  .reservations-page {
    padding: 1.5rem;
  }

  .filter-tabs {
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .actions {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .reservations-table {
    min-width: 760px;
  }
}

@media (max-width: 600px) {
  .reservations-page {
    padding: 1.1rem;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }
}
.reservations-capacity-page {
  padding: 2rem;
  max-width: 1600px;
  margin: 0 auto;
  color: #e6f1ff;
}

.page-header {
  margin-bottom: 2rem;
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.header-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.export-btn,
.toggle-charts-btn {
  padding: 0.65rem 1.25rem;
  background: linear-gradient(120deg, #5ef0ff, #7b5cff);
  color: #0a0b1a;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.toggle-charts-btn {
  background: rgba(94, 240, 255, 0.15);
  color: #5ef0ff;
  border: 1px solid rgba(94, 240, 255, 0.3);
}

.export-btn:hover:not(:disabled),
.toggle-charts-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(94, 240, 255, 0.3);
}

.export-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

}

.page-header h1 {
  font-size: 2rem;
  background: linear-gradient(120deg, #5ef0ff, #7b5cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: rgba(230, 241, 255, 0.6);
  font-size: 0.95rem;
}

/* Filters Section */
.filters-section {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(18, 21, 44, 0.85);
  border: 1px solid rgba(123, 92, 255, 0.2);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 180px;
}

.filter-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(230, 241, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
}

.filter-tabs button {
  padding: 0.5rem 1rem;
  background: rgba(94, 240, 255, 0.1);
  border: 1px solid rgba(94, 240, 255, 0.3);
  color: #5ef0ff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.filter-tabs button.active {
  background: linear-gradient(120deg, #5ef0ff, #7b5cff);
  color: #0a0b1a;
  border-color: transparent;
}

.filter-tabs button:hover:not(.active) {
  background: rgba(94, 240, 255, 0.2);
}

.filter-group input[type="date"],
.filter-group select {
  padding: 0.65rem 1rem;
  background: rgba(15, 17, 35, 0.9);
  border: 1px solid rgba(120, 160, 255, 0.3);
  border-radius: 8px;
  color: #e6f1ff;
  font-size: 0.9rem;
  font-family: inherit;
}

.filter-group input[type="date"]:focus,
.filter-group select:focus {
  outline: none;
  border-color: #5ef0ff;
  box-shadow: 0 0 0 3px rgba(94, 240, 255, 0.1);
}

.date-range-inputs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.date-range-inputs span {
  color: rgba(230, 241, 255, 0.5);
  font-size: 0.85rem;
}

/* Metrics Section */
.metrics-section {
  margin-bottom: 2.5rem;
/* Charts Section */
.charts-section {
  margin-bottom: 2.5rem;
}

.charts-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #e6f1ff;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
}

.chart-card {
  background: rgba(18, 21, 44, 0.85);
  border: 1px solid rgba(123, 92, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.chart-card-wide {
  grid-column: span 2;
}

.chart-card h3 {
  font-size: 1.1rem;
  color: #e6f1ff;
  margin-bottom: 1.5rem;
  text-align: center;
}

.chart-card:hover {
  border-color: rgba(94, 240, 255, 0.4);
  box-shadow: 0 8px 24px rgba(94, 240, 255, 0.15);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

}

.metrics-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #e6f1ff;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.metric-card {
  background: rgba(18, 21, 44, 0.85);
  border: 1px solid rgba(123, 92, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #5ef0ff, #7b5cff);
}

.metric-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.metric-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: #5ef0ff;
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.9rem;
  color: rgba(230, 241, 255, 0.6);
  font-weight: 500;
}

.capacity-bar {
  margin-top: 1rem;
  height: 8px;
  background: rgba(15, 17, 35, 0.8);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.capacity-fill {
  height: 100%;
  background: #26de81;
  border-radius: 4px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

/* Events Capacity Section */
.events-capacity-section {
  margin-bottom: 2.5rem;
}

.events-capacity-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #e6f1ff;
}

.events-capacity-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-capacity-card {
  background: rgba(18, 21, 44, 0.85);
  border: 1px solid rgba(123, 92, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.2s;
}

.event-capacity-card.status-full {
  border-color: rgba(255, 71, 87, 0.4);
}

.event-capacity-card.status-almost-full {
  border-color: rgba(255, 165, 2, 0.4);
}

.event-capacity-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(94, 240, 255, 0.15);
}

.event-capacity-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  cursor: pointer;
}

.event-info h3 {
  font-size: 1.15rem;
  color: #e6f1ff;
  margin-bottom: 0.25rem;
}

.event-meta {
  font-size: 0.85rem;
  color: rgba(230, 241, 255, 0.5);
}

.event-stats {
  display: flex;
  gap: 2rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.event-stats .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(230, 241, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #5ef0ff;
}

.status-badge {
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-badge.open {
  background: rgba(38, 222, 129, 0.2);
  color: #26de81;
}

.status-badge.almost-full {
  background: rgba(255, 165, 2, 0.2);
  color: #ffa502;
}

.status-badge.full {
  background: rgba(255, 71, 87, 0.2);
  color: #ff4757;
}

.expand-btn {
  background: rgba(94, 240, 255, 0.1);
  border: 1px solid rgba(94, 240, 255, 0.3);
  color: #5ef0ff;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.expand-btn:hover {
  background: rgba(94, 240, 255, 0.2);
}

.capacity-bar-full {
  margin-top: 1rem;
  height: 12px;
  background: rgba(15, 17, 35, 0.8);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.capacity-bar-full .capacity-fill {
  height: 100%;
  transition: width 0.3s ease;
}

.capacity-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.75rem;
  font-weight: 700;
  color: #e6f1ff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.event-details-expanded {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(123, 92, 255, 0.2);
  font-size: 0.9rem;
  color: rgba(230, 241, 255, 0.7);
}

.event-details-expanded p {
  margin-bottom: 0.5rem;
}

/* Organigram Section */
.organigram-section {
  margin-bottom: 2.5rem;
}

.organigram-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #e6f1ff;
}

.organigram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.organigram-card {
  background: rgba(18, 21, 44, 0.85);
  border: 1px solid rgba(123, 92, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  text-align: center;
  transition: all 0.2s;
}

.organigram-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(94, 240, 255, 0.2);
  border-color: rgba(94, 240, 255, 0.4);
}

.organigram-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.organigram-card h3 {
  font-size: 1.1rem;
  color: #e6f1ff;
  margin-bottom: 1rem;
}

.organigram-stats {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: rgba(230, 241, 255, 0.7);
}

.organigram-stats p {
  margin-bottom: 0.4rem;
}

.organigram-stats strong {
  color: #5ef0ff;
  font-weight: 700;
}

.organigram-bar {
  height: 8px;
  background: rgba(15, 17, 35, 0.8);
  border-radius: 4px;
  overflow: hidden;
}

.organigram-fill {
  height: 100%;
  background: linear-gradient(90deg, #5ef0ff, #7b5cff);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Table Summary */
.table-summary {
  background: rgba(18, 21, 44, 0.85);
  border: 1px solid rgba(123, 92, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.table-summary h3 {
  font-size: 1.2rem;
  color: #e6f1ff;
  margin-bottom: 1rem;
}

.table-summary-content p {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: rgba(230, 241, 255, 0.7);
}

.table-summary-content strong {
  color: #5ef0ff;
  font-weight: 700;
}

.alert-warning {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255, 165, 2, 0.15);
  border: 1px solid rgba(255, 165, 2, 0.3);
  border-radius: 8px;
  color: #ffa502;
  font-size: 0.9rem;
  font-weight: 600;
}

.empty-state {
  padding: 3rem;
  text-align: center;
  color: rgba(230, 241, 255, 0.4);
  font-size: 1rem;
}

.loading {
  padding: 3rem;
  text-align: center;
  color: #5ef0ff;
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
      flex-direction: column;
    }

    .header-actions {
      width: 100%;
      flex-direction: column;
    }

    .export-btn,
    .toggle-charts-btn {
      width: 100%;
    }

    .charts-grid {
      grid-template-columns: 1fr;
    }

    .chart-card-wide {
      grid-column: span 1;
    }

  .reservations-capacity-page {
    padding: 1rem;
  }

  .filters-section {
    flex-direction: column;
  }

  .filter-group {
    min-width: 100%;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .event-capacity-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .event-stats {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }

  .organigram-grid {
    grid-template-columns: 1fr;
  }
}
