:root {
    --brand: #0a84d6;
    --brand-dark: #0a5b9a;
    --brand-soft: #eaf6ff;
    --ink: #1d2a38;
    --muted: #7a8ca3;
    --line: #e9eef5;
    --bg: #f4f8fc;
    --card-shadow: 0 18px 40px rgba(27, 55, 90, 0.08);
}

html {
    background:
        radial-gradient(circle at top right, #ffffff, transparent 22%),
        linear-gradient(180deg, #CDE5FF 0%, var(--bg) 100%);
    height: auto;
    min-height: 100vh;
}

body {
    font-family: "Manrope", sans-serif;
    background: transparent;
    color: var(--ink);
}

a {
    text-decoration: none;
}

.topbar {
    background: #B06408;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 30px rgba(76, 41, 3, 0.22);
}

.brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(233, 238, 245, 0.95);
    box-shadow: 0 10px 24px rgba(16, 37, 63, 0.08);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-copy small,
.text-muted-soft {
    color: var(--muted);
}

.topbar .brand-copy strong,
.topbar .brand-copy small,
.topbar .text-dark,
.topbar .text-muted-soft,
.topbar .navbar-brand,
.topbar .navbar-brand:hover,
.topbar .navbar-brand:focus {
    color: #fff !important;
}

.nav-chip {
    padding: 0.8rem 1rem;
    border-radius: 999px;
    color: #506174;
    font-weight: 700;
}

.nav-chip.active,
.nav-chip:hover {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.topbar .nav-chip {
    color: rgba(255, 255, 255, 0.92);
}

.topbar .nav-chip.active,
.topbar .nav-chip:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.topbar .btn-outline-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}

.topbar .btn-outline-secondary:hover,
.topbar .btn-outline-secondary:focus {
    color: #B06408;
    background: #fff;
    border-color: #fff;
}

.topbar .navbar-toggler {
    color: #fff;
}

.topbar .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

.page-shell {
    padding: 2rem 0 3rem;
}

.hero-card,
.dashboard-card,
.session-card,
.alert-card,
.progress-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(233, 238, 245, 0.95);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
}

.hero-card {
    padding: 1.5rem;
}

.dashboard-card,
.progress-card {
    padding: 1.5rem;
    height: 100%;
}

.metric-number {
    font-size: 2.35rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-align: center;
}

.soft-badge {
    background: linear-gradient(135deg, #B06408 0%, #C97A1A 100%);
    color: #fff;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.65rem;
}

.avatar-stack span {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    margin-left: -10px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
}

.avatar-stack span:first-child {
    margin-left: 0;
}

.mini-stat {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-soft), #ffffff);
    color: var(--brand);
    font-size: 1.25rem;
}

.bar-chart {
    display: flex;
    align-items: end;
    gap: 0.75rem;
    min-height: 170px;
}

.bar-chart .bar-wrap {
    flex: 1;
    text-align: center;
}

.bar-chart .bar {
    width: 100%;
    border-radius: 18px 18px 8px 8px;
    background: linear-gradient(180deg, #d9ecfb 0%, #f2f7fc 100%);
}

.bar-chart .bar.highlight {
    background: linear-gradient(180deg, var(--brand) 0%, #63d9ff 100%);
}

.bar-chart small {
    color: var(--muted);
    font-weight: 700;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 800;
}

.session-card,
.alert-card {
    padding: 1rem 1.1rem;
}

.session-date {
    width: 72px;
    border-radius: 18px;
    background: #f7fafc;
    border: 1px solid var(--line);
}

.session-date strong {
    font-size: 1.5rem;
    line-height: 1;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.alert-strip {
    background: linear-gradient(135deg, #0d72b9 0%, #0aa5ff 100%);
    color: #fff;
}

.progress-ring {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: conic-gradient(var(--brand) 0 270deg, #e7eef6 270deg 360deg);
    display: grid;
    place-items: center;
}

.progress-ring::before {
    content: "";
    width: 118px;
    height: 118px;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--line);
}

.progress-ring-label {
    position: absolute;
    text-align: center;
}

.footer-copy {
    color: var(--muted);
    font-size: 0.92rem;
}

.auth-shell {
    display: flex;
    align-items: center;
}

.login-page {
    min-height: 100vh;
}

.login-page .auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-page .auth-shell .container {
    width: 100%;
}

.auth-panel,
.auth-showcase {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(233, 238, 245, 0.95);
    border-radius: 30px;
    box-shadow: var(--card-shadow);
}

.auth-panel {
    padding: 2rem;
}

.auth-showcase {
    padding: 2.25rem;
    background:
        linear-gradient(145deg, rgba(10, 132, 214, 0.08), rgba(255, 255, 255, 0.96)),
        rgba(255, 255, 255, 0.94);
}

.insight-pill {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 0.9rem 1rem;
}

.form-control.auth-control {
    border-radius: 5px;
    border-color: var(--line);
    padding-left: 1rem;
    padding-right: 1rem;
}

.form-control.auth-control:focus {
    border-color: #92cefb;
    box-shadow: 0 0 0 0.25rem rgba(10, 132, 214, 0.12);
}

.auth-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line), transparent);
}

@media (max-width: 991.98px) {
    .page-shell {
        padding-top: 1.25rem;
    }

    .auth-shell {
        min-height: auto;
    }
}

.btn-brand-gradient {
    background: linear-gradient(135deg, #B06408 0%, #C97A1A 100%);
    border: 0;
    color: #fff;
}

.btn-brand-gradient:hover,
.btn-brand-gradient:focus {
    background: linear-gradient(135deg, #955306 0%, #B06408 100%);
    color: #fff;
}

.btn-primary {
    background: linear-gradient(135deg, #B06408 0%, #C97A1A 100%);
    border-color: #B06408;
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: linear-gradient(135deg, #955306 0%, #B06408 100%) !important;
    border-color: #955306 !important;
    color: #fff !important;
}

.status-badge {
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.65rem;
}

.status-active {
    background: #e8f7ee;
    color: #157347;
}

.status-passive {
    background: #fdeaea;
    color: #bb2d3b;
}

.program-section {
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1rem;
    background: #fbfdff;
}

.program-section+.program-section {
    margin-top: 1rem;
}

.program-heading {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.program-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fff;
}

.program-option+.program-option {
    margin-top: 0.65rem;
}

.program-option input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0;
}

.order-badge {
    min-width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 0.8rem;
    font-weight: 800;
}

.info-trigger {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.selection-summary {
    margin: 0;
    padding-left: 1.1rem;
}

.selection-summary li+li {
    margin-top: 0.35rem;
}

.print-page {
    background: transparent;
    color: #1d2a38;
}

.print-page .page-shell {
    padding-top: 1.5rem;
}

.print-page .print-shell {
    background: rgba(255, 255, 255, 1);
    border: 1px solid rgba(229, 236, 244, 1);
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(20, 39, 63, 0.08);
    padding: 34px;
    `r`n font-family: "Segoe UI", Arial, sans-serif;
}

.print-page .print-logo {
    width: 92px;
    height: 92px;
    object-fit: contain;
    background: #fff;
    border-radius: 24px;
    padding: 10px;
    border: 1px solid #edf2f7;
    box-shadow: 0 10px 26px rgba(20, 39, 63, 0.08);
}

.print-page .print-hero {
    background: linear-gradient(135deg, rgba(234, 246, 255, 0.95), rgba(255, 255, 255, 0.98));
    border: 1px solid #e5edf5;
    border-radius: 26px;
    padding: 24px;
    margin-bottom: 26px;
}

.print-page .print-brand {
    font-size: 0.92rem;
    color: #6a7c90;
    font-weight: 600;
    margin-bottom: 6px;
}

.print-page .print-title {
    font-size: 2rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 10px;
}

.print-page .print-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.print-page .print-meta-card {
    background: #fff;
    border: 1px solid #e7edf4;
    border-radius: 20px;
    padding: 14px 16px;
}

.print-page .print-meta-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7a8ca3;
    font-weight: 700;
    margin-bottom: 6px;
}

.print-page .print-meta-value {
    color: #1d2a38;
    font-size: 1rem;
    font-weight: 700;
}

.print-page .print-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.print-page .print-section-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
}

.print-page .print-section-note {
    font-size: 0.92rem;
    color: #7a8ca3;
}

.print-page .print-item {
    border: 1px solid #e5edf5;
    border-radius: 22px;
    padding: 18px 20px;
    margin-bottom: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 10px 24px rgba(20, 39, 63, 0.04);
}

.print-page .print-order {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff8ff 0%, #f7fbff 100%);
    color: #0a5b9a;
    font-weight: 800;
    margin-right: 14px;
    flex-shrink: 0;
    border: 1px solid #dbeaf8;
}

.print-page .print-group-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.print-page .print-attribute {
    position: relative;
    padding-left: 18px;
    color: #5d7086;
    line-height: 1.7;
}

.print-page .print-attribute:before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0a84d6;
    position: absolute;
    left: 0;
    top: 11px;
}

@media (max-width: 767.98px) {
    .print-page .print-shell {
        padding: 20px;
        border-radius: 24px;
    }

    .print-page .print-hero {
        padding: 18px;
    }

    .print-page .print-meta-grid {
        grid-template-columns: 1fr;
    }

    .print-page .print-title {
        font-size: 1.6rem;
    }
}

@media print {
    @page {
        size: A4;
        margin: 12mm;
    }

    html,
    body.print-page {
        background: #fff;
        color: #000;
        font-size: 12pt;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body.print-page header.topbar,
    body.print-page footer {
        display: none !important;
    }

    body.print-page .page-shell {
        padding: 0 !important;
        margin: 0 !important;
    }

    body.print-page .print-shell {
        margin: 0;
        max-width: 100%;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        border: 0;
        background: #fff;
    }

    body.print-page .print-actions {
        display: none !important;
    }

    body.print-page .print-hero,
    body.print-page .print-item,
    body.print-page .print-logo,
    body.print-page .print-meta-card {
        box-shadow: none;
    }

    body.print-page .print-hero,
    body.print-page .print-item,
    body.print-page .print-meta-card {
        background: #fff;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    body.print-page .print-hero {
        margin-bottom: 14pt;
        padding: 16pt;
        border-radius: 14pt;
    }

    body.print-page .print-hero .d-flex {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 14pt !important;
    }

    body.print-page .print-meta-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10pt;
        margin-top: 14pt;
    }

    body.print-page .print-meta-card {
        width: 100%;
    }

    body.print-page .print-item {
        margin-bottom: 10pt;
        padding: 12pt 14pt;
        border-radius: 14pt;
    }

    body.print-page .print-title {
        font-size: 20pt;
        margin-bottom: 6pt;
    }

    body.print-page .print-section-head {
        margin-bottom: 10pt;
    }

    body.print-page .print-section-title {
        font-size: 15pt;
    }

    body.print-page .print-group-title {
        font-size: 12.5pt;
        margin-bottom: 4pt;
    }

    body.print-page .print-attribute {
        line-height: 1.45;
    }

    body.print-page .print-order {
        width: 24pt;
        height: 24pt;
        margin-right: 10pt;
    }

    body.print-page .print-logo {
        width: 64pt;
        height: 64pt;
        flex-shrink: 0;
    }
}