:root {
    --bg: #f5f1e8;
    --surface: #ffffff;
    --surface-soft: #fbf8f1;
    --primary: #0f5d5e;
    --primary-dark: #0b4445;
    --accent: #d98b30;
    --brand-black: #060606;
    --brand-red: #ff6a5c;
    --text: #1e2a2f;
    --muted: #66737a;
    --border: rgba(15, 93, 94, 0.12);
    --shadow: 0 18px 40px rgba(16, 37, 43, 0.08);
    --radius: 1.2rem;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
}

.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.auth-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    isolation: isolate;
}

.auth-topbar {
    width: 100%;
    padding: 1.35rem 1.5rem 0;
}

.auth-topbar-inner {
    width: 100%;
    margin: 0;
    padding: 1.1rem 1.75rem;
    background: linear-gradient(180deg, rgba(3, 3, 3, 0.95) 0%, rgba(16, 16, 16, 0.92) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.4rem;
    box-shadow: 0 24px 42px rgba(4, 16, 17, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.auth-shell {
    width: 100%;
    flex: 1;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
}

.auth-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 28px 60px rgba(4, 16, 17, 0.3);
    backdrop-filter: blur(14px);
    border-radius: 1.5rem;
    padding: 2rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
    width: min(460px, 100%);
}

.auth-topbar-logo {
    flex: 0 0 auto;
}

.auth-topbar-logo img {
    display: block;
    height: 54px;
    width: auto;
    object-fit: contain;
}

.auth-topbar-copy {
    display: flex;
    align-items: flex-end;
    flex: 0 1 auto;
    text-align: right;
}

.auth-topbar-copy img {
    display: block;
    height: 48px;
    width: auto;
    max-width: min(100%, 360px);
    object-fit: contain;
}

.auth-brand h1 {
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.auth-brand p {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.portal-page {
    margin: 0;
    min-height: 100vh;
    position: relative;
    isolation: isolate;
}

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

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.9) 0%, rgba(17, 17, 17, 0.82) 100%);
    color: #fff;
    padding: 2rem 1.25rem;
    position: sticky;
    top: 0;
    min-height: 100vh;
    backdrop-filter: blur(12px);
}

.sidebar-brand {
    margin-bottom: 2rem;
}

.portal-brand-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
}

.portal-logo,
.portal-text-logo {
    display: block;
    width: auto;
    object-fit: contain;
}

.portal-logo-sidebar {
    height: 54px;
    max-width: 180px;
}

.portal-logo-topbar {
    height: 46px;
    max-width: 180px;
}

.portal-text-logo-topbar {
    height: 48px;
    max-width: 360px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.brand-mark {
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--brand-red);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.brand-caption {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.88rem;
    line-height: 1.25;
    max-width: 13rem;
}

.brand-kicker {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.sidebar-kicker {
    display: block;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.74rem;
    margin-bottom: 0.5rem;
}

.sidebar-brand h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
}

.sidebar-nav .nav-link {
    color: rgba(255, 255, 255, 0.78);
    border-radius: 0.9rem;
    padding: 0.85rem 1rem;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--brand-red);
}

.content-area {
    flex: 1;
    padding: 1.25rem;
    min-width: 0;
    background: transparent;
}

.topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: rgba(8, 8, 8, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.1rem;
    box-shadow: 0 20px 36px rgba(5, 5, 5, 0.22);
    backdrop-filter: blur(12px);
}

.topbar-brand-wrap,
.topbar-copy {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.topbar-brand-wrap {
    min-width: 0;
}

.topbar-copy {
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    justify-self: start;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: flex-end;
    min-width: 0;
}

.page-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
    color: #fff;
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.page-body {
    padding-left: 0;
    padding-right: 0;
}

.sidebar-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    width: 48px;
    min-width: 48px;
    padding: 0;
}

.hamburger-lines {
    display: inline-flex;
    flex-direction: column;
    gap: 0.22rem;
}

.hamburger-lines span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
}

.detail-card,
.stat-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: var(--radius);
    box-shadow: 0 24px 44px rgba(4, 16, 17, 0.22);
    backdrop-filter: blur(12px);
    padding: 1.5rem;
}

.stat-card span {
    color: var(--muted);
    display: block;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.stat-card strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.stat-card p,
.detail-card p {
    color: var(--muted);
}

.detail-card h2,
.detail-card h3 {
    font-weight: 800;
}

.section-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.onboarding-tabs {
    gap: 0.75rem;
    flex-wrap: wrap;
}

.onboarding-tabs .nav-link {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 700;
}

.onboarding-tabs .nav-link.active {
    background: var(--primary);
    color: #fff;
}

.card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 24px 44px rgba(4, 16, 17, 0.22);
    backdrop-filter: blur(12px);
}

.card-header,
.card-footer {
    padding: 1.35rem 1.5rem;
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(15, 93, 94, 0.12);
}

.card-body {
    padding: 1.5rem;
}

.card-header .btn,
.card-footer .btn {
    white-space: nowrap;
}

.form-control,
.form-select {
    border-radius: 0.9rem;
    border: 1px solid rgba(23, 53, 56, 0.14);
    min-height: 48px;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
}

textarea.form-control {
    min-height: auto;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(15, 93, 94, 0.42);
    box-shadow: 0 0 0 0.2rem rgba(15, 93, 94, 0.13);
}

.btn {
    border-radius: 0.9rem;
    font-weight: 700;
    min-height: 46px;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.progress {
    height: 1rem;
    border-radius: 999px;
    background: rgba(15, 93, 94, 0.08);
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    font-weight: 700;
}

.table {
    --bs-table-bg: transparent;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive table {
    min-width: 760px;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.file-meta {
    font-size: 0.88rem;
}

.list-group-item {
    background: rgba(255, 255, 255, 0.28);
    border-color: var(--border);
}

.alert {
    border-radius: 1rem;
    border-color: rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(10px);
}

.nominee-panel {
    background: rgba(255, 255, 255, 0.82);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 1rem;
    padding: 1.25rem;
    backdrop-filter: blur(12px);
}

.nominee-title {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.table > :not(caption) > * > * {
    background: transparent;
}

@media (max-width: 991.98px) {
    body {
        background-position: 64% center;
    }

    .auth-topbar {
        padding: 1rem 1rem 0;
    }

    .sidebar {
        position: fixed;
        left: -100%;
        width: min(300px, 86vw);
        z-index: 1050;
        transition: left 0.25s ease;
    }

    .app-shell.sidebar-open .sidebar {
        left: 0;
    }

    .content-area {
        width: 100%;
        padding: 1rem;
    }

    .sidebar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .topbar {
        grid-template-columns: 1fr;
        padding: 1rem;
        align-items: flex-start;
    }

    .topbar-brand-wrap,
    .topbar-copy,
    .topbar-actions {
        width: 100%;
    }

    .topbar-copy {
        order: 3;
    }

    .topbar-actions {
        justify-content: space-between;
    }

    .page-body .row {
        --bs-gutter-x: 1rem;
    }
}

@media (max-width: 767.98px) {
    body {
        background-attachment: scroll;
    }

    .auth-card,
    .detail-card,
    .stat-card {
        padding: 1.2rem;
    }

    .auth-card {
        border-radius: 1.2rem;
        padding: 1.4rem;
    }

    .auth-topbar-inner {
        padding: 0.95rem 1.1rem;
        border-radius: 1.1rem;
    }

    .auth-topbar-logo img {
        height: 44px;
    }

    .auth-topbar-copy img {
        height: 38px;
        max-width: min(100%, 280px);
    }

    .topbar {
        gap: 0.85rem;
    }

    .portal-logo-sidebar {
        height: 46px;
        max-width: 150px;
    }

    .portal-logo-topbar {
        height: 40px;
    }

    .portal-text-logo-topbar {
        height: 40px;
        max-width: min(100%, 280px);
    }

    .page-title {
        font-size: 1.3rem;
    }

    .page-subtitle {
        font-size: 0.92rem;
    }

    .topbar-actions {
        flex-wrap: wrap;
    }

    .topbar-logout {
        width: auto;
        justify-content: center;
    }

    .sidebar-toggle {
        width: 48px;
    }

    .card-header,
    .card-body,
    .card-footer {
        padding: 1.15rem;
    }

    .card-header.d-flex,
    .card-footer.d-flex {
        flex-direction: column;
        align-items: stretch !important;
    }

    .card-header .btn,
    .card-footer .btn {
        width: 100%;
        white-space: normal;
    }

    .onboarding-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.35rem;
        margin-left: -0.1rem;
        margin-right: -0.1rem;
    }

    .onboarding-tabs .nav-item {
        flex: 0 0 auto;
    }

    .onboarding-tabs .nav-link {
        white-space: nowrap;
    }

    .table-responsive table {
        min-width: 680px;
    }

    .table-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .table-actions .btn {
        width: 100%;
    }

    .detail-card h2 {
        font-size: 1.35rem;
        line-height: 1.25;
    }

    .stat-card strong {
        font-size: 1.7rem;
    }

    .form-check-inline {
        display: flex;
        align-items: center;
        margin-right: 1rem;
        margin-bottom: 0.5rem;
    }

    .progress {
        height: 0.95rem;
    }
}

@media (max-width: 575.98px) {
    body {
        background-position: 66% center;
    }

    .auth-topbar {
        padding: 0.75rem 0.75rem 0;
    }

    .auth-topbar-inner {
        gap: 0.9rem;
        align-items: flex-start;
    }

    .auth-topbar-logo img {
        height: 36px;
    }

    .portal-logo-sidebar {
        height: 40px;
        max-width: 130px;
    }

    .portal-logo-topbar {
        height: 34px;
    }

    .auth-topbar-copy {
        max-width: 11rem;
    }

    .auth-topbar-copy img {
        height: auto;
        width: 100%;
    }

    .content-area {
        padding: 0.75rem;
    }

    .topbar-actions {
        justify-content: space-between;
    }

    .portal-text-logo-topbar {
        height: auto;
        width: 100%;
        max-width: 170px;
    }

    .topbar,
    .detail-card,
    .stat-card,
    .card {
        border-radius: 1rem;
    }

    .page-title {
        font-size: 1.15rem;
    }

    .card-header p,
    .detail-card p,
    .stat-card p {
        font-size: 0.92rem;
    }

    .table-responsive table {
        min-width: 620px;
    }

    .file-meta {
        word-break: break-word;
    }

    .btn {
        min-height: 44px;
    }
}


