/* Estilos generales */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    margin-top: 20px;
    margin-bottom: 20px;
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

h3 {
    color: #3498db;
    margin-bottom: 10px;
}

/* Formularios */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

textarea {
    resize: vertical;
}

.btn {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-primary {
    background-color: #2ecc71;
}

.btn-primary:hover {
    background-color: #27ae60;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
}

/* Pestañas */
.tabs, .subtabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tab-btn, .subtab-btn {
    background: none;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    outline: none;
    color: #777;
}

.tab-btn.active, .subtab-btn.active {
    border-bottom: 3px solid #3498db;
    color: #3498db;
}

.tab-content, .subtab-content {
    display: none;
    padding: 15px 0;
}

.tab-content.active, .subtab-content.active {
    display: block;
}

/* Radio y Checkbox */
.radio-group {
    display: flex;
    gap: 20px;
}

.radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.radio-group input {
    margin-right: 5px;
}

/* Controles para opciones de selección múltiple */
.control-opciones {
    display: flex;
    justify-content: flex-start;
    margin: 10px 0 20px 0;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    color: #3498db;
    transition: color 0.3s;
    padding: 5px;
    margin-left: 10px;
    position: absolute;
    right: 10px;
    top: 30px;
}

.btn-icon:hover {
    color: #2980b9;
}

.btn-icon.delete {
    color: #e74c3c;
}

.btn-icon.delete:hover {
    color: #c0392b;
}

.form-group {
    position: relative;
    margin-bottom: 15px;
}

.opcion-extra {
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 15px;
}

/* Mensajes */
.mensaje {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

.mensaje.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mensaje.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Evaluación */
.info-evaluacion {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
}

.pregunta-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.texto-pregunta {
    font-size: 18px;
    margin-bottom: 15px;
}

.opciones {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.opcion {
    display: flex;
    align-items: center;
}

.opcion input[type="radio"] {
    margin-right: 10px;
}

.opciones.vf {
    flex-direction: row;
    gap: 30px;
}

.botones-evaluacion {
    margin-top: 20px;
    text-align: center;
}

/* Resultados */
.info-resultado {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
}

.estado {
    font-size: 18px;
    margin-top: 10px;
}

.estado.aprobado {
    color: #27ae60;
}

.estado.reprobado {
    color: #e74c3c;
}

.tabla-resultados {
    margin-top: 20px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

tr.correcta {
    background-color: rgba(46, 204, 113, 0.1);
}

tr.incorrecta {
    background-color: rgba(231, 76, 60, 0.1);
}

.estado-respuesta {
    font-weight: bold;
}

tr.correcta .estado-respuesta {
    color: #27ae60;
}

tr.incorrecta .estado-respuesta {
    color: #e74c3c;
}

.botones-navegacion {
    margin-top: 20px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .tabs, .subtabs {
        flex-direction: column;
    }
    
    .tab-btn, .subtab-btn {
        width: 100%;
        text-align: left;
        padding: 12px 15px;
    }
    
    .opciones.vf {
        flex-direction: column;
    }
}