/* ═══════════════════════════════════════════════════════
   LetsGo Workspace — Design System
   Warm Dark Theme · 6th October City, Giza
   ═══════════════════════════════════════════════════════ */

/* ─── CSS Variables ───────────────────────────────── */
:root {
  /* Core Colors — Deep navy with warm undertones */
  --bg-primary: #0b0f19;
  --bg-secondary: #121929;
  --bg-tertiary: #1a2337;
  --bg-card: rgba(26, 35, 55, 0.65);
  --bg-card-hover: rgba(26, 35, 55, 0.85);
  --bg-glass: rgba(12, 18, 32, 0.82);
  --bg-input: rgba(26, 35, 55, 0.55);

  /* Accent Gradients — LetsGo Orange */
  --gradient-primary: linear-gradient(135deg, #E8611A, #F2994A);
  --gradient-secondary: linear-gradient(135deg, #F2994A, #E8611A);
  --gradient-success: linear-gradient(135deg, #10b981, #34d399);
  --gradient-warning: linear-gradient(135deg, #f59e0b, #fbbf24);
  --gradient-hero: linear-gradient(135deg, #0b0f19 0%, #1a1425 40%, #0b0f19 100%);

  /* Solid Colors — Orange-centric */
  --color-primary: #E8611A;
  --color-primary-light: #F2994A;
  --color-secondary: #2D9CDB;
  --color-success: #27AE60;
  --color-warning: #F2C94C;
  --color-danger: #EB5757;
  --color-info: #2D9CDB;
  --color-pink: #ec4899;

  /* Text */
  --text-primary: #f0f2f5;
  --text-secondary: #9ba4b5;
  --text-muted: #5f6b7a;
  --text-white: #ffffff;

  /* Borders */
  --border-color: rgba(155, 164, 181, 0.12);
  --border-light: rgba(155, 164, 181, 0.06);
  --border-accent: rgba(232, 97, 26, 0.35);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.25);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.35);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.45);
  --shadow-glow: 0 0 24px rgba(232, 97, 26, 0.18);

  /* Glass */
  --glass-blur: blur(18px);
  --glass-bg: rgba(12, 18, 32, 0.85);
  --glass-border: 1px solid rgba(155, 164, 181, 0.1);

  /* Sizing */
  --sidebar-width: 260px;
  --sidebar-collapsed: 72px;
  --top-bar-height: 64px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

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

/* ─── Reset ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-family);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: var(--color-primary-light); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-primary); }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 0.9375rem; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* ─── App Layout ──────────────────────────────────── */
#app { display: flex; min-height: 100vh; }

/* ─── Sidebar ─────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  left: 0; top: 0;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border-right: var(--glass-border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform var(--transition-base), width var(--transition-base);
}
.sidebar-header {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: var(--glass-border);
}
.logo { display: flex; align-items: baseline; gap: 6px; }
.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.05em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}
.logo-subtext {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-left: -4px;
}
.auth-logo { flex-direction: column; align-items: center; gap: 0; margin-bottom: 12px; }
.auth-logo .logo-text { font-size: 3rem; letter-spacing: -0.06em; }
.auth-logo .logo-subtext { font-size: 0.85rem; margin-left: 0; letter-spacing: 0.4em; }
.sidebar-toggle {
  background: none; border: none; color: var(--text-secondary);
  padding: 6px; border-radius: var(--radius-sm); transition: all var(--transition-fast);
}
.sidebar-toggle:hover { background: var(--bg-tertiary); color: var(--text-primary); }

.sidebar-nav {
  flex: 1; padding: 12px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px;
}
.nav-section-title {
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted); padding: 16px 12px 8px;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 0.875rem; font-weight: 500;
  transition: all var(--transition-fast); border: none; background: none; width: 100%; text-align: left;
}
.nav-item:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.nav-item.active {
  background: rgba(232, 97, 26, 0.12); color: var(--color-primary-light);
  border-left: 3px solid var(--color-primary);
}
.nav-item svg { flex-shrink: 0; }

.sidebar-footer {
  padding: 16px 20px; border-top: var(--glass-border);
}

/* ─── Main Content ────────────────────────────────── */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  transition: margin-left var(--transition-base);
}

/* ─── Top Bar ─────────────────────────────────────── */
.top-bar {
  height: var(--top-bar-height);
  padding: 0 24px;
  display: flex; align-items: center; gap: 16px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border-bottom: var(--glass-border);
  position: sticky; top: 0; z-index: 50;
}
.top-bar-title { font-size: 1.125rem; font-weight: 600; flex: 1; }
.top-bar-actions { display: flex; align-items: center; gap: 8px; }
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text-secondary); padding: 6px; }

/* ─── Icon Button ─────────────────────────────────── */
.icon-btn {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--text-secondary);
  transition: all var(--transition-fast); position: relative;
}
.icon-btn:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.notification-badge {
  position: absolute; top: 4px; right: 4px;
  background: var(--color-danger); color: white;
  font-size: 0.625rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* ─── User Menu ───────────────────────────────────── */
.user-menu { position: relative; }
.user-menu-btn {
  display: flex; align-items: center; gap: 8px;
  background: none; border: none; color: var(--text-primary);
  padding: 6px 10px; border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.user-menu-btn:hover { background: var(--bg-tertiary); }
.avatar {
  width: 32px; height: 32px; border-radius: var(--radius-full);
  background: var(--gradient-primary); display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.8125rem; color: white;
}
.avatar-lg { width: 48px; height: 48px; font-size: 1.125rem; }
.avatar-xl { width: 80px; height: 80px; font-size: 2rem; border-radius: var(--radius-lg); }
.user-name { font-size: 0.875rem; font-weight: 500; }
.dropdown-menu {
  position: absolute; top: 100%; right: 0; margin-top: 8px;
  background: var(--bg-secondary); border: var(--glass-border);
  border-radius: var(--radius-md); padding: 6px;
  min-width: 200px; box-shadow: var(--shadow-lg); z-index: 100;
}
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 0.875rem;
  transition: all var(--transition-fast);
}
.dropdown-item:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.dropdown-divider { border: none; border-top: var(--glass-border); margin: 4px 0; }
.text-danger { color: var(--color-danger) !important; }

/* ─── Page Container ──────────────────────────────── */
.page-container { padding: 24px; max-width: 1400px; margin: 0 auto; }

/* ─── Glass Card ──────────────────────────────────── */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}
.glass-card:hover { box-shadow: var(--shadow-lg); }
.card-header {
  padding: 20px 24px; border-bottom: var(--glass-border);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.card-header h2 { font-size: 1rem; font-weight: 600; }
.card-body { padding: 24px; }
.card-footer { padding: 16px 24px; border-top: var(--glass-border); }

/* ─── Stat Cards ──────────────────────────────────── */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-card);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex; align-items: flex-start; justify-content: space-between;
  transition: all var(--transition-base);
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient-primary); opacity: 0; transition: opacity var(--transition-base);
}
.stat-card:hover::before { opacity: 1; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat-info { display: flex; flex-direction: column; gap: 4px; }
.stat-label { font-size: 0.8125rem; color: var(--text-muted); font-weight: 500; }
.stat-value { font-size: 1.75rem; font-weight: 700; color: var(--text-primary); }
.stat-change { font-size: 0.75rem; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.stat-change.positive { color: var(--color-success); }
.stat-change.negative { color: var(--color-danger); }
.stat-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.stat-icon.purple { background: rgba(232, 97, 26, 0.15); color: var(--color-primary); }
.stat-icon.cyan { background: rgba(6, 182, 212, 0.15); color: var(--color-secondary); }
.stat-icon.green { background: rgba(16, 185, 129, 0.15); color: var(--color-success); }
.stat-icon.amber { background: rgba(245, 158, 11, 0.15); color: var(--color-warning); }
.stat-icon.pink { background: rgba(236, 72, 153, 0.15); color: var(--color-pink); }
.stat-icon.blue { background: rgba(59, 130, 246, 0.15); color: var(--color-info); }
.stat-icon.red { background: rgba(239, 68, 68, 0.15); color: var(--color-danger); }

/* ─── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm); font-size: 0.875rem;
  font-weight: 600; border: none; cursor: pointer;
  transition: all var(--transition-fast); white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-primary); color: white; box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 30px rgba(232, 97, 26, 0.3); }
.btn-secondary { background: var(--bg-tertiary); color: var(--text-primary); border: var(--glass-border); }
.btn-secondary:hover { background: rgba(30, 41, 59, 0.9); }
.btn-danger { background: rgba(239, 68, 68, 0.15); color: var(--color-danger); border: 1px solid rgba(239, 68, 68, 0.3); }
.btn-danger:hover { background: rgba(239, 68, 68, 0.25); }
.btn-success { background: rgba(16, 185, 129, 0.15); color: var(--color-success); border: 1px solid rgba(16, 185, 129, 0.3); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.btn-sm { padding: 6px 14px; font-size: 0.8125rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: var(--radius-sm); }

/* ─── Forms ───────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 0.8125rem; font-weight: 600; color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 10px 14px;
  background: var(--bg-input); border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); color: var(--text-primary);
  transition: all var(--transition-fast); outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(232, 97, 26, 0.15);
}
.form-input::placeholder { color: var(--text-muted); }
.form-textarea { min-height: 100px; resize: vertical; }
.form-select { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 36px;
}
.form-error { font-size: 0.75rem; color: var(--color-danger); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

/* ─── Tables ──────────────────────────────────────── */
.table-container { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; padding: 12px 16px; font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted);
  border-bottom: var(--glass-border); white-space: nowrap;
}
td {
  padding: 14px 16px; font-size: 0.875rem; color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}
tr:hover td { background: rgba(232, 97, 26, 0.03); }
.table-actions { display: flex; gap: 4px; }

/* ─── Status Badges ───────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 600; white-space: nowrap;
}
.badge-confirmed, .badge-active, .badge-available, .badge-completed {
  background: rgba(16, 185, 129, 0.12); color: var(--color-success); border: 1px solid rgba(16, 185, 129, 0.25);
}
.badge-pending {
  background: rgba(245, 158, 11, 0.12); color: var(--color-warning); border: 1px solid rgba(245, 158, 11, 0.25);
}
.badge-cancelled, .badge-inactive, .badge-suspended, .badge-retired, .badge-failed {
  background: rgba(239, 68, 68, 0.12); color: var(--color-danger); border: 1px solid rgba(239, 68, 68, 0.25);
}
.badge-maintenance {
  background: rgba(59, 130, 246, 0.12); color: var(--color-info); border: 1px solid rgba(59, 130, 246, 0.25);
}
.badge-no_show {
  background: rgba(148, 163, 184, 0.12); color: var(--text-secondary); border: 1px solid rgba(148, 163, 184, 0.25);
}
.badge-rejected {
  background: rgba(235, 87, 87, 0.12); color: #EB5757; border: 1px solid rgba(235, 87, 87, 0.25);
}
.badge-unavailable {
  background: rgba(235, 87, 87, 0.12); color: #EB5757; border: 1px solid rgba(235, 87, 87, 0.25);
}
.form-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }
.badge-admin { background: rgba(232, 97, 26, 0.12); color: var(--color-primary); border: 1px solid rgba(232, 97, 26, 0.25); }
.badge-staff { background: rgba(6, 182, 212, 0.12); color: var(--color-secondary); border: 1px solid rgba(6, 182, 212, 0.25); }
.badge-customer { background: rgba(236, 72, 153, 0.12); color: var(--color-pink); border: 1px solid rgba(236, 72, 153, 0.25); }
.badge-dot::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}

/* ─── Auth Page ───────────────────────────────────── */
.auth-page {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg-primary);
  background-image: radial-gradient(circle at 15% 50%, rgba(232, 97, 26, 0.08), transparent 25%),
                    radial-gradient(circle at 85% 30%, rgba(45, 156, 219, 0.08), transparent 25%);
  display: flex; align-items: center; justify-content: center;
}
.auth-container { width: 100%; max-width: 460px; padding: 20px; perspective: 1000px; }
.auth-card { 
  padding: 48px; 
  background: rgba(12, 18, 32, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.05);
  border-radius: 24px;
  backdrop-filter: blur(20px);
}
.auth-header { text-align: center; margin-bottom: 40px; }
.auth-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-top: 16px; letter-spacing: 0.02em; }
.auth-switch { text-align: center; margin-top: 32px; font-size: 0.9rem; color: var(--text-muted); }
.auth-switch a { color: white; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--color-primary); padding-bottom: 2px; transition: all 0.2s; }
.auth-switch a:hover { color: var(--color-primary); border-bottom-color: transparent; }

.auth-form .form-group { margin-bottom: 20px; }
.auth-form .form-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-secondary); margin-bottom: 8px; }
.auth-form .form-input { 
  background: rgba(0,0,0,0.2); 
  border: 1px solid rgba(255,255,255,0.08); 
  border-radius: 12px; 
  padding: 14px 16px; 
  font-size: 1rem; 
  transition: all 0.3s ease;
}
.auth-form .form-input:focus {
  background: rgba(0,0,0,0.4);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(232, 97, 26, 0.1);
}
.auth-form .btn-primary {
  border-radius: 12px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 12px;
  box-shadow: 0 8px 20px -6px rgba(232, 97, 26, 0.4);
}

/* ─── Toast ───────────────────────────────────────── */
.toast-container {
  position: fixed; top: 20px; right: 20px; z-index: 10000;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-radius: var(--radius-md);
  background: var(--bg-secondary); border: var(--glass-border);
  box-shadow: var(--shadow-lg); min-width: 320px; max-width: 420px;
  animation: toastIn 0.3s ease-out;
  font-size: 0.875rem; color: var(--text-primary);
}
.toast.toast-success { border-left: 3px solid var(--color-success); }
.toast.toast-error { border-left: 3px solid var(--color-danger); }
.toast.toast-info { border-left: 3px solid var(--color-info); }
.toast.toast-warning { border-left: 3px solid var(--color-warning); }
.toast-close {
  margin-left: auto; background: none; border: none; color: var(--text-muted);
  cursor: pointer; padding: 4px; font-size: 1.125rem;
}
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }

/* ─── Modal ───────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal { width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; }
.modal-header {
  padding: 20px 24px; border-bottom: var(--glass-border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-header h2 { font-size: 1.125rem; font-weight: 600; }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: var(--glass-border); display: flex; justify-content: flex-end; gap: 12px; }

/* ─── Notification Panel ──────────────────────────── */
.notification-panel {
  position: fixed; top: var(--top-bar-height); right: 0;
  width: 380px; max-height: calc(100vh - var(--top-bar-height));
  background: var(--bg-secondary); border-left: var(--glass-border);
  box-shadow: var(--shadow-xl); z-index: 200; overflow-y: auto;
}
.notification-panel-header {
  padding: 16px 20px; border-bottom: var(--glass-border);
  display: flex; align-items: center; justify-content: space-between;
}
.notification-panel-header h3 { font-size: 1rem; font-weight: 600; }
.notification-panel-body { padding: 8px; }
.notification-item {
  display: flex; gap: 12px; padding: 12px; border-radius: var(--radius-sm);
  transition: background var(--transition-fast); cursor: pointer;
}
.notification-item:hover { background: var(--bg-tertiary); }
.notification-item.unread { background: rgba(232, 97, 26, 0.05); }
.notification-item.unread::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--color-primary); flex-shrink: 0; margin-top: 6px; }
.notification-content { flex: 1; }
.notification-title { font-size: 0.8125rem; font-weight: 600; color: var(--text-primary); }
.notification-message { font-size: 0.8125rem; color: var(--text-muted); margin-top: 2px; }
.notification-time { font-size: 0.6875rem; color: var(--text-muted); margin-top: 4px; }

/* ─── Grid & Workspace Cards ──────────────────────── */
.workspace-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.workspace-card {
  background: var(--bg-card); border: var(--glass-border); border-radius: var(--radius-lg);
  overflow: hidden; transition: all var(--transition-base);
}
.workspace-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg), 0 0 20px rgba(232,97,26,0.12); }
.workspace-card-image {
  height: 160px; background: var(--gradient-primary); display: flex; align-items: center;
  justify-content: center; font-size: 3rem; position: relative;
}
.workspace-card-body { padding: 20px; }
.workspace-card-title { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.workspace-card-type { font-size: 0.8125rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.workspace-card-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; font-size: 0.8125rem; color: var(--text-secondary); }
.workspace-card-meta span { display: flex; align-items: center; gap: 4px; }
.workspace-card-price { margin-top: 16px; display: flex; align-items: baseline; gap: 4px; }
.workspace-card-price .price { font-size: 1.25rem; font-weight: 700; color: var(--color-primary-light); }
.workspace-card-price .unit { font-size: 0.8125rem; color: var(--text-muted); }
.workspace-card-footer {
  padding: 16px 20px; border-top: var(--glass-border);
  display: flex; align-items: center; justify-content: space-between;
}
.amenity-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.amenity-tag {
  padding: 3px 10px; background: var(--bg-tertiary); border-radius: var(--radius-full);
  font-size: 0.6875rem; color: var(--text-muted); border: 1px solid var(--border-light);
}

/* ─── Page Header ─────────────────────────────────── */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.page-header h1 { font-size: 1.5rem; font-weight: 700; }
.page-subtitle { font-size: 0.875rem; color: var(--text-muted); margin-top: 4px; }

/* ─── Filters ─────────────────────────────────────── */
.filters-bar {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap;
}
.search-input {
  padding: 9px 14px 9px 36px; background: var(--bg-input); border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); color: var(--text-primary); min-width: 260px;
  outline: none; transition: all var(--transition-fast);
}
.search-input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(232, 97, 26, 0.15); }
.search-wrapper { position: relative; }
.search-wrapper svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.filter-select {
  padding: 9px 32px 9px 14px; background: var(--bg-input); border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); color: var(--text-primary); outline: none;
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}

/* ─── Empty State ─────────────────────────────────── */
.empty-state {
  text-align: center; padding: 60px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.empty-state-icon { font-size: 3rem; opacity: 0.5; }
.empty-state-title { font-size: 1.125rem; font-weight: 600; color: var(--text-secondary); }
.empty-state-text { font-size: 0.875rem; color: var(--text-muted); max-width: 400px; }

/* ─── Loading / Skeleton ──────────────────────────── */
.loading-spinner {
  display: flex; align-items: center; justify-content: center; padding: 40px;
}
.spinner {
  width: 36px; height: 36px; border: 3px solid var(--border-color);
  border-top-color: var(--color-primary); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-card) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ─── Pagination ──────────────────────────────────── */
.pagination {
  display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 20px;
}
.pagination button {
  padding: 8px 14px; border-radius: var(--radius-sm); background: var(--bg-tertiary);
  border: var(--glass-border); color: var(--text-secondary); font-size: 0.8125rem;
  font-weight: 500; cursor: pointer; transition: all var(--transition-fast);
}
.pagination button:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.pagination button.active { background: var(--color-primary); color: white; border-color: var(--color-primary); }
.pagination button:disabled { opacity: 0.3; cursor: not-allowed; }

/* ─── Charts ──────────────────────────────────────── */
.charts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 20px; margin-bottom: 24px; }
.chart-container { position: relative; height: 280px; }

/* ─── Dashboard extras ────────────────────────────── */
.dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.recent-list { display: flex; flex-direction: column; }
.recent-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--border-light); font-size: 0.8125rem;
}
.recent-item:last-child { border-bottom: none; }
.recent-item-icon {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; font-size: 0.875rem; flex-shrink: 0;
}
.recent-item-text { flex: 1; color: var(--text-secondary); }
.recent-item-time { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }

/* ─── Settings ────────────────────────────────────── */
.settings-section { margin-bottom: 32px; }
.settings-section-title { font-size: 1rem; font-weight: 600; margin-bottom: 16px; padding-bottom: 8px; border-bottom: var(--glass-border); }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.setting-item { display: flex; flex-direction: column; gap: 6px; }
.setting-item label { font-size: 0.8125rem; font-weight: 600; color: var(--text-secondary); }
.setting-item .form-hint { margin-top: 0; }

/* ─── Toggle Switch ───────────────────────────────── */
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--bg-tertiary); border-radius: 12px; border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}
.toggle-slider::before {
  content: ''; position: absolute; height: 18px; width: 18px;
  left: 2px; bottom: 2px; background: var(--text-muted);
  border-radius: 50%; transition: all var(--transition-fast);
}
.toggle input:checked + .toggle-slider { background: var(--color-primary); border-color: var(--color-primary); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); background: white; }

/* ─── Tabs ────────────────────────────────────────── */
.tabs { display: flex; gap: 0; border-bottom: var(--glass-border); margin-bottom: 24px; }
.tab-btn {
  padding: 10px 20px; background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--text-muted); font-size: 0.875rem; font-weight: 500;
  transition: all var(--transition-fast); cursor: pointer;
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { color: var(--color-primary-light); border-bottom-color: var(--color-primary); }

/* ─── Calendar-ish Booking View ───────────────────── */
.booking-timeline { display: flex; flex-direction: column; gap: 8px; }
.timeline-slot {
  display: flex; align-items: stretch; gap: 12px; min-height: 48px;
}
.timeline-time {
  width: 70px; flex-shrink: 0; font-size: 0.75rem; font-weight: 600;
  color: var(--text-muted); padding-top: 4px; text-align: right;
}
.timeline-content {
  flex: 1; border-left: 2px solid var(--border-color); padding-left: 12px; min-height: 48px;
}
.timeline-booking {
  background: rgba(232, 97, 26, 0.1); border: 1px solid rgba(232, 97, 26, 0.25);
  border-radius: var(--radius-sm); padding: 8px 12px; font-size: 0.8125rem;
}

/* ─── Profile ─────────────────────────────────────── */
.profile-header {
  display: flex; align-items: center; gap: 24px; padding: 32px;
  background: var(--bg-card); border-radius: var(--radius-lg);
  border: var(--glass-border); margin-bottom: 24px;
}
.profile-info { flex: 1; }
.profile-name { font-size: 1.5rem; font-weight: 700; }
.profile-email { font-size: 0.875rem; color: var(--text-muted); margin-top: 4px; }

/* ─── Utilities ───────────────────────────────────── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-muted { color: var(--text-muted); }
.font-semibold { font-weight: 600; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ─── Workspace Card Image Enhancement ───────────── */
.workspace-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--transition-slow);
}
.workspace-card:hover .workspace-card-image img { transform: scale(1.05); }
.workspace-card-image { overflow: hidden; position: relative; }
.workspace-card-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,14,26,0.7) 0%, transparent 50%);
  pointer-events: none;
}

/* ─── Responsive ──────────────────────────────────── */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-xl); }
  .main-content { margin-left: 0; }
  .mobile-menu-btn { display: flex; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .charts-grid { grid-template-columns: 1fr; }
  .notification-panel { width: 100%; }
}
@media (max-width: 640px) {
  .page-container { padding: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .workspace-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .filters-bar { flex-direction: column; align-items: stretch; }
  .search-input { min-width: 0; }
  .stat-value { font-size: 1.375rem; }
  .profile-header { flex-direction: column; text-align: center; }
  .auth-card { padding: 24px; }
  .user-name { display: none; }
}
