/**
 * Visual restyle layer — dark navy card/table headers, refined status pills,
 * stat tiles and score bars, matching the reference design. Loaded after
 * app.min.css so it can override the base theme without touching every
 * page's markup. Structure/content/functionality is unchanged — this file
 * is styling only.
 */

:root {
    --wfbo-navy-1: #0d1f3c;
    --wfbo-navy-2: #17335c;

    /* Match the reference design's font stack — overrides whichever of the
       theme's font presets (Nunito/Hanken Grotesk/Jost/…) is active. */
    --theme-font-sans-serif: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --theme-body-font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --theme-font-family-secondary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ── Soft blurred drop shadow behind every card, floating it off the page background ── */
.card {
    border: none;
    box-shadow: 0 10px 28px rgba(13, 31, 60, .12);
}

/* ── Card headers: dark navy bar, matches every "card-header ... bg-transparent" in the app ── */
.card-header.bg-transparent {
    background: linear-gradient(120deg, var(--wfbo-navy-1), var(--wfbo-navy-2)) !important;
    border-bottom: none;
    border-radius: var(--bs-card-inner-border-radius, .5rem) var(--bs-card-inner-border-radius, .5rem) 0 0;
    padding-top: 14px;
    padding-bottom: 14px;
}
.card-header.bg-transparent h5,
.card-header.bg-transparent h6,
.card-header.bg-transparent .fw-semibold:not(.badge):not(.btn) {
    color: #fff;
}
.card-header.bg-transparent p.text-muted,
.card-header.bg-transparent span.text-muted {
    color: rgba(255, 255, 255, .62) !important;
}
.card-header.bg-transparent .fst-italic {
    color: #fff;
}

/* ── Table headers inside cards: same dark navy treatment ── */
.card .table > thead {
    background: linear-gradient(120deg, var(--wfbo-navy-1), var(--wfbo-navy-2));
}
.card .table > thead th {
    color: #fff;
    border-bottom: none;
    font-weight: 600;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding-top: 12px;
    padding-bottom: 12px;
}

/* ── Status pills: bolder, uppercase, a little more "labeled" ── */
.badge.badge-soft-success,
.badge.badge-soft-warning,
.badge.badge-soft-danger,
.badge.badge-soft-info {
    text-transform: uppercase;
    letter-spacing: .03em;
    font-weight: 700;
    font-size: .72em;
    padding: .4em .65em;
    border-radius: 999px;
}

/* ── Stat tiles: compact colored block with an uppercase label + big value,
     used for at-a-glance severity/level readouts (Security, Health) ── */
.stat-tile {
    border-radius: .5rem;
    padding: 14px 12px;
    text-align: center;
}
.stat-tile .stat-tile-label {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    opacity: .75;
    margin-bottom: 4px;
}
.stat-tile .stat-tile-value {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
}
.stat-tile .stat-tile-sub {
    font-size: .72rem;
    font-weight: 600;
    opacity: .75;
}
.stat-tile.stat-tile-ok      { background: #e6f6ee; color: #0DA678; }
.stat-tile.stat-tile-adv     { background: #e8f1fd; color: #3B82F6; }
.stat-tile.stat-tile-cau     { background: #fdf1de; color: #b5750a; }
.stat-tile.stat-tile-hi      { background: #fbe9ec; color: #d43a4f; }

/* ── Score bar: thin track under a rating number, e.g. "4.7 ▬▬▬▬▬▭ ★" ── */
.score-bar-track {
    display: inline-block;
    width: 64px;
    height: 6px;
    border-radius: 999px;
    background: #e9edf3;
    overflow: hidden;
    vertical-align: middle;
}
.score-bar-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: #0DA678;
}

/* ── Fully-dark feature card (for callouts/upsell-style panels) ── */
.card-dark {
    background: linear-gradient(160deg, var(--wfbo-navy-1), var(--wfbo-navy-2));
    color: #fff;
    border: none;
}
.card-dark .text-muted { color: rgba(255, 255, 255, .65) !important; }
