/* Reset y variables CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0070D1;
    --primary-dark: #00439C;
    --primary-darker: #00246E;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #1F1F1F;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
}

/* Layout principal */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.app-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.header-left > div {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    margin-top: 0.25rem;
}

.btn-back:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-back svg {
    transition: var(--transition);
}

.app-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.app-title svg {
    color: var(--primary-color);
}

.app-subtitle {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin: 0;
}

.evaluation-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--gray-100);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-300);
}

.evaluation-status.active {
    background: rgba(40, 167, 69, 0.1);
    border-color: var(--success-color);
    color: var(--success-color);
}

.status-text {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

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

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

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

.btn-success:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-outline:hover:not(:disabled) {
    background: var(--gray-50);
    border-color: var(--gray-400);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Configuration Panel */
.config-panel {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.panel-section {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.panel-section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1.5rem;
}

.config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr auto;
    gap: 1.5rem;
    align-items: end;
}

.config-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.config-group label {
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.config-group input,
.config-group select {
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    transition: var(--transition);
}

.config-group input:focus,
.config-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 112, 209, 0.1);
}

.help-text {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.add-course-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
    width: 100%;
    min-height: 45px;
}

.add-course-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.config-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.config-empty {
    /* Celda vacía para alineación del grid */
}

.config-main-btn {
    width: 100%;
    justify-content: center;
    min-height: 45px;
}

.quick-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Evaluation Area */
.evaluation-area {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.evaluation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.evaluation-info h2 {
    font-size: 1.5rem;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.evaluation-info p {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin: 0;
}

.evaluation-progress {
    text-align: right;
}

.progress-info {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.progress-bar {
    width: 200px;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--success-color);
    transition: width 0.3s ease;
}

/* Students Table */
.students-table-container {
    overflow-x: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Calcular Estadísticas Section */
.calculate-stats-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    margin-top: 1rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.calculate-stats-section .btn {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    min-width: 200px;
}

.students-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.students-table th,
.students-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.students-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
    position: sticky;
    top: 0;
    z-index: 10;
}

.students-table tbody tr:hover {
    background: var(--gray-50);
}

.student-input {
    width: 100px;
    padding: 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    text-align: center;
}

.student-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 112, 209, 0.1);
}

.percentage-cell {
    font-weight: 500;
    color: var(--gray-700);
}

.simce-result {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-pending {
    background: var(--gray-100);
    color: var(--gray-600);
}

.status-completed {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

/* Results Summary */
.results-summary {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.summary-header {
    padding: 1.5rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.summary-header h3 {
    font-size: 1.25rem;
    color: var(--gray-800);
    margin: 0;
}

.summary-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
}

.stat-label {
    font-weight: 500;
    color: var(--gray-700);
}

.stat-value {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Top 3 Mejores Estudiantes */
.top3-section {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    border: 1px solid var(--gray-200);
}

.top3-header {
    margin-bottom: 1rem;
    text-align: center;
}

.top3-header h4 {
    color: var(--gray-700);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.top3-table {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.top3-row {
    display: grid;
    grid-template-columns: 80px 1fr 120px 100px;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.top3-header-row {
    background: var(--gray-100);
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.9rem;
    border: 1px solid var(--gray-300);
}

.top3-gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    border: 2px solid #FFD700;
}

.top3-silver {
    background: linear-gradient(135deg, #C0C0C0 0%, #A0A0A0 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(192, 192, 192, 0.3);
    border: 2px solid #C0C0C0;
}

.top3-bronze {
    background: linear-gradient(135deg, #CD7F32 0%, #B8860B 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(205, 127, 50, 0.3);
    border: 2px solid #CD7F32;
}

.top3-position {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.medal {
    font-size: 1.2rem;
}

.position-number {
    font-size: 0.9rem;
}

.top3-name {
    font-weight: 500;
    font-size: 0.95rem;
}

.top3-score {
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
}

.top3-percentage {
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
}

/* Responsive para top 3 */
@media (max-width: 768px) {
    .top3-section {
        padding: 1rem;
    }
    
    .top3-row {
        grid-template-columns: 60px 1fr 80px 70px;
        gap: 0.5rem;
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    .top3-header h4 {
        font-size: 1rem;
    }
    
    .medal {
        font-size: 1rem;
    }
    
    .position-number {
        font-size: 0.8rem;
    }
    
    .top3-name {
        font-size: 0.85rem;
    }
    
    .top3-score {
        font-size: 0.9rem;
    }
    
    .top3-percentage {
        font-size: 0.8rem;
    }
}

.summary-chart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chart-title {
    font-weight: 600;
    color: var(--gray-700);
    text-align: center;
}

.chart-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/* Gráfico de torta */
.pie-chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.pie-chart {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    box-shadow: var(--shadow);
    margin: 0 auto;
}

.pie-slice {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform-origin: center;
}

/* Leyenda del gráfico */
.pie-legend {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 300px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.legend-item:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.legend-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.legend-count {
    font-size: 0.8rem;
    color: var(--gray-600);
}

.no-data {
    text-align: center;
    color: var(--gray-500);
    font-style: italic;
    padding: 2rem;
}

/* Responsive para el gráfico de torta */
@media (max-width: 768px) {
    .pie-chart {
        width: 150px;
        height: 150px;
    }
    
    .pie-legend {
        max-width: 250px;
    }
    
    .legend-item {
        padding: 0.4rem;
    }
    
    .legend-color {
        width: 14px;
        height: 14px;
    }
    
    .legend-label {
        font-size: 0.85rem;
    }
    
    .legend-count {
        font-size: 0.75rem;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .config-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr auto;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .btn-back {
        align-self: flex-start;
        margin-top: 0;
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .config-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, auto);
        gap: 1rem;
    }
    
    .config-main-btn {
        min-height: 40px;
    }
    
    .quick-actions {
        flex-direction: column;
    }
    
    .evaluation-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .evaluation-progress {
        text-align: left;
        width: 100%;
    }
    
    .progress-bar {
        width: 100%;
    }
    
    .students-table-container {
        font-size: 0.8rem;
    }
    
    .students-table th,
    .students-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .summary-stats {
        grid-template-columns: 1fr;
    }
    
    .calculate-stats-section {
        padding: 1.5rem 0.5rem;
    }
    
    .calculate-stats-section .btn {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
        min-width: 180px;
    }

    .add-course-btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.8rem;
        min-height: 40px;
    }
}

/* ================================
   COMPATIBILIDAD CON TEMAS
   ================================ */

/* Tema Dark */
body.theme-dark {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #e0e0e0;
}

body.theme-dark .app-header {
    background: rgba(30, 30, 30, 0.95);
    border-bottom-color: #404040;
}

body.theme-dark .app-title {
    color: #0070D1;
}

body.theme-dark .app-subtitle {
    color: #b0b0b0;
}

body.theme-dark .btn-back {
    background: rgba(30, 30, 30, 0.8);
    color: #0070D1;
    border-color: #0070D1;
}

body.theme-dark .btn-back:hover {
    background: #0070D1;
    color: #ffffff;
}

body.theme-dark .config-panel,
body.theme-dark .evaluation-area,
body.theme-dark .results-summary {
    background: rgba(40, 40, 40, 0.95);
    border-color: #505050;
}

body.theme-dark .panel-section {
    border-bottom-color: #505050;
}

body.theme-dark .section-title {
    color: #e0e0e0;
}

body.theme-dark .config-group label {
    color: #d0d0d0;
}

body.theme-dark .config-group input,
body.theme-dark .config-group select,
body.theme-dark .student-input {
    background: rgba(60, 60, 60, 0.8);
    border-color: #707070;
    color: #e0e0e0;
}

body.theme-dark .add-course-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

body.theme-dark .add-course-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

body.theme-dark .evaluation-header {
    background: rgba(50, 50, 50, 0.8);
    border-bottom-color: #505050;
}

body.theme-dark .students-table th {
    background: rgba(50, 50, 50, 0.9);
    color: #e0e0e0;
}

body.theme-dark .students-table th,
body.theme-dark .students-table td {
    border-bottom-color: #505050;
    color: #e0e0e0;
}

body.theme-dark .students-table tbody tr:hover {
    background: rgba(60, 60, 60, 0.5);
}

body.theme-dark .summary-header {
    background: rgba(50, 50, 50, 0.8);
    border-bottom-color: #505050;
}

body.theme-dark .stat-item {
    background: rgba(50, 50, 50, 0.6);
}

/* Top 3 para tema dark */
body.theme-dark .top3-section {
    background: rgba(40, 40, 40, 0.95);
    border-color: #505050;
}

body.theme-dark .top3-header h4 {
    color: #e0e0e0;
}

body.theme-dark .top3-header-row {
    background: rgba(60, 60, 60, 0.8);
    border-color: #505050;
    color: #e0e0e0;
}

body.theme-dark .top3-name {
    color: #e0e0e0;
}

body.theme-dark .top3-score {
    color: #e0e0e0;
}

body.theme-dark .top3-percentage {
    color: #e0e0e0;
}

body.theme-dark .no-data {
    color: #b0b0b0;
}

/* Calcular Estadísticas para tema dark */
body.theme-dark .calculate-stats-section {
    background: rgba(40, 40, 40, 0.95);
    border-color: #505050;
}

/* Tema Rosa */
body.theme-rosa {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
    color: #4a148c;
}

body.theme-rosa .app-header {
    background: rgba(252, 228, 236, 0.95);
    border-bottom-color: #f48fb1;
}

body.theme-rosa .app-title {
    color: #ad1457;
}

body.theme-rosa .btn-back {
    background: rgba(252, 228, 236, 0.8);
    color: #ad1457;
    border-color: #ad1457;
}

body.theme-rosa .btn-back:hover {
    background: #ad1457;
    color: #ffffff;
}

body.theme-rosa .config-panel,
body.theme-rosa .evaluation-area,
body.theme-rosa .results-summary {
    background: rgba(252, 228, 236, 0.9);
    border-color: #f48fb1;
}

body.theme-rosa .btn-primary {
    background: #ad1457;
}

body.theme-rosa .btn-primary:hover {
    background: #880e4f;
}

body.theme-rosa .simce-result {
    color: #ad1457;
}

body.theme-rosa .stat-value {
    color: #e91e63;
}

/* Top 3 para tema rosa */
body.theme-rosa .top3-section {
    background: rgba(255, 255, 255, 0.95);
    border-color: #f8bbd9;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.15);
}

body.theme-rosa .top3-header h4 {
    color: #c2185b;
}

body.theme-rosa .top3-header-row {
    background: rgba(248, 187, 217, 0.3);
    border-color: #f8bbd9;
    color: #c2185b;
}

body.theme-rosa .top3-gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

body.theme-rosa .top3-silver {
    background: linear-gradient(135deg, #C0C0C0 0%, #A0A0A0 100%);
    box-shadow: 0 4px 12px rgba(192, 192, 192, 0.4);
}

body.theme-rosa .top3-bronze {
    background: linear-gradient(135deg, #CD7F32 0%, #B8860B 100%);
    box-shadow: 0 4px 12px rgba(205, 127, 50, 0.4);
}

body.theme-rosa .no-data {
    color: #e91e63;
}

/* Calcular Estadísticas para tema rosa */
body.theme-rosa .calculate-stats-section {
    background: rgba(255, 255, 255, 0.95);
    border-color: #f8bbd9;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.15);
}

body.theme-rosa .add-course-btn {
    background: linear-gradient(135deg, #ad1457 0%, #880e4f 100%);
    color: white;
}

body.theme-rosa .add-course-btn:hover {
    background: linear-gradient(135deg, #880e4f 0%, #4a148c 100%);
}

/* Tema Neon */
body.theme-neon {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    color: #00ffff;
}

body.theme-neon .app-header {
    background: rgba(10, 10, 10, 0.95);
    border-bottom-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

body.theme-neon .app-title {
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

body.theme-neon .btn-back {
    background: rgba(10, 10, 10, 0.8);
    color: #00ffff;
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

body.theme-neon .btn-back:hover {
    background: #00ffff;
    color: #000000;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
}

body.theme-neon .config-panel,
body.theme-neon .evaluation-area,
body.theme-neon .results-summary {
    background: rgba(26, 26, 46, 0.9);
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

body.theme-neon .btn-primary {
    background: linear-gradient(45deg, #00ffff, #0080ff);
    color: #000000;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

body.theme-neon .btn-primary:hover {
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
}

body.theme-neon .config-group input,
body.theme-neon .config-group select,
body.theme-neon .student-input {
    background: rgba(16, 16, 35, 0.8);
    border-color: #00ffff;
    color: #00ffff;
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.2);
}

body.theme-neon .students-table {
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

body.theme-neon .students-table th {
    background: rgba(16, 16, 35, 0.9);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

body.theme-neon .simce-result {
    color: #00ffff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

body.theme-neon .stat-value {
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* Top 3 para tema neon */
body.theme-neon .top3-section {
    background: rgba(0, 0, 0, 0.9);
    border-color: #00ff88;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
}

body.theme-neon .top3-header h4 {
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

body.theme-neon .top3-header-row {
    background: rgba(0, 255, 136, 0.1);
    border-color: #00ff88;
    color: #00ff88;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.3);
}

body.theme-neon .top3-gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.6);
    border-color: #FFD700;
}

body.theme-neon .top3-silver {
    background: linear-gradient(135deg, #C0C0C0 0%, #A0A0A0 100%);
    box-shadow: 0 4px 15px rgba(192, 192, 192, 0.6);
    border-color: #C0C0C0;
}

body.theme-neon .top3-bronze {
    background: linear-gradient(135deg, #CD7F32 0%, #B8860B 100%);
    box-shadow: 0 4px 15px rgba(205, 127, 50, 0.6);
    border-color: #CD7F32;
}

body.theme-neon .top3-name {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

body.theme-neon .top3-score {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

body.theme-neon .top3-percentage {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

body.theme-neon .no-data {
    color: #00ff88;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.3);
}

/* Calcular Estadísticas para tema neon */
body.theme-neon .calculate-stats-section {
    background: rgba(0, 0, 0, 0.9);
    border-color: #00ff88;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
}

body.theme-neon .add-course-btn {
    background: linear-gradient(135deg, #00ffff 0%, #0080ff 100%);
    color: #000000;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

body.theme-neon .add-course-btn:hover {
    background: linear-gradient(135deg, #0080ff 0%, #0040ff 100%);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.evaluation-area,
.results-summary {
    animation: fadeIn 0.3s ease;
}

/* Scrollbar personalizado */
.students-table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.students-table-container::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 4px;
}

.students-table-container::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

.students-table-container::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
} 