body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    width: 100%;
}

header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.logo {
    max-width: 100px;
    margin-bottom: 10px;
}

h1, h2, h3 {
    color: #333;
    margin: 5px 0;
}

h1 { font-size: 1.8em; }
h2 { font-size: 1.4em; }
h3 { font-size: 1.2em; color: #0056b3;}

.header-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.header-form div {
    display: flex;
    flex-direction: column;
}

.header-form label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.header-form input[type="text"],
.header-form input[type="date"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.instructions {
    background-color: #e9f7fe;
    border-left: 5px solid #007bff;
    padding: 10px 15px;
    margin-bottom: 20px;
    font-size: 0.95em;
    color: #333;
}

.scale-info {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 5px;
}

.scale-info div {
    padding: 10px;
    border-right: 1px dashed #ddd; /* Separador visual */
}

.scale-info div:last-child {
    border-right: none;
}

.scale-info p {
    margin: 5px 0;
    font-size: 0.9em;
}

.scale-info strong {
    font-size: 1em;
    color: #0056b3;
}

.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th, table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

table th {
    background-color: #f2f2f2;
    font-weight: bold;
    color: #333;
}

table td input[type="text"],
table td select {
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
}

.items-to-evaluate {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.items-to-evaluate h4 {
    text-align: center;
    margin-bottom: 15px;
    color: #0056b3;
    font-size: 1.1em;
}

.items-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    font-size: 0.9em;
    line-height: 1.4;
}

.items-grid div {
    background-color: #f0f8ff;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #e0f0ff;
}

button[type="submit"] {
    display: block;
    width: 200px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    margin: 30px auto 0;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

.mensaje-deshabilitado {
    text-align: center;
    padding: 50px;
    font-size: 1.5em;
    color: #dc3545;
    background-color: #ffebe9;
    border: 2px solid #dc3545;
    border-radius: 10px;
    margin-top: 50px;
}

/* Mensajes de estado (éxito/error) */
.message {
    padding: 10px;
    margin-top: 20px;
    border-radius: 5px;
    text-align: center;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-form {
        grid-template-columns: 1fr;
    }
    .scale-info {
        grid-template-columns: 1fr;
    }
    .scale-info div {
        border-right: none;
        border-bottom: 1px dashed #ddd;
        padding-bottom: 10px;
    }
    .scale-info div:last-child {
        border-bottom: none;
    }
    .items-grid {
        grid-template-columns: 1fr;
    }
    .container {
        padding: 15px;
    }
}

/* Nuevos estilos para los bloques de evaluación de docentes */
.docente-eval-block {
    border: 1px solid #cce5ff; /* Un borde ligero para separar cada bloque */
    background-color: #f0f8ff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.docente-eval-block h4 {
    text-align: center;
    color: #0056b3;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.2em;
    padding-bottom: 10px;
    border-bottom: 1px dashed #a8d7fa;
}

/* Ajustes para el mensaje de éxito/error del formulario */
.message {
    padding: 10px;
    margin-top: 20px;
    border-radius: 5px;
    text-align: center;
}

.message.success_eval { /* Nuevo para éxito de evaluación */
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error_eval { /* Nuevo para error de evaluación */
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}