/* Reset básico */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f0f4f8;
    color: #333;
    line-height: 1.6;
    padding: 1rem;
}

/* Contenedor principal */
.container {
    max-width: 960px;
    margin: auto;
    padding: 1rem;
    background-color: white;
    border-radius: 0.8rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    margin-top: 1rem;
}

/* Título general */
.main-header {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
}

/* Barra de navegación */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #4a90e2;
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.4rem;
    margin-bottom: 1rem;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.fecha-futura {
    border: 2px solid red;
    color: red;
}

.texto-rojo {
    color: red;
    font-weight: bold;
}


.navbar .nav-link {
    color: white;
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover {
    color: #ffd;
    text-decoration: underline;
}

.navbar .logout {
    color: #ffdddd;
}

/* Títulos de sección */
.section-title {
    margin-bottom: 1rem;
    font-size: 1.6rem;
    font-weight: 600;
    color: #34495e;
    text-align: center;
}

/* Formulario */
.form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.form-control {
    padding: 0.6rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 0.4rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #4a90e2;
    outline: none;
}

.submit-button {
    background-color: #27ae60;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.4rem;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #1e8449;
}

/* Historial */
.historial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.export-button {
    background-color: #2c3e50;
    color: white;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 0.4rem;
    cursor: pointer;
    font-weight: 600;
}

.export-button:hover {
    background-color: #1a252f;
}

/* Tabla */
.table-container {
    overflow-x: auto;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.styled-table th,
.styled-table td {
    border: 1px solid #eee;
    padding: 0.75rem 1rem;
    text-align: left;
}

.styled-table th {
    background-color: #ecf0f1;
    font-weight: 600;
    color: #2c3e50;
}

.styled-table tr:nth-child(even) {
    background-color: #fafafa;
}



/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar .nav-link {
        margin: 0.5rem 0 0 0;
    }

    .historial-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .container {
        padding: 1rem;
    }
}
/* Animación de entrada general */
.fade-in {
    animation: fadeInPage 0.6s ease-in;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos para el contenedor del login */
.login-container {
    max-width: 400px;
    margin: 3rem auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    animation: fadeInPage 0.6s ease-in;
}

/* Título del login */
.login-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.8rem;
}

/* Grupos del formulario */
.login-container .form-group {
    margin-bottom: 1.5rem;
}

.login-container label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.login-container .form-control {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #ccc;
    transition: border-color 0.3s ease;
}

.login-container .form-control:focus {
    border-color: #4a90e2;
    outline: none;
}

/* Botón */
.login-container .submit-button {
    width: 100%;
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.login-container .submit-button:hover {
    background-color: #357ABD;
}

/* Responsivo */
@media (max-width: 480px) {
    .login-container {
        margin: 2rem 1rem;
        padding: 1.5rem;
    }
}
.filtros-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filtros-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.filtros-flex .form-group {
    flex: 1;
    min-width: 180px;
}

.busqueda-box {
    max-width: 300px;
}


.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 0.6rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}