/* =========================================
   PAGINA EVALUACION FMS - Estilos Especificos
   ========================================= */

/* HEADER */
.header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: clamp(16px, 4vw, 20px);
    padding-top: calc(clamp(16px, 4vw, 20px) + env(safe-area-inset-top));
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(-2px);
}

.back-btn svg {
    width: 22px;
    height: 22px;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.logo {
    height: clamp(35px, 8vw, 45px);
    width: auto;
}

.header-title {
    font-size: clamp(16px, 4vw, 20px);
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
    text-align: center;
}

/* CONTENT */
.content {
    padding: clamp(16px, 4vw, 24px);
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
    max-width: 600px;
    margin: 0 auto;
}

/* INFO CARD */
.info-card {
    background: white;
    border-radius: clamp(18px, 4.5vw, 24px);
    padding: clamp(20px, 5vw, 28px);
    margin-bottom: clamp(20px, 5vw, 28px);
    box-shadow: 0 8px 30px rgba(74, 123, 167, 0.15);
    display: flex;
    align-items: flex-start;
    gap: clamp(14px, 3.5vw, 18px);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-icon {
    width: clamp(50px, 12vw, 60px);
    height: clamp(50px, 12vw, 60px);
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.info-icon svg {
    width: 50%;
    height: 50%;
    color: white;
}

.info-text h2 {
    font-size: clamp(16px, 4vw, 18px);
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.info-text p {
    font-size: clamp(13px, 3.2vw, 14px);
    color: #666;
    line-height: 1.5;
}

/* EMPTY STATE */
.empty-state {
    background: white;
    border-radius: clamp(18px, 4.5vw, 24px);
    padding: clamp(32px, 8vw, 48px) clamp(24px, 6vw, 32px);
    text-align: center;
    box-shadow: 0 4px 15px rgba(74, 123, 167, 0.12);
    margin-bottom: clamp(24px, 6vw, 32px);
}

.empty-icon {
    width: clamp(64px, 16vw, 80px);
    height: clamp(64px, 16vw, 80px);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(74, 123, 167, 0.08) 0%, rgba(91, 143, 185, 0.12) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto clamp(16px, 4vw, 24px);
}

.empty-icon svg {
    width: 50%;
    height: 50%;
    color: var(--primary-blue);
    opacity: 0.6;
}

.empty-title {
    font-size: clamp(16px, 4vw, 18px);
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.empty-text {
    font-size: clamp(13px, 3.2vw, 14px);
    color: #666;
    line-height: 1.6;
}

/* SECTION TITLE */
.section-title {
    font-size: clamp(16px, 4vw, 18px);
    font-weight: 700;
    color: white;
    margin-bottom: clamp(14px, 3.5vw, 18px);
    padding-left: 4px;
}

/* TESTS GRID */
.tests-grid {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 2.5vw, 14px);
    margin-bottom: clamp(24px, 6vw, 32px);
}

.test-card {
    background: white;
    border-radius: clamp(12px, 3vw, 16px);
    padding: clamp(14px, 3.5vw, 18px);
    display: flex;
    align-items: center;
    gap: clamp(14px, 3.5vw, 18px);
    box-shadow: 0 4px 12px rgba(74, 123, 167, 0.1);
}

.test-number {
    width: clamp(36px, 9vw, 44px);
    height: clamp(36px, 9vw, 44px);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: clamp(16px, 4vw, 18px);
    font-weight: 700;
    flex-shrink: 0;
}

.test-info {
    flex: 1;
}

.test-name {
    font-size: clamp(14px, 3.5vw, 16px);
    font-weight: 700;
    color: #333;
    margin-bottom: 2px;
}

.test-desc {
    font-size: clamp(12px, 3vw, 13px);
    color: #666;
}

/* SCORE LEGEND */
.score-legend {
    background: white;
    border-radius: clamp(16px, 4vw, 20px);
    padding: clamp(16px, 4vw, 20px);
    box-shadow: 0 4px 15px rgba(74, 123, 167, 0.12);
    margin-bottom: clamp(24px, 6vw, 32px);
}

.score-item {
    display: flex;
    align-items: center;
    gap: clamp(12px, 3vw, 16px);
    padding: clamp(10px, 2.5vw, 12px) 0;
    border-bottom: 1px solid #f0f0f0;
}

.score-item:last-child {
    border-bottom: none;
}

.score-badge {
    width: clamp(32px, 8vw, 38px);
    height: clamp(32px, 8vw, 38px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(14px, 3.5vw, 16px);
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.score-badge.score-3 { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.score-badge.score-2 { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.score-badge.score-1 { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
.score-badge.score-0 { background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%); }

.score-text {
    font-size: clamp(13px, 3.2vw, 14px);
    color: #555;
    line-height: 1.4;
}

/* FORM CARD */
.form-card {
    background: white;
    border-radius: clamp(16px, 4vw, 20px);
    margin-bottom: clamp(16px, 4vw, 20px);
    box-shadow: 0 4px 15px rgba(74, 123, 167, 0.12);
    overflow: hidden;
}

.form-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: clamp(14px, 3.5vw, 16px) clamp(18px, 4.5vw, 22px);
    font-size: clamp(15px, 3.8vw, 17px);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: clamp(10px, 2.5vw, 12px);
}

.form-header svg {
    width: clamp(20px, 5vw, 24px);
    height: clamp(20px, 5vw, 24px);
}

.form-body {
    padding: clamp(18px, 4.5vw, 22px);
}

/* SEARCH BOX */
.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: clamp(12px, 3vw, 14px);
    padding: clamp(12px, 3vw, 14px) clamp(14px, 3.5vw, 18px);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--primary-blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(74, 123, 167, 0.15);
}

.search-box svg {
    width: 20px;
    height: 20px;
    color: #999;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: clamp(14px, 3.5vw, 15px);
    color: #333;
    outline: none;
}

.search-input::placeholder {
    color: #999;
}

.form-hint {
    margin-top: 12px;
    font-size: clamp(12px, 3vw, 13px);
    color: #999;
    text-align: center;
}

/* RESULTADOS BUSQUEDA */
.resultados-busqueda {
    margin-top: 12px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: clamp(12px, 3vw, 14px);
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.resultado-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.resultado-item:last-child {
    border-bottom: none;
}

.resultado-item:hover {
    background: linear-gradient(135deg, rgba(74, 123, 167, 0.08) 0%, rgba(91, 143, 185, 0.12) 100%);
}

.resultado-item.sin-resultados,
.resultado-item.error {
    cursor: default;
    color: #666;
    font-size: 14px;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.resultado-item.error {
    color: #ef4444;
}

.resultado-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(74, 123, 167, 0.25);
}

.resultado-avatar svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    min-height: 20px;
    max-width: 20px;
    max-height: 20px;
    color: white;
    flex-shrink: 0;
}

.resultado-info {
    flex: 1;
    min-width: 0;
}

.resultado-nombre {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.resultado-rut {
    font-size: 13px;
    color: #666;
}

/* ALUMNO SELECCIONADO */
.alumno-seleccionado {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.15) 100%);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: clamp(12px, 3vw, 14px);
    padding: clamp(12px, 3vw, 14px) clamp(14px, 3.5vw, 16px);
}

.alumno-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.alumno-info svg {
    width: 40px;
    height: 40px;
    color: #059669;
    flex-shrink: 0;
}

.alumno-nombre {
    font-size: clamp(14px, 3.5vw, 15px);
    font-weight: 700;
    color: #059669;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.alumno-rut {
    font-size: clamp(12px, 3vw, 13px);
    color: #047857;
}

.btn-cambiar {
    background: rgba(16, 185, 129, 0.2);
    border: none;
    border-radius: 8px;
    color: #059669;
    font-size: clamp(12px, 3vw, 13px);
    font-weight: 600;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-cambiar:hover {
    background: rgba(16, 185, 129, 0.3);
}

/* TEST EVALUATION */
.test-evaluation {
    padding: clamp(14px, 3.5vw, 18px) 0;
    border-bottom: 1px solid #f0f0f0;
}

.test-evaluation:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.test-evaluation:first-child {
    padding-top: 0;
}

.test-header {
    display: flex;
    align-items: center;
    gap: clamp(12px, 3vw, 16px);
    margin-bottom: clamp(12px, 3vw, 16px);
}

.test-num {
    width: clamp(32px, 8vw, 38px);
    height: clamp(32px, 8vw, 38px);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: clamp(14px, 3.5vw, 16px);
    font-weight: 700;
    flex-shrink: 0;
}

.test-title {
    flex: 1;
}

.test-name-eval {
    font-size: clamp(14px, 3.5vw, 15px);
    font-weight: 700;
    color: #333;
}

.test-desc-eval {
    font-size: clamp(12px, 3vw, 13px);
    color: #666;
}

/* SCORE BUTTONS */
.score-buttons {
    display: flex;
    gap: clamp(8px, 2vw, 12px);
    justify-content: center;
}

.score-option {
    cursor: pointer;
}

.score-option input {
    display: none;
}

.score-btn {
    width: clamp(48px, 12vw, 56px);
    height: clamp(48px, 12vw, 56px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(18px, 4.5vw, 22px);
    font-weight: 700;
    color: white;
    transition: all 0.3s ease;
    opacity: 0.5;
    transform: scale(0.9);
}

.score-btn.score-0 { background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%); }
.score-btn.score-1 { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
.score-btn.score-2 { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.score-btn.score-3 { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }

.score-option input:checked + .score-btn {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.score-option:hover .score-btn {
    opacity: 0.8;
    transform: scale(1);
}

/* TEXTAREA */
.textarea-field {
    width: 100%;
    border: 2px solid #e9ecef;
    border-radius: clamp(12px, 3vw, 14px);
    padding: clamp(14px, 3.5vw, 16px);
    font-size: clamp(14px, 3.5vw, 15px);
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: all 0.3s ease;
}

.textarea-field:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(74, 123, 167, 0.15);
}

.textarea-field::placeholder {
    color: #999;
}

/* TOTAL SCORE CARD */
.total-score-card {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    border-radius: clamp(16px, 4vw, 20px);
    padding: clamp(20px, 5vw, 28px);
    text-align: center;
    margin-bottom: clamp(20px, 5vw, 24px);
    box-shadow: 0 8px 25px rgba(74, 123, 167, 0.3);
}

.total-label {
    font-size: clamp(13px, 3.2vw, 14px);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.total-value {
    font-size: clamp(48px, 12vw, 64px);
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 4px;
}

.total-max {
    font-size: clamp(14px, 3.5vw, 16px);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* BTN SUBMIT */
.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 2.5vw, 14px);
    width: 100%;
    padding: clamp(16px, 4vw, 20px);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: clamp(14px, 3.5vw, 18px);
    color: white;
    font-size: clamp(15px, 3.8vw, 17px);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-submit:active {
    transform: scale(0.98);
}

.btn-submit svg {
    width: clamp(20px, 5vw, 24px);
    height: clamp(20px, 5vw, 24px);
}

/* ALERT SUCCESS */
.alert-success {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.15) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: clamp(12px, 3vw, 16px);
    padding: clamp(14px, 3.5vw, 18px);
    margin-bottom: clamp(16px, 4vw, 20px);
    color: #059669;
    font-weight: 600;
    font-size: clamp(14px, 3.5vw, 15px);
}

.alert-success svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* RESPONSIVE */
@media (max-width: 360px) {
    .score-buttons {
        gap: 6px;
    }

    .score-btn {
        width: 44px;
        height: 44px;
    }
}

@media (min-width: 768px) {
    .content {
        padding: 32px;
    }

    .tests-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* POPUP MODAL */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    opacity: 1;
    transition: opacity 0.3s ease;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.popup-modal {
    background: white;
    border-radius: 20px;
    padding: 32px 28px;
    max-width: 340px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popup-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.popup-success .popup-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.2) 100%);
}

.popup-error .popup-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.2) 100%);
}

.popup-icon svg {
    width: 36px;
    height: 36px;
}

.popup-success .popup-icon svg {
    color: #059669;
}

.popup-error .popup-icon svg {
    color: #dc2626;
}

.popup-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.popup-success .popup-title {
    color: #059669;
}

.popup-error .popup-title {
    color: #dc2626;
}

.popup-message {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 24px;
}

.popup-btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.popup-success .popup-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.popup-success .popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.popup-error .popup-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.popup-error .popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* FORM OVERLAY - cuando no hay alumno seleccionado */
#formEvaluacion {
    position: relative;
}

.form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 16px;
}

.overlay-content {
    text-align: center;
    padding: 40px 20px;
}

.overlay-content svg {
    width: 60px;
    height: 60px;
    color: #9ca3af;
    margin-bottom: 16px;
}

.overlay-content p {
    font-size: 16px;
    font-weight: 600;
    color: #6b7280;
}

/* =========================================
   EVALUACION FMS - Glassmorphism V2
   User-facing FMS evaluation list page.
   All selectors scoped under .fms-page
   ========================================= */

/* PAGE LAYOUT */
.fms-page {
    padding: clamp(16px, 4vw, 24px) !important;
    padding-bottom: calc(100px + env(safe-area-inset-bottom)) !important;
    max-width: 600px !important;
    margin: 0 auto !important;
}

/* PAGE HEADER */
.fms-page .page-header {
    text-align: center !important;
    margin-bottom: 20px !important;
}

.fms-page .page-header h2 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: white !important;
    margin: 0 !important;
}

.fms-page .page-header p {
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: 14px !important;
    margin-top: 4px !important;
}

/* FMS LIST */
.fms-page .fms-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}

/* FMS CARD (glass card) */
.fms-page .fms-card {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 20px !important;
    padding: 18px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
}

.fms-page .fms-card:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    transform: translateY(-1px) !important;
}

.fms-page .fms-card.expanded {
    background: rgba(255, 255, 255, 0.16) !important;
}

/* FMS HEADER (inside card) */
.fms-page .fms-header {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
}

/* DATE & EVALUATOR */
.fms-page .fms-date-evaluator {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.fms-page .fms-date {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: white !important;
}

.fms-page .fms-date i {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 14px !important;
}

.fms-page .fms-evaluator {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.55) !important;
}

.fms-page .fms-evaluator i {
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 13px !important;
}

/* SCORE CONTAINER */
.fms-page .fms-score-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
}

/* SCORE BADGE */
.fms-page .fms-score {
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    gap: 2px !important;
    padding: 6px 14px !important;
    border-radius: 12px !important;
}

.fms-page .fms-score.score-good {
    background: rgba(16, 185, 129, 0.2) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

.fms-page .fms-score.score-warning {
    background: rgba(245, 158, 11, 0.2) !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

.fms-page .fms-score.score-danger {
    background: rgba(239, 68, 68, 0.2) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.fms-page .score-number {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: white !important;
}

.fms-page .score-max {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-weight: 500 !important;
}

/* EXPAND ICON */
.fms-page .expand-icon {
    color: rgba(255, 255, 255, 0.5) !important;
    transition: transform 0.3s ease !important;
    font-size: 18px !important;
}

.fms-page .fms-card.expanded .expand-icon {
    transform: rotate(180deg) !important;
}

/* PROGRESS BAR */
.fms-page .fms-progress-bar {
    height: 6px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border-radius: 3px !important;
    margin: 14px 0 8px !important;
    overflow: hidden !important;
}

.fms-page .fms-progress-fill {
    height: 100% !important;
    border-radius: 3px !important;
    transition: width 0.5s ease !important;
}

.fms-page .fms-progress-fill.score-good {
    background: #10b981 !important;
}

.fms-page .fms-progress-fill.score-warning {
    background: #f59e0b !important;
}

.fms-page .fms-progress-fill.score-danger {
    background: #ef4444 !important;
}

/* SCORE LABEL */
.fms-page .fms-score-label {
    text-align: center !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    margin-bottom: 4px !important;
}

.fms-page .fms-score-label .score-good {
    color: #6ee7b7 !important;
}

.fms-page .fms-score-label .score-warning {
    color: #fcd34d !important;
}

.fms-page .fms-score-label .score-danger {
    color: #fca5a5 !important;
}

/* FMS DETAILS (expanded section) */
.fms-page .fms-details {
    padding-top: 14px !important;
    margin-top: 14px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* FMS MOVEMENT ROW */
.fms-page .fms-movement {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.fms-page .fms-movement:last-child {
    border-bottom: none !important;
}

.fms-page .movement-name {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: white !important;
}

/* MOVEMENT SCORE */
.fms-page .movement-score {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
}

.fms-page .score-dot {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.15) !important;
    transition: background 0.3s ease !important;
}

.fms-page .score-dot.filled {
    background: rgba(255, 255, 255, 0.8) !important;
}

.fms-page .score-text {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: white !important;
    min-width: 16px !important;
    text-align: center !important;
}

/* OBSERVATIONS (glass sub-card) */
.fms-page .fms-observations {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 12px 14px !important;
    margin-top: 14px !important;
}

.fms-page .observations-label {
    font-size: 11px !important;
    text-transform: uppercase !important;
    color: rgba(255, 255, 255, 0.45) !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 6px !important;
    display: block !important;
}

.fms-page .fms-observations p {
    color: white !important;
    font-size: 14px !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

/* EMPTY STATE */
.fms-page .empty-state {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 24px !important;
    padding: 48px 24px !important;
    text-align: center !important;
}

.fms-page .empty-state .empty-state-icon,
.fms-page .empty-state i {
    font-size: 52px !important;
    color: rgba(255, 255, 255, 0.35) !important;
    display: block !important;
    margin-bottom: 16px !important;
}

.fms-page .empty-state h3 {
    color: white !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
}

.fms-page .empty-state p {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 14px !important;
    margin-bottom: 0 !important;
}

/* LOADING SPINNER */
.fms-page .loading-container {
    padding: 60px 20px !important;
    text-align: center !important;
}

.fms-page .loading-container .loading-spinner,
.fms-page .loading-spinner {
    border-color: rgba(255, 255, 255, 0.15) !important;
    border-top-color: white !important;
}

.fms-page .loading-container .loading-message,
.fms-page .loading-message {
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 14px !important;
    margin-top: 12px !important;
}
