/* ============================================
   HOMESTAY MANAGEMENT SYSTEM - PREMIUM CSS
   Modern, Clean, Professional Design
   ============================================ */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  /* Primary palette */
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --primary-50: #eef2ff;
  --primary-100: #e0e7ff;
  --primary-200: #c7d2fe;

  /* Secondary */
  --secondary: #8b5cf6;
  --secondary-light: #a78bfa;

  /* Accent */
  --accent: #f59e0b;
  --accent-light: #fbbf24;

  /* Neutrals */
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --bg-sidebar: #1e293b;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;

  /* Status colors */
  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --info: #3b82f6;
  --info-light: #dbeafe;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 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 -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);

  /* Glass */
  --glass-bg: rgba(255,255,255,0.7);
  --glass-border: rgba(255,255,255,0.3);

  /* Radius */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.2s ease;
  --transition-slow: all 0.3s ease;

  /* Font */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== DARK MODE ===== */
[data-theme="dark"] {
  --bg: #0f172a;
  --bg-card: #1e293b;
  --bg-sidebar: #0f172a;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --border: #334155;
  --border-light: #1e293b;

  --primary-50: rgba(99, 102, 241, 0.1);
  --primary-100: rgba(99, 102, 241, 0.15);
  --primary-200: rgba(99, 102, 241, 0.2);

  --success-light: rgba(16, 185, 129, 0.15);
  --warning-light: rgba(245, 158, 11, 0.15);
  --danger-light: rgba(239, 68, 68, 0.15);
  --info-light: rgba(59, 130, 246, 0.15);

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow: 0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -2px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -4px rgba(0,0,0,0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.5), 0 8px 10px -6px rgba(0,0,0,0.4);

  --glass-bg: rgba(30, 41, 59, 0.8);
  --glass-border: rgba(51, 65, 85, 0.5);
}

/* Dark mode: Bootstrap & component overrides */
[data-theme="dark"] .dropdown-menu {
  background: #1e293b;
  border-color: #334155;
}
[data-theme="dark"] .dropdown-item {
  color: #e2e8f0;
}
[data-theme="dark"] .dropdown-item:hover {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
}
[data-theme="dark"] .dropdown-item-text {
  color: #e2e8f0;
}
[data-theme="dark"] .table thead th,
[data-theme="dark"] .table-light {
  background: #0f172a !important;
  color: #94a3b8;
  border-color: #334155;
}
[data-theme="dark"] .table tbody td {
  border-color: #1e293b;
}
[data-theme="dark"] .table tbody tr:hover {
  background: rgba(99, 102, 241, 0.08);
}
[data-theme="dark"] .modal-content {
  background: #1e293b;
  color: #e2e8f0;
}
[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
  border-color: #334155;
}
[data-theme="dark"] .btn-secondary {
  background: #334155;
  color: #e2e8f0;
}
[data-theme="dark"] .btn-secondary:hover {
  background: #475569;
  color: #f1f5f9;
}
[data-theme="dark"] .btn-ghost:hover {
  background: #334155;
}
[data-theme="dark"] .card-footer {
  background: #0f172a;
}
[data-theme="dark"] .alert-success { background: rgba(16,185,129,0.15); color: #6ee7b7; }
[data-theme="dark"] .alert-danger { background: rgba(239,68,68,0.15); color: #fca5a5; }
[data-theme="dark"] .alert-warning { background: rgba(245,158,11,0.15); color: #fbbf24; }
[data-theme="dark"] .alert-info { background: rgba(59,130,246,0.15); color: #93c5fd; }

/* Dark mode: login page */
[data-theme="dark"] .login-card {
  background: rgba(30, 41, 59, 0.95);
}
[data-theme="dark"] .login-card .login-header h2 {
  color: #e2e8f0;
}
[data-theme="dark"] .login-card .form-group label {
  color: #cbd5e1;
}

/* Dark mode: bill page */
[data-theme="dark"] .bill-container {
  background: #1e293b;
}

/* Dark mode: mobile more-menu */
[data-theme="dark"] .more-menu-panel {
  background: #1e293b !important;
}
[data-theme="dark"] .more-menu-panel a {
  color: #e2e8f0 !important;
}

/* Dark mode: notification dropdown */
[data-theme="dark"] .notification-item {
  background: #0f172a !important;
}
[data-theme="dark"] .notification-item:hover {
  background: #1a2744 !important;
}
[data-theme="dark"] #notificationList .bg-light {
  background: #0f172a !important;
}

/* Dark mode: toast */
[data-theme="dark"] .toast-notification {
  background: #1e293b !important;
}

/* Dark mode: scrollbar */
[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #475569;
}
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Dark mode: form inputs */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}
[data-theme="dark"] .form-control::placeholder {
  color: #64748b;
}

/* Dark mode toggle button */
.theme-toggle {
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  font-size: 1.125rem;
  cursor: pointer;
  padding: 0.375rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}
.theme-toggle:hover {
  background: rgba(255,255,255,0.15);
  color: white;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
h1 { font-size: 1.875rem; letter-spacing: -0.025em; }
h2 { font-size: 1.5rem; letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

.text-muted { color: var(--text-muted); }

/* ===== NAVBAR ===== */
.main-navbar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 100vw;
  overflow: visible;
}

.main-navbar .brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
}

.main-navbar .brand-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  backdrop-filter: blur(10px);
}

.main-navbar .nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navbar .nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.main-navbar .nav-links a:hover,
.main-navbar .nav-links a.active {
  background: rgba(255,255,255,0.15);
  color: white;
}

.main-navbar .nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.main-navbar .user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
}

/* Navbar responsive: fit on 1366px laptop at 100% zoom */
@media (max-width: 1440px) {
  .main-navbar {
    padding: 0 1rem;
  }
  .main-navbar .brand {
    gap: 0.5rem;
    font-size: 1rem;
  }
  .main-navbar .brand-icon {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }
  .main-navbar .nav-links {
    gap: 0.125rem;
  }
  .main-navbar .nav-links a {
    padding: 0.375rem 0.5rem;
    font-size: 0.8rem;
    gap: 0.3rem;
  }
  .main-navbar .nav-links a i {
    font-size: 0.8rem;
  }
  .main-navbar .nav-right {
    gap: 0.375rem;
  }
}

@media (max-width: 1280px) {
  .main-navbar .nav-links a {
    padding: 0.375rem 0.375rem;
    font-size: 0.75rem;
    gap: 0.25rem;
  }
  .main-navbar .nav-links a i {
    font-size: 0.75rem;
  }
  .main-navbar .brand span {
    font-size: 0.9rem;
  }
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h5,
.card-header h4 {
  margin: 0;
  font-weight: 600;
}

.card-body {
  padding: 1.25rem;
}

.card-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-light);
  background: var(--bg);
}

/* ===== STAT CARDS ===== */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

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

.stat-card.gradient-1::before { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.stat-card.gradient-2::before { background: linear-gradient(135deg, #10b981, #34d399); }
.stat-card.gradient-3::before { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.stat-card.gradient-4::before { background: linear-gradient(135deg, #f59e0b, #fbbf24); }

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

.stat-card .stat-icon.icon-primary { background: var(--primary-100); color: var(--primary); }
.stat-card .stat-icon.icon-success { background: var(--success-light); color: var(--success); }
.stat-card .stat-icon.icon-info { background: var(--info-light); color: var(--info); }
.stat-card .stat-icon.icon-warning { background: var(--warning-light); color: var(--warning); }

.stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-card .stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== ROOM STATUS CARDS ===== */
.room-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-slow);
  background: var(--bg-card);
}

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

.room-card .room-header {
  padding: 0.875rem 1rem;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.room-card.occupied .room-header {
  background: linear-gradient(135deg, var(--danger), #f87171);
  color: white;
}

.room-card.available .room-header {
  background: linear-gradient(135deg, var(--success), #34d399);
  color: white;
}

.room-card .room-body {
  padding: 1rem;
}

.room-card .room-body .guest-name {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.room-card .room-body .room-info {
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.25rem;
}

/* ===== BUTTONS ===== */
.btn {
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-success {
  background: var(--success);
  color: white;
}
.btn-success:hover {
  background: #059669;
  color: white;
}

.btn-warning {
  background: var(--warning);
  color: white;
}
.btn-warning:hover {
  background: #d97706;
  color: white;
}

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

.btn-info {
  background: var(--info);
  color: white;
}
.btn-info:hover {
  background: #2563eb;
  color: white;
}

.btn-secondary {
  background: #e2e8f0;
  color: var(--text);
}
.btn-secondary:hover {
  background: #cbd5e1;
  color: var(--text);
}

.btn-outline-primary {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover {
  background: var(--border-light);
  color: var(--text);
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: var(--radius);
}

/* ===== FORMS ===== */
.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  transition: var(--transition);
  background: var(--bg-card);
  color: var(--text);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  outline: none;
}

.form-label {
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.375rem;
}

/* ===== TABLES ===== */
.table {
  font-size: 0.875rem;
}

.table thead th {
  background: var(--bg);
  border-bottom: 2px solid var(--border);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1rem;
  white-space: nowrap;
}

.table tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

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

.table-success { background-color: var(--success-light); }

/* ===== BADGES ===== */
.badge {
  font-weight: 500;
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.badge.bg-success { background: var(--success); }
.badge.bg-danger { background: var(--danger); }
.badge.bg-warning { background: var(--warning); color: white; }
.badge.bg-info { background: var(--info); }
.badge.bg-primary { background: var(--primary); }
.badge.bg-secondary { background: var(--text-muted); }

/* ===== ALERTS & FLASH MESSAGES ===== */
.alert {
  border-radius: var(--radius);
  border: none;
  padding: 0.875rem 1.25rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.alert-success { background: var(--success-light); color: #065f46; }
.alert-danger { background: var(--danger-light); color: #991b1b; }
.alert-warning { background: var(--warning-light); color: #92400e; }
.alert-info { background: var(--info-light); color: #1e40af; }

/* Toast animation */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast-msg {
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius);
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s ease, fadeOut 0.3s ease 4.7s forwards;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 400px;
}

.toast-msg.toast-success { background: var(--success); }
.toast-msg.toast-danger { background: var(--danger); }
.toast-msg.toast-warning { background: var(--warning); }
.toast-msg.toast-info { background: var(--info); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
  to { transform: translateX(100%); opacity: 0; }
}

/* ===== MODAL ===== */
.modal-content {
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: var(--shadow-xl);
}

.modal-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.modal-body { padding: 1.25rem; }
.modal-footer { padding: 1rem 1.25rem; border-top: 1px solid var(--border-light); }

/* ===== DROPDOWN ===== */
.dropdown-menu {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.375rem;
  min-width: 200px;
}

.dropdown-item {
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--primary-50);
  color: var(--primary);
}

/* ===== PAGE HEADER ===== */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-header h1 {
  margin: 0;
  font-size: 1.5rem;
}

/* ===== DATE NAVIGATION ===== */
.date-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  padding: 0.375rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

.date-nav .btn {
  border-radius: var(--radius-full);
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.date-nav input[type="date"] {
  border: none;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  background: transparent;
  color: var(--text);
  text-align: center;
}

.date-nav input[type="date"]:focus {
  outline: none;
}

/* ===== MOBILE TABBAR ===== */
.mobile-tabbar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 0.375rem 0;
  z-index: 1030;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
}

.mobile-tabbar .tab-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-tabbar .tab-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.625rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mobile-tabbar .tab-item a i {
  font-size: 1.125rem;
}

.mobile-tabbar .tab-item a:hover,
.mobile-tabbar .tab-item a.active {
  color: var(--primary);
  background: var(--primary-50);
}

/* ===== LOGIN PAGE ===== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  top: -200px;
  right: -200px;
}

.login-page::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  bottom: -200px;
  left: -100px;
}

.login-card {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: 3rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  position: relative;
  z-index: 1;
}

.login-card .login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-card .login-logo {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: white;
  font-size: 1.75rem;
}

.login-card .login-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.login-card .login-header p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0;
}

.login-card .form-group {
  margin-bottom: 1.25rem;
}

.login-card .form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  display: block;
}

.login-card .form-control {
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  border-radius: var(--radius);
}

.login-card .btn-login {
  width: 100%;
  padding: 0.875rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  transition: var(--transition-slow);
  cursor: pointer;
}

.login-card .btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* ===== CONTENT WRAPPER ===== */
.content-wrapper {
  padding: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* ===== QUICK ACTIONS ===== */
.quick-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.875rem;
  transition: var(--transition);
}

.quick-action-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.quick-action-btn i {
  font-size: 1.125rem;
}

/* ===== SETTINGS PAGE ===== */
.settings-section {
  margin-bottom: 2rem;
}

.settings-section h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-section h3 i {
  color: var(--primary);
}

.color-preview {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  cursor: pointer;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--border);
}

.empty-state h4 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.empty-state p {
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

/* ===== PAGINATION ===== */
.pagination {
  gap: 0.25rem;
}

.page-link {
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.375rem 0.75rem;
}

.page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .main-navbar {
    padding: 0 1rem;
  }

  .main-navbar .nav-links {
    display: none;
  }

  .content-wrapper {
    padding: 1rem;
    padding-bottom: 5rem;
    overflow-x: hidden;
    max-width: 100vw;
  }

  .mobile-tabbar {
    display: block;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-header h1 {
    font-size: 1.25rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-card .stat-value {
    font-size: 1.375rem;
  }

  .login-card {
    margin: 1rem;
    padding: 2rem;
  }

  .table-responsive {
    font-size: 0.8125rem;
  }

  .quick-actions {
    flex-direction: column;
  }

  h1 { font-size: 1.375rem; }

  .card-body { padding: 1rem; }
}

@media (max-width: 576px) {
  .date-nav {
    width: 100%;
    justify-content: center;
  }

  .stat-card .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .btn-group .btn {
    padding: 0.25rem 0.5rem;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .main-navbar, .mobile-tabbar, .no-print { display: none; }
  .content-wrapper { padding: 0; max-width: 100%; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}

/* ===== FILTER CARD ===== */
.filter-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.filter-card .filter-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== BILL/INVOICE ===== */
.bill-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.bill-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 2rem;
  text-align: center;
}

.bill-body { padding: 2rem; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--text-light);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===== ANIMATIONS ===== */
.fade-in {
  animation: fadeIn 0.3s ease;
}

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

/* ===== UTILITIES ===== */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.8125rem; }
.rounded-full { border-radius: var(--radius-full); }
