/* =========================================
   1. VARIABLES & THEME
   ========================================= */
:root {
    /* Main Background: Off-White */
    --bg-color: #f8f9fa;        
    
    /* Text: Dark Gray/Black */
    --text-color: #202020;
    
    /* Primary Accent: Deep Black */
    --accent-pop: #000000;       
    
    /* Glass Effect Variables */
    --glass-bg: rgba(255, 255, 255, 0.90); 
    --glass-border: rgba(255, 255, 255, 0.6); 
    
    /* Shadows */
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* Custom Text Selection */
::selection {
    background: var(--accent-pop);
    color: #fff;
}

/* =========================================
   2. GLOBAL RESET & BODY
   ========================================= */
html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color); /* Solid Color, No Texture */
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100%;
    padding-top: 120px; /* Space for fixed navbar */
}

a { text-decoration: none; color: inherit; transition: 0.3s; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #888; }

/* Utilities */
main { width: 90%; max-width: 1200px; margin: 0 auto; min-height: 80vh; }

/* --- THE MISSING CLASS (Fixes Transparent Containers) --- */
.glass-panel {
    background: #ffffff; /* Solid White */
    border-radius: 30px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    padding: 3rem;
    margin-bottom: 30px;
}

/* =========================================
   3. NAVBAR (DESKTOP & GLOBAL)
   ========================================= */
.navbar-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 950px;
    z-index: 9999;
}

.navbar {
    background: rgba(255, 255, 255, 0.85); /* Slight transparency for nav only */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    padding: 10px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

/* Logo */
.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 40px;
}

.brand-logo {
    height: 30px; 
    width: auto;
    display: block;
}

/* Remove Ghost Elements */
.nav-logo::after, .nav-logo::before { display: none !important; content: none !important; }

/* Desktop Links */
.nav-links-desktop {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #555;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover { color: var(--accent-pop); }

/* Right Actions (Book & Profile) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.book-btn {
    background: var(--accent-pop);
    color: #fff;
    padding: 10px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    transition: 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.book-btn:hover {
    background: #333;
    transform: translateY(-1px);
}

.profile-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 5px 12px 5px 5px;
    background: #f1f1f1;
    border-radius: 30px;
    transition: 0.2s;
    border: 1px solid transparent;
}

.profile-pill:hover {
    background: #fff;
    border-color: #ddd;
}

.pfp-nav {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* =========================================
   4. MOBILE MENU
   ========================================= */
.mobile-toggle {
    display: none;
    font-size: 1.4rem;
    color: var(--accent-pop);
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-container {
    display: none;
    flex-direction: column;
    width: 100%;
    padding-top: 20px;
    margin-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.05);
    gap: 15px;
    text-align: center;
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
        flex-wrap: wrap; 
    }

    /* Hide Desktop Elements */
    .nav-links-desktop, .nav-actions {
        display: none; 
    }

    /* Show Mobile Elements */
    .mobile-toggle {
        display: block; 
    }

    /* Expanded State */
    .navbar.expanded {
        border-radius: 25px; 
        background: #fff;
    }

    .navbar.expanded .mobile-menu-container {
        display: flex;
    }
}

/* =========================================
   5. FOOTER & EXTRAS
   ========================================= */
footer {
    width: 100%; 
    margin-top: auto; 
    padding: 60px 0 20px;
    text-align: center;
    color: #888;
    font-size: 0.85rem;
}

.flash-container {
    max-width: 500px; 
    margin: 0 auto; 
    text-align: center;
}

.flash-msg {
    background: var(--accent-pop); 
    color: white; 
    padding: 12px 25px; 
    border-radius: 50px; 
    margin-bottom: 15px; 
    display: inline-block; 
    font-size: 0.9rem; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}