@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

:root {
  /* Premium Dark Theme Colors */
  --bg-main: #000000;
  --bg-surface: #000000;
  --bg-surface-hover: #111111;
  
  --primary: #E61A23; /* GRT Red */
  --primary-glow: rgba(230, 26, 35, 0.5);
  --secondary: #B0B5B9; /* Silver */
  
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(230, 26, 35, 0.5);
  
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  
  --glass-bg: rgba(0, 0, 0, 0.9);
  --glass-border: rgba(255, 255, 255, 0.15);

  --font-family: 'Tajawal', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

[data-theme="light"] {
    --bg-main: #F8FAFC;
    --bg-surface: #FFFFFF;
    --bg-surface-hover: #F1F5F9;
    --text-main: #0F172A;
    --text-muted: #475569;
    --border-color: #E2E8F0;
    --border-focus: rgba(230, 26, 35, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.05);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  direction: rtl;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(230, 26, 35, 0.05), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(176, 181, 185, 0.05), transparent 25%);
}


[data-theme="light"] body::before {
    opacity: 0.1;
}

body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    background-image: url('../img/logo.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 60%;
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Typography */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
p { line-height: 1.6; }

/* Custom Date Picker Styles */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.time-slot-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.75rem 0.5rem;
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
}

.time-slot-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.time-slot-btn.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

[data-theme="light"] .time-slot-btn {
    background: var(--bg-surface);
}
[data-theme="light"] .time-slot-btn:hover {
    background: var(--border-color);
}
[data-theme="light"] .time-slot-btn.selected {
    background: var(--primary);
    color: white;
}

.flatpickr-calendar {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

/* Saudi Plate Styles */
.saudi-plate-container {
    display: flex;
    flex-direction: row;
    border: 2px solid #000;
    border-radius: 12px;
    background: #fff;
    padding: 2px;
    height: 70px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    direction: ltr;
}

.saudi-plate-ksa {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-left: 2px solid #000;
    padding: 0 5px;
    font-size: 0.7rem;
    font-weight: bold;
    color: #000;
    width: 35px;
}

.ksa-en {
    transform: rotate(90deg);
    letter-spacing: 2px;
    margin-bottom: 15px;
    margin-top: 5px;
}

.saudi-plate-emblem {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
}

.saudi-plate-letters, .saudi-plate-numbers {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.plate-char, .plate-num {
    border: none;
    background: transparent;
    text-align: center;
    font-weight: bold;
    color: #000;
    outline: none;
    font-size: 1.8rem;
    text-transform: uppercase;
    font-family: monospace;
    padding: 0;
    margin: 0;
    min-width: 0;
}

.plate-char {
    width: 33%;
}

.plate-num {
    width: 100%;
    letter-spacing: 0.3rem;
}

@media (max-width: 480px) {
    .plate-num {
        font-size: 1.1rem;
        letter-spacing: 0;
    }
    .plate-char {
        font-size: 1.1rem;
    }
    .saudi-plate-container {
        height: 60px;
    }
    .saudi-plate-ksa {
        width: 25px;
        padding: 0 2px;
        font-size: 0.6rem;
    }
    .saudi-plate-emblem img {
        width: 25px !important;
    }
}

.time-dropdown-wrapper {
    position: relative;
    width: 100%;
}

.time-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 0.5rem;
    z-index: 100;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: fadeIn 0.2s ease;
}

[data-theme="light"] .time-dropdown-menu {
    background: white;
}

/* Success Overlay Styles */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.success-overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/logo.png');
    background-size: 50%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.25;
    z-index: 1;
}

.success-overlay-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 2rem;
    max-width: 500px;
}

.success-overlay .success-icon {
    font-size: 5rem;
    color: var(--success);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.5));
}

.success-overlay h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.success-overlay p {
    color: #ccc;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.success-details {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.success-details .detail-item {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0.5rem 0;
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Global Utilities */
.form-wrapper {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-xl);
  max-width: 600px;
  width: 100%;
  position: relative;
  overflow: hidden;
}



.form-wrapper > * {
    position: relative;
    z-index: 1;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Split Layout for Client Home */
.split-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.split-hero {
  flex: 1;
  background: linear-gradient(135deg, rgba(11, 14, 20, 0.9) 0%, rgba(11, 14, 20, 0.7) 100%), 
              url('https://images.unsplash.com/photo-1613214149922-f1809c99b414?q=80&w=2070&auto=format&fit=crop') center/cover;
  display: none;
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
  position: relative;
}

@media(min-width: 992px) {
    .split-hero { display: flex; }
}

.split-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, #94A3B8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.split-hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 400px;
}

[data-theme="light"] .split-hero {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(248, 250, 252, 0.7) 100%), 
                url('https://images.unsplash.com/photo-1613214149922-f1809c99b414?q=80&w=2070&auto=format&fit=crop') center/cover;
}

[data-theme="light"] .split-hero h1 {
    background: linear-gradient(135deg, #0F172A, #E61A23);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.split-form-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  overflow-y: auto;
  align-items: center;
  max-width: 100%;
}

@media(min-width: 992px) {
    .split-form-container { max-width: 600px; padding: 3rem 4rem; }
}

/* Navbar / Header */
.top-nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.brand {
  font-size: 1.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-main);
  text-decoration: none;
}

.brand i {
  color: var(--primary);
  background: rgba(230, 26, 35, 0.1);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

.brand-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  background-color: #000;
  padding: 0.25rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.lang-switch {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.lang-switch:hover {
  background: var(--bg-surface-hover);
  border-color: var(--text-muted);
}

/* Form Elements */

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

.form-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

.form-control {
  width: 100%;
  padding: 1rem 1.25rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control::placeholder {
    color: rgba(255,255,255,0.2);
}
[data-theme="light"] .form-control::placeholder { color: rgba(0,0,0,0.3); }

.form-control:focus {
  outline: none;
  border-color: #3B82F6;
  background-color: var(--bg-main);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.empty-field-error {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}

.form-control:focus + .form-label,
.form-control:not(:placeholder-shown) + .form-label {
    color: #3B82F6;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394A3B8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: 1.2rem;
    padding-left: 2.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media(min-width: 500px) {
    .grid-2 { grid-template-columns: 1fr 1fr; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-family);
  width: 100%;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  box-shadow: 0 4px 15px var(--primary-glow);
}

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

.btn-primary:active {
  transform: translateY(1px);
}

.btn-danger {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

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

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  display: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: fadeInUp 0.3s ease forwards;
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Admin Dashboard Layout */
.admin-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-tabs {
    flex: 1 1 auto;
    justify-content: flex-start;
    margin: 0 1rem;
    padding-bottom: 0;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
}

.header-tabs::-webkit-scrollbar {
    display: none; /* Safari/Chrome */
}

@media(max-width: 992px) {
    .admin-header {
        padding: 1rem;
    }
.header-tabs {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        margin: 0;
    }
}

/* Custom Dropdown Styles */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.custom-dropdown-header {
    padding: 1rem 1.5rem;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    font-size: 1.1rem;
}

.custom-dropdown-header:hover {
    border-color: #3B82F6;
}

.custom-dropdown.open .custom-dropdown-header {
    border-color: #3B82F6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.custom-dropdown-list {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    flex-direction: column;
}

.custom-dropdown.open .custom-dropdown-list {
    display: flex;
    animation: fadeInUp 0.2s ease forwards;
}

.custom-dropdown-item {
    padding: 1rem 1.5rem;
    cursor: pointer;
    color: var(--text-main);
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}

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

.custom-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #3B82F6;
}

.custom-dropdown-back {
    color: #3B82F6;
    font-weight: bold;
    background: rgba(59, 130, 246, 0.05);
    position: sticky;
    top: 0;
    z-index: 10;
}
.custom-dropdown-back:hover {
    background: rgba(59, 130, 246, 0.1);
}

.admin-content {
    padding: 2rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

@media(min-width: 768px) {
    .admin-content { padding: 3rem 2rem; }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.stat-card .icon-wrapper {
    position: absolute;
    bottom: -1rem;
    left: 1rem;
    font-size: 5rem;
    opacity: 0.05;
    color: var(--text-main);
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
}

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

/* Dashboard Controls */
.controls-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    background: var(--bg-surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

@media(min-width: 992px) {
    .controls-wrapper {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    white-space: nowrap;
    transition: var(--transition);
}

.tab:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px var(--primary-glow);
}

.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
}

@media(min-width: 992px) {
    .filters { width: auto; }
}

.filters .form-control {
    min-width: 200px;
    padding: 0.75rem 1rem;
}

/* Bookings List */
.booking-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media(min-width: 1024px) {
    .booking-list { grid-template-columns: repeat(2, 1fr); }
}

.booking-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
}

.booking-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 12px 24px rgba(230, 26, 35, 0.15);
}

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

.customer-info h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.customer-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.badge {
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.badge-new { background: rgba(230, 26, 35, 0.15); color: #F87171; border: 1px solid rgba(230, 26, 35, 0.3); }
.badge-review { background: rgba(245, 158, 11, 0.15); color: #FBBF24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-confirmed { background: rgba(16, 185, 129, 0.15); color: #34D399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-cancelled { background: rgba(239, 68, 68, 0.15); color: #F87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-done { background: rgba(156, 163, 175, 0.15); color: #9CA3AF; border: 1px solid rgba(156, 163, 175, 0.3); }

.card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-notes {
    background: rgba(0,0,0,0.2);
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: #CBD5E1;
    margin-top: 0.5rem;
}

.card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-footer select {
    width: auto;
    min-width: 150px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background-color: var(--bg-main);
}

/* Spinner overlay */
#loading-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 14, 20, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 4rem;
    color: var(--border-color);
}

/* Splash Screen */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.splash-logo {
    font-size: 5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    animation: pulseLogo 2s infinite alternate;
}

.splash-logo img {
    max-width: 250px;
}

.splash-text {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 1px;
}

@keyframes pulseLogo {
    from { transform: scale(0.9); }
    to { transform: scale(1.1); }
}

/* Modals */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-surface);
    margin: auto;
    padding: 2rem;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 500px;
    position: relative;
    border-radius: var(--radius-lg);
}

.close-modal {
    color: var(--text-muted);
    float: left;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary);
    text-decoration: none;
}

/* Schedule Strip Styles */
.schedule-strip {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem 0.5rem;
    scroll-behavior: smooth;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
}

.schedule-strip::-webkit-scrollbar {
    height: 6px;
}
.schedule-strip::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.schedule-day {
    flex: 0 0 auto;
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    user-select: none;
}

.schedule-day:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.schedule-day.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 8px 16px var(--primary-glow);
}

.schedule-day .day-name {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.schedule-day .day-date {
    font-size: 0.85rem;
    opacity: 0.8;
}

.schedule-day .booking-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    background: var(--danger);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    border: 2px solid var(--bg-surface);
}
