.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.page-section {
    display: none;
    min-height: 100vh;
    padding-bottom: 100px;
}

.page-section.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

.section-header {
    text-align: center;
    padding: 60px 20px 32px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 5vw, 52px);
    color: var(--navy-blue);
    font-weight: 700;
    margin-bottom: 10px;
}

.section-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: clamp(15px, 2vw, 19px);
    color: var(--deep-navy);
    font-style: italic;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.side-drawer {
    display: none;
}

@media (min-width: 769px) {
    .side-drawer {
        display: flex;
        flex-direction: column;
        width: 220px;
        min-width: 220px;
        position: fixed;
        top: 0; left: 0; bottom: 0;
        background: white;
        border-right: 1px solid rgba(168, 213, 226, 0.4);
        box-shadow: 4px 0 20px rgba(44, 95, 126, 0.08);
        z-index: 900;
        padding: 32px 0 24px;
        transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    min-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
    }

    .main-content  {
        margin-left: 220px;
        transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .bottom-nav    { display: none !important; }
    .page-section  { padding-bottom: 60px; }

    body.drawer-collapsed .side-drawer {
        width: 72px;
        min-width: 72px;
    }
    body.drawer-collapsed .main-content {
        margin-left: 72px;
    }

    body.drawer-collapsed .drawer-name,
    body.drawer-collapsed .nav-label,
    body.drawer-collapsed .drawer-footer {
        opacity: 0;
        pointer-events: none;
        width: 0;
        overflow: hidden;
        white-space: nowrap;
    }

    body.drawer-collapsed .drawer-brand {
        padding: 0 0 32px;
        justify-content: center;
        gap: 0;
    }

    body.drawer-collapsed .nav-btn {
        justify-content: center;
        padding: 12px 0;
    }

    body.drawer-collapsed .nav-btn.active {
        box-shadow: inset 3px 0 0 var(--navy-blue);
    }
}

.drawer-collapse-btn {
    display: none; 
}

@media (min-width: 769px) {
    .drawer-collapse-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        margin: 8px auto;
        border: 1px solid rgba(168, 213, 226, 0.5);
        border-radius: 50%;
        background: white;
        cursor: pointer;
        color: var(--navy-blue);
        transition: all 0.25s ease;
        flex-shrink: 0;
    }

    .drawer-collapse-btn:hover {
        background: var(--warm-beige);
        transform: scale(1.1);
        border-color: var(--soft-blue);
    }

    .drawer-collapse-icon {
        font-size: 18px;
        font-weight: bold;
        line-height: 1;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    body.drawer-collapsed .drawer-collapse-icon {
        transform: rotate(180deg);
    }
}

.drawer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 24px 32px;
    border-bottom: 1px solid rgba(168, 213, 226, 0.3);
    margin-bottom: 16px;
}

.drawer-heart {
    font-size: 28px;
    animation: pulse 2s ease-in-out infinite;
}

.drawer-name {
    font-family: 'Mrs Saint Delafield', cursive;
    font-size: 28px;
    color: var(--navy-blue);
    line-height: 1;
    transition: opacity 0.2s ease, width 0.3s ease;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 8px 12px;
    gap: 4px;
}

.drawer-footer {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #aaa;
    padding: 16px;
    letter-spacing: 0.5px;
    transition: opacity 0.2s ease;
}

.nav-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    border-radius: 14px;
    position: relative;
}

@media (min-width: 769px) {
    .nav-btn {
        flex-direction: row;
        gap: 12px;
        padding: 12px 16px;
        width: 100%;
        text-align: left;
    }

    .nav-btn:hover    { background: rgba(44, 95, 126, 0.07); }
    .nav-btn.active   {
        background: linear-gradient(135deg,
            rgba(44, 95, 126, 0.12),
            rgba(90, 155, 212, 0.1));
        box-shadow: inset 3px 0 0 var(--navy-blue);
    }

    .nav-icon  { font-size: 22px; flex-shrink: 0; transition: transform 0.25s ease; }
    .nav-btn.active .nav-icon  { transform: scale(1.15); }

    .nav-label { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500; color: #888; transition: color 0.25s ease, opacity 0.2s ease, width 0.3s ease; }
    .nav-btn.active .nav-label { color: var(--navy-blue); font-weight: 600; }

    .nav-btn::after { display: none; }
}

.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 72px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-top: 1px solid rgba(168, 213, 226, 0.4);
    box-shadow: 0 -4px 20px rgba(44, 95, 126, 0.1);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

@media (max-width: 768px) {
    .nav-btn {
        flex: 1;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 8px 0;
    }

    .nav-btn::after {
        content: '';
        position: absolute;
        bottom: 0; left: 50%;
        transform: translateX(-50%);
        width: 0; height: 3px;
        background: linear-gradient(90deg, var(--navy-blue), var(--soft-blue));
        border-radius: 3px 3px 0 0;
        transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-btn.active::after { width: 36px; }

    .nav-icon  { font-size: 22px; display: block; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
    .nav-btn.active .nav-icon  { transform: translateY(-3px) scale(1.15); }

    .nav-label { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 500; color: #aaa; letter-spacing: 0.5px; transition: color 0.3s ease; }
    .nav-btn.active .nav-label { color: var(--navy-blue); font-weight: 600; }
}

.sticky-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 60px;
    padding: 0 60px;
    background: rgba(250, 244, 237, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-header.visible { transform: translateY(0); }

.sticky-title {
    font-family: 'Mrs Saint Delafield', cursive;
    font-size: 32px;
    color: var(--navy-blue);
}

.theme-toggle {
    position: fixed;
    top: 10px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--navy-blue);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px var(--shadow-blue);
    z-index: 1100;
}

.theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 6px 20px var(--shadow-blue);
}

.theme-icon { transition: transform 0.4s ease; }

@media (max-width: 768px) {
    .theme-toggle  { top: 10px; right: 15px; width: 36px; height: 36px; font-size: 16px; }
    .sticky-title  { font-size: 24px; }
}
