body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.login-container, .dashboard-container, .validacion-container, .historial-container {
    width: 50%;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #333;
}

form {
    display: flex;
    flex-direction: column;
}

input, select, textarea, button {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    background-color: #28a745;
    color: #fff;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #218838;
}

.error {
    color: red;
    text-align: center;
}

/* Estilos para el encabezado de la tabla */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra suave */
    border-radius: 8px; /* Bordes redondeados */
    overflow: hidden; /* Para que los bordes redondeados se apliquen correctamente */
}

th {
    background-color: #218838; /* Color de fondo azul */
    color: #fff; /* Texto blanco */
    font-weight: bold;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #0056b3; /* Borde inferior más oscuro */
}

td {
    padding: 10px;
    border-bottom: 1px solid #e0e0e0; /* Borde inferior suave */
}

/* Alternar colores de filas para mejor legibilidad */
tbody tr:nth-child(even) {
    background-color: #f9f9f9; /* Fondo gris claro para filas pares */
}

tbody tr:hover {
    background-color: #f1f1f1; /* Fondo gris al pasar el mouse */
}

a {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #28a745;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}



hr {
    border: 0;
    height: 1px;
    background: #ddd;
    margin: 20px 0;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.card {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    width: 300px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.card h3 {
    margin-top: 0;
}

.details {
    display: none; /* Oculta los detalles inicialmente */
    margin-top: 10px;
    padding: 10px;
    border-top: 1px solid #ddd;
}

button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

.seccion {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

select, textarea, input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
}

textarea {
    resize: vertical;
}

.btn-guardar {
    background-color: #28a745;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-guardar:hover {
    background-color: #218838;
}

.btn-volver {
    display: inline-block;
    background-color: #28a745;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
}

.btn-volver:hover {
    background-color: #218838;
}

.success {
    color: green;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.btn-ingresar {
    background-color: #28a745; /* Verde */
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.btn-ingresar:hover {
    background-color: #218838; /* Verde más oscuro al pasar el mouse */
}

/* Estilos para la sección de Datos Generales */
.seccion-datos-generales {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.seccion-datos-generales h2 {
    margin-top: 0;
    color: #333;
    font-size: 24px;
    border-bottom: 2px solid #218838;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.datos-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dato-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.dato-label {
    font-weight: bold;
    color: #555;
    margin-right: 10px;
}

.dato-valor {
    color: #333;
    font-weight: normal;
}

.seccion h2 {
    margin-top: 0;
    color: #333;
    font-size: 24px;
    border-bottom: 2px solid #218838;
    padding-bottom: 10px;
    margin-bottom: 20px;
}