/* ===========================
   Shaheen Travel Dashboard
   Premium Admin UI Design
   =========================== */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap");

/* ===========================
   CSS Variables
   =========================== */
:root {
  /* Primary Colors */
  --gold: #d4af37;
  --gold-light: #e8c04d;
  --gold-dark: #b8942f;
  --gold-muted: rgba(212, 175, 55, 0.15);
  
  /* Accent Colors */
  --teal: #0f766e;
  --teal-light: #14b8a6;
  --teal-dark: #0d6860;
  
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --orange: #f59e0b;
  --red: #ef4444;
  --green: #10b981;
  
  /* Neutral Colors */
  --ink: #0f172a;
  --ink-light: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  
  /* Background */
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-sidebar: linear-gradient(180deg, #0a0f1c 0%, #111827 50%, #0f172a 100%);
  
  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-gold: 0 4px 14px rgba(212, 175, 55, 0.3);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08), 0 8px 20px rgba(0, 0, 0, 0.04);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Fonts */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ===========================
   Base Styles
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: var(--bg-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* ===========================
   Layout Shell
   =========================== */
.shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* ===========================
   Sidebar
   =========================== */
.sidebar {
  background: var(--bg-sidebar);
  color: var(--white);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 20px;
  left: 20px;
  bottom: 20px;
  width: 260px;
  z-index: 1000;
  overflow-y: auto;
  border-radius: var(--radius-2xl);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.25),
    0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px;
  margin-bottom: 32px;
}

.brand-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--ink);
  box-shadow: var(--shadow-gold);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--white) 0%, var(--slate-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Navigation */
.nav-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  color: var(--slate-400);
  text-decoration: none;
  border-radius: var(--radius-lg);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: all var(--transition-base);
  position: relative;
}

.nav-links a i {
  font-size: 1.25rem;
  width: 24px;
  text-align: center;
}

.nav-links a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: transform var(--transition-base);
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
  color: var(--white);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
}

.nav-links a.active::before {
  transform: translateY(-50%) scaleY(1);
}

.nav-links a.active i {
  color: var(--gold);
}

/* Sidebar Footer */
.sidebar-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
}

.admin-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.admin-details {
  display: flex;
  flex-direction: column;
}

.admin-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--white);
}

.admin-role {
  font-size: 0.75rem;
  color: var(--slate-400);
}

.logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-lg);
  color: #fca5a5;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: inherit;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  transform: translateY(-2px);
}

/* ===========================
   Main Content
   =========================== */
.main {
  flex: 1;
  padding: 24px 32px 24px 310px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  background: 
    radial-gradient(circle at 0% 0%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(15, 118, 110, 0.05) 0%, transparent 50%),
    var(--bg-primary);
}

/* ===========================
   Page Header
   =========================== */
.page-header {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 20px 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--slate-200);
}

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

.header-text h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
  letter-spacing: -0.5px;
}

.header-text p {
  color: var(--slate-500);
  font-size: 0.875rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.date-display {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--slate-100);
  border-radius: var(--radius-full);
  color: var(--slate-600);
  font-weight: 500;
  font-size: 0.875rem;
}

.date-display i {
  color: var(--gold);
}

.btn-refresh {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  color: var(--slate-500);
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: 1.1rem;
}

.btn-refresh:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  transform: rotate(180deg);
}

/* ===========================
   Stats Grid
   =========================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
}

@media (max-width: 1400px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--slate-200);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: visible;
  transition: all var(--transition-slow);
  min-height: 100px;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.stat-card.stat-primary::before { background: linear-gradient(90deg, var(--teal), var(--teal-light)); }
.stat-card.stat-warning::before { background: linear-gradient(90deg, var(--orange), #fbbf24); }
.stat-card.stat-success::before { background: linear-gradient(90deg, var(--green), #34d399); }
.stat-card.stat-info::before { background: linear-gradient(90deg, var(--blue), #60a5fa); }

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.stat-primary .stat-icon {
  background: rgba(15, 118, 110, 0.1);
  color: var(--teal);
}

.stat-warning .stat-icon {
  background: rgba(245, 158, 11, 0.1);
  color: var(--orange);
}

.stat-success .stat-icon {
  background: rgba(16, 185, 129, 0.1);
  color: var(--green);
}

.stat-info .stat-icon {
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue);
}

.stat-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-change {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.75rem;
  font-weight: 600;
}

.stat-change.positive {
  color: var(--green);
}

.stat-change.negative {
  color: var(--red);
}

.stat-change.neutral {
  color: var(--slate-500);
}

.stat-graph {
  width: 80px;
  height: 40px;
}

/* ===========================
   Charts Row
   =========================== */
.charts-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  width: 100%;
}

@media (max-width: 1200px) {
  .charts-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .charts-row {
    grid-template-columns: 1fr;
  }
}

.chart-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--slate-200);
  overflow: hidden;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--slate-100);
}

.chart-title h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.chart-title p {
  font-size: 0.8125rem;
  color: var(--slate-500);
}

.chart-actions {
  display: flex;
  gap: 4px;
  background: var(--slate-100);
  padding: 4px;
  border-radius: var(--radius-md);
}

.chart-btn {
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: var(--slate-500);
  font-weight: 600;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.chart-btn:hover {
  color: var(--ink);
}

.chart-btn.active {
  background: var(--bg-card);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.chart-body {
  padding: 20px 24px 24px;
  height: 300px;
}

.chart-large .chart-body {
  height: 320px;
}

.chart-donut-wrapper {
  position: relative;
  height: 200px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.donut-center {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.donut-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
}

.donut-label {
  font-size: 0.75rem;
  color: var(--slate-500);
  font-weight: 500;
}

.chart-legend {
  padding: 0 24px 24px;
  display: grid;
  gap: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-sm);
  background: var(--color);
}

.legend-label {
  flex: 1;
  font-size: 0.875rem;
  color: var(--slate-600);
}

.legend-value {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.875rem;
}

/* ===========================
   Bottom Row
   =========================== */
.bottom-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  width: 100%;
}

@media (max-width: 1200px) {
  .bottom-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .bottom-row {
    grid-template-columns: 1fr;
  }
}

/* Table Section */
.table-section {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--slate-200);
  overflow: hidden;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--slate-100);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title i {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-muted);
  color: var(--gold-dark);
  border-radius: var(--radius-md);
  font-size: 1rem;
}

.section-title h2 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
}

.view-all-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.view-all-btn:hover {
  color: var(--gold);
  gap: 10px;
}

.table-wrapper {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 14px 20px;
  text-align: left;
  white-space: nowrap;
}

.table th {
  background: var(--slate-50);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--slate-200);
}

.table td {
  font-size: 0.875rem;
  color: var(--slate-700);
  border-bottom: 1px solid var(--slate-100);
}

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

.table tbody tr:hover {
  background: var(--slate-50);
}

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

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  color: var(--slate-400);
  text-align: center;
}

.empty i {
  font-size: 3rem;
  margin-bottom: 12px;
}

.empty p {
  font-size: 0.9375rem;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge.paid,
.badge.success {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.badge.pending {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.badge.failed {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

/* ===========================
   Reservations Page
   =========================== */
.filter-section {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 20px 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--slate-200);
}

.toolbar {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 0 16px;
  flex: 1;
  min-width: 280px;
  transition: all var(--transition-fast);
}

.search-box:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-muted);
}

.search-box i {
  color: var(--slate-400);
  font-size: 1rem;
}

.search-box .input {
  border: none;
  background: transparent;
  padding: 12px 0;
  flex: 1;
  font-size: 0.9375rem;
}

.search-box .input:focus {
  outline: none;
  box-shadow: none;
}

.filter-group {
  display: flex;
  gap: 12px;
}

.select-input {
  padding: 12px 16px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: 0.9375rem;
  color: var(--ink);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-width: 160px;
}

.select-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-muted);
}

.reservation-count {
  font-size: 0.875rem;
  color: var(--slate-500);
  font-weight: 500;
}

/* Service Cell */
.service-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-muted);
  color: var(--gold-dark);
  border-radius: var(--radius-md);
  font-size: 1.125rem;
}

.service-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.service-name {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.9375rem;
}

.service-type {
  font-size: 0.8125rem;
  color: var(--slate-500);
}

.invoice-id {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}

.customer-name {
  font-weight: 500;
  color: var(--slate-700);
}

.amount {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}

.date {
  color: var(--slate-500);
  font-size: 0.875rem;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 8px;
}

.btn-action {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--slate-200);
  background: var(--white);
  color: var(--slate-600);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-action:hover {
  background: var(--gold-muted);
  border-color: var(--gold);
  color: var(--gold-dark);
}

/* Events Drawer */
.events-drawer {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--slate-200);
  padding: 0;
  overflow: hidden;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
}

.drawer-header h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.drawer-header h2 i {
  color: var(--gold);
}

.events-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.event-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--slate-100);
}

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

.event-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--slate-600);
}

.event-status.paid {
  color: #059669;
}

.event-status.pending {
  color: #d97706;
}

.event-status.failed {
  color: #dc2626;
}

.event-amount {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}

.event-time {
  margin-left: auto;
  font-size: 0.8125rem;
  color: var(--slate-400);
}

/* Date Badge in Header */
.date-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate-700);
}

.date-badge i {
  color: var(--gold);
}

/* Activity Section */
.activity-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quick-stats,
.recent-activity {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--slate-200);
  padding: 20px;
}

.quick-stats h3,
.recent-activity h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 20px;
}

.quick-stats h3 i {
  color: var(--gold);
}

.recent-activity h3 i {
  color: var(--teal);
}

.quick-stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--slate-100);
}

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

.quick-stat-item:first-of-type {
  padding-top: 0;
}

.quick-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}

.quick-stat-icon.hotels {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold);
}

.quick-stat-icon.flights {
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue);
}

.quick-stat-icon.tours {
  background: rgba(139, 92, 246, 0.1);
  color: var(--purple);
}

.quick-stat-icon.transfers {
  background: rgba(15, 118, 110, 0.1);
  color: var(--teal);
}

.quick-stat-info {
  flex: 1;
}

.quick-stat-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--slate-500);
  margin-bottom: 2px;
}

.quick-stat-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}

/* Activity List */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.activity-icon.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--green);
}

.activity-icon.info {
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue);
}

.activity-icon.warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--orange);
}

.activity-content p {
  font-size: 0.875rem;
  color: var(--ink);
  margin-bottom: 2px;
}

.activity-content span {
  font-size: 0.75rem;
  color: var(--slate-400);
}

/* ===========================
   Form Elements
   =========================== */
.input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--bg-card);
  transition: all var(--transition-fast);
}

.input:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-muted);
}

.input::placeholder,
input::placeholder,
textarea::placeholder {
  color: var(--slate-400);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn.primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--ink);
  box-shadow: var(--shadow-gold);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn.secondary {
  background: var(--slate-100);
  color: var(--slate-700);
}

.btn.secondary:hover {
  background: var(--slate-200);
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--slate-200);
  color: var(--slate-600);
}

.btn.ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn.danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--red);
}

.btn.danger:hover {
  background: var(--red);
  color: var(--white);
}

/* Form Layout */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-600);
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

/* ===========================
   Section Styles
   =========================== */
.section {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--slate-200);
}

.section h2 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 20px;
}

/* Toolbar */
.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* Toggle Switch */
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--slate-100);
}

.toggle-row:last-child {
  border-bottom: none;
}

.switch {
  position: relative;
  width: 48px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--slate-300);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  top: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.switch input:checked + .slider {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
}

.switch input:checked + .slider::before {
  transform: translateX(22px);
}

/* ===========================
   Login Page
   =========================== */
.login-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background: 
    radial-gradient(circle at 0% 0%, rgba(212, 175, 55, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(15, 118, 110, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 60%),
    linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.login-card {
  background: var(--bg-card);
  border-radius: var(--radius-2xl);
  padding: 48px 40px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  width: min(440px, 100%);
  text-align: center;
}

.login-brand {
  margin-bottom: 24px;
}

.login-brand-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--ink);
  box-shadow: 
    0 10px 30px rgba(212, 175, 55, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.login-brand h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.5px;
}

.login-subtitle {
  font-size: 0.875rem;
  color: var(--gold-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.login-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--slate-200), transparent);
  margin: 28px 0;
}

.login-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.login-desc {
  color: var(--slate-500);
  font-size: 0.9375rem;
  margin-bottom: 28px;
  line-height: 1.5;
}

.login-card .form-group {
  margin-bottom: 20px;
  text-align: left;
}

.login-card .form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-600);
  margin-bottom: 8px;
}

.login-card .form-group label i {
  color: var(--gold);
}

.login-card .input {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
}

.login-btn {
  width: 100%;
  padding: 16px 24px;
  font-size: 1rem;
  margin-top: 8px;
}

.login-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--slate-100);
}

.login-footer p {
  font-size: 0.75rem;
  color: var(--slate-400);
  margin: 0;
}

.notice {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: var(--radius-md);
  color: var(--red);
  font-size: 0.875rem;
  text-align: left;
}

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

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-card,
.chart-card,
.table-section,
.quick-stats,
.recent-activity {
  animation: slideUp 0.5s ease forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.15s; }
.stat-card:nth-child(3) { animation-delay: 0.2s; }
.stat-card:nth-child(4) { animation-delay: 0.25s; }

/* ===========================
   Scrollbar
   =========================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--slate-100);
}

::-webkit-scrollbar-thumb {
  background: var(--slate-300);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--slate-400);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-120%);
    transition: transform var(--transition-slow);
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .main {
    padding: 20px;
    padding-left: 20px;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .stat-card {
    grid-template-columns: auto 1fr;
  }
  
  .stat-graph {
    grid-column: 1 / -1;
    width: 100%;
    height: 50px;
    margin-top: 10px;
  }
}

/* ===========================
   Edit Modal
   =========================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  width: 95%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: scale(0.95) translateY(20px);
  transition: transform var(--transition-slow);
  overflow: hidden;
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-light) 100%);
  color: var(--white);
  position: relative;
}

.modal-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* Modal Tabs */
.modal-tabs {
  display: flex;
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
  overflow-x: auto;
  padding: 0 10px;
}

.tab-btn {
  padding: 14px 20px;
  border: none;
  background: transparent;
  color: var(--slate-500);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: all var(--transition-fast);
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--gold);
  border-radius: 3px 3px 0 0;
  transition: all var(--transition-fast);
  transform: translateX(-50%);
}

.tab-btn:hover {
  color: var(--ink);
}

.tab-btn.active {
  color: var(--gold-dark);
}

.tab-btn.active::after {
  width: 100%;
}

/* Modal Body */
.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

/* Modal Form */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-600);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.form-group .input {
  padding: 12px 14px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--white);
  transition: all var(--transition-fast);
}

.form-group .input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-muted);
}

.form-group .textarea {
  resize: vertical;
  min-height: 100px;
  font-family: var(--font-body);
}

/* Tab Header */
.tab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--slate-100);
}

.tab-header h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

/* Items List */
.items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.item-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 16px;
  position: relative;
  transition: all var(--transition-fast);
}

.item-card:hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-muted);
}

.item-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.item-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.day-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-full);
}

.item-card-actions {
  display: flex;
  gap: 6px;
}

.item-card-actions button {
  padding: 6px 10px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.item-card-actions .edit-btn {
  background: var(--gold-muted);
  color: var(--gold-dark);
}

.item-card-actions .edit-btn:hover {
  background: var(--gold);
  color: var(--ink);
}

.item-card-actions .delete-btn {
  background: rgba(239, 68, 68, 0.1);
  color: var(--red);
}

.item-card-actions .delete-btn:hover {
  background: var(--red);
  color: var(--white);
}

.item-card-body {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.item-card-body .form-group {
  margin-bottom: 0;
}

.item-card-body .form-group.full-width {
  grid-column: 1 / -1;
}

.item-card-body input,
.item-card-body textarea {
  padding: 10px 12px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  background: var(--white);
  width: 100%;
}

.item-card-body input:focus,
.item-card-body textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.item-card-body textarea {
  resize: vertical;
  min-height: 60px;
  font-family: var(--font-body);
}

.item-card-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--slate-200);
}

.item-card-footer label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--slate-600);
  cursor: pointer;
}

.item-card-footer input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
}

/* Translations Grid */
.translations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.translation-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: all var(--transition-fast);
}

.translation-card:hover {
  border-color: var(--gold);
}

.translation-header {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--slate-200);
}

.lang-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.translation-card .form-group {
  margin-bottom: 12px;
}

.translation-card .form-group:last-child {
  margin-bottom: 0;
}

.translation-card input,
.translation-card textarea {
  padding: 10px 12px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  background: var(--white);
  width: 100%;
}

.translation-card input:focus,
.translation-card textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.translation-card textarea {
  resize: vertical;
  min-height: 80px;
  font-family: var(--font-body);
}

/* Transport Item Card */
.transport-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: start;
}

.transport-card .price-input {
  display: flex;
  align-items: center;
  gap: 8px;
}

.transport-card .price-input span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-500);
}

.transport-card .price-input input {
  width: 120px;
  text-align: right;
}

/* Modal Footer */
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 28px;
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
}

/* Button Variants */
.btn.small {
  padding: 8px 14px;
  font-size: 0.8125rem;
}

.btn.primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--ink);
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-gold);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn.ghost {
  background: transparent;
  color: var(--slate-600);
  border: 1px solid var(--slate-300);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn.ghost:hover {
  background: var(--slate-100);
  border-color: var(--slate-400);
}

.btn.secondary {
  background: rgba(239, 68, 68, 0.1);
  color: var(--red);
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn.secondary:hover {
  background: var(--red);
  color: var(--white);
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  color: var(--slate-400);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 12px;
}

.empty-state p {
  font-size: 0.9375rem;
}

/* Form Grid in Sections */
.section .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.section .form-actions {
  display: flex;
  gap: 12px;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal-container {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .item-card-body {
    grid-template-columns: 1fr;
  }
  
  .translations-grid {
    grid-template-columns: 1fr;
  }
}

