﻿body {
}
.hot {
    padding: 1px;
    color: #4cff00;
}

table#gamesFullTable tr td,
table#gamesFullTable tr th {
    font-size: 1rem !important;
}


.summary-line {
    white-space: nowrap;
    font-size: 0.85rem;
}

.prob-bar {
    display: flex;
    width: 100%;
    height: 18px;
    background-color: #111;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 4px;
}

.prob-red,
.prob-blue {
    position: relative;
    height: 100%;
}

.prob-red {
    background-color: rgba(255, 0, 0, 0.35);
}

.prob-blue {
    background-color: rgba(0, 128, 255, 0.35);
}

.prob-text-left,
.prob-text-right {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    padding: 0 4px;
    white-space: nowrap;
}

.prob-text-left {
    left: 0;
}

.prob-text-right {
    right: 0;
    justify-content: flex-end;
}

.prediction-bar-line {
    margin-bottom: 2px;
}



.closeness-pill, .verdict-pill {
    display: inline-block;
    padding: 0 4px;
    border-radius: 3px; /* square-ish, like other badges */
    font-size: 0.9rem !important;
    margin-left: 4px;
}

/* Tone scale used by both closeness-pill and verdict-badge */

.tone-red-l1 {
    background-color: rgba(255, 0, 0, 0.15);
    border: 1px solid rgba(255, 0, 0, 0.5);
    color: #ffb3b3 !important;
}

.tone-red-l2 {
    background-color: rgba(255, 0, 0, 0.25);
    border: 1px solid rgba(255, 0, 0, 0.7);
    color: #ffcfcf !important;
}

.tone-red-l3 {
    background-color: rgba(255, 0, 0, 0.35);
    border: 1px solid #ff5b5b;
    color: #ffe0e0 !important;
}

.tone-red-l4 {
    background-color: rgba(255, 0, 0, 0.45);
    border: 1px solid #ff0000;
    color: #fff0f0 !important;
}

.tone-blue-l1 {
    background-color: rgba(0, 128, 255, 0.15);
    border: 1px solid rgba(0, 128, 255, 0.5);
    color: #b3d8ff !important;
}

.tone-blue-l2 {
    background-color: rgba(0, 128, 255, 0.25);
    border: 1px solid rgba(0, 128, 255, 0.7);
    color: #cfe4ff !important;
}

.tone-blue-l3 {
    background-color: rgba(0, 128, 255, 0.35);
    border: 1px solid #409eff;
    color: #e0eeff !important;
}

.tone-blue-l4 {
    background-color: rgba(0, 128, 255, 0.45);
    border: 1px solid #007bff;
    color: #f0f6ff !important;
}





.badge-frf {
    display: inline-block;
    padding: 0 4px;
    border-radius: 3px;
    background-color: #222;
    border: 1px solid #ffc107;
    color: #ffc107;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.badge-model-right {
    display: inline-block;
    padding: 0 4px;
    border-radius: 3px;
    background-color: #122a12;
    border: 1px solid #52c752;
    color: #52c752;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.badge-soft-upset {
    display: inline-block;
    padding: 0 4px;
    border-radius: 3px;
    background-color: #2b2410;
    border: 1px solid #ffc107;
    color: #ffc107;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.badge-hard-upset {
    display: inline-block;
    padding: 0 4px;
    border-radius: 3px;
    background-color: #2a1111;
    border: 1px solid #ff5b5b;
    color: #ff5b5b;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Closeness status badges */

.badge-close-certified {
    display: inline-block;
    padding: 0 4px;
    border-radius: 3px;
    background-color: #122a12;
    border: 1px solid #52c752;
    color: #52c752;
    font-size: 0.9rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge-not-close {
    display: inline-block;
    padding: 0 4px;
    border-radius: 3px;
    background-color: #1d242b;
    border: 1px solid #9ca3af;
    color: #e5e7eb;
    font-size: 0.9rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge-stacked {
    display: inline-block;
    padding: 0 4px;
    border-radius: 3px;
    background-color: #2a1111;
    border: 1px solid #ff5b5b;
    color: #ffb3b3;
    font-size: 0.9rem;
    text-transform: uppercase;
    white-space: nowrap;
}




/* Optional: verdict badge for prediction verdict text */
.verdict-badge {
    display: inline-block;
    padding: 0 4px;
    border-radius: 3px;
    font-size: 0.9rem;
    height: 1.1rem !important;
}

    /* Reuse v-green..v-red colours here if desired */
    .verdict-badge.v-green {
        background-color: #122a12;
        border: 1px solid #52c752;
        color: #52c752;
    }

    .verdict-badge.v-yellow {
        background-color: #2b2410;
        border: 1px solid #ffc107;
        color: #ffc107;
    }

    .verdict-badge.v-amber {
        background-color: #2b1a10;
        border: 1px solid #ff9800;
        color: #ffb74d;
    }

    .verdict-badge.v-orange {
        background-color: #2a1510;
        border: 1px solid #ff7043;
        color: #ffab91;
    }

    .verdict-badge.v-red {
        background-color: #2a1111;
        border: 1px solid #ff5b5b;
        color: #ffb3b3;
    }

.pred-correct {
    color: #52c752;
    font-weight: 600;
    margin-left: 4px;
}

.pred-upset {
    color: #ff5b5b;
    font-weight: 600;
    margin-left: 4px;
}

.pred-soft-upset {
    color: #ffc107;
    font-weight: 600;
    margin-left: 4px;
}

/* LOADER */

#loadingOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
    color: white;
    font-size: 1.4rem;
    font-weight: 500;
}

.spinner {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 4px solid #ddd;
    border-top-color: #00baff;
    animation: spin 0.7s linear infinite;
    margin-bottom: 12px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    opacity: 0.9;
}

/* information box */
.summary-info-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 24px;
}

    /* Allow each panel to size nicely */
    .summary-info-container > div {
        flex: 1;
        min-width: 0; /* prevents overflow issues */
    }

/* Optional: Make info box scroll if very tall */
#gamesInfo {
    max-height: 420px;
    overflow-y: auto;
}

#gamesSummary {
    flex: 0 0 40%;
}

#gamesInfo {
    flex: 0 0 60%;
}


.info-box {
    background: #f8f9fa;
    padding: 12px 16px;
    border-left: 4px solid #007acc;
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.35;
    color: #333;
}

    .info-box h3 {
        margin-top: 0;
        font-size: 1.1rem;
    }


/* legend styles */

.legend-container {
    margin-top: 12px;
    padding: 10px 12px;
    background: #f2f4f6;
    border-left: 3px solid #007acc;
    border-radius: 4px;
}

.legend-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.legend-label {
    font-size: 0.9rem;
    opacity: 0.85;
}