/* ==========================================================================
   PG Scholars Online Recruitment System
   Brand palette: Mastercard Foundation red/orange + University of Rwanda blue
   ========================================================================== */

:root {
    --mcf-red: #EB001B;
    --mcf-orange: #F79E1B;
    --mcf-teal: #3F8272;
    --ur-blue: #134C73;
    --ur-blue-dark: #0D3650;
    --ur-seal-blue: #006990;
    --ink: #1F2933;
    --muted: #6B7280;
    --surface: #FFFFFF;
    --surface-soft: #F7F8FA;
}

body {
    background: var(--surface);
    color: var(--ink);
    font-family: 'Jost', 'Roboto', system-ui, -apple-system, Arial, sans-serif;
    overflow-x: hidden;
}

/* Chart.js canvases only ever get a `height` attribute in markup, never a
   `width` -- without this, a canvas' native 300px intrinsic width can force
   its card wider than a narrow mobile column before/without Chart.js's own
   responsive resize taking effect, blowing out the row and causing the
   whole page to scroll horizontally. */
canvas { max-width: 100%; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Jost', 'Roboto', system-ui, -apple-system, Arial, sans-serif;
}

.site-navbar { box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.brand-text { font-weight: 700; color: var(--ur-blue-dark); letter-spacing: .2px; }

/* ---------------------------------------------------------------------
   Partner bar: Mastercard Foundation Scholars Program lockup on the left,
   the "In partnership with University of Rwanda" badge (a single flat
   image, own white background left untouched) on the right.
   Desktop: spread to opposite ends. Mobile: pulled into one tight cluster.
   --------------------------------------------------------------------- */
.partner-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 16px;
    padding: 14px 0;
}
.partner-bar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1 1 auto;
    gap: 14px;
    min-width: 0;
}
.partner-logo-mcf { height: 120px; width: auto; display: block; }

.partner-bar-secondary { flex-shrink: 0; }
.partner-ur-badge { display: block; height: 90px; width: auto; max-width: 100%; }

@media (max-width: 576px) {
    .partner-bar { padding: 10px 0; gap: 2px 10px; }
    .partner-bar-row { justify-content: flex-start; align-items: flex-start; gap: 10px; }
    .partner-logo-mcf { height: 76px; }
    .partner-ur-badge { height: 44px; }
}

.footer-logo { height: 112px; width: auto; display: block; }
@media (max-width: 576px) {
    .footer-logo { height: 72px; }
}

a { color: var(--ur-blue); }
a:hover { color: var(--mcf-red); }

.btn-mcf {
    background: linear-gradient(90deg, var(--mcf-red), var(--mcf-orange));
    border: none;
    color: #fff;
    font-weight: 600;
}
.btn-mcf:hover { color: #fff; filter: brightness(0.95); }

.btn-ur {
    background: var(--ur-blue);
    border: none;
    color: #fff;
    font-weight: 600;
}
.btn-ur:hover { background: var(--ur-blue-dark); color: #fff; }

/* ---------------------------------------------------------------------
   Nav CTA box: dark navy pill housing the Log in / Apply Now buttons as
   white pill buttons with bold blue text and a trailing chevron.
   --------------------------------------------------------------------- */
.nav-cta-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--ur-blue-dark);
    border-radius: 999px;
    padding: 6px;
}
.btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: var(--ur-blue);
    font-weight: 700;
    border: none;
    border-radius: 999px;
    padding: 8px 20px;
    white-space: nowrap;
    line-height: 1.2;
    transition: background .15s ease, color .15s ease;
}
.btn-pill i { color: var(--ur-blue); font-size: .85em; }
.btn-pill:hover { background: var(--surface-soft); color: var(--ur-blue-dark); }
.btn-pill:hover i { color: var(--ur-blue-dark); }

@media (max-width: 991.98px) {
    .nav-cta-box { flex-direction: column; align-items: stretch; background: transparent; padding: 0; gap: 8px; margin-top: 8px; }
    .btn-pill { justify-content: space-between; background: var(--ur-blue-dark); color: #fff; }
    .btn-pill i, .btn-pill:hover i { color: #fff; }
    .btn-pill:hover { background: var(--ur-blue); color: #fff; }
}

.hero h1 { color: var(--ur-blue-dark); font-weight: 800; }
.hero .accent { color: var(--ur-blue); }
.hero-divider {
    width: 64px;
    height: 4px;
    background: var(--ur-blue);
    border-radius: 2px;
    margin: 1rem 0 1.25rem;
}

/* ---------------------------------------------------------------------
   "Prepare before applying" document checklist: an eyebrow label, bold
   title, and the required/conditional documents as rounded pill tags.
   --------------------------------------------------------------------- */
.prep-card {
    background: #fff;
    border: 1px solid #E7EAEE;
    border-radius: 14px;
    padding: 1.75rem;
}
.prep-eyebrow {
    color: var(--ur-blue);
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: .4rem;
}
.prep-title {
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 1.25rem;
}
.prep-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}
.prep-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border: 1px solid #E2E5E9;
    border-radius: 999px;
    padding: .55rem 1.1rem;
    font-weight: 600;
    font-size: .92rem;
    color: var(--ink);
    background: var(--surface-soft);
}
.prep-pill small { font-weight: 500; font-size: .82em; }

.prep-divider { border-color: #EEF0F3; margin: 0 0 1.25rem; }
.note-item {
    border: 1px solid #E7EAEE;
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
}
.note-label {
    color: var(--ur-blue);
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: .5rem;
}
.note-text { color: var(--muted); line-height: 1.6; }

/* ---------------------------------------------------------------------
   Homepage intake status card: mirrors the "apply now" widget applicants
   expect from the university's own site -- label header, key dates, a
   live Open/Closed status, and an Apply Now link that disappears once
   the intake is closed (manually or because the deadline passed).
   --------------------------------------------------------------------- */
.intake-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #E7EAEE;
    box-shadow: 0 12px 30px rgba(13,54,80,.1);
    overflow: hidden;
}
.intake-card-header {
    background: var(--ur-blue);
    color: #fff;
    padding: 1rem 1.25rem;
}
.intake-card-body { padding: 1.1rem 1.25rem; }
.intake-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem 0;
}
.intake-apply-link {
    color: var(--ur-blue);
    font-weight: 600;
    text-decoration: none;
}
.intake-apply-link:hover { color: var(--mcf-red); }

.card-step {
    border: 1px solid #E7EAEE;
    border-radius: 14px;
}
.card-step .card-header {
    background: var(--surface-soft);
    border-bottom: 1px solid #E7EAEE;
    font-weight: 700;
    color: var(--ur-blue-dark);
}

.progress-steps { display: flex; gap: 4px; margin-bottom: 1.5rem; }
.progress-steps .step-dot {
    flex: 1;
    height: 6px;
    border-radius: 4px;
    background: #E7EAEE;
}
.progress-steps .step-dot.is-active,
.progress-steps .step-dot.is-done { background: var(--mcf-orange); }

.required-mark { color: var(--mcf-red); }

.score-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    padding: .25rem .6rem;
    border-radius: 999px;
    font-weight: 700;
    background: var(--surface-soft);
    color: var(--ur-blue-dark);
}

.score-total-banner {
    background: linear-gradient(90deg, rgba(235,0,27,.08), rgba(247,158,27,.08));
    border: 1px solid rgba(247,158,27,.3);
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.table-criteria th { white-space: nowrap; color: var(--muted); font-weight: 600; font-size: .85rem; text-transform: uppercase; }

.word-counter { font-size: .8rem; color: var(--muted); }
.word-counter.is-over { color: var(--mcf-red); font-weight: 600; }

.sidebar-admin {
    width: 240px;
    flex-shrink: 0;
    background: var(--ur-blue-dark);
    min-height: 100vh;
    color: #fff;
}
.sidebar-admin a { color: rgba(255,255,255,.85); text-decoration: none; display: block; padding: .55rem 1rem; border-radius: 8px; }
.sidebar-admin a:hover, .sidebar-admin a.active { background: rgba(255,255,255,.12); color: #fff; }
.sidebar-admin .brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 1.1rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,.15);
    margin-bottom: .5rem;
}
.sidebar-logo {
    height: 70px;
    width: auto;
    flex-shrink: 0;
    background: #fff;
    border-radius: 8px;
    padding: 6px 8px;
}

/* ---------------------------------------------------------------------
   Admin topbar (mobile only): hamburger toggle for the off-canvas sidebar.
   Hidden at lg+ where the sidebar is always visible inline.
   --------------------------------------------------------------------- */
.admin-topbar {
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,.08);
}
.admin-sidebar-toggle {
    border: none;
    background: transparent;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--ur-blue-dark);
    padding: 6px 10px;
    border-radius: 8px;
}
.admin-sidebar-toggle:hover { background: var(--surface-soft); }
.admin-sidebar-backdrop { display: none; }

/* Below lg, the sidebar becomes an off-canvas drawer instead of a permanent
   240px column -- otherwise it eats most of a phone's width and squeezes
   every admin page (tables, stat cards, filters) into an unusably narrow
   strip. */
@media (max-width: 991.98px) {
    .sidebar-admin {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1050;
        width: 260px;
        max-width: 82vw;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform .25s ease;
        box-shadow: 0 0 30px rgba(0,0,0,.35);
    }
    .sidebar-admin.is-open { transform: translateX(0); }
    .admin-sidebar-backdrop.is-visible {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1040;
        background: rgba(13,54,80,.45);
    }
}

/* ---------------------------------------------------------------------
   Full Analytics (fullanalytics.php): standalone, no-sidebar dashboard
   view. Topbar is a two-tier bar modeled on the Admiria/Minia (themesbrand)
   reference dashboard's actual topbar-main (#67a8e4) + navbar-custom
   (#263238) colors, sampled from their stylesheet -- content below still
   uses the same container-fluid + panel classes as the regular page.
   --------------------------------------------------------------------- */
.full-analytics-logo { height: 28px; width: auto; background: #fff; border-radius: 6px; padding: 3px 5px; }
.minia-topbar-main {
    background: #67a8e4;
    color: #fff;
    padding: 10px 0;
}
.minia-topbar-title {
    color: #fff;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    font-size: 1rem;
}
.minia-topbar-sub {
    background: #263238;
    color: rgba(255,255,255,.75);
    font-size: .82rem;
    padding: 8px 0;
}

/* Floating icon-only nav rail: fullanalytics.php has no text sidebar (the
   whole point is to reclaim that width), so this gives quick jump links to
   the other admin sections without leaving the full-width view. Hidden
   below md where there's no spare width for a floating dock. */
.icon-rail {
    position: fixed;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1030;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #fff;
    border-radius: 999px;
    padding: 10px 6px;
    box-shadow: 0 8px 24px -6px rgba(13,54,80,.3);
}
.icon-rail a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--muted);
    font-size: 1rem;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.icon-rail a:hover { background: var(--surface-soft); color: var(--ur-blue); }
.icon-rail a.active { background: var(--ur-blue); color: #fff; }
.icon-rail hr { width: 20px; margin: 4px auto; border-color: #E2E5E9; opacity: 1; }

/* This div owns its own horizontal padding entirely (no Bootstrap px-* utility
   classes) since those ship with !important and would silently win over the
   extra left padding below, letting the rail overlap the filter form. */
.full-analytics-content { padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 768px) {
    .full-analytics-content { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (max-width: 767.98px) {
    .icon-rail { display: none; }
}
@media (min-width: 768px) {
    .full-analytics-content { padding-left: 86px; }
}

/* ---------------------------------------------------------------------
   Icon-choice cards: used for Gender and Scholarship Category so the
   options read as a small visual picker rather than a plain radio list.
   --------------------------------------------------------------------- */
.icon-choice-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.icon-choice-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.icon-choice-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 122px;
    min-height: 88px;
    padding: 12px 8px;
    border: 2px solid #E2E5E9;
    border-radius: 12px;
    background: #fff;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.icon-choice-card i { font-size: 1.5rem; color: var(--ur-blue); transition: color .15s ease; }
.icon-choice-card:hover { border-color: var(--ur-blue); }
.icon-choice-input:checked + .icon-choice-card {
    border-color: var(--mcf-red);
    background: linear-gradient(180deg, #fff, #FFF4F1);
    color: var(--ink);
}
.icon-choice-input:checked + .icon-choice-card i { color: var(--mcf-red); }
.icon-choice-input:focus-visible + .icon-choice-card { outline: 2px solid var(--ur-blue); outline-offset: 2px; }

@media (max-width: 480px) {
    .icon-choice-card { width: 100px; min-height: 78px; font-size: .74rem; }
    .icon-choice-card i { font-size: 1.3rem; }
}

/* ---------------------------------------------------------------------
   Dashboard stat cards: a responsive grid of compact cards (wraps to
   fewer columns on narrower viewports instead of scrolling sideways),
   each with a solid-color icon badge beside a stacked number + label.
   --------------------------------------------------------------------- */
.stat-card-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    margin-bottom: 1.75rem;
}
.stat-card-mini {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    background: var(--stat-color, var(--ur-blue));
    background: linear-gradient(135deg, var(--stat-color, var(--ur-blue)), color-mix(in srgb, var(--stat-color, var(--ur-blue)) 100%, black 30%));
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 6px 16px -4px rgba(0,0,0,.3);
    box-shadow: 0 6px 16px -4px color-mix(in srgb, var(--stat-color, var(--ur-blue)) 55%, transparent);
    transition: transform .15s ease, box-shadow .15s ease;
}
.stat-card-mini:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px -4px rgba(0,0,0,.35);
    box-shadow: 0 10px 22px -4px color-mix(in srgb, var(--stat-color, var(--ur-blue)) 65%, transparent);
}
/* Soft decorative bubbles, like the reference dashboard's gradient tiles -- purely
   ornamental, sit behind the icon/text (z-index via isolation above). */
.stat-card-mini::before, .stat-card-mini::after {
    content: '';
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
}
.stat-card-mini::before { width: 110px; height: 110px; right: -35px; bottom: -45px; }
.stat-card-mini::after { width: 60px; height: 60px; right: 30px; bottom: -30px; background: rgba(255,255,255,.1); }
.stat-card-mini .text-muted { color: rgba(255,255,255,.85) !important; }
/* Headline number: large, heavy, tabular figures so digits line up card to
   card. Label: small uppercase caps with letterspacing, sitting quietly
   underneath -- the number is what should catch the eye first. */
.stat-value {
    display: block;
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.01em;
    font-variant-numeric: tabular-nums;
}
.stat-label {
    display: block;
    margin-top: 3px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: rgba(255,255,255,.85);
}
.stat-icon-solid {
    width: 48px;
    height: 48px;
    border-radius: 11px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.22);
    color: #fff;
    font-size: 1.2rem;
}
.stat-card-link {
    text-decoration: none;
    color: inherit;
}
.stat-card-chevron {
    margin-left: auto;
    color: rgba(255,255,255,.7);
    font-size: .8rem;
    transition: color .15s ease, transform .15s ease;
}
.stat-card-link:hover .stat-card-chevron {
    color: #fff;
    transform: translateX(2px);
}

@media (max-width: 420px) {
    .stat-card-row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
    .stat-card-mini { padding: 14px; gap: 10px; }
    .stat-value { font-size: 1.35rem; }
}

/* ---------------------------------------------------------------------
   Progress rings (Analytics page): a plain conic-gradient donut, no JS or
   canvas needed. The percentage is also the tooltip title text, so hover
   and screen readers both get the exact fraction behind the ring.
   --------------------------------------------------------------------- */
.kpi-ring {
    --size: 84px;
    width: var(--size);
    height: var(--size);
    flex-shrink: 0;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(var(--ring-color, var(--ur-blue)) calc(var(--pct, 0) * 1%), #E7EAEE 0);
    transition: transform .15s ease;
}
.kpi-ring:hover { transform: scale(1.05); }
.kpi-ring::before {
    content: '';
    position: absolute;
    inset: 9px;
    background: #fff;
    border-radius: 50%;
}
.kpi-ring-value {
    position: relative;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--ink);
}

/* ---------------------------------------------------------------------
   KPI gauge tiles (Analytics page): the same colored gradient treatment
   as .stat-card-mini, but sized to fill a grid column and paired with a
   "glassy" on-color ring (white arc, translucent track and cutout so the
   tile's own gradient shows through) -- inspired by dashboard tiles that
   pair a big number with an inline progress ring.
   --------------------------------------------------------------------- */
.kpi-gauge-tile {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
    color: #fff;
    background: var(--stat-color, var(--ur-blue));
    background: linear-gradient(135deg, var(--stat-color, var(--ur-blue)), color-mix(in srgb, var(--stat-color, var(--ur-blue)) 100%, black 30%));
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 6px 16px -4px rgba(0,0,0,.3);
    box-shadow: 0 6px 16px -4px color-mix(in srgb, var(--stat-color, var(--ur-blue)) 55%, transparent);
    transition: transform .15s ease, box-shadow .15s ease;
}
.kpi-gauge-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px -4px rgba(0,0,0,.35);
    box-shadow: 0 10px 22px -4px color-mix(in srgb, var(--stat-color, var(--ur-blue)) 65%, transparent);
}
.kpi-gauge-tile::before, .kpi-gauge-tile::after {
    content: '';
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
}
.kpi-gauge-tile::before { width: 110px; height: 110px; right: -35px; bottom: -45px; }
.kpi-gauge-tile::after { width: 60px; height: 60px; right: 30px; bottom: -30px; background: rgba(255,255,255,.1); }
.kpi-gauge-tile .text-muted { color: rgba(255,255,255,.85) !important; }
.kpi-gauge-tile .kpi-ring { --size: 88px; }
.kpi-gauge-tile .kpi-ring-onColor {
    background: conic-gradient(#fff calc(var(--pct, 0) * 1%), rgba(255,255,255,.28) 0);
}
.kpi-gauge-tile .kpi-ring-onColor::before { background: rgba(255,255,255,.92); }
.kpi-gauge-tile .kpi-ring-onColor .kpi-ring-value { color: var(--ur-blue-dark); font-size: 1.15rem; }
.kpi-gauge-label {
    display: block;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: -.005em;
}
.kpi-gauge-sub {
    display: block;
    margin-top: 3px;
    font-size: .74rem;
    font-weight: 500;
    letter-spacing: .01em;
    color: rgba(255,255,255,.85);
}

.donut-title-badge {
    display: inline-block;
    background: var(--ur-blue-dark);
    color: #fff;
    font-weight: 800;
    padding: .4rem 1.1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}
.proportion-bar-track {
    height: 7px;
    border-radius: 999px;
    background: #EDEFF2;
    overflow: hidden;
    margin-top: 6px;
}
.proportion-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width .4s ease;
}

/* ---------------------------------------------------------------------
   Category-by-gender cards (Analytics page): one card per scholarship
   category with a colored top accent, a headline total, and a Female /
   Male split underneath. Colors for the split reuse the gender donut's
   palette (blue/amber) so the two charts read as the same encoding.
   --------------------------------------------------------------------- */
.cat-gender-card {
    height: 100%;
    background: #fff;
    border-top: 4px solid var(--accent, var(--ur-blue));
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.cat-gender-title {
    font-weight: 700;
    font-size: .95rem;
    color: var(--ink);
    margin-bottom: 8px;
}
.cat-gender-total {
    font-size: 2rem;
    font-weight: 900;
    color: var(--ur-blue-dark);
    line-height: 1;
}
.cat-gender-total-label {
    font-size: .72rem;
    font-weight: 600;
    color: #8e9aaa;
    margin-top: 4px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #eef1f4;
}
.cat-gender-split {
    display: flex;
    justify-content: space-around;
    gap: 10px;
}
.cat-gender-split-item { text-align: center; }
.cat-gender-split-item i {
    display: block;
    font-size: 1.1rem;
    color: var(--split-color);
    margin-bottom: 4px;
}
.cat-gender-split-n {
    display: block;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--split-color);
}
.cat-gender-split-label {
    display: block;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #8e9aaa;
    margin-top: 2px;
}

/* ---------------------------------------------------------------------
   KPI section (Dashboard overview): a labeled section header (pill badge
   + title + rule) followed by a row of left-accented mini cards, each
   pairing a headline total with a compact "NNNF / NNNM" gender split.
   --------------------------------------------------------------------- */
.kpi-section-badge {
    display: inline-block;
    background: #eaf3fb;
    color: var(--ur-blue-dark);
    font-weight: 800;
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .35rem .7rem;
    border-radius: 6px;
}
.kpi-section-rule {
    height: 1px;
    background: #e1e0d9;
}
.kpi-mini-card {
    height: 100%;
    background: #fff;
    border-left: 4px solid var(--accent, var(--ur-blue));
    border-radius: 8px;
    padding: 16px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.kpi-mini-label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #8e9aaa;
    margin-bottom: 6px;
}
.kpi-mini-total {
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--ur-blue-dark);
    line-height: 1;
}
.kpi-mini-split {
    font-size: .78rem;
    color: #8e9aaa;
    margin-top: 6px;
    font-weight: 600;
}
.kpi-mini-unspecified {
    color: #b0764f;
    font-weight: 600;
}

/* ---------------------------------------------------------------------
   Long free-text answers (essays, descriptions) read as real prose --
   a heading followed by properly spaced paragraphs, not a cramped block.
   --------------------------------------------------------------------- */
.essay-block {
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #EEF0F3;
}
.essay-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.essay-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ur-blue-dark);
    margin-bottom: .6rem;
}
.essay-text {
    font-size: .98rem;
    line-height: 1.75;
    color: #3C4450;
}
.essay-text p { margin-bottom: 1.1rem; }
.essay-text p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------------
   Colored section headers: each application wizard step (and read-only
   section heading) gets its own color + icon bar, like a divided form.
   --------------------------------------------------------------------- */
.section-header-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 10px 10px 0 0;
    background: var(--section-color, var(--ur-blue));
    color: #fff;
}
.section-header-bar i { font-size: 1.05rem; }
.section-header-bar .section-header-title { font-weight: 700; font-size: 1.02rem; margin: 0; }
.section-header-bar .section-header-subtitle { font-size: .82rem; opacity: .85; margin: 0; }

.section-divider {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--section-color, var(--ur-blue));
    color: #fff;
    font-weight: 700;
    font-size: .92rem;
    margin: 1.75rem 0 1rem;
}
.section-divider:first-child { margin-top: 0; }

@keyframes btn-pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(235,0,27,.45); }
    50% { box-shadow: 0 0 0 6px rgba(235,0,27,0); }
}
.btn-pulse { animation: btn-pulse-glow 1.6s ease-out infinite; }

/* ---------------------------------------------------------------------
   Smart search bar: one prominent navy pill (admin lists) with a plain
   input and a gradient search button -- filters live in a lighter card
   underneath so the search itself stays the clear primary action.
   --------------------------------------------------------------------- */
.smart-search-bar {
    display: flex;
    align-items: stretch;
    gap: 8px;
    background: var(--ur-blue-dark);
    border-radius: 12px;
    padding: 8px;
}
.smart-search-bar input {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 1rem;
    height: 46px;
}
.smart-search-bar input:focus { outline: 3px solid rgba(247,158,27,.5); outline-offset: 0; }
.smart-search-bar button {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--mcf-red), var(--mcf-orange));
    color: #fff;
    font-size: 1.15rem;
}
.smart-search-bar button:hover { filter: brightness(0.95); }

@media (max-width: 480px) {
    .smart-search-bar input { height: 40px; font-size: .92rem; }
    .smart-search-bar button { width: 44px; }
}

/* ---------------------------------------------------------------------
   Admin data tables: readable headers with icons, breathing room, and a
   hover cue per row so scanning a long applicant list is easy on the eye.
   --------------------------------------------------------------------- */
.table-admin thead th {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-weight: 700;
    color: var(--muted);
    background: var(--surface-soft);
    border-bottom: 2px solid #E7EAEE;
    white-space: nowrap;
    padding: .85rem 1rem;
}
.table-admin thead th i { color: var(--ur-blue); margin-right: .4rem; }
.table-admin tbody td { padding: .85rem 1rem; vertical-align: middle; }
.table-admin tbody tr:hover { background: var(--surface-soft); }
.table-admin .contact-meta { font-size: .8rem; color: var(--muted); }
.table-admin .contact-meta i { width: 1rem; text-align: center; color: #AFB6BF; margin-right: .3rem; }
.table-admin .contact-meta span + span { margin-left: .65rem; }
