@import '_content/Blazicons/Blazicons.ugzwxlf6d1.bundle.scp.css';

/* _content/DCAWebApp/Components/Layout/MainLayout.razor.rz.scp.css */
/* Black + Gold Shell (scoped to MainLayout.razor)
   Theme variables live on `.page[data-theme=...]` so NavMenu inherits them.
*/

.page[b-5thwb7d17f] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

    /* ---------- Theme Variables ---------- */
    .page[data-theme="dark"][b-5thwb7d17f] {
        color-scheme: dark;
        --dca-bg: #0b0b0d;
        --dca-surface: #121215;
        --dca-surface-2: #17171c;
        --dca-border: rgba(255,255,255,.10);
        --dca-text: rgba(255,255,255,.92);
        --dca-muted: rgba(255,255,255,.66);
        --dca-gold: #d4af37;
        --dca-gold-2: #f4d77a;
        --dca-hover: rgba(212,175,55,.10);
        --dca-active: rgba(212,175,55,.18);
        --dca-gold-border: rgba(212,175,55,.22);
        --dca-gold-border-strong: rgba(212,175,55,.36);
        --dca-link: #f4d77a;
        --dca-sidebar-bg: linear-gradient(180deg, #070708 0%, #121215 55%, #070708 100%);
    }

    .page[data-theme="light"][b-5thwb7d17f] {
        color-scheme: light;
        --dca-bg: #fbfaf7;
        --dca-surface: #ffffff;
        --dca-surface-2: #f3f0e8;
        --dca-border: rgba(10,10,10,.12);
        --dca-text: rgba(12,12,12,.92);
        --dca-muted: rgba(12,12,12,.62);
        --dca-gold: #b8860b;
        --dca-gold-2: #d4af37;
        --dca-hover: rgba(184,134,11,.10);
        --dca-active: rgba(184,134,11,.16);
        --dca-gold-border: rgba(184,134,11,.22);
        --dca-gold-border-strong: rgba(184,134,11,.34);
        --dca-link: #6b4e00;
        --dca-sidebar-bg: linear-gradient(180deg, #ffffff 0%, #f6f3ea 60%, #ffffff 100%);
    }

/* ---------- Layout Surfaces ---------- */
main[b-5thwb7d17f] {
    flex: 1;
    background: var(--dca-bg);
    color: var(--dca-text);
}

.sidebar[b-5thwb7d17f] {
    background: var(--dca-sidebar-bg);
    border-right: 1px solid var(--dca-border);
}

.top-row[b-5thwb7d17f] {
    background: var(--dca-surface);
    border-bottom: 1px solid var(--dca-border);
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}

    /* About link */
    .top-row[b-5thwb7d17f]  a {
        white-space: nowrap;
        text-decoration: none;
        color: var(--dca-link);
        font-weight: 600;
    }

        .top-row[b-5thwb7d17f]  a:hover {
            text-decoration: underline;
        }

/* Theme toggle button */
.dca-theme-btn[b-5thwb7d17f] {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .42rem .72rem;
    border-radius: 999px;
    border: 1px solid var(--dca-border);
    background: transparent;
    color: var(--dca-text);
    cursor: pointer;
    user-select: none;
    transition: background-color .12s ease, border-color .12s ease, transform .08s ease;
}

    .dca-theme-btn:hover[b-5thwb7d17f] {
        background: var(--dca-hover);
        border-color: var(--dca-gold-border);
    }

    .dca-theme-btn:active[b-5thwb7d17f] {
        transform: translateY(1px);
    }

.dca-theme-dot[b-5thwb7d17f] {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, var(--dca-gold-2), var(--dca-gold));
    box-shadow: 0 0 0 3px rgba(212,175,55,.14);
}

.dca-theme-label[b-5thwb7d17f] {
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .2px;
}

.dca-theme-icon[b-5thwb7d17f] {
    font-size: 1rem;
    line-height: 1;
}

/* Default template responsiveness */
@media (max-width: 640.98px) {
    .top-row[b-5thwb7d17f] {
        justify-content: space-between;
    }
}

@media (min-width: 641px) {
    .page[b-5thwb7d17f] {
        flex-direction: row;
    }

    .sidebar[b-5thwb7d17f] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-5thwb7d17f] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row[b-5thwb7d17f], article[b-5thwb7d17f] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-5thwb7d17f] {
    color-scheme: light dark;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-5thwb7d17f] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* _content/DCAWebApp/Components/Layout/NavMenu.razor.rz.scp.css */
/* Black + Gold Nav (scoped to NavMenu.razor)
   IMPORTANT: NavLink renders <a> in a child component.
   Use ::deep so CSS isolation can style the generated anchor.
*/

.dca-topbar[b-utg5u91pvl] {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--dca-border);
    background: linear-gradient(180deg, rgba(0,0,0,.32), rgba(0,0,0,0));
}

.dca-topbar-inner[b-utg5u91pvl] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .9rem 1rem;
}

.dca-brand[b-utg5u91pvl] {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    color: var(--dca-text);
    font-weight: 800;
    letter-spacing: .2px;
}

    .dca-brand:visited[b-utg5u91pvl],
    .dca-brand:hover[b-utg5u91pvl],
    .dca-brand:active[b-utg5u91pvl] {
        text-decoration: none;
        color: var(--dca-text);
    }

.dca-brand-mark[b-utg5u91pvl] {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, var(--dca-gold-2), var(--dca-gold));
    box-shadow: 0 0 0 3px rgba(212,175,55,.18);
}

.dca-brand-text[b-utg5u91pvl] {
    font-size: 1rem;
    line-height: 1;
}

/* Hidden checkbox */
.dca-nav-toggle[b-utg5u91pvl] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Visible hamburger (mobile) */
.dca-hamburger[b-utg5u91pvl] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--dca-border);
    background: rgba(255,255,255,.06);
    cursor: pointer;
    user-select: none;
    gap: 6px;
}

    .dca-hamburger span[b-utg5u91pvl] {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--dca-text);
        border-radius: 2px;
    }

.dca-nav-scrollable[b-utg5u91pvl] {
    background: var(--dca-sidebar-bg);
}

.dca-nav[b-utg5u91pvl] {
    display: flex;
    flex-direction: column;
    padding: .75rem .5rem 1rem;
    gap: .25rem;
}

    /* ====== FIX #1: Remove blue + underline for NavLink anchors ======
   Use ::deep so the rules reach the <a> emitted by NavLink.
*/
    .dca-nav[b-utg5u91pvl]  a.dca-navlink,
    .dca-nav[b-utg5u91pvl]  a.dca-navlink:link,
    .dca-nav[b-utg5u91pvl]  a.dca-navlink:visited,
    .dca-nav[b-utg5u91pvl]  a.dca-navlink:hover,
    .dca-nav[b-utg5u91pvl]  a.dca-navlink:active,
    .dca-nav[b-utg5u91pvl]  a.dca-navlink:focus,
    .dca-nav[b-utg5u91pvl]  a.dca-navlink:focus-visible {
        text-decoration: none !important;
        color: var(--dca-muted) !important;
        outline: none;
    }

    /* Base appearance */
    .dca-nav[b-utg5u91pvl]  a.dca-navlink {
        display: flex;
        align-items: center;
        gap: .65rem;
        padding: .7rem .75rem;
        border-radius: 12px;
        border: 1px solid transparent;
        transition: background-color .12s ease, border-color .12s ease, color .12s ease, transform .08s ease;
    }

        /* Hover */
        .dca-nav[b-utg5u91pvl]  a.dca-navlink:hover {
            background: var(--dca-hover);
            border-color: var(--dca-gold-border);
            color: var(--dca-text) !important;
        }

        /* Active route */
        .dca-nav[b-utg5u91pvl]  a.dca-navlink.active {
            background: var(--dca-active);
            border-color: var(--dca-gold-border-strong);
            color: var(--dca-text) !important;
            box-shadow: inset 0 0 0 1px rgba(212,175,55,.14);
        }

        /* Press */
        .dca-nav[b-utg5u91pvl]  a.dca-navlink:active {
            transform: translateY(1px);
        }

.dca-icon[b-utg5u91pvl] {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255,255,255,.06);
    border: 1px solid var(--dca-border);
    color: var(--dca-text);
    font-size: 14px;
    flex: 0 0 auto;
}

    .dca-icon .bi[b-utg5u91pvl] {
        font-size: 15px;
    }

/* ====== FIX #2: Hamburger open/close on mobile ====== */
@media (min-width: 641px) {
    .dca-hamburger[b-utg5u91pvl] {
        display: none;
    }

    /* Desktop: nav is always visible */
    .dca-nav-scrollable[b-utg5u91pvl] {
        display: block;
        height: calc(100vh - 56px);
        overflow-y: auto;
    }
}

@media (max-width: 640.98px) {
    /* Mobile: nav hidden until checked */
    .dca-nav-scrollable[b-utg5u91pvl] {
        display: none;
    }

    #dcaNavToggle:checked ~ .dca-nav-scrollable[b-utg5u91pvl] {
        display: block;
    }
}
