body {
    padding-top: 56px; /* Magasság a fix navbar miatt - megemelt érték a fixált navbar-hoz */
    background-color: #f8f9fa;
}

/* Befagyasztott modellek jelölése a leaderboard-on */
.frozen-model {
    background-color: rgba(255, 200, 200, 0.35) !important; /* Halvány piros háttér */
}

.frozen-model:hover {
    background-color: rgba(255, 180, 180, 0.5) !important;
}

/* Fixált navigációs sáv */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000; /* Biztosítja, hogy a navbar a tartalom előtt jelenjen meg */
}

.arena-image {
    max-height: 512px; /* Maximális képmagasság, hogy ne legyenek túl nagyok */
    width: auto;       /* Szélesség automatikus */
    max-width: 100%;   /* De ne lógjon ki a konténerből */
    display: block;    /* Középre igazításhoz */
    margin-left: auto;
    margin-right: auto;
    background-color: #e9ecef; /* Háttérszín, amíg tölt a kép */
    min-height: 200px; /* Minimális magasság, hogy ne ugorjon a layout */
    border: 1px solid #dee2e6;
}

/* Prompt - egyetlen sor, kattintható */
.prompt-truncated {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    user-select: none;
    padding: 0.4rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    background-color: #fff;
    font-size: 0.9rem;
    transition: background-color 0.15s;
}
.prompt-truncated:hover {
    background-color: #f0f4ff;
    border-color: #adb5bd;
}
.prompt-truncated::after {
    content: ' \25BC';
    font-size: 0.65em;
    opacity: 0.5;
    margin-left: 4px;
}
.prompt-truncated.prompt-open::after {
    content: ' \25B2';
}

/* Teljes prompt popup - megjelenik a truncated felett */
.prompt-full-popup {
    display: none;
    background-color: #fff;
    border: 1px solid #adb5bd;
    border-radius: 0.375rem;
    padding: 0.6rem 1rem;
    margin-bottom: 0.4rem;
    font-style: italic;
    font-size: 0.9rem;
    white-space: normal;
    word-break: break-word;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

/* Arena Battle módban is JS kezeli a magasságot */
#battle-mode .arena-image {
    width: auto;
    max-width: 100%;
    /* max-height: 100%;  Handled inline now */
    min-height: 0 !important; /* Felülírjuk a globális min-height-et */
    object-fit: contain;
}

/* Címek egységesítése az igazítás miatt */
#battle-mode h4 {
    min-height: 1.5em;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tömörebb elrendezés a side-by-side módban, hogy több hely maradjon a képeknek */
#side-by-side-mode {
    overflow: hidden;
}
#side-by-side-mode #sbs-prompt {
    margin-bottom: 0 !important;
    font-size: 0.85rem;
    max-height: 12vh;
    overflow-y: auto;
}

#side-by-side-mode .sbs-image-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#side-by-side-mode .arena-image {
    max-width: 100%;
    max-height: 100% !important; /* Force to container height */
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Opcionális: Betöltés animáció a képek helyén */
/* .arena-image[src=""] { */
    /* background: #e9ecef url('loading.gif') center center no-repeat; */
/* } */

#loading-indicator {
    margin-top: 20px;
    margin-bottom: 20px;
}

/* --- Mobile nézet: Arena Battle --- */
@media (max-width: 767.98px) {
    /* Képek egymás alatt: a sor legyen flex-column, mindkét col 50% magasság */
    #battle-mode .row.flex-grow-1 {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    #battle-mode .row.flex-grow-1 > div {
        flex: 0 0 50% !important;
        max-width: 100% !important;
        width: 100% !important;
        height: 50% !important;
        padding-left: 2px !important;
        padding-right: 2px !important;
    }

    /* Minimális padding a képeken belül */
    #battle-mode .arena-image {
        min-height: 0 !important;
        border: none !important;
    }

    /* Kisebb fejlécek */
    #battle-mode h4 {
        font-size: 0.85rem;
        margin-bottom: 0.1rem !important;
        min-height: auto;
    }

    /* Kompaktabb prompt */
    #battle-mode .prompt-truncated {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
        margin-bottom: 0.2rem !important;
    }

    /* Kisebb gombok, egymás mellett (col-6 már be van állítva) */
    #battle-mode .battle-btn {
        font-size: 0.72rem;
        padding: 0.25rem 0.3rem;
        line-height: 1.2;
    }

    /* Kompaktabb gomb szekció */
    #battle-mode .flex-shrink-0.mt-2 {
        margin-top: 0.15rem !important;
        padding-bottom: 0.15rem !important;
    }

    #battle-mode .mb-1 {
        margin-bottom: 0.15rem !important;
    }
}

/* Compare Mode */
.compare-model-card .card-body {
    padding: 0.75rem;
}

.compare-model-card .table td {
    padding: 0.35rem 0.5rem;
    vertical-align: middle;
    font-size: 0.9rem;
}

#compare-result .card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

#compare-result .display-6 {
    font-size: 2.2rem;
}

#compare-result .progress {
    border-radius: 0.5rem;
    overflow: hidden;
}

#compare-result .progress-bar {
    font-size: 0.75rem;
    line-height: 30px;
    font-weight: 600;
    transition: width 0.6s ease;
}

#compare-result .table-responsive {
    max-height: 500px;
    overflow-y: auto;
}

#compare-result .table-responsive thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

.compare-prompt-row:hover {
    background-color: rgba(13, 110, 253, 0.06) !important;
}

.compare-prompt-arrow {
    font-size: 0.7em;
    opacity: 0.5;
    margin-left: 2px;
    display: inline-block;
    transition: transform 0.2s;
}

.compare-prompt-img {
    max-height: 400px;
    object-fit: contain;
}

.compare-border-model1 {
    border: 2px solid #0d6efd;
}

.compare-border-model2 {
    border: 2px solid #198754;
}