
/* ============================================================
   BASE
============================================================ */
html, body {
    height: 100%;
    width:100%;
}

body {
    margin: 0;
    background: #f6f7fb;
    color: #222;
}

/* ============================================================
   HEADER
============================================================ */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background: linear-gradient(90deg, #13294B, #1F5AA6);
    color: #fff;
}

.header-left {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.toggle-btn {
    appearance: none;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: #fff;
    padding: .4rem .6rem;
    border-radius: .4rem;
    cursor: pointer;
}

    .toggle-btn:focus-visible {
        outline: 2px solid #ffd54f;
        outline-offset: 2px;
    }

/* ============================================================
   LOGIN PARTIAL
============================================================ */
.login-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: .5rem;
    align-items: center;
}

.login-link-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    padding: .25rem .5rem;
    border-radius: .35rem;
    cursor: pointer;
    text-decoration: none;
    position: relative;
}

    .login-link-btn:hover,
    .login-link-btn:focus-visible {
        background: rgba(255,255,255,0.15);
        outline: none;
    }

.login-item form {
    display: contents;
}

/* ============================================================
   LAYOUT CONTAINERS
============================================================ */
.split-layout {
    min-height: calc(100vh - 60px); /* approx header height */
}

/* Left pane (common look) */
.left-pane {
    background: #13294B;
    color: #e8eef9;
    padding: 1rem .75rem;
    border-right: 1px solid #0b152b;
    overflow-y: auto;
    transition: transform 0.25s ease;
    width: 220px; /* keep consistent reference */
}

/* Nav content styling */
.nav-section-title {
    font-size: 1.4rem;
    /*color: #bcd4ff;*/
    color:white;
    margin-bottom: .5rem;
    text-align: center;
}

.nav-subtitle {
    font-size: .9rem;
    color: #bcd4ff;
    margin-bottom: .5rem;
    text-align: center;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .nav-list a {
        display: block;
        color: #e8eef9;
        text-decoration: none;
        padding: .4rem .5rem;
        border-radius: .35rem;
    }

        .nav-list a:hover,
        .nav-list a:focus-visible {
            background: #173561;
            outline: none;
        }

/* Force vertical stacking for any Bootstrap navs inside left pane */
.left-pane .nav,
.left-pane .navbar-nav,
.left-pane .nav-list {
    display: flex;
    flex-direction: column !important;
    gap: .25rem;
}

    .left-pane .nav > li,
    .left-pane .navbar-nav > li {
        width: 100%;
    }

    .left-pane .nav a,
    .left-pane .navbar-nav a,
    .left-pane .nav-list a {
        display: block;
        width: 100%;
        white-space: nowrap; /* optional: stop wrapping labels */
    }

/* Right pane */
.right-pane {
    padding: 1rem 1.25rem;
    background: #fff;
}

/* ============================================================
   DESKTOP (?1200px)
============================================================ */
@media (min-width: 1200px) {
    .split-layout {
        display: grid !important;
        grid-template-columns: 220px 1fr !important;
    }

    /* Reset properties that mobile sets */
    .left-pane {
        position: static;
        transform: translateX(0);
        z-index: auto;
        background: #13294B; /* desktop tone */
    }

    /* Default expanded */
    body:not(.nav-desktop-collapsed) .split-layout {
        grid-template-columns: 220px 1fr !important;
    }

    body:not(.nav-desktop-collapsed) .left-pane {
        transform: translateX(0);
        pointer-events: auto;
    }

    /* Collapsed: hide column and move pane out of view */
    body.nav-desktop-collapsed .split-layout {
        grid-template-columns: 0 1fr !important;
    }

    body.nav-desktop-collapsed .left-pane {
        transform: translateX(-220px);
        pointer-events: none;
    }


    .app-header img.app-logo {
        width: 10rem; /* or whatever size you want */
        height: auto;
    }

}

/* ============================================================
   TABLET + MOBILE (?1199.98px)
============================================================ */
@media (max-width: 1199.98px) {
    .split-layout {
        display: block !important;
        grid-template-columns: none !important;
    }

    .left-pane {
        position: fixed;
        left: 0;
        top: var(--header-h, 45px);
        bottom: 0;
        width: 220px;
        transform: translateX(-100%);
        z-index: 1000;
        background: #163562; /* slightly different tone for off-canvas */
    }

        .left-pane.open {
            transform: translateX(0);
        }

    .right-pane {
        padding: .75rem;
    }


    .app-header img.app-logo {
        width: 7rem; 
        height: auto;
    }

}
@media (max-width: 900px) {
    .app-header img.app-logo {
        width: 6rem;
        height: auto;
    }

    @media (max-width: 768px) {
        .app-header img.app-logo {
            width: 5rem;
            height: auto;
        }

        @media (max-width: 480px) {
            .app-header img.app-logo {
                width: 4rem;
                height: auto;
            }

            /* ============================================================
   FOOTER
============================================================ */
            .app-footer {
                padding: .75rem 1rem;
                background: #f0f3f9;
                border-top: 1px solid #e2e6ee;
            }

