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

/* Contenedor principal */
.container {
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    padding: 20px;
}

/* Mensajes centrados */
.message, .error {
    text-align: center;
    margin: 10px 0;
}

.message {
    color: green;
}

.error {
    color: red;
}

/* Título centrado */
h1 {
    text-align: center;
    color: #0056b3;
    margin-bottom: 20px;
}

/* Contenedor de botones y búsqueda centrado */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    background-color:  #2c42d396;
    padding: 10px;
    margin-bottom: 20px;
}

.action-buttons form,
.action-buttons button {
    margin: 5px;
}

/* Input de búsqueda */
.search-form input[type="text"] {
    padding: 5px;
    border: 1px solid #cccccc;
    border-radius: 3px;
}

/* Botones generales (clase base) */
.btn {
    padding: 7px 15px;
    border: none;
    border-radius: 3px;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* Botón Actualizar Tabla*/
.btn-buscar {
    background-color: #06b3b0;
}

.btn-buscar:hover {
    background-color: #535159b8;
}

/* Botón Actualizar Tabla (verde) */
.btn-update {
    background-color: #28a745;
}

.btn-update:hover {
    background-color: #17bc12;
}

/* Botón Editar Registros (naranja) */
.btn-edit {
    background-color: #fd7e14;
}

.btn-edit:hover {
    background-color: #bee60a;
}

/* Botón Guardar Cambios (verde) */
.btn-save {
    background-color: #afbc1c;
}

.btn-save:hover {
    background-color: #218883;
}

.salir {
    padding: 7px 15px;
    margin: 5px;
    font-size: 14px;
    border: none;
    border-radius: 3px;
    color: #ffffff;
    cursor: pointer;
    background: rgba(220, 53, 69, 0.8);
    transition: background-color 0.3s;
    text-decoration: none;
    
}

.salir:hover {
    background: rgba(214, 66, 21, 0.8); /* Fondo rojo más oscuro al pasar el mouse */
}

/* Contenedor de la tabla */
.tabla {
    width: 100%;
    overflow-x: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 10px;
    background-color: #f8f9fa;
    margin-top: 5px; /* Ajusta el margen para colocarla debajo del formulario */
}

.tabla table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

/* Estilos de la tabla */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    table-layout: fixed; /* Asegura que la tabla ocupe el ancho completo */
}

.tabla h2 {
    text-align: center;
    color: #007bff;
    width: 100%;
    margin-bottom: 10px;
}

table th, table td {
    padding: 5px;
    text-align: left;
    border-bottom: 1px solid #0f1182;
    word-wrap: break-word; /* Permite que el texto se ajuste dentro de las celdas */
}

table th {
    background-color: #0f1182;
    color: rgb(119, 149, 240);
}

/* Color de fondo para las filas */
table tr:nth-child(even) {
    background-color: #6864e1bb;
}

table tr:hover {
    background-color: #4a8af88b;
}

/* Filas alternas para mejorar la legibilidad */
table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.no-data {
    text-align: center;
    padding: 20px;
}

/* Estilos para inputs dentro de la tabla */
table input[type="text"],
table input[type="email"],
table input[type="number"],
table input[type="date"] {
    width: 100%;
    padding: 4px;
    border: 1px solid #cccccc;
    border-radius: 3px;
    font-size: 10px;
    background-color: #ffffff;
}
