.scores-active {

    background-color: var(--primary-color);
    color: var(--primary-foreground);
}

.result {
    color: var(--primary-color);
    font-weight: bold;
    margin-left: 10px;
}

.rubrica {
    color: var(--primary-color);
}

.eval-card {
    margin-bottom: 15px;
}

.evaluador-header {
    background: linear-gradient(135deg, var(--primary-color), #144d8c);
    color: white;
    border-radius: 18px;
    box-shadow: 0 16px 32px rgba(18, 78, 141, 0.22);
    width: 90%;
    margin: 3rem auto 2rem;
    padding: 2rem 2.25rem;
}

.criteria-observations {
    width: 100%;
    min-height: 80px;
    margin-top: 10px;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #dcdcdc;
    font-size: 14px;
    resize: vertical;
}

.evaluador-header__identity {
    display: flex;
    align-items: center;
    gap: 16px;
}

.evaluador-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7em;
    font-weight: bold;
}

.evaluador-details h2 {
    margin: 3px 0 4px;
    color: white;
    font-size: 1.55rem;
}

.evaluador-details p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.78;
}

.evaluador-eyebrow {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.evaluador-header .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.evaluador-header .stat-card {
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    display: flex;
    gap: 10px;
    min-width: 0;
    padding: 14px;
    text-align: left;
}

.evaluador-header .stat-icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 9px;
    display: inline-flex;
    flex: 0 0 34px;
    font-size: 1rem;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.evaluador-header .stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
    line-height: 1.1;
}

.evaluador-header .stat-label {
    font-size: 0.78rem;
    opacity: 0.78;
    white-space: nowrap;
}

.filters-section {
    background: var(--light-text);
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
    padding: 10px;
    justify-content: space-between
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.control-label {
    font-size: 1em;
    font-weight: 600;
    color: var(--primary-color);
}

.filters-row {
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
}

.project-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 20px;

    position: relative;
}

.project-card.evaluated {
    border-left-color: #28a745;
}

.project-card.in-evaluation {
    border-left-color: #ffc107;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 20px;
}

.project-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.project-id {
    color: #666;
    font-size: 0.9em;
}

.evaluation-status {
    text-align: center;
    min-width: 120px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 5px;
}

.status-badge.Asignado {
    background: #fff3cd;
    color: #856404;
}

.status-badge.evaluando {
    background: #cce5ff;
    color: #004085;
}

.status-badge.completada {
    background: #d4edda;
    color: #155724;
}

.project-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: var(--text-description);
}

.meta-item i {
    color: var(--secondary-color);
    width: 16px;
}

.evaluation-form {

    display: none;
}

.evaluation-form.active {
    display: block;
}

.bloque-evaluacion {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.criteria-grid {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 20px;
}

.criteria-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #ddd;
}

.criteria-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.criteria-description {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 15px;
}

.score-input-group {
    position: relative;
}

.score-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1.1em;
    text-align: center;
    font-weight: bold;
}

.score-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.score-range {
    font-size: 0.8em;
    color: #666;
    text-align: center;
    margin-top: 5px;
}

.observations-section {
    margin-top: 20px;
}

.observations-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    resize: vertical;
}

.evaluation-summary {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    border: 2px solid #00cf30;
}

.score-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: #28a745;
    margin: 10px 0;
}

.score-breakdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.breakdown-item {
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.breakdown-score {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
}

.breakdown-label {
    font-size: 0.85em;
    color: #666;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e3e6ea;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.btn-success {
    background: #28a745;
    color: white;
}

/* .btn-success:hover {
      background: #1e7e34;
      transform: translateY(-2px);
    } */


.btn-warning {
    background: #ffc107;
    color: #000;
}

.btn-warning:hover {
    background: #e0a800;
}

.no-projects {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.loading-state {
    text-align: center;
    padding: 40px;
    color: #666;
}

#page-spinner-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.95);
    z-index: 99999;
    transition: opacity .4s ease;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

/* Circular spinner */
#page-spinner-overlay .spinner {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 6px solid rgba(0, 0, 0, 0.08);
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

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

/* Texto opcional */
#page-spinner-overlay .spinner-text {
    color: #333;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .filters-row {
        flex-direction: column;
    }

    .filter-group {
        min-width: auto;
    }

    .project-header {
        flex-direction: column;
        gap: 15px;
    }

    .evaluation-status {
        text-align: left;
        min-width: auto;
    }

    .criteria-grid {
        grid-template-columns: 1fr;
    }

    .score-breakdown {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .evaluador-header {
        padding: 1.5rem;
    }

    .evaluador-header__identity {
        flex-direction: column;
        text-align: center;
    }

    .evaluador-header .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 440px) {
    .evaluador-header .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Contenido principal */
.main-content {
    max-width: 90%;
    margin: 2rem auto 2rem;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

/* CONTENEDOR GENERAL */
.criteria-grid {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

/* TARJETAS */
.criteria-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f7;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.criteria-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* TITULO */
.criteria-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.criteria-title i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* DESCRIPCIÓN */
.criteria-description p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 10px;
}

/* RÚBRICA */
.criteria-card>div:nth-child(3) {
    background: #f1f7ff !important;
    border: 1px solid #dbeafe;
    font-size: 0.85rem;
    border-radius: 10px;
}

/* INPUT SCORE */
.score-input-group {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.score-input {
    width: 94%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #dbeafe;
    font-size: 1rem;
    outline: none;
    transition: 0.2s;
}

.score-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.15);
}

.score-range {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* TEXTAREA */
.criteria-observations {
    margin-top: 10px;
    width: 94%;
    min-height: 80px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 10px;
    font-size: 0.9rem;
    resize: none;
    transition: 0.2s;
}

.criteria-observations:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.15);
}

/* TOTAL SCORE */
.total-score h4 {
    margin-bottom: 10px;
    font-weight: 500;
}

.score-display {
    font-size: 1rem;
    font-weight: bold;
}

.score-ring {
    --score-angle: 0deg;
    --score-color: #475569;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at center, white 61%, transparent 62%),
        conic-gradient(var(--score-color) var(--score-angle), #d1d5db 0deg);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    color: var(--score-color);
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.score-ring.is-high {
    transform: scale(1.02);
}

.score-ring-value {
    line-height: 1;
    font-size: 2rem;
    font-weight: 800;
}

.score-ring-scale {
    display: block;
    margin-top: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
}

/* OBSERVACIONES GENERALES */
.observations-section {
    margin-top: 25px;
}

.score-btn.active {
    background: #1B3361 !important;
    color: #fff !important;
    border-color: #1B3361 !important;
}

/* BOTONES */
.action-buttons {
    margin-top: 25px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}

/* BOTONES MODERNOS */
.btn-primary {
    background: var(--primary-color);
    border: none;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-success {
    background: #16a34a;
    border: none;
}

.btn-success:hover {
    background: #15803d;
}

.btn-secondary {
    background: #e5e7eb;
    color: #374151;
    border: none;
}

.btn-secondary:hover {
    background: #d1d5db;
}
