/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    background-color: #003366;
    color: white;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    display: flex;
    align-items: center;
}

header .logo img {
    height: 130px; /* Ajusta la altura de la imagen */
    width: auto; /* Permite que el ancho se ajuste automáticamente */
    margin-right: 10px;
    margin-left: 20px;
}

header nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

header nav ul li a.active {
    background-color: #1405d9;
    border-radius: 5px;
    color: #ffffff;
}

header nav ul li a:hover {
    background-color: #2953a8;
    border-radius: 5px;
    color: #ffffff;
}

main {
    padding: 20px;
    background-color: white;
    margin: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1, h2 {
    color: #003366;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.table-container {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th, table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

table th {
    background-color: #003366;
    color: white;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    color: white;
    background-color: #286b9e;
    text-decoration: none;
    border-radius: 5px;
}

.button-blue {
    background-color: #005a9e;
}

.button-red {
    background-color: #dc3545;
}

.button:hover {
    background-color: #004477;
}

.button-red:hover {
    background-color: #c82333;
}

.div_excel, .form-container {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* Estilos para los checkboxes */
input[type="checkbox"] {
    display: block;
    margin: 0 auto;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

input[type="checkbox"]:checked {
    background-color: #005a9e;
    border-color: #005a9e;
}

input[type="checkbox"]:focus {
    outline: none;
}

input[type="checkbox"]::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #005a9e;
    border-radius: 4px;
    background-color: white;
    position: relative;
    top: -2px;
    left: -2px;
}

input[type="checkbox"]:checked::before {
    background-color: #005a9e;
}

input[type="checkbox"]:checked::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border: 2px solid white;
    border-top: 0;
    border-left: 0;
    position: relative;
    top: -10px;
    left: 2px;
    transform: rotate(45deg);
}

.form-container {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 1000px;
    margin: 20px auto 20px 0;
    font-family: Arial, sans-serif;
}

.form-container .mb-3 {
    margin-bottom: 25px;
}

.form-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 16px;
    color: #003366;
}

.form-container .form-control {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

.form-container .form-check-input {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.form-container .form-check-label {
    font-size: 16px;
}

.form-container .btn {
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-container .btn-primary {
    background-color: #003366;
    color: white;
}

.form-container .btn-primary:hover {
    background-color: #005a9e;
}

.form-container .btn-secondary {
    background-color: #6c757d;
    color: white;
}

.form-container .btn-secondary:hover {
    background-color: #5a6268;
}

.form-container .form-select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

.footer {
    display: flex;
    justify-content: space-around;
    background-color: #003366;
    color: white;
    padding: 20px 0;
    font-family: Arial, sans-serif;
}

.footer-section {
    flex: 1;
    padding: 0 20px;
}

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
}

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

.footer-logo {
    height: 100px;
    width: auto;
    margin-bottom: 10px;
} 

#horario-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#horario-table th, #horario-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

#horario-table th {
    background-color: #003366;
    color: white;
    font-weight: bold;
}

#horario-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

#horario-table tr:hover {
    background-color: #e9e9e9;
}

.table-container {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 20px;
}

.schedule-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-width: 500px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
}

/* Estilos para el formulario */
.form-field {
    margin-bottom: 15px;
}

.form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-field select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    background-color: #f9f9f9;
}

.form-field select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Estilos para el botón */
button[type="submit"] {
    background-color: #007bff;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Estilos para el botón cuando está deshabilitado */
button[type="submit"]:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

#horario-table{
    display: none;
}

.add-button {
    background-color: #0056b3; /* Green */
    border: none;
    color: white;
    padding: 8px 16px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
}

.delete-button {
    display: inline-block !important;
    background-color: red;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

/* src/css/estilos.css */

#login-container {
    text-align: center;
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

#login-container header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    margin-right: 15px;
}

.logo h1 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

#login-container h1 {
    color: white;
    margin-bottom: 20px;
}

#login-button {
    display: inline-block;
    background-color: #4285F4;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    margin-top: 20px;
    transition: background-color 0.3s;
}

#login-button:hover {
    background-color: #3367D6;
}

.error-message {
    color: #D32F2F;
    margin-top: 20px;
}

.user-image {
    width: 70px; /* Ancho del contenedor */
    height: 70px; /* Alto del contenedor */
    border-radius: 50%; /* Hace que el contenedor sea circular */
    overflow: hidden; /* Recorta cualquier parte de la imagen que se salga del círculo */
    display: flex; /* Usa flexbox para centrar la imagen */
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente */
    margin-left: 440px;
}
.user-image img {
    width: 100%; /* La imagen ocupará todo el ancho del contenedor */
    height: 100%; /* La imagen ocupará todo el alto del contenedor */
    object-fit: cover; /* Asegura que la imagen cubra todo el contenedor sin distorsión */
}

#cerrarsesion{
    color: white;
    text-decoration: none;
}

/*---------------Media query------------------*/
/* Media query para pantallas pequeñas (por ejemplo, móviles) */
@media (max-width: 768px) {
    header {
        flex-direction: row;
        align-items: center;
        padding: 10px;
    }

    header .logo {
        margin-bottom: 10px;
    }

    header .logo img {
        height: 80px;
        margin-left: 0;
    }

    header nav ul {
        flex-direction: column;
        width: 100%;
    }

    header nav ul li {
        margin: 5px 0;
    }

    header nav ul li a {
        display: block;
        padding: 8px 10px;
        font-size: 16px;
    }
}