﻿.evaluation-item-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    flex: 1;
    justify-content: center;
    padding: 0 0.5rem;
    margin: 0.5rem 0px;
}

.evaluation-item-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 120px;
    border-radius: 6px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    gap: 0.5rem;
    width: 100%;
}

    .evaluation-item-container:hover {
        background-color: var(--primary-color-hover, #143260);
    }

    .evaluation-item-container.selected {
        outline: 5px solid var(--important-color);
    }

.evaluation-item-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    height: 100%;
    overflow: hidden;
    gap: 0.25rem;
    padding-top: 1rem;
    padding-bottom: 0.25rem;
}

.evaluation-item-label-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.evaluation-item-label {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1rem;
    line-height: 1;
    text-align: center;
}

.evaluation-item-groups {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    justify-content: flex-start;
    padding-left: 0.25rem;
}

.evaluation-item-author {
    font-size: 0.75rem;
    color: #777;
    font-style: italic;
    padding-left: 0.25rem;
    margin-top: auto;
}

.score-entry {
    width: 85px !important;
    height: 30px;
    padding: 5px;
}

.question-points-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    padding: 2px 8px;
    border: 1px solid white;
    border-radius: 20px;
    color: white;
    height: unset;
    min-width: unset; 
    width: auto;
}

.total-score-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--primary-color);
    padding: 2px 5px;
    border: 1px solid white;
    border-radius: 20px;
    height: 100%;
}

.auto-width-table th,
.auto-width-table td {
    padding-left: 6px;
    padding-right: 6px;
}

.total-score-label {
    font-weight: bold;
    color: white;
    font-size: 1rem;
}

.score-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-label {
    font-weight: bold;
    font-size: 0.75rem;
}

.total-skill {
    min-width: 36px !important;
    width: 36px !important;
}

/* ── Suppression des spinners natifs sur les inputs de score/maxPoints ── */
.essi-input,
.eqi-input {
    -moz-appearance: textfield;
}

.essi-input::-webkit-outer-spin-button,
.essi-input::-webkit-inner-spin-button,
.eqi-input::-webkit-outer-spin-button,
.eqi-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.grading-scale-item {
    width: 20px;
    height: 20px;
    display: flex;
    font-size: 0.6rem;
    align-items: center;
    justify-content: center;
    color: black;
    font-weight: bolder;
    border-radius: 10px;
    text-align: center;
}

/* ── Centrage et compact pour les cellules de score ── */
.score-entry-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.1rem 0;
}

/* ==== Effet doré pour la note totale (100%) ==== */
.total-score-container.gold {
    background: linear-gradient(135deg, #8d6b00 0%, #c9a227 25%, #ffd85e 50%, #c8a444 75%, #8d6b00 100%);
    border: 1px solid #f5e6a4;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255, 240, 180, 0.5) inset, 0 4px 12px rgba(200, 150, 0, 0.35), 0 0 24px rgba(255, 215, 0, 0.25);
}

    /* Reflet animé */
    .total-score-container.gold::after {
        content: "";
        position: absolute;
        top: -150%;
        left: -50%;
        width: 80%;
        height: 400%;
        transform: rotate(25deg);
        background: linear-gradient( 90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0) 100% );
        animation: gold-shine 2.4s ease-in-out infinite;
        pointer-events: none;
    }

@keyframes gold-shine {
    0% {
        transform: translateX(-120%) rotate(25deg);
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    60% {
        transform: translateX(160%) rotate(25deg);
        opacity: 0.9;
    }

    100% {
        opacity: 0;
    }
}

/* Texte lisible sur fond doré */
.total-score-label.gold-text {
    color: #2e2400;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    font-weight: 800;
}

/* Bonus : bordure interne de la pastille de grading quand 100% */
.total-score-container.gold .grading-scale-item {
    border-radius: 12px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .7) inset;
}

/* ====== Title bar layout ====== */
.eval-header-titlebar {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-height: 36px;
}

.eval-header-left {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    flex: 0 0 auto;
}

/* Le titre prend la place disponible sans se faire écraser */
.eval-title {
    flex: 1 1 auto;
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sur écrans étroits, on autorise le wrap pour préserver la lisibilité */
@media (max-width: 992px) {
    .eval-title {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
}

/* ===== Édition d'une compétence dans l'en-tête ===== */

/* Le pill reste, mais son contenu change en mode édition */
.skill-edit-mode {
    justify-content: flex-start;
    gap: 0.6rem; /* petit espace entre input et boutons */
}

/* Champ texte large, prend presque toute la pill */
.evaluation-skill-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 32px;
    font-size: 0.85rem;
    padding-inline: 0.5rem;
}

/* Conteneur des boutons de validation/suppression */
.evaluation-skill-edit-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex: 0 0 auto;
}

/* Boutons icône compacts (check / trash / pencil) */
.eval-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border-radius: 999px;
    font-size: 0.9rem;
}

    .eval-icon-btn i {
        font-size: 0.85rem;
    }

/* On allège un peu le padding dans l'en-tête autour des skills */
.auto-width-table th .question-points-container {
    padding-top: 4px;
    padding-bottom: 4px;
}
