﻿/*==============================================================
=            1. COLOR & THEME VARIABLES                        =
==============================================================*/
:root {
    --company-orange: #FB9324; /* Princeton Orange */
    --company-white: #FFFFFF; /* White */
    --honolulu-blue: #0B7ABF; /* Honolulu Blue */
    --alice-blue: #D9EAF4; /* Alice Blue – pale background */
    --blue-ncs: #2286C5; /* Blue (NCS) – darker hover */
}

/*==============================================================
=            2. GLOBAL TYPOGRAPHY & LAYOUT                     =
==============================================================*/
html,
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--alice-blue);
    color: #333;
}

/* content wrapper used by default Blazor template */
.content {
    padding-top: 1.1rem;
    background-color: var(--company-white);
}

/*==============================================================
=            2-A. NO SIDEBAR LAYOUT                            =
==============================================================*/

.page.no-sidebar {
    display: block;
    width: 100%;
    min-height: 100vh;
}

.main-content {
    width: 100%;
    min-height: 100vh;
}

.content {
    width: 100%;
}

/* remove default dotted outline when a user tabs to <h1> */
h1:focus {
    outline: none;
}

/*==============================================================
=            3. LINKS & BUTTONS                                =
==============================================================*/
/* ---------- Anchor & btn-link ---------- */
a,
.btn-link {
    color: var(--honolulu-blue);
}

    a:hover,
    a:focus,
    .btn-link:hover,
    .btn-link:focus {
        color: var(--blue-ncs);
        text-decoration: underline;
    }

/* ---------- Primary button (orange) ---------- */
.btn-primary {
    color: var(--company-white);
    background-color: var(--company-orange);
    border-color: #D98520; /* slightly darker */
}

    .btn-primary:hover,
    .btn-primary:focus {
        background-color: #E68620;
        border-color: #D17B1E;
    }

/* ---------- Alert / secondary accent (blue) ---------- */
.btn-alert {
    color: var(--company-white);
    background-color: var(--honolulu-blue);
    border-color: var(--blue-ncs);
}

    .btn-alert:hover,
    .btn-alert:focus,
    .btn-alert:active,
    .btn-alert:active:hover,
    .btn-alert:active:focus,
    .btn-alert:focus-visible {
        background-color: var(--blue-ncs);
        border-color: #1f6fae;
        color: var(--company-white);
    }

/* ---------- Rollover button (thin orange outline) ---------- */
.btn-rollover {
    color: var(--company-white);
    background-color: var(--company-orange);
    border: 2px solid var(--company-orange);
}

    .btn-rollover:hover,
    .btn-rollover:focus {
        background-color: #E68620;
        border-color: #D17B1E;
    }

/* ---------- Custom focus ring (white inner / blue halo) ---------- */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem var(--company-white), 0 0 0 0.25rem var(--honolulu-blue);
}

/*==============================================================
=            4. FORM VALIDATION STATES                         =
==============================================================*/
.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--honolulu-blue);
}

.invalid {
    outline: 1px solid var(--company-orange);
}

.validation-message {
    color: var(--company-orange);
}

/*==============================================================
=            5. BLAZOR ERROR BOUNDARY                          =
==============================================================*/
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtb...) no-repeat 1rem/1.8rem, var(--company-orange);
    padding: 1rem 1rem 1rem 3.7rem;
    color: var(--company-white);
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

/*==============================================================
=            6. NAVIGATION (TOP BAR & SIDEBAR)                 =
==============================================================*/
/* ---------- Top nav bar ---------- */
.top-row.navbar-dark {
    background-color: var(--company-orange) !important;
}

    .top-row.navbar-dark .navbar-brand {
        color: var(--company-white) !important;
    }

        .top-row.navbar-dark .navbar-brand:hover {
            color: var(--alice-blue) !important;
        }

/* ---------- Sidebar panel ---------- */
.nav-scrollable {
    background-color: var(--honolulu-blue);
    padding-top: 0.5rem;
}

    .nav-scrollable .nav-link {
        color: var(--company-white) !important;
        padding: 0.6rem 1rem;
        position: relative;
        transition: background-color 0.2s;
    }

        .nav-scrollable .nav-link:hover,
        .nav-scrollable .nav-link:focus {
            background-color: var(--blue-ncs);
        }

        .nav-scrollable .nav-link.active {
            background-color: var(--blue-ncs) !important;
        }

            .nav-scrollable .nav-link.active::before {
                content: "";
                position: absolute;
                left: 0;
                top: 0;
                bottom: 0;
                width: 4px;
                background-color: var(--company-orange);
            }

    .nav-scrollable .bi {
        color: var(--company-white);
        margin-right: 0.5rem;
    }

/* ---------- Sidebar logo ---------- */
.nav-logo {
    padding: 0.75rem 0;
    text-align: center;
}

.logo-img {
    display: block;
    margin: 0 auto;
    max-width: 220px; /* ↑ from 140px */
    max-height: 120px; /* ↑ from 60px  */
    height: auto;
    width: auto;
    padding: 0.25rem;
}

/*==============================================================
=            7. USER TOP BAR / LOGIN AREA                      =
==============================================================*/

.user-topbar {
    padding: 1rem 1.5rem 0.75rem;
    background: transparent;
}

.user-topbar-inner {
    width: 100%;
    min-height: 74px;
    padding: 0.85rem 1.25rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbfd 100%);
    border: 1px solid rgba(11, 122, 191, 0.14);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    background: var(--honolulu-blue);
    color: var(--company-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 6px 16px rgba(11, 122, 191, 0.24);
}

.brand-title {
    font-weight: 800;
    color: #25313d;
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.15rem;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.35rem;
    border-radius: 999px;
    background: #f1f7fb;
    border: 1px solid rgba(11, 122, 191, 0.12);
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--company-orange);
    color: var(--company-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.user-text {
    line-height: 1.1;
    padding-right: 0.25rem;
}

.user-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6c757d;
    font-weight: 700;
}

.user-name {
    font-size: 0.95rem;
    color: #25313d;
    font-weight: 700;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-logout {
    border-radius: 999px;
    padding: 0.55rem 1rem;
    color: var(--company-white);
    background: var(--honolulu-blue);
    border: 1px solid var(--blue-ncs);
    font-weight: 700;
}

    .btn-logout:hover,
    .btn-logout:focus {
        color: var(--company-white);
        background: var(--blue-ncs);
        border-color: var(--blue-ncs);
    }

.btn-login {
    border-radius: 999px;
    padding: 0.65rem 1.25rem;
    color: var(--company-white);
    background: var(--company-orange);
    border: 1px solid #D98520;
    font-weight: 800;
}

    .btn-login:hover,
    .btn-login:focus {
        color: var(--company-white);
        background: #E68620;
        border-color: #D17B1E;
    }

@@media (max-width: 768px) {
    .user-topbar {
        padding: 0.75rem;
    }

    .user-topbar-inner {
        border-radius: 16px;
        flex-direction: column;
        align-items: stretch;
    }

    .user-area {
        border-radius: 16px;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .user-name {
        max-width: 160px;
    }

    .btn-logout,
    .btn-login {
        width: 100%;
    }
}

/*==============================================================
=            8. TABLE STRIPES & HOVER                          =
==============================================================*/
.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: var(--company-white);
}

.table-striped > tbody > tr:nth-of-type(even) {
    background-color: var(--alice-blue);
}

.table-hover > tbody > tr:hover {
    background-color: rgba(11,122,191,0.1);
}

/*==============================================================
=            8-A. NAV-TABS (TOOLS PAGE & OTHERS)               =
==============================================================*/
.nav-tabs {
    border-bottom: 2px solid var(--honolulu-blue);
}

    .nav-tabs .nav-link {
        color: var(--honolulu-blue);
        background-color: var(--company-white);
        border: 1px solid transparent;
        border-top-left-radius: 0.5rem;
        border-top-right-radius: 0.5rem;
        margin-right: .25rem;
        padding: .5rem 1rem;
    }

        .nav-tabs .nav-link:hover,
        .nav-tabs .nav-link:focus {
            color: var(--blue-ncs);
            background-color: rgba(11, 122, 191, 0.08); /* pale blue tint */
        }

        .nav-tabs .nav-link.active {
            color: var(--company-white);
            background-color: var(--honolulu-blue);
            border-color: var(--honolulu-blue) var(--honolulu-blue) var(--company-white);
            /* draws a slim orange bar under the active tab */
            position: relative;
        }

            .nav-tabs .nav-link.active::after {
                content: "";
                position: absolute;
                left: 0;
                right: 0;
                bottom: -2px; /* overlaps the bottom border */
                height: 4px;
                background-color: var(--company-orange);
                border-bottom-left-radius: .25rem;
                border-bottom-right-radius: .25rem;
            }

/*==============================================================
=            9. DETAIL / CARD COMPONENTS                       =
==============================================================*/
/* ---------- Details panel ---------- */
.details-panel {
    border-left: 4px solid var(--company-orange);
    margin-bottom: 1rem;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}

    .details-panel .card-header {
        background-color: var(--honolulu-blue);
        color: var(--company-white);
        font-weight: 500;
    }

    .details-panel .card-body {
        background-color: var(--company-white);
    }

    .details-panel .data-label {
        display: block;
        text-transform: uppercase;
        font-size: .75rem;
        color: #6c757d; /* bootstrap text-muted */
        margin-bottom: .25rem;
    }

/* ---------- Edit panel ---------- */
.edit-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1050;
}

.edit-panel {
    position: fixed;
    right: 0;
    top: 0;
    height: 100%;
    width: 32rem; /* same width as alert panel */
    overflow-y: auto;
    z-index: 1060;
}

/* ---------- Search bar ---------- */
.search-wrapper {
    max-width: 420px;
    border: 2px solid var(--honolulu-blue);
    border-radius: 0.5rem;
    overflow: hidden;
}

    .search-wrapper:focus-within {
        border-color: var(--company-orange);
        box-shadow: 0 0 0 0.15rem rgba(251,147,36,0.25);
    }

    .search-wrapper .input-group-text {
        background-color: var(--honolulu-blue);
        color: var(--company-white);
        border: none;
    }

    .search-wrapper .bi-search {
        font-size: 1rem;
    }

.search-input {
    border: none;
    box-shadow: none;
}

    .search-input:focus {
        outline: none;
    }
/* focus ring handled by wrapper */

/* ---------- Nominees-to-Alert popup ---------- */
.alert-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
}

.alert-panel {
    width: 100%;
    max-width: none;
    margin: 0 1rem;
}

.alert-header .btn-close {
    filter: none;
}
/* use default icon */

/* ---------- Pagination ---------- */
.pagination .page-link {
    color: var(--honolulu-blue);
    background-color: var(--company-white);
    border: 1px solid var(--honolulu-blue);
    margin: 0 .25rem;
}

    .pagination .page-link:hover,
    .pagination .page-link:focus {
        background-color: rgba(11,122,191,0.1);
        color: var(--blue-ncs);
    }

.pagination .page-item.active .page-link {
    color: var(--company-white);
    background-color: var(--company-orange);
    border-color: var(--company-orange);
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: var(--company-white);
    border-color: #dee2e6;
}

/*==============================================================
=            10. FORM LAYOUT HELPERS                           =
==============================================================*/

/* ---- container that centers the form and adds bottom padding ---- */
.form-wrapper {
    max-width: 60rem; /* ≈ 960 px */
    margin-inline: auto; /* centers inside .container */
    padding-bottom: 4rem; /* breathing room above footer */
    background-color: #f8f9fa;
}

/* ---- large horizontal “sections” (e.g., banner) ---- */
.section-block {
    padding-block: 2.5rem; /* top + bottom 2.5 rem */
    border-bottom: 1px solid #e5e5e5;
}

    .section-block:last-of-type {
        border-bottom: 0;
    }

/*=======================================================================
=           11. FORM COLOR & CARD ENHANCEMENTS                          =
=  • Adds accent bar, alternating soft-blue cards, branded headings     =
=  • Keeps existing palette (Honolulu Blue + Princeton Orange)          =
=======================================================================*/

/* ---------- 1. Extra tint variables ---------- */
:root {
    --card-accent-blue: var(--honolulu-blue); /* slim bar + focus halo */
    --card-soft-blue: #EFF6FB; /* 10 % Honolulu Blue    */
}

/* ---------- 2. Question card shell + accent bar ---------- */
.question-card {
    position: relative; /* for ::before bar       */
    padding: 2rem 1.5rem;
    border-radius: .75rem;
    background: #ffffff;
    box-shadow: 0 0 .5rem rgba(0, 0, 0, .05);
    margin-block: 1.5rem;
}

    /* slim blue bar down the left side */
    .question-card::before {
        content: "";
        position: absolute;
        inset-block: 0; /* top 0, bottom 0        */
        left: 0;
        width: .5rem;
        background: var(--card-accent-blue);
        border-top-left-radius: .75rem;
        border-bottom-left-radius: .75rem;
    }

    /* pale Alice-blue background on every even card */
    .question-card:nth-of-type(even) {
        background: var(--card-soft-blue);
    }

    /* ---------- 3. Headings & labels ---------- */
    .question-card h4 {
        color: var(--card-accent-blue);
    }

    .question-card label.form-label,
    .question-card .form-check-label {
        color: #0B4269; /* darker blue for text   */
    }

    /* ---------- 4. Inputs & focus rings ---------- */
    .question-card input[type="radio"],
    .question-card input[type="checkbox"] {
        accent-color: var(--company-orange); /* orange tick / dot      */
    }

        .question-card .form-control:focus,
        .question-card input[type="radio"]:focus,
        .question-card input[type="checkbox"]:focus {
            box-shadow: 0 0 0 .1rem var(--company-white), 0 0 0 .25rem var(--card-accent-blue);
        }


/* --- main banner styling (you added this earlier) --- */
.banner-section {
    padding-block: 1.5rem; /* tighter padding */
    border-bottom: none; /* no grey divider */
}

/* ---------- 5. Banner spacing tweak ---------- */
.banner-section img {
    margin-bottom: 0.75rem !important;
}

.banner-section hr {
    margin-block: 0.75rem !important;
}

.banner-section .d-flex {
    margin-top: 0.5rem !important;
}

/* description block under the banner */
.banner-desc {
    max-width: 48rem; /* keeps line length readable */
    font-size: 0.95rem; /* smaller than body text */
    color: #6c757d; /* Bootstrap’s “text-muted” grey */
}

/*==============================================================
=            12. MISC / UTILITY LAST                          =
==============================================================*/
/* Extra bottom margin when you need space beneath a row of buttons */
.mb-bottom-space {
    margin-bottom: 4rem !important;
}

:root {
    --card-accent-blue: var(--honolulu-blue);
    --card-soft-blue: #EFF6FB; /* 10 % of Honolulu Blue */
}

/*==============================================================
=            USER TOP BAR                                      =
==============================================================*/

.app-topbar {
    width: 100%;
    min-height: 86px;
    padding: 1rem 2rem;
    background: linear-gradient(90deg, var(--honolulu-blue), var(--blue-ncs));
    color: var(--company-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
}

.app-topbar-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.app-title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.01em;
}

.app-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.2rem;
}

.app-topbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.signed-in-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 0.55rem 0.65rem 0.55rem 1rem;
    border-radius: 999px;
}

.signed-in-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--company-white);
}

.topbar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.5rem 1.15rem;
    border-radius: 999px;
    background: var(--company-orange);
    border: 1px solid #D98520;
    color: var(--company-white);
    font-weight: 800;
    text-decoration: none;
    line-height: 1;
}

    .topbar-button:hover,
    .topbar-button:focus {
        background: #E68620;
        border-color: #D17B1E;
        color: var(--company-white);
        text-decoration: none;
    }

@media (max-width: 768px) {
    .app-topbar {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.9rem;
    }

    .app-topbar-right,
    .signed-in-box {
        width: 100%;
    }

    .signed-in-box {
        justify-content: space-between;
        border-radius: 16px;
    }

    .topbar-button {
        min-width: 96px;
    }
}

.topbar-account-button {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--company-white);
}

    .topbar-account-button:hover,
    .topbar-account-button:focus {
        background: rgba(255, 255, 255, 0.28);
        border-color: rgba(255, 255, 255, 0.5);
        color: var(--company-white);
        text-decoration: none;
    }

.topbar-setup-warning {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(255, 193, 7, 0.22);
    border: 1px solid rgba(255, 193, 7, 0.55);
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

    .topbar-setup-warning:hover,
    .topbar-setup-warning:focus {
        background: rgba(255, 193, 7, 0.34);
        border-color: rgba(255, 193, 7, 0.75);
        color: #ffffff;
        text-decoration: none;
    }