/* CSS Variables for Theme Support */
:root {
  /* Light Theme Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bubu: #f1f5f9;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(0, 0, 0, 0.15);
 
  /* Brand Colors */
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-light: #dbeafe;
  --lgn-bg: #3b82f6;
  --secondary: #10b981;
  --secondary-hover: #059669;
  --secondary-light: #d1fae5;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-light: #fef3c7;
  
  /* Status Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  
  /* Layout */
  --sidebar-width: 280px;
  --topbar-height: 64px;
  --border-radius: 8px;
  --border-radius-lg: 12px;

  /*special color*/
  --n-color: rgb(144, 144, 144);
  --bg-scroll:rgb(255, 255, 255);
}

/* Dark Theme */
[data-theme="dark"] {
  
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --border-color: #334155;
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-hover: rgba(0, 0, 0, 0.4);
   --dit-collor:var(--border-color)
  --primary-light: #1e40af;
  --secondary-light: #065f46;
  --accent-light: #92400e;
  --n-color: rgb(11, 0, 35);
  --bg-scroll:#000614;
  --lgn-bg: #3b82f6;
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base Styles */
body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Sidebar Styles */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background-color: var(--bg-primary);
  border-right: 1px solid var(--border-color);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

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

.sidebar-header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.logo-icon {
  font-size: var(--font-size-2xl);
}

.logo-text {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--primary);
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--border-radius);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.close-btn:hover {
  color: var(--text-primary);
  background-color: var(--bg-tertiary);
}



.sidebar-menu {
  flex: 1;
  padding: var(--space-6) 0;
  display: flex; /* Makes the menu a flex container */
  flex-direction: column; /* Stacks children vertically */
  overflow-y: auto; 
  padding-bottom: var(--space-4); 
}

/* New: Login Button at the Bottom */
/* Sidebar Login Button (Call-to-Action) */
.login-btn {
  /* Use flex positioning to ensure it's at the bottom */
  margin-top: auto; 
  
  /* Resetting it to a normal menu item presentation, but with bold styling */
  padding: var(--space-4) var(--space-6);
  border-left: 3px solid transparent; /* Keeps the active indicator area */
  
  /* Key styling for CTA look */
  background-color: var(--primary); /* Primary color background */
  color: white !important; /* White text for contrast */
  font-weight: 600; /* Bolder text */
  box-shadow: 0 4px 10px var(--shadow); /* Subtle shadow for lift */
  transition: all 0.2s ease, box-shadow 0.3s ease;
  
  /* Remove separator from the top if it's the CTA button */
  border-top: none; 
}

/* Hover state for the CTA button */
.login-btn:hover {
  background-color: var(--primary-hover); /* Darker shade on hover */
  color: white !important; /* Keep text white */
  border-left-color: var(--primary-hover); /* Match border to hover color */
  transform: translateY(-1px); /* Slight lift effect */
  box-shadow: 0 6px 15px var(--shadow-hover); /* More pronounced shadow on hover */
}

/* Style the icon for the dark background */
.login-btn .menu-icon {
  color: white; 
}



.menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
  border-left: 3px solid transparent;
}

.menu-item:hover {
  color: var(--text-primary);
  background-color: var(--bg-tertiary);
}

.menu-item.active {
  color: var(--primary);
  background-color: var(--primary-light);
  border-left-color: var(--primary);
}

.menu-icon {
  flex-shrink: 0;
}

/* Main Content */
.main-content {
  margin-left: 0;
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}

.topbar {
  height: var(--topbar-height);
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  position: sticky;
  top: 0;
  z-index: 100;
}

.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: var(--border-radius);
  transition: background-color 0.2s ease;
}

.hamburger-btn:hover {
  background-color: var(--bg-tertiary);
}

.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 1px;
  transition: all 0.3s ease;
}

.page-title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-primary);
}

.content {
  padding: var(--space-8);
  max-width: 1200px;
  margin: 0 auto;
}

/* Home Page Styles */
.hero-section {
  text-align: center;
  padding: var(--space-12) 0;
}

.hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.hero-icon {
  font-size: 4rem;
  margin-bottom: var(--space-6);
}

.hero-title {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

.hero-description {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-10);
  line-height: 1.7;
}

.quick-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 400px;
  margin: 0 auto;
}

.action-btn {
  background: none;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: var(--space-6);
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background-color: var(--bg-primary);
}

.action-btn.primary {
  border-color: var(--primary);
}

.action-btn.primary:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow-hover);
}

.action-btn.secondary {
  border-color: var(--secondary);
}

.action-btn.secondary:hover {
  background-color: var(--secondary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow-hover);
}

.btn-icon {
  font-size: var(--font-size-2xl);
  flex-shrink: 0;
}

.btn-content h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.btn-content p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.action-btn:hover .btn-content p {
  color: rgba(255, 255, 255, 0.8);
}
.action-btn:hover .btn-content h3 {
  color: rgba(255, 255, 255, 0.8);
}
.action-btn .btn-content h3{
  color: var(--text-primary);
}

.features-section {
  padding: var(--space-12) 0;
}

.section-title {
  font-size: var(--font-size-2xl);
  font-weight: 600;
  text-align: center;
  margin-bottom: var(--space-8);
  color: var(--text-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.feature-card {
  text-align: center;
  padding: var(--space-8);
  background-color: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px var(--shadow-hover);
}

.feature-icon {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-4);
}

.feature-card h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Dashboard Styles */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.stat-card {
  background-color: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  padding: var(--space-6);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.stat-icon {
  font-size: var(--font-size-2xl);
  padding: var(--space-3);
  background-color: var(--bg-tertiary);
  border-radius: var(--border-radius);
}

.stat-info h3 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.stat-info p {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.filters-section {
  margin-bottom: var(--space-8);
}

.filter-tabs {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
  border-bottom: 1px solid var(--border-color);
}

.filter-tab {
  background: none;
  border: none;
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  font-weight: 500;
}

.filter-tab:hover {
  color: var(--text-primary);
}

.filter-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.bookings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-4);
}

.booking-card {
  background-color: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  padding: var(--space-6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.booking-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow-hover);
}

.booking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.booking-type {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.type-icon {
  font-size: var(--font-size-lg);
}

.type-text {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.booking-status {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--border-radius);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.booking-status.confirmed {
  background-color: var(--secondary-light);
  color: var(--success);
}

.booking-status.pending {
  background-color: var(--accent-light);
  color: var(--warning);
}

.booking-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.booking-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.booking-detail {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.detail-icon {
  flex-shrink: 0;
  color: var(--text-muted);
}

.booking-actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-color);
}

.btn-action {
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--border-color);
  background: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: var(--font-size-sm);
  transition: all 0.2s ease;
  color: var(--dit-collor);
}

.btn-action:hover {
  background-color: var(--bg-tertiary);
}

.btn-action.edit:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-action.cancel:hover {
  border-color: var(--error);
  color: var(--error);
}

.no-bookings {
  text-align: center;
  color: var(--text-secondary);
  padding: var(--space-12);
  grid-column: 1 / -1;
}

/* Settings Styles */
.settings-section {
  margin-bottom: var(--space-10);
}

.settings-header {
  margin-bottom: var(--space-6);
}

.section-description {
  color: var(--text-secondary);
  margin-top: var(--space-2);
}

.settings-card {
  background-color: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  padding: var(--space-6);
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) 0;
}

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

.setting-info h3 {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.setting-info p {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.setting-btn {
  background: none;
  border: 1px solid var(--border-color);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--border-radius);
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.setting-btn:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Theme Toggle */
.theme-toggle, .notification-toggle {
  position: relative;
}

.theme-checkbox, .notification-checkbox {
  display: none;
}

.toggle-label {
  display: block;
  width: 60px;
  height: 30px;
  background-color: var(--border-color);
  border-radius: 15px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s ease;
}

.toggle-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px var(--shadow);
}

.theme-checkbox:checked + .toggle-label,
.notification-checkbox:checked + .toggle-label {
  background-color: var(--primary);
}

.theme-checkbox:checked + .toggle-label .toggle-slider,
.notification-checkbox:checked + .toggle-label .toggle-slider {
  transform: translateX(30px);
}

.toggle-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--font-size-sm);
  transition: opacity 0.3s ease;
}

.toggle-icon.sun {
  left: 6px;
  opacity: 1;
}

.toggle-icon.moon {
  right: 6px;
  opacity: 0;
}

.theme-checkbox:checked + .toggle-label .toggle-icon.sun {
  opacity: 0;
}

.theme-checkbox:checked + .toggle-label .toggle-icon.moon {
  opacity: 1;
}

/* Responsive Design */
@media (min-width: 768px) {
  .quick-actions {
    flex-direction: row;
    max-width: 800px;
  }
  
  .action-btn {
    flex: 1;
  }
}

@media (min-width: 1024px) {
  .sidebar.open + .main-content {
    margin-left: var(--sidebar-width);
  }
}

@media (max-width: 1023px) {
  .content {
    padding: var(--space-4);
  }
  
  .hero-section {
    padding: var(--space-8) 0;
  }
  
  .hero-title {
    font-size: var(--font-size-3xl);
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .bookings-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-tabs {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding: 0 var(--space-4);
  }
  
  .content {
    padding: var(--space-3);
  }
  
  .hero-title {
    font-size: var(--font-size-2xl);
  }
  
  .hero-description {
    font-size: var(--font-size-base);
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .stat-card {
    padding: var(--space-4);
  }
  
  .booking-card {
    padding: var(--space-4);
  }
  
  .setting-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
}

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

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}


/* Scrollbar styles */

/* width of the scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

/* background (track) */
::-webkit-scrollbar-track {
  background-color: var(--bg-scroll) !important;  /* neon blue */
  
}

/* the draggable part (thumb) */
::-webkit-scrollbar-thumb {
  background: var(--n-color); /* neon green */
  border-radius: 10px;
}

/* hover effect (optional) */
::-webkit-scrollbar-thumb:hover {
  background: #000326;
}

/* Audi form*/

/* Booking Form Styles */
.booking-form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-8);
  background-color: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.booking-form-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--shadow-hover);
}

.form-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  text-align: center;
}

.form-description {
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-8);
}

.form-group {
  margin-bottom: var(--space-6);
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: var(--space-4);
  font-size: var(--font-size-base);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  margin-top: var(--space-8);
}

.btn-submit,
.btn-cancel {
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-base);
  font-weight: 600;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit {
  background-color: var(--primary);
  color: white;
}

.btn-submit:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-hover);
}

.btn-cancel {
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

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

/* Responsive adjustments for form */
@media (max-width: 480px) {
  .form-actions {
    flex-direction: column;
  }
}
/* Sidebar Authenticated User Profile */
.user-profile-card {
  border-top: 1px solid var(--border-color); /* Adds a separator line */
  padding: var(--space-4) var(--space-6); /* Padding around content */
  margin-top: auto; /* IMPORTANT: Pushes the element to the bottom */
  display: flex;
  flex-direction: column;
  gap: var(--space-3); /* Space between name and button */
  background-color: var(--bg-primary); /* Base color for the card */
}

.profile-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  font-weight: 600;
}

.profile-icon {
  font-size: var(--font-size-xl);
  color: var(--primary); /* Use brand color for icon */
  flex-shrink: 0; /* Prevents icon from shrinking */
}

.profile-email {
  /* Use text-primary for the name/email */
  color: var(--text-primary);
  /* Ensure text doesn't overflow */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Logout button styling to match action buttons */
#logout-btn {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-sm);
  font-weight: 500;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

#logout-btn:hover {
  background-color: var(--error);
  border-color: var(--error);
  color: white;
}


/* Custom Modal Styles for booking alert */
/* Custom Modal Styles */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* ADD BLUR HERE */
    backdrop-filter: blur(5px); /* This creates the blur effect */
    -webkit-backdrop-filter: blur(5px); /* For Safari support */
    /* Existing background color with opacity */
    background-color: rgba(0, 0, 0, 0.4); /* Reduced opacity for better visibility of blur */
    
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden; /* Start hidden */
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

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

.custom-modal {
    background-color: var(--bg-primary);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.custom-modal-overlay.show .custom-modal {
    transform: scale(1);
}

.custom-modal p {
    font-size: var(--font-size-lg);
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 500;
}

#close-custom-alert {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: var(--font-size-base);
    transition: background-color 0.2s;
}

#close-custom-alert:hover {
    background-color: var(--primary-hover);
}


#go-login{
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: var(--font-size-base);
    transition: background-color 0.2s;
}
#go-login:hover {
    background-color: var(--secondary-hover);
}

#cancel-logout {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: var(--font-size-base);
    transition: all 0.2s ease;
}
#cancel-logout:hover {
    background-color: var(--text-secondary);
    color: white;
}

#confirm-logout {
    background-color: var(--error);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: var(--font-size-base);
    transition: background-color 0.2s;
}
#confirm-logout:hover {
    background-color: #b91c1c; /* Darker red on hover */
}

