.nombre-con-foto {
    display: flex;
    align-items: center;
}

.foto-alumno-tabla {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
}

.sin-foto-tabla {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #666;
    margin-right: 8px;
}



.alumno-foto-container {
    display: flex;
    align-items: center;
    gap: 15px;
}
.alumno-select-container {
    flex-grow: 1;
}
.alumno-foto {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ddd;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.alumno-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.alumno-foto .iniciales {
    font-size: 18px;
    font-weight: bold;
    color: #666;
}



/*.form-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px; /* Espacio entre grupos de campos *
}*/

.form-row {
    display: flex;
    align-items: flex-start; /* Alinea los elementos en la parte superior */
    gap: 15px; /* Espacio entre los elementos */
    margin-bottom: 15px; /* Espacio debajo de la fila */
}

/* Opcional: Ajustar el ancho de los inputs */
.form-row .form-group {
    flex: 1;
}

/* Para pantallas pequeñas, puedes hacer que se apilen */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .form-row .form-group {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
}

.form-row {
        display: flex;
        align-items: center;
        gap: 20px;
        margin-bottom: 15px;
    }
    .form-group {
        display: flex;
        align-items: center;
        gap: 8px;
    }

.btn-logout {
    background: none;
    border: none;
    /*color: inherit;*/
    font: inherit;
    cursor: pointer;
    padding: 0;
    margin: 0;
    text-decoration: none;
    color: #fff; /* o el color que coincida con tus otros enlaces */
}

.btn-logout:hover {
    text-decoration: underline;
}

/* Opcional: si quieres que tenga el mismo estilo que los otros enlaces del nav */
.nav-principal a, .nav-principal .btn-logout {
    font-family: system-ui, "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", sans-serif;
    margin: 0 10px;
    color: white;
    text-decoration: none;
    /* cualquier otro estilo que ya tengas para los enlaces */
}


.alumno-foto-container > div:not(.alumno-foto) {
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.campo-form > div:not(.alumno-foto-container) {
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
    border: 1px solid #ddd;
    margin-top: 5px;
}

.header {
    background-color: #333;
    padding: 1em 0;
}

.nav-principal {
    text-align: center;
}

.nav-principal a {
    color: white;
    text-decoration: none;
    margin: 0 1em;
    font-weight: bold;
}

.nav-principal a:hover {
    text-decoration: underline;
}

.contenido {
    padding: 2em;
    max-width: 1000px;
    margin: auto;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.footer {
    background-color: #eee;
    text-align: center;
    padding: 1em;
    font-size: 0.9em;
    margin-top: 2em;
}




body {
    /*margin: 2em;*/
    /*background-color: #f9f9f9;*/
     font-family: system-ui, "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", sans-serif;
    color: #333;
    margin: 0;
    background-color: #f5f5f5;
}

h2, h3 {
    color: #2c3e50;
}

form.formulario {
    background-color: #fff;
    padding: 1.5em;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-width: 500px;
    margin-bottom: 2em;
    box-shadow: 0 1px 6px rgba(0,0,0,0.1);
    /*max-width: 500px;*/
    margin: 0 auto;
}

form.formulario label {
    display: block;
    margin-top: 1em;
    font-weight: 600;
}

form.formulario input[type="text"],
form.formulario input[type="email"],
form.formulario input[type="password"],
form.formulario input[type="date"],
form.formulario input[type="tel"],  /* Añadido para campos de teléfono */
form.formulario input[type="file"],  /* Añadido para campos de archivo */
form.formulario input[type="datetime-local"],  /*Fecha y hora*/
form.formulario input[type="number"],  /*Fecha y hora*/
form.formulario select,
form.formulario textarea {
    width: 99%;
    padding: 0.5em;
    margin-top: 0.3em;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form.formulario button {
    margin-top: 1.5em;
    background-color: #1976d2;
    color: white;
    border: none;
    padding: 0.6em 1.2em;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

form.formulario button:hover {
    background-color: #1565c0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1em;
    background-color: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    border-radius: 5px;
    overflow: hidden;
    
    border: 1px solid #ccc;
}


th, td {
    border: 1px solid #ccc; /* añade líneas visibles entre celdas */
    padding: 8px;
    text-align: center;
}

.hour-cell.selected {
    background-color: red !important;
    color: white;
}

table th, table td {
    text-align: left;
    padding: 0.8em;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #1976d2;
    color: white;
}

table tr:hover {
    background-color: #f1f1f1;
}

table td button,
table td a {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    margin-right: 0.3em;
}

/*.mensaje {
    background-color: #e6f7ff;
    border-left: 4px solid #1890ff;
    padding: 10px 15px;
    margin: 1em 0;
    border-radius: 5px;
    font-weight: bold;
}*/

.mensaje {
    padding: 0.8em 1.2em;
    background-color: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 5px;
    margin-bottom: 1em;
    font-weight: bold;
    color: #0d47a1;
}

.input-grande {
    width: 100%;
    max-width: 400px;
    padding: 8px;
    margin-bottom: 15px;
    font-size: 1em;
}

.form-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.form-buttons button,
.form-buttons .btn-volver {
    padding: 8px 16px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    color: white;
    background-color: #007BFF;
    transition: background-color 0.2s;
}

.form-buttons button[type="reset"] {
    background-color: #6c757d;
}

.form-buttons .btn-volver {
    background-color: #17a2b8;
}

.form-buttons button:hover,
.form-buttons .btn-volver:hover {
    background-color: #0056b3;
}
.form-buttons button[type="reset"]:hover {
    background-color: #5a6268;
}
.form-buttons .btn-volver:hover {
    background-color: #138496;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px; /* Espacio entre el checkbox y el texto */
    margin: 10px 0;
}

.checkbox-container input[type="checkbox"] {
    margin-top: 1.5em;/* 20px; /* Ajusta este valor según necesites */
}

/* Opcional: si el label aún no está alineado */
.checkbox-container label {
    line-height: 1.3; /* Reduce el line-height si es necesario */
}



