/* Configuración general de la página */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    padding: 20px;
    margin: 0;
}

h1 {
    color: #2c3e50;
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 10px;
}

h2 {
    color: #2c3e50;
    margin-top: 5px;
}

/* Cajas contenedoras para cada ejercicio */
.ejercicio {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* El "azul bonito" para las explicaciones */
.explicacion {
    background-color: #ebf8ff;
    border-left: 4px solid #3182ce;
    color: #2b6cb0;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 0 6px 6px 0;
    font-size: 0.95rem;
}

.explicacion p {
    margin: 5px 0;
    line-height: 1.5;
}

/* Formularios uniformes */
.formulario {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.formulario label {
    font-weight: bold;
}

.formulario input {
    padding: 6px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    width: 240px;
    font-size: 0.95rem;
}

button {
    padding: 7px 15px;
    background-color: #3182ce;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background-color: #2b6cb0;
}

/* Bloque contenedor de resultados comparativos */
.panel-resultados {
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    padding: 15px;
    border-radius: 6px;
    display: inline-block;
    min-width: 320px;
    margin-top: 15px;
}

.resultado-linea {
    margin: 8px 0;
    font-weight: bold;
    font-size: 0.95rem;
    color: #4a5568;
}

/* Etiquetas dinámicas de control de estado */
.status-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-left: 5px;
}

.status-badge.espera {
    background-color: #edf2f7;
    color: #718096;
}

.status-badge.correcto {
    background-color: #c6f6d5;
    color: #22543d;
}

.status-badge.error {
    background-color: #fed7d7;
    color: #742a2a;
}

/* Tablas (si las necesitas en el futuro) */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th, td {
    border: 1px solid #cbd5e0;
    padding: 10px;
    text-align: left;
}

th {
    background-color: #2c3e50;
    color: white;
}