:root {
    /* Color Palette - Framer-inspired Clean & Soft */
    --primary-color: #0f172a;
    --secondary-color: #64748b;
    /* Softer secondary text */
    --accent-color: #007AFF;
    /* iOS/Framer Blue */
    --accent-hover: #0062cc;
    --bg-body: #ffffff;
    /* Pure white body */
    --bg-surface: #f8fafc;
    /* Light grey for sections/cards */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --success: #10b981;
    --error: #ef4444;

    /* Spacing & Layout */
    --container-width: 1200px;
    /* Wider container */
    --header-height: 80px;
    --radius-sm: 12px;
    --radius-md: 24px;
    /* Larger, softer curves */
    --radius-lg: 32px;
    --radius-full: 9999px;

    /* Effects */
    --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 12px 24px -6px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 32px 64px -12px rgba(0, 0, 0, 0.15);

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.03em;
    /* Tighter tracking */
    line-height: 1.1;
}

h1 {
    font-size: 4rem;
    /* Larger hero text */
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    /* Larger buttons */
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.btn-primary:hover {
    background-color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
}

.btn-accent {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.25);
    /* Colored shadow */
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 122, 255, 0.35);
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

header .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.nav-links a:not(.btn):hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    background-color: white;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: #eff6ff;
    color: var(--accent-color);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid #dbeafe;
}

.hero h1 {
    margin-bottom: 16px;
    line-height: 1.1;
}

.hero p {
    margin-bottom: 24px;
    font-size: 1.25rem;
    line-height: 1.7;
    max-width: 500px;
}

.hero-image-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
    aspect-ratio: 4/3;
    /* Maintain proportion */
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.hero-image-card:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.hero-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: var(--bg-surface);
    /* Light grey background */
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    /* Match hero gap */
    align-items: center;
    margin-bottom: 60px;
}

.feature-row:last-child {
    margin-bottom: 0;
}

/* Removed reverse order to match hero style (Text Left, Image Right) */
/* .feature-row.reverse .feature-content { order: 2; } */
/* .feature-row.reverse .feature-image { order: 1; } */

.feature-image {
    aspect-ratio: 4/3;
    /* Maintain proportion */
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg);
    /* Match hero rotation */
    transition: transform 0.5s ease;
}

/* Removed reverse rotation */
/* .feature-row.reverse .feature-image { transform: perspective(1000px) rotateY(-5deg); } */

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feature-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.feature-list-check {
    list-style: none;
    margin-top: 24px;
}

.feature-list-check li {
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
    font-weight: 500;
    color: var(--text-main);
}

.feature-list-check li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* Booking Section */
.booking-section {
    padding: 80px 0;
    background-color: white;
}

.booking-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Match hero columns */
    gap: 40px;
    /* Match hero gap */
    align-items: start;
}

.booking-info h2 {
    margin-bottom: 24px;
}

.feature-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: #eff6ff;
    color: var(--accent-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 0.95rem;
}

.booking-form-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle border */
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
    background: #f8fafc;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.agreement-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    padding: 16px;
    background: #f8fafc;
    border-radius: var(--radius-sm);
}

.agreement-check input {
    margin-top: 3px;
}

/* Footer */
footer {
    background-color: white;
    border-top: 1px solid #e2e8f0;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 24px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #f1f5f9;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Admin Styles */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--primary-color);
    color: white;
    padding: 24px;
}

.admin-content {
    flex: 1;
    padding: 40px;
    background: #f1f5f9;
}

.card {
    background: white;
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-pending {
    background: #fff7ed;
    color: #c2410c;
}

.status-confirmed {
    background: #f0fdf4;
    color: #15803d;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 40px;
    }

    .hero p {
        margin: 0 auto 40px;
    }

    .hero-image-card {
        aspect-ratio: auto;
        height: auto;
        transform: none;
        margin-top: 40px;
    }

    .hero-image-card img {
        height: auto;
    }

    .hero-image-card:hover {
        transform: none;
    }

    .booking-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .feature-row,
    .feature-row.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .feature-row.reverse .feature-content {
        order: 1;
    }

    .feature-row.reverse .feature-image {
        order: 2;
    }

    .feature-image {
        aspect-ratio: auto;
        height: auto;
    }

    .feature-image img {
        height: auto;
        object-position: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Header Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.icon-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.mobile-only {
    display: none;
}

/* Dark Mode Variables */
.dark-mode {
    --primary-color: #f8fafc;
    /* Light text for dark mode */
    --secondary-color: #94a3b8;
    --bg-body: #0f172a;
    /* Dark background */
    --bg-surface: #1e293b;
    /* Slightly lighter dark for cards */
    --text-main: #f1f5f9;
    --text-muted: #cbd5e1;
}

.dark-mode header {
    background-color: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .card,
.dark-mode .booking-form-card,
.dark-mode .feature-image,
.dark-mode .features-section,
.dark-mode footer {
    background-color: var(--bg-surface);
    border-color: rgba(255, 255, 255, 0.05);
}

.dark-mode .form-control {
    background-color: #334155;
    border-color: #475569;
    color: white;
}

.dark-mode .form-control:focus {
    background-color: #1e293b;
}

.dark-mode .badge {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

.dark-mode .feature-icon {
    background: rgba(59, 130, 246, 0.1);
}

.dark-mode .agreement-check {
    background: #1e293b;
}

.dark-mode .logo {
    color: white;
}

.dark-mode .btn-primary {
    background-color: #3b82f6;
    /* Brighter blue for dark mode */
}

.dark-mode .btn-primary:hover {
    background-color: #2563eb;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .mobile-only {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-surface);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: 99;
        box-shadow: var(--shadow-lg);
    }

    .dark-mode .nav-links {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 12px;
        border-radius: var(--radius-sm);
    }

    .nav-links a:hover {
        background: rgba(0, 0, 0, 0.05);
    }

    .dark-mode .nav-links a:hover {
        background: rgba(255, 255, 255, 0.05);
    }
}

/* Dark Mode Overrides for Tables */
.dark-mode th {
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-main);
}

.dark-mode td {
    border-bottom-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-muted);
}

.dark-mode .calendar-day {
    background-color: var(--bg-surface);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .slot-btn {
    background-color: #334155;
    border-color: #475569;
    color: var(--text-main);
}

.dark-mode .slot-btn:hover {
    background-color: #475569;
}

.dark-mode .slot-btn.blocked {
    background-color: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fca5a5;
}

.dark-mode .day-header {
    color: var(--text-main);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    line-height: 1;
}

.close-modal:hover {
    color: var(--text-main);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal-body h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.modal-body ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 5px;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
}

/* Dark Mode Modal */
.dark-mode .modal-content {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .modal-header,
.dark-mode .modal-footer {
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .close-modal {
    color: var(--text-muted);
}

.dark-mode .close-modal:hover {
    color: white;
}

.dark-mode .modal-body h4 {
    color: #60a5fa;
}

/* Dark Mode Overrides for Backgrounds */
.dark-mode .hero,
.dark-mode .booking-section {
    background-color: var(--bg-body);
}