body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

h1, h2 {
    color: #2c3e50;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"], input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    margin: 20px auto;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

.question-container {
    margin-top: 5px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.option {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.option:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
}

.option.selected {
    background-color: #3498db;
    color: white;
    border-color: #2980b9;
}

/* Estilos para opciones con imágenes */
.option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.option-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 4px;
    object-fit: contain;
}

.option-text {
    text-align: center;
    font-size: 14px;
}

.progress-bar {
    height: 10px;
    background-color: #ecf0f1;
    border-radius: 5px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: #3498db;
    width: 0%;
    transition: width 0.3s;
}

.results {
    margin-top: 30px;
    text-align: center;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.results-table th, .results-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.results-table th {
    background-color: #f2f2f2;
}

.results-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.timer {
    text-align: right;
    font-size: 18px;
    color: #e74c3c;
    margin-bottom: 10px;
}

/* Clases para controlar la visibilidad */
.hidden {
    display: none !important;
}

.visible {
    display: block;
}

/* Estilo para el número de pregunta */
.question-number {
    color: #2c3e50;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid #3498db;
    text-align: left;
    font-size: 20px;
}

/* Estilos para las nuevas secciones */
.initial-info, .secondary-info {
    margin-top: 0;
    margin-bottom: 15px;
    padding: 15px;
    background-color: #f0f8ff;
    border-radius: 5px;
   
    
}



.question-image-container {
    text-align: center;
    margin: 15px 0;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

#question-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Clases para controlar visibilidad */
.hidden-section {
    display: none;
}


/* ============================================================
   LISTADO DE ESTUDIANTES EN EL MENÚ PRINCIPAL
   ============================================================ */

.students-list-section {
    margin-top: 30px;
    border-top: 2px solid #3498db;
    padding-top: 20px;
}

.students-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.students-list-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
}

.clear-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 7px 14px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    margin: 0;
    transition: background-color 0.3s;
}

.clear-btn:hover {
    background-color: #c0392b;
}

.no-students-msg {
    color: #999;
    text-align: center;
    padding: 15px;
    font-style: italic;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.students-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 5px;
    font-size: 14px;
}

.students-table th,
.students-table td {
    border: 1px solid #ddd;
    padding: 9px 12px;
    text-align: left;
}

.students-table th {
    background-color: #3498db;
    color: white;
    font-weight: 600;
}

.students-table tr:nth-child(even) {
    background-color: #f4f9ff;
}

.students-table tr:hover {
    background-color: #eaf4ff;
}

.pct-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 13px;
    color: white;
}

.badge-high  { background-color: #27ae60; }
.badge-mid   { background-color: #f39c12; }
.badge-low   { background-color: #e74c3c; }
