/*
 * Pinpoint — Vernieuwde stijlsheet
 * Drop-in vervanging voor public/assets/app.css
 *
 * Vereisten:
 *   - Voeg in index.php <head> toe vóór de bestaande <link rel="stylesheet">:
 *       <link rel="preconnect" href="https://fonts.googleapis.com">
 *       <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
 *       <link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap" rel="stylesheet">
 *   - Status-bar hoogte verandert van 49px → 52px. Pas de JS-regel aan:
 *       body:has(#status-bar) → hoogte calc(100% - 52px)  [zie: #dashboard hoogte]
 *   - Optionele JS-verbetering voor gekleurde linkerbalk op teamkaarten:
 *       Voeg style="--team-color:${team.color}" toe aan het .team-card element
 *       in buildTeamList() in spelleiding.js.
 */

/* ── Google Font ─────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* ════════════════════════════════════════════════════════════════════════════
   DESIGN TOKENS
   ════════════════════════════════════════════════════════════════════════════ */

/* Donkere modus (standaard) */
:root {
    --bg:             #080A14;
    --surface:        #0C0E1C;
    --surface-2:      #131726;
    --border:         #12152A;
    --border-mid:     #181C2E;
    --border-strong:  #1E2236;
    --text:           #E0E4F4;
    --text-muted:     #6A7298;
    --overlay:        rgba(8, 10, 20, 0.78);
    --overlay-strong: rgba(8, 10, 20, 0.94);
    --label-bg:       rgba(8, 10, 20, 0.84);
    --accent:         #4F8EF7;
    --accent-amber:   #F5A623;
    --accent-green:   #30D158;
    --accent-red:     #FF453A;
}

/* Lichte modus */
:root.light {
    --bg:             #EEF0F7;
    --surface:        #FFFFFF;
    --surface-2:      #EDF0F7;
    --border:         #E8EAF4;
    --border-mid:     #DDE1EE;
    --border-strong:  #CDD2E6;
    --text:           #141728;
    --text-muted:     #5A628A;
    --overlay:        rgba(238, 240, 247, 0.86);
    --overlay-strong: rgba(238, 240, 247, 0.96);
    --label-bg:       rgba(238, 240, 247, 0.92);
}

/* ════════════════════════════════════════════════════════════════════════════
   RESET & BASIS
   ════════════════════════════════════════════════════════════════════════════ */

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Outfit', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: background-color 0.2s ease, color 0.2s ease;
}

button, input, select, textarea {
    font: inherit;
}

input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* ════════════════════════════════════════════════════════════════════════════
   KAART
   ════════════════════════════════════════════════════════════════════════════ */

#map {
    position: absolute;
    inset: 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   ZOEKER — HEADER OVERLAY
   ════════════════════════════════════════════════════════════════════════════ */

#header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 0.875rem 1rem;
    background: var(--overlay);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#header a {
    color: var(--text);
    text-decoration: none;
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    padding: 0.35rem 0.75rem;
    border-radius: 7px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Live indicator dot */
#live-dot {
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--accent-green);
    margin-right: 0.35rem;
    animation: pulse-dot 2s infinite;
}

/* Game-status tekst naast de dot */
#game-name {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Info-balk (countdown zichtbaar team, onderaan kaart) */
#info-bar {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(245, 166, 35, 0.1);
    padding: 0.625rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(245, 166, 35, 0.36);
    color: var(--accent-amber);
    font-weight: 600;
    font-size: 0.82rem;
    white-space: nowrap;
}

/* Header-rechts cluster (thema + spelleiding-link) */
.header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ════════════════════════════════════════════════════════════════════════════
   ANIMATIES
   ════════════════════════════════════════════════════════════════════════════ */

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.2; }
}

.leaflet-interactive.pulse-marker {
    animation: pulse-marker 1.5s infinite;
}

@keyframes pulse-marker {
    0%   { stroke-opacity: 1; fill-opacity: 0.9; }
    50%  { stroke-opacity: 0.4; fill-opacity: 0.4; }
    100% { stroke-opacity: 1; fill-opacity: 0.9; }
}

/* ════════════════════════════════════════════════════════════════════════════
   INLOGSCHERM
   ════════════════════════════════════════════════════════════════════════════ */

#login-screen {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
}

#login-form {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    width: 18rem;
    background: var(--surface);
    border: 1px solid var(--border-mid);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.35);
}

#login-form h1 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

#login-form input {
    padding: 0.7rem 0.875rem;
    font-size: 0.9rem;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    color: var(--text);
    outline: none;
    transition: box-shadow 0.15s, border-color 0.15s;
}

#login-form input:focus {
    box-shadow: 0 0 0 3px rgba(79, 142, 247, 0.2);
    border-color: var(--accent);
}

#login-form button[type="submit"] {
    cursor: pointer;
    padding: 0.7rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    background: var(--accent);
    color: #fff;
    margin-top: 0.25rem;
    transition: opacity 0.15s;
}

#login-form button[type="submit"]:hover { opacity: 0.88; }

.error {
    color: var(--accent-red);
    margin: 0;
    font-size: 0.8rem;
}

/* ════════════════════════════════════════════════════════════════════════════
   DASHBOARD LAYOUT
   ════════════════════════════════════════════════════════════════════════════ */

#dashboard {
    display: flex;
    height: 100%;
}

/* Status-bar is 52 px — pas deze calc aan in index.php of het JS:
   height: calc(100% - 52px) */
body:has(#status-bar) #dashboard {
    height: calc(100% - 52px);
}

/* ════════════════════════════════════════════════════════════════════════════
   STATUS-BAR (spelleiding)
   ════════════════════════════════════════════════════════════════════════════ */

#status-bar {
    height: 52px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
    border-bottom: 1px solid var(--border-mid);
    background: var(--surface);
}

#status-bar button {
    padding: 0.35rem 0.75rem;
}

#settings-button {
    margin-left: auto;
}

/* Spelstatus-badge */
#status-badge {
    padding: 0.25rem 0.625rem;
    border-radius: 5px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    color: var(--text-muted);
}

#status-badge.active {
    background: rgba(48, 209, 88, 0.1);
    border-color: rgba(48, 209, 88, 0.25);
    color: var(--accent-green);
}

#status-badge.finished {
    background: rgba(255, 69, 58, 0.1);
    border-color: rgba(255, 69, 58, 0.25);
    color: var(--accent-red);
}

/* Primaire spelactie (Start / Stop / Nieuw spel) */
#game-action-button {
    cursor: pointer;
    padding: 0.35rem 0.875rem;
    border-radius: 6px;
    border: 1px solid rgba(79, 142, 247, 0.3);
    background: rgba(79, 142, 247, 0.08);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.8rem;
}

/* Secundaire knoppen in status-bar */
#manage-teams-button,
#logout-button {
    cursor: pointer;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border-mid);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.8rem;
}

#reveal-all-button {
    cursor: pointer;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(79, 142, 247, 0.28);
    background: rgba(79, 142, 247, 0.07);
    color: var(--accent);
    font-size: 0.8rem;
}

#stats-button {
    cursor: pointer;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(245, 166, 35, 0.28);
    background: rgba(245, 166, 35, 0.07);
    color: var(--accent-amber);
    font-size: 0.8rem;
}

#settings-button {
    cursor: pointer;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border-mid);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ════════════════════════════════════════════════════════════════════════════
   MODALS (instellingen / teams / eindstand)
   ════════════════════════════════════════════════════════════════════════════ */

#settings-modal,
#stats-modal,
#manage-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
}

#settings-modal[hidden],
#stats-modal[hidden],
#manage-modal[hidden] {
    display: none;
}

.modal-content {
    position: relative;
    width: min(92%, 480px);
    max-height: 88vh;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border-mid);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.4);
}

/* Sluitknop modals */
#manage-close,
#settings-close,
#stats-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    border: none;
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

/* Instellingen-velden */
.settings-field {
    display: block;
    margin: 0.875rem 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.settings-field input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0.3rem;
    padding: 0.5rem 0.625rem;
    border-radius: 7px;
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    color: var(--text);
    font-size: 0.875rem;
    outline: none;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.settings-field input:focus {
    box-shadow: 0 0 0 3px rgba(79, 142, 247, 0.15);
    border-color: var(--accent);
}

.settings-start-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.3rem;
}

.settings-start-row #settings-start-display {
    flex: 1;
    font-variant-numeric: tabular-nums;
    font-size: 0.8rem;
}

.settings-start-row button,
#settings-save {
    cursor: pointer;
    padding: 0.45rem 0.875rem;
    border-radius: 6px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
}

#settings-save {
    display: block;
    width: 100%;
    margin-top: 0.875rem;
    padding: 0.65rem;
}

/* Startpunt-balk bovenop de kaart */
#start-pick-bar {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    background: var(--overlay-strong);
    border: 1px solid var(--accent);
    font-size: 0.82rem;
    white-space: nowrap;
}

#start-pick-bar[hidden] { display: none; }

#start-pick-bar button {
    cursor: pointer;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    color: var(--text);
    font-size: 0.8rem;
}

/* ── Eindstand-tabel ─────────────────────────────────────────────────────── */

#stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

#stats-table th,
#stats-table td {
    text-align: left;
    padding: 0.45rem 0.5rem;
    border-bottom: 1px solid var(--border);
}

#stats-table th {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.team-color {
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 0.25rem;
}

/* ── Teams beheren-modal ─────────────────────────────────────────────────── */

#add-team-form {
    display: flex;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

#add-team-form input {
    flex: 1;
    padding: 0.5rem 0.625rem;
    border-radius: 7px;
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    color: var(--text);
    outline: none;
    transition: box-shadow 0.15s, border-color 0.15s;
}

#add-team-form input:focus {
    box-shadow: 0 0 0 3px rgba(79, 142, 247, 0.15);
    border-color: var(--accent);
}

#add-team-form button {
    cursor: pointer;
    padding: 0.5rem 0.875rem;
    border-radius: 7px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}

.manage-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.manage-row .manage-name {
    flex: 1;
    font-size: 0.9rem;
}

.manage-row button {
    cursor: pointer;
    padding: 0.2rem 0.625rem;
    border-radius: 5px;
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* QR-code weergave */
#qr-display { margin-top: 1rem; text-align: center; }

#qr-code {
    display: inline-block;
    background: #fff;
    padding: 0.5rem;
    border-radius: 8px;
}

#qr-fallback {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    text-align: left;
    word-break: break-all;
}

#qr-fallback code { color: var(--accent-amber); }

.qr-instructions {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: left;
    margin-top: 0.75rem;
    line-height: 1.55;
}

/* ════════════════════════════════════════════════════════════════════════════
   SIDEBAR
   ════════════════════════════════════════════════════════════════════════════ */

#sidebar {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-right: 1px solid var(--border-mid);
}

#sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem;
    border-bottom: 1px solid var(--border-mid);
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

#sidebar-header button {
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    color: var(--text-muted);
    border-radius: 5px;
    padding: 0.25rem 0.625rem;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 600;
}

#team-list {
    flex: 1;
    overflow-y: auto;
}

/* ════════════════════════════════════════════════════════════════════════════
   TEAMKAART (spelleiding sidebar)

   Optionele JS-verbetering:
     Voeg style="--team-color:${team.color}" toe aan het .team-card div-element
     in buildTeamList() in spelleiding.js. Dan wordt de linkerbalk in de
     teamkleur weergegeven; zonder die JS-aanpassing valt het terug op een
     neutrale rand.
   ════════════════════════════════════════════════════════════════════════════ */

.team-card {
    padding: 0.625rem 0.75rem 0.625rem 0.875rem;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 0.4rem;
    border-left: 3px solid var(--team-color, var(--border-strong));
    transition: background 0.1s;
}

.team-card.alert {
    background: rgba(255, 69, 58, 0.06);
    border-left-color: var(--accent-red);
}

.team-alert {
    grid-column: 1 / -1;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-red);
    background: rgba(255, 69, 58, 0.12);
    padding: 2px 7px;
    border-radius: 3px;
    display: inline-block;
    letter-spacing: 0.04em;
}

/* Health-dot */
.health-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
}

.health-dot.online  { background: var(--accent-green); }
.health-dot.offline { background: var(--accent-red);   }

/* Team-kleur-dot (in kaartlijst) */
.team-color {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
}

.team-name {
    font-weight: 600;
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-coords {
    grid-column: 1 / -1;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

/* Zichtbaarheidsknoppen */
.team-visibility {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.35rem;
}

.team-visibility button {
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 500;
    transition: background 0.1s;
}

.team-visibility button:hover {
    background: var(--border-mid);
}

.team-countdown {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-amber);
}

/* Score-bediening */
.team-score {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.35rem;
}

.team-score .score-value {
    font-weight: 700;
    font-size: 0.78rem;
    min-width: 2rem;
}

.team-score button {
    cursor: pointer;
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    color: var(--text-muted);
    font-size: 0.7rem;
}

.team-score input {
    padding: 0.2rem 0.3rem;
    border-radius: 4px;
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    color: var(--text);
    font-size: 0.7rem;
    outline: none;
}

input.score-amount { width: 3rem; text-align: center; }
input.score-reason { flex: 1; min-width: 4rem; }

/* ════════════════════════════════════════════════════════════════════════════
   LEAFLET — TEAMLABELS
   ════════════════════════════════════════════════════════════════════════════ */

.leaflet-tooltip.team-label {
    background: var(--label-bg);
    border: none;
    box-shadow: none;
    color: var(--text);
    font-family: 'Outfit', system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.leaflet-tooltip.team-label::before { display: none; }

/* ════════════════════════════════════════════════════════════════════════════
   SIDEBAR-FOOTER (online/offline teller)
   ════════════════════════════════════════════════════════════════════════════ */

#health-bar {
    padding: 0.5rem 0.875rem;
    border-top: 1px solid var(--border-mid);
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   KAARTGEBIEDEN
   ════════════════════════════════════════════════════════════════════════════ */

/* Spelleiding: kaart is directe child van #dashboard */
#dashboard > #map {
    position: relative;
    flex: 1;
}

/* Zoeker: kaartgebied wrapping div */
#map-area {
    position: relative;
    flex: 1;
}

/* ════════════════════════════════════════════════════════════════════════════
   ZOEKER — PUBLIEKE TEAMLIJST (sidebar)
   ════════════════════════════════════════════════════════════════════════════ */

#team-list-public {
    flex: 1;
    overflow-y: auto;
}

.team-status {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
}

.team-status.visible { background: var(--accent-amber); }
.team-status.hidden  { background: var(--border-strong); }

/* ════════════════════════════════════════════════════════════════════════════
   MOBIELE SIDEBAR-TOGGLE (zoeker, < 640 px)
   ════════════════════════════════════════════════════════════════════════════ */

#sidebar-toggle,
#sidebar-close {
    display: none;
}

#sidebar-toggle {
    background: var(--surface-2);
    border: 1px solid var(--border-mid);
    color: var(--text);
    border-radius: 7px;
    padding: 0.3rem 0.625rem;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 640px) {
    #dashboard.zoeker #sidebar {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1100;
        width: 85%;
        max-width: 320px;
        transform: translateX(-100%);
        transition: transform 0.22s ease;
        box-shadow: 6px 0 32px rgba(0, 0, 0, 0.4);
    }

    #dashboard.zoeker.sidebar-open #sidebar {
        transform: translateX(0);
    }

    #dashboard.zoeker #sidebar-toggle,
    #dashboard.zoeker #sidebar-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    #header { gap: 0.5rem; }

    /* Leaflet's zoom control shares #header's top-left corner and z-index 1000;
       since it's added to the DOM after #header it paints on top of the
       sidebar-toggle button. Push it below the header bar. */
    #dashboard.zoeker .leaflet-top.leaflet-left {
        top: 64px;
    }

    #info-bar {
        left: 0.75rem;
        right: 0.75rem;
        transform: none;
        text-align: center;
    }
}

/* ════════════════════════════════════════════════════════════════════════════
   THEMA-TOGGLE KNOP
   ════════════════════════════════════════════════════════════════════════════ */

.theme-toggle {
    cursor: pointer;
    padding: 0.3rem 0.625rem;
    border-radius: 6px;
    border: 1px solid var(--border-strong);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
}

#login-theme-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

/* ════════════════════════════════════════════════════════════════════════════
   HULPREGELS — witte tekst op gekleurde achtergronden
   ════════════════════════════════════════════════════════════════════════════ */

#game-action-button,
#settings-save,
.settings-start-row button,
#add-team-form button,
#login-form button[type="submit"],
#status-badge.active,
#status-badge.finished {
    color: #fff;
}
