/* FlashTest Styles */
#flashtest-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
}

#flashtest-inicio {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#flashtest-inicio h3 {
    margin-top: 0;
    color: #333;
    text-align: center;
}

.flashtest-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.flashtest-form label {
    font-weight: 600;
    color: #555;
}

.flashtest-form select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* Modal */
.flashtest-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.flashtest-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flashtest-modal-content {
    background-color: #fff;
    margin: auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.flashtest-materia-badge {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
}

#flashtest-pregunta {
    color: #2c3e50;
    margin: 20px 0;
    font-size: 20px;
    line-height: 1.5;
}

#flashtest-respuestas {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.flashtest-respuesta {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.flashtest-respuesta:hover {
    border-color: #007cba;
    background: #f0f8ff;
}

.flashtest-respuesta.selected {
    border-color: #007cba;
    background: #e6f3ff;
}

.flashtest-respuesta.correct {
    border-color: #28a745;
    background: #d4edda;
}

.flashtest-respuesta.incorrect {
    border-color: #dc3545;
    background: #f8d7da;
}

.flashtest-respuesta.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

#flashtest-resultado {
    margin: 20px 0;
    padding: 15px;
    border-radius: 6px;
    font-weight: 600;
    display: none;
}

#flashtest-resultado.correct {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#flashtest-resultado.incorrect {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#flashtest-acciones {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

/* Botones */
.flashtest-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.flashtest-btn-primary {
    background: #007cba;
    color: white;
}

.flashtest-btn-primary:hover {
    background: #005a87;
}

.flashtest-btn-secondary {
    background: #6c757d;
    color: white;
}

.flashtest-btn-secondary:hover {
    background: #545b62;
}

.flashtest-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Estadísticas */
#flashtest-estadisticas {
    text-align: center;
}

#flashtest-estadisticas h3 {
    color: #333;
    margin-bottom: 30px;
}

#flashtest-estadisticas h4 {
    color: #555;
    margin: 20px 0 15px 0;
    font-size: 18px;
}

.flashtest-stats-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.flashtest-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.flashtest-stat-item {
    background: white;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.flashtest-stat-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.flashtest-stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.flashtest-stat-value.flashtest-correct {
    color: #28a745;
}

.flashtest-stat-value.flashtest-incorrect {
    color: #dc3545;
}

/* Responsive */
@media (max-width: 768px) {
    .flashtest-modal-content {
        width: 95%;
        padding: 20px;
    }
    
    #flashtest-pregunta {
        font-size: 18px;
    }
    
    .flashtest-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #flashtest-acciones {
        flex-direction: column;
    }
    
    .flashtest-btn {
        width: 100%;
    }
}

/* Admin Styles */
.wrap .card {
    max-width: 100%;
    margin: 20px 0;
    padding: 20px;
}

.wrap .card h2 {
    margin-top: 0;
}

.wrap .card ul {
    columns: 3;
    -webkit-columns: 3;
    -moz-columns: 3;
}

@media (max-width: 768px) {
    .wrap .card ul {
        columns: 1;
        -webkit-columns: 1;
        -moz-columns: 1;
    }
}

