.agenda-date {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.5rem;
}

/* Urgent Styling Details */
.urgent-badge {
    background: var(--danger);
    color: #FEFCFF !important;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
    vertical-align: middle;
}

/* Utilities */
.text-center { text-align: center; }
.text-gray-500 { color: var(--text-muted); }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.justify-start { justify-content: flex-start; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.grid { display: grid; }
.w-full { width: 100%; }
.max-w-4xl { max-width: 56rem; }
.max-w-md { max-width: 28rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-sm { font-size: 0.875rem; }
.text-danger { color: var(--danger); }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.bg-gray-50 { background-color: var(--bg-card-elevate); }
.p-4 { padding: 1rem; }

/* Hero Banner Card */
.hero-card {
    position: relative;
    background: linear-gradient(135deg, rgba(2, 67, 189, 0.85) 25%, rgba(247, 68, 176, 0.4) 100%), url('../../dan-ag-hall.png') no-repeat center 20%/cover;
    border-radius: 12px; /* 12px spatial rule for blocks */
    padding: 4.5rem 3rem; /* Expanded vertical padding */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35); /* Interactive depth */
    margin-bottom: 2.5rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme="light"] .hero-card {
    background: linear-gradient(135deg, rgba(244, 246, 249, 0.85) 45%, rgba(247, 68, 176, 0.25) 100%), url('../../dan-ag-hall.png') no-repeat center 20%/cover;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

.hero-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

html[data-theme="light"] .hero-card:hover {
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

/* Hero Card Button */
.hero-reserve-btn {
    padding: 0.75rem 1.75rem;
    font-size: 0.95rem;
    gap: 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .hero-reserve-btn {
        font-size: 0.825rem;
        padding: 0.6rem 1.25rem;
    }
}

/* Welcome Header Layout (Desktop Override) */
.welcome-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Sidebar Toggle & Overlay (Desktop default hidden) */
nav.main-nav {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 0.5rem;
}
.sidebar-top {
    display: flex;
    align-items: center;
}
.sidebar-toggle {
    display: none;
}
.sidebar-close {
    display: none;
}
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 12, 16, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 999;
    transition: opacity 0.3s ease, visibility 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
}

/* Tablet / Laptop Viewport Overrides */
@media (max-width: 1024px) {
    .container {
        padding: 0 1rem;
    }
    
    a.brand {
        gap: 0.3rem !important;
    }

    .brand-logos {
        gap: 0.2rem !important;
    }

    .brand-logo {
        height: 28px;
    }
    
    .brand-text h1 {
        font-size: 1.05rem;
    }
    
    .brand-text p {
        display: none !important; /* Hide brand subtext to save horizontal space on tablet */
    }
    
    nav.main-nav {
        gap: 0.15rem;
    }
    
    nav.main-nav ul {
        gap: 0.1rem;
    }
    
    nav.main-nav a {
        font-size: 0.775rem !important;
        padding: 0.35rem 0.45rem !important;
        gap: 0.2rem !important;
    }
    
    .nav-link-icon {
        display: none !important; /* Hide icons to save horizontal space on tablet */
    }
    
    .nav-date-badge {
        font-size: 0.725rem !important;
        padding: 0.3rem 0.55rem !important;
    }

    .nav-date-icon {
        display: none !important; /* Hide date icon to save space */
    }

    .nav-date-weekend {
        font-size: 0.5rem;
        padding: 0.1rem 0.3rem;
    }

    .nav-separator {
        margin: 0 0.1rem !important;
    }

    .switch {
        font-size: 10px; /* scale down switcher */
        --width-of-switch: 3.2em;
        --height-of-switch: 1.8em;
    }
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    .calendar-container {
        display: none;
    }
    .mobile-agenda {
        display: block;
    }
    
    .grid {
        grid-template-columns: 1fr !important;
    }
    
    .welcome-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1.25rem;
    }
    
    .welcome-header .btn {
        width: 100%;
        font-size: 0.85rem;
        padding: 0.65rem 1.25rem;
    }

    /* Sidebar Navigation Menu */
    nav.main-nav {
        position: fixed;
        top: 0;
        right: -280px; /* Hidden off-screen */
        width: 280px;
        height: 100vh;
        background: var(--bg-card);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid var(--border-color);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
        z-index: 1000;
        padding: 2rem 1.5rem;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    nav.main-nav.open {
        right: 0; /* Slide in */
    }
    
    nav.main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        width: 100%;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    nav.main-nav ul li {
        width: 100%;
    }
    
    nav.main-nav a {
        display: flex;
        width: 100%;
        padding: 0.8rem 1rem !important;
        font-size: 1.05rem !important;
    }
    
    /* Date badge inside sidebar */
    nav.main-nav .nav-date-badge {
        width: 100%;
        justify-content: center;
        border-radius: 8px;
        padding: 0.8rem 1rem;
    }
    
    /* Separator */
    .nav-separator {
        height: 1px !important;
        width: 100% !important;
        background: var(--border-color);
        margin: 0.5rem 0 !important;
    }

    /* Toggle & Close Buttons */
    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 1px solid var(--border-color);
        color: var(--text-main);
        width: 40px;
        height: 40px;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s ease;
        margin-left: auto;
    }
    
    .sidebar-toggle:hover {
        background: var(--bg-hover);
    }
    
    .sidebar-toggle svg {
        width: 20px;
        height: 20px;
    }
    
    .sidebar-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .sidebar-close {
        display: flex;
        background: transparent;
        border: 1px solid var(--border-color);
        color: var(--text-muted);
        width: 36px;
        height: 36px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .sidebar-close:hover {
        background: var(--bg-hover);
        color: var(--text-main);
    }
    
    .sidebar-close svg {
        width: 18px;
        height: 18px;
    }
    
    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Header Brand Adjustments for Mobile */
    .brand-logos {
        gap: 0.35rem;
    }
    .brand-logo {
        height: 32px;
    }
    .brand-text h1 {
        font-size: 1.1rem;
    }
    .brand-text p {
        font-size: 0.575rem;
    }
}

/* Prevent transitions on page load */
.preload *,
.preload *::before,
.preload *::after {
    transition: none !important;
    animation: none !important;
}
