/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: #000000;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Contenedor principal */
.container {
    max-width: 900px;
    margin: 80px auto 20px auto; /* Ajuste del margen superior para evitar que el contenido quede debajo del header */
    padding: 20px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    flex: 1;
}


/* Barra superior fija */
.top-bar {
    width: 100%;
    height: auto; /* 🔥 Permite que crezca automáticamente */
    min-height: 60px; /* 🔧 Altura mínima para que no se corte */
    background-color: #333;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
}

.user-info {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.user-info img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

.logout-btn {
    background-color: red;
    color: white;
    padding: 8px 15px;
    margin-right: 12px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.logout-btn:hover {
    background-color: darkred;
}

/* Formulario */
.form-container {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    width: 40%;
    margin: 20px auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    color: #555;
}

select {
    font-size: 14px;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    margin: 0 auto;
}

select:focus {
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Tabla con scroll */
#tablaFallas {
    max-height: 70vh;
    overflow-y: auto;
    width: 100%;
    margin: 15px auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    background: white;
    border-radius: 8px;
}

.table th {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #000000;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    padding: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.table th:last-child {
    border-right: none;
}

.table td {
    padding: 10px 12px;
    font-size: 14px;
    color: #333333;
    text-align: left;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #eaeaea;
    background-color: #ffffff;
    vertical-align: middle;
}

.table td:last-child {
    border-right: none;
}

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

.table tr:hover td {
    background-color: #f1f5f9;
    color: #000;
}

.table th:first-child, .table td:first-child {
    border-top-left-radius: 8px;
}

.table th:last-child, .table td:last-child {
    border-top-right-radius: 8px;
}

/* Checkbox */
.table td input[type="checkbox"] {
    transform: scale(1.2);
    cursor: pointer;
}

#guardarFallasBtn, #cargarCursoBtn, #mostrarTablaBtn {
    background: rgba(102, 51, 204, 0.8);
    border: 1px solid rgba(102, 51, 204, 0.2);
    color: #ddd;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    margin: 15px auto;
    display: block;
    text-align: center;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

#guardarFallasBtn:hover, #cargarCursoBtn:hover {
    background-color: rgba(102, 51, 204, 0.4);
}

#guardarFallasBtn:active, #cargarCursoBtn:active {
    background-color: #003f7f;
    transform: scale(0.98);
}

/* Estilos para el footer */
.footer {
    width: 100%;
    background-color: #222;
    color: white;
    text-align: center;
    padding: 8px 0;
    font-size: 14px;
    
}

.footer a {
    color: #f8c471;
    text-decoration: none;
    margin: 0 10px;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        width: 80%;
    }

    .table th, .table td {
        font-size: 12px;
        padding: 8px;
    }

    #guardarFallasBtn, #cargarCursoBtn {
        font-size: 14px;
        padding: 8px 15px;
    }
    #guardarFallasBtn{
        background-color: #5dc243;
        color: white;
        border: none;
        padding: 10px 20px;
        font-size: 16px;
        font-weight: bold;
        border-radius: 5px;
        margin: 15px auto;
        display: block;
        text-align: center;
        transition: background-color 0.3s ease;
        cursor: pointer;
    }

    .footer {
        padding: 8px 0;
        font-size: 14px;
    }

    .footer p {
        margin: 5px 0;
    }

    .footer a {
        font-size: 13px;
    }
}
body {
    padding-top: 60px; /* Igual a la altura de .top-bar */
}

.container {
    padding-top: 0; /* Elimina el margen superior anterior */
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.header h2 {
    font-size: 1.5rem;
    font-weight: 300;
    color: #ddd;
    margin-bottom: 20px;
}
.button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px 20px;
    width: 120px;
    height: 50px;
    color: #fff;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.btn:hover {
    transform: translateY(-10px);
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.3);
}

.btn:hover img {
    transform: scale(1.2);
}

.btn span {
    margin-top: 10px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}
.dashboard {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    min-height: 100vh
}
.container_dashboard {
    width: 80%; /* Ajusta el tamaño según lo que necesites */
    max-width: 900px;
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
}



 /* codigo de consultar.php*/

 .center-div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}
.buttons img {
    width: 80px;
    margin: 10px;
    cursor: pointer;
}
.hidden {
    display: none;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
table th, table td {
    border: 1px solid #ddd;
    padding: 8px;
}
table th {
    background-color: #000000;
    color: white;
}
#suggestions {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    max-height: 150px;
    overflow-y: auto;
    width: calc(100% - 40px);
    z-index: 1000;
}
#suggestions div {
    padding: 8px;
    cursor: pointer;
}
#suggestions div:hover {
    background-color: #f0f0f0;
}







/* Botón */
#search-student,#search-course,#search-subject {
background: rgba(102, 51, 204, 0.8);
border: 1px solid rgba(102, 51, 204, 0.2);
color: white;
border: none;
border-radius: 5px;
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#search-student:hover, 
#search-course:hover, 
#search-subject:hover {
background-color: rgba(102, 51, 204, 0.2);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}



/* Sugerencias de autocompletado */
#suggestions {
position: absolute;
background: white;
border: 1px solid #ccc;
border-radius: 5px;
max-height: 150px;
overflow-y: auto;
width: 100%;
z-index: 1000;
margin-top: 5px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#suggestions div {
padding: 10px;
font-size: 16px;
cursor: pointer;
}

#suggestions div:hover {
background-color: #eafce4;
}
/* Contenedor principal */
#main-div {
display: flex;
flex-direction: column; /* Apila los divs verticalmente */
align-items: flex-start; /* Alinea los elementos al inicio verticalmente */
padding: 20px;
}

/* Campo de texto */
#student-name {
width: 60%;
padding: 10px;
font-size: 16px;
border: 1px solid #ccc;
border-radius: 5px;
outline: none;
transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#student-name:focus {
border-color:  rgba(102, 51, 204, 0.2);
box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}
/* General para los divs */
.center-div {
padding: 20px;
background-color: #f0f0f0;
border: 1px solid #ccc;
border-radius: 10px; /* Bordes redondeados */
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Efecto sombra */
width: 90%;
max-width: 600px;
text-align: center;
}


.buttons {
padding: 20px;
background-color: rgb(255, 255, 255);
border: 1px solid #ccc;
border-radius: 10px; /* Bordes redondeados */
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Efecto sombra */
width: 90%;
max-width: 600px;
text-align: center;


}
/* Estilo para el select */
#period {
width: 20%;
padding: 10px;
font-size: 16px;
border: 1px solid #ccc;
border-radius: 5px;
background-color: #fff;
appearance: none; /* Oculta la flecha predeterminada del navegador */
outline: none;
transition: border-color 0.3s ease, box-shadow 0.3s ease;
cursor: pointer;
background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns%3D%22http%3A//www.w3.org/2000/svg%22 viewBox%3D%220 0 4 5%22%3E%3Cpath fill%3D%22%23ccc%22 d%3D%22M2 0L0 2h4z%22/%3E%3C/svg%3E');
background-repeat: no-repeat;
background-position: right 10px center;
background-size: 10px;
}

#period:focus {
border-color:  rgba(102, 51, 204, 0.2);
box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}
#student-form {
padding: 20px;
background-color: rgb(255, 255, 255);
border: 1px solid #ccc;
border-radius: 10px; /* Bordes redondeados */
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Efecto sombra */
width: 90%;
max-width: 600px;
text-align:center;

}
#results {
padding: 20px;

border: 1px solid #ccc;
border-radius: 10px; /* Bordes redondeados */
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Efecto sombra */
width: 90%;
max-width: 600px;
text-align:center;
}

#course-div {
padding: 20px;
background-color: rgb(255, 255, 255);
border: 1px solid #ccc;
border-radius: 10px; /* Bordes redondeados */
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Efecto sombra */
width: 90%;
max-width: 600px;
text-align:center;
}
.course-select,#course-select-subject,#subject-select,#period-select-subject {
width: 25%;
padding: 10px;
font-size: 16px;
border: 1px solid #ccc;
border-radius: 5px;
background-color: #fff;
appearance: none; /* Oculta la flecha predeterminada del navegador */
outline: none;
transition: border-color 0.3s ease, box-shadow 0.3s ease;
cursor: pointer;
background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns%3D%22http%3A//www.w3.org/2000/svg%22 viewBox%3D%220 0 4 5%22%3E%3Cpath fill%3D%22%23ccc%22 d%3D%22M2 0L0 2h4z%22/%3E%3C/svg%3E');
background-repeat: no-repeat;
background-position: right 10px center;
background-size: 10px;
}

#course-select,#course-select-subject,#subject-select,#period-select-subject {
border-color:  rgba(102, 51, 204, 0.2);
box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}


 #student-form, #results, #course-div,#buttons,#course-results,#subject-div,#subject-results {
    position: relative; /* Asegura que los divs respeten el flujo natural */
    width: 90%;
    max-width: 800px; /* Ajusta el ancho máximo */
    margin: 20px auto; /* Centrado horizontal */
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.div_consultar, .div_eliminar, .div_mensajes {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    min-height: 100vh
}
.div_horarios {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    min-height: 100vh
}


#cont_eliminar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px; /* Ajusta el espacio interior según sea necesario */
    box-sizing: border-box; /* Asegura que el padding no afecte el ancho */
}

#cont_eliminar{
    
    width: 50%;
    
    margin: 20px auto; /* Centrado horizontal */
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
   
}




@media (max-width: 768px) {
    #cont_eliminar {
        width: 90%;
        margin: 0 auto; /* Centra el div horizontalmente */
    }
}
/* Sugerencias de autocompletado */
#suggestions {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    max-height: 150px;
    overflow-y: auto;
    width: 100%;
    z-index: 1000;
    margin-top: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#suggestions div {
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
}

#suggestions div:hover {
    background-color: #eafce4;
}

#deleteForm {
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-family: 'Roboto', sans-serif;
}

#deleteForm label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 8px;
}

#deleteForm {
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
}

#deleteForm label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 8px;
}

#deleteForm input[type="text"] {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

#deleteForm input[type="text"]:focus {
    border-color: #6a11cb;
    box-shadow: 0 0 5px rgba(106, 17, 203, 0.5);
}

#suggestions {
    margin-top: 5px;
    font-size: 14px;
    color: #555;
}

#deleteForm button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background: linear-gradient(to right, #ff416c, #ff4b2b);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-top: 15px;
}

#deleteForm button:hover {
    background: linear-gradient(to right, #ff4b2b, #ff416c);
}

#deleteForm button:active {
    transform: scale(0.98);
    background: #ff1e56;
}

/* Estilos Responsivos */
@media (max-width: 768px) {
    #deleteForm {
        padding: 15px;
    }

    #deleteForm label {
        font-size: 14px;
    }

    #deleteForm input[type="text"] {
        font-size: 13px;
        padding: 10px;
    }

    #deleteForm button {
        font-size: 14px;
        padding: 10px;
    }
}


.container_mensajes {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-family: 'Roboto', sans-serif;
    color: #333;
    overflow: hidden;
    box-sizing: border-box;
}
.div_mensaje {
    width: 90%;
}
.table-wrapper {
    width: 100%;
    overflow-x: auto; /* Scroll horizontal si el contenido supera el ancho */
}

.fallas_dia th:first-child, .fallas_dia td:first-child {
    width: 15%; /* Ajusta el ancho según lo necesario */
}
.fallas_dia th:nth-child(3), .fallas_dia td:nth-child(3) {
    width: 12%;
}

.fallas_dia th:nth-child(5), .fallas_dia td:nth-child(5) {
    width: 5%;
}
.fallas_dia th {
    background: #000000;
    color: #ffffff;
    font-weight: bold;
    padding: 12px;
    text-align: left;
}

.fallas_dia td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    white-space: normal; /* Permite que el texto salte a una nueva línea */
    word-wrap: break-word; /* Rompe las palabras largas para evitar desbordes */
}

.button-container2 {
    text-align: center;
    margin: 20px auto;
}

.button-container2 .btn {
    background: linear-gradient(to right, #0d47a1, #1a237e);
    color: white;
    padding: 10px 20px; /* Altura y ancho controlados */
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease, transform 0.2s ease;
    display: inline-block;
    height: auto !important; /* Sobrescribe cualquier regla previa */
    width: auto !important;  /* Sobrescribe cualquier regla previa */
}


@media (max-width: 768px) {
    .main-content div {
        margin-bottom: 60px; /* Añade espacio entre los botones */
    }
}
.tabla-wrapper2 {
    width: fit-content;
    max-width: 800px;
    margin: 20px auto;
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}
.tabla-notas {
    border-collapse: collapse;
    width: 100%;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.tabla-notas th, .tabla-notas td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
}

.tabla-notas th {
    background-color: #000000;
    color: white;
    text-transform: uppercase;
}

.tabla-notas tr:hover {
    background-color: #f9f9f9;
}

.col-nombre {
    white-space: nowrap;
    max-width: 300px;
}

.col-nota {
    width: 10%;
    min-width: 70px;
}

.tabla-notas input[type="number"] {
    width: 100%;
    padding: 6px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
.div_boton {
    width: fit-content;
    max-width: 800px;
    margin: 20px auto;
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}
#guardarNotasBtn{
    background-color: #5dc243;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    margin: 15px auto;
    display: block;
    text-align: center;
    transition: background-color 0.3s ease;
    cursor: pointer;
}
#cont_notas {
    position: relative;
    margin: 10px auto 0 auto; /* 60px de header + 10px de espacio */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* Para que no se desborde en pantallas pequeñas */
    gap: 15px; /* Espacio entre los elementos */
    padding: 15px 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: fit-content;
    max-width: 95%;
}
#cont_notas label {
    font-weight: bold;
    margin-right: 5px;
    color: #333;
}

#cont_notas select, 
#cont_notas button {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
}

#cont_notas button {
    background-color: #673ab7;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

#cont_notas button:hover {
    background-color: #512da8;
}
#cont_notas select {
    width: auto;
    min-width: 120px; /* puedes ajustar esto si es demasiado angosto */
    padding: 6px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    box-sizing: border-box;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    width: 300px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.modal-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.modal-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-around;
}

.modal-buttons button {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
}

#btnCorregir {
    background-color: #e53935;
    color: white;
}

#btnContinuar {
    background-color: #43a047;
    color: white;
}

#btnCerrarExito {
    background-color: #3949ab;
    color: white;
}

/* Estilo para la columna de numeración NOTas Parciales*/
.tabla-notas th.col-num,
.tabla-notas td.col-num {
    width: 25px;  /* Ajusta el valor según necesites (ej: 40px, 60px) */
    min-width: 25px; /* Evita que se reduzca demasiado */
    text-align: center; /* Centra el número */
}
.container_dashboard {
    margin-top: 0px;   /* más pegado al top */
    margin-bottom: 50px; /* menos separación entre ellos */
    padding: 40px;       /* reduce padding interno */
}

.dashboard {
    padding-top: 40px; /* antes era 20px */
    padding-bottom: 20px;
    min-height: auto;  /* elimina altura forzada */
}
.container_dashboard:first-of-type {
    transform: translateY(50px); /* baja visualmente sin empujar a lo demás */
}
.btn_prueba {
    width: 40px;
    height: 40px;
    
}
.btn_home {
    width: 30px;
    height: 30px;
    object-fit: contain;
    cursor: pointer; /* 🔥 Cambia el cursor al pasar el mouse */
}
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.user-info {
    position: relative;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 120%;
    left: 0;
    transform: none;
    background-color: white;
    color: black;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    width: 180px;
    font-size: 14px;
    animation: fadeIn 0.2s ease-in-out;
}

.dropdown-menu a {
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
}

.dropdown-menu a:hover {
    background-color: #f0f0f0;
}

.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #666;
    user-select: none;
}

@media (max-width: 600px) {
  .button-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 20px;
    /* gap: 20px 20px;  puedes usar gap shorthand si lo prefieres */
    padding: 0 16px;
    justify-items: center;
  }

  .button-container .btn {
    /* padding interno para mantener el tamaño */
    padding: 24px 0;
    /* margen inferior para separar filas */
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Elimina el margin‐bottom en el último elemento para que no genere espacio extra abajo */
  .button-container .btn:last-child {
    margin-bottom: 0;
  }

  .button-container .btn img {
    margin-bottom: 12px;
    width: 48px;
    height: 48px;
  }

  .button-container .btn span {
    margin-top: 30px;
    font-size: 0.9rem;
    text-align: center;
    color: #fff;
  }

  /* Si hay un nº impar, que el último abarque ambas columnas */
  .button-container .btn:nth-child(odd):last-child {
    grid-column: 1 / -1;
  }

.dashboard {
    margin-top:-120px
}

}
.dashboard {
    margin-top:-80px
}
/* Estilos generales para botones del overlay */
#overlayBtn1,
#overlayBtn2 {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

/* Botón principal (acción positiva) */
#overlayBtn1 {
  background: rgba(102, 51, 204, 0.8);
  color: #fff;
}
#overlayBtn1:hover {
   background: rgba(102, 51, 204, 0.8);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Botón secundario (acción neutra/cancelar) */
#overlayBtn2 {
  background: rgba(102, 51, 204, 0.8);
  color: #fff;
}
#overlayBtn2:hover {
   background: rgba(102, 51, 204, 0.8);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Espaciado horizontal entre botones */
#overlayContent > div {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}
/* 1) Asegura que td.celda-seleccionada tenga siempre el fondo azul */
td.celda-seleccionada {
  background-color: #c8e1ff !important;  /* o el tono de azul que uses */
}

/* 2) Si tu <td> tiene un <input> de fondo blanco,
      haz transparente el fondo del input para que se vea el azul */
td.celda-seleccionada input {
  background-color: transparent !important;
}

/* 3) También puedes ajustar el color de texto para que contraste */
td.celda-seleccionada,
td.celda-seleccionada input {
  color: #000 !important;
}
/* resalta en rojo las celdas con valor inválido */
td.celda-error,
td.celda-error input {
  background-color: #f5a700 !important;
}
/* ── Bienvenida discreta (dashboard) ── */
.bienvenida {
    margin: 12px auto 0 auto;
    padding: 6px 16px;
    font-size: .9rem;
    color: rgba(255, 255, 255, .75);
    letter-spacing: .3px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, .15);
    width: fit-content;
}

.bienvenida-user {
    font-weight: 600;
    color: #fff;
}

.bienvenida-sep {
    margin: 0 8px;
    opacity: .4;
}

.bienvenida-fecha {
    font-size: .85rem;
    opacity: .7;
}

@media (max-width: 600px) {
    .bienvenida {
        font-size: .8rem;
        padding: 5px 10px;
    }

    .bienvenida-sep {
        margin: 0 5px;
    }

    .bienvenida-fecha {
        font-size: .75rem;
    }
}

#suggestions {
    position: absolute;
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    list-style: none;
    margin: 0;
    padding: 0;

    /* CLAVE */
    display: none;
    z-index: 1000;
    box-sizing: border-box;
}

/* ── Notificaciones: Campana + Panel en pagina ── */
.notif-bell-wrapper {
    position: relative;
}
.notif-bell-btn {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    padding: 4px;
    display: flex;
    align-items: center;
}
.notif-bell-btn:hover svg {
    stroke: #f8c471;
}
.notif-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    background: #e53935;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

/* Panel de notificaciones en la pagina */
.notif-page-panel {
    position: fixed;
    top: 75px;
    right: 10px;
    width: 380px;
    z-index: 900;
    animation: notifSlideDown 0.25s ease-out;
}
@keyframes notifSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.notif-page-inner {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    overflow: hidden;
}
.notif-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #333;
}
.notif-page-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}
.notif-page-close:hover {
    color: #e53935;
}
.notif-page-body {
    max-height: 60vh;
    overflow-y: auto;
    padding: 0;
}
.notif-empty {
    text-align: center;
    color: #999;
    font-size: 13px;
    padding: 24px 16px;
}
.notif-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background .15s;
}
.notif-item:last-child {
    border-bottom: none;
}
.notif-item:hover {
    filter: brightness(0.97);
}
.notif-item-content {
    flex: 1;
    min-width: 0;
}
.notif-item-title {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 3px;
}
.notif-item-msg {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
    word-break: break-word;
}
.notif-countdown {
    display: inline-block;
    margin-top: 5px;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 0;
}
.notif-dismiss {
    background: none;
    border: none;
    font-size: 20px;
    color: #aaa;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    margin-left: 10px;
    flex-shrink: 0;
}
.notif-dismiss:hover {
    color: #e53935;
}
@media (max-width: 600px) {
    .notif-page-panel {
        right: 0 !important;
        width: 100% !important;
    }
    .notif-page-inner {
        border-radius: 0;
    }
}