body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f9f9f9;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}



legend {
    font-weight: bold;
    color: #333;
}

label {
    display: inline-block;
    width: 120px;
    margin-right: 10px;
    color: #333;
}

input[type="text"], input[type="date"], select {
    width: 200px;
    padding: 5px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

input[type="submit"], button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

input[type="submit"]:hover, button:hover {
    background-color: #45a049;
}

.container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.section {
    width: 48%;
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th, td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
    color: #333;
}

th {
    background-color: #f2f2f2;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

h2 {
    margin-top: 0;
    color: #333;
}

h4 {
    margin-bottom: 10px;
    color: #333;
}

@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .section {
        width: 100%;
        margin-bottom: 20px;
    }
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f9f9f9;
}

.login-box {
    width: 300px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.login-box h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.login-box input[type="text"], 
.login-box input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.login-box input[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.login-box input[type="submit"]:hover {
    background-color: #45a049;
}

.error-message {
    color: red;
    text-align: center;
    margin-bottom: 10px;
}

/* Estilos adicionales para formularios */
form {
    margin-bottom: 20px;
}

input[type="text"],
input[type="date"],
input[type="password"],
select {
    box-sizing: border-box;
    font-size: 16px;
    margin-bottom: 10px;
}

a {
    color: #4CAF50;
    text-decoration: none;
    padding: 8px 12px;
    display: inline-block;
    margin-bottom: 10px;
    border-radius: 4px;
    background-color: #f2f2f2;
    border: 1px solid #ccc;
    transition: background-color 0.3s ease;
}

a:hover {
    background-color: #ddd;
}

h2, h4 {
    font-family: 'Arial', sans-serif;
    font-weight: 600;
}

table th {
    font-weight: bold;
    color: #333;
    background-color: #f9f9f9;
}

button {
    font-size: 16px;
}

fieldset {
    box-sizing: border-box;
}

/* Contenedor para scripts remotos */
#progress {
    margin-top: 20px;
    font-size: 16px;
    color: #333;
}

/* Para mensajes de error o éxito */
.alert {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
    color: white;
    background-color: #f44336; /* Red */
}

.alert.success {
    background-color: #4CAF50; /* Green */
}

/* Botones para acciones principales */
.btn-primary {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #45a049;
}

/* Botones secundarios */
.btn-secondary {
    background-color: #f2f2f2;
    color: #333;
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: #ddd;
}

.hidden {
    display: none;
}

/* Estilo para botones primarios */
.btn-primary {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px 0;
    font-size: 16px;
    color: #fff;
    background-color: #4CAF50;
    border: none;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #45a049;
}

/* General */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

/* Contenedor de la página */
.container {
    max-width: 1200px;
    margin: 20px auto;
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Títulos */
h1 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

/* Estilo de la tabla */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 8px 12px;
    text-align: left;
    font-size: 14px;
}

th {
    background-color: #e9e9e9;
    color: #333;
}

/* Alternancia de filas */
tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Hover sobre las filas */
tr:hover {
    background-color: #f1f1f1;
}

/* Botones de acción */
button {
    padding: 6px 10px;
    font-size: 12px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin: 2px;
}

button.edit-button {
    background-color: #4CAF50;
    color: white;
}

button.delete-button {
    background-color: #f44336;
    color: white;
}

button:hover {
    opacity: 0.8;
}

/* Inputs editables */
.editable-input {
    padding: 4px 8px;
    font-size: 13px;
    width: 100%;
    border-radius: 3px;
    border: 1px solid #ddd;
}

/* Estilo de los selects */
select {
    padding: 4px 8px;
    font-size: 13px;
    border-radius: 3px;
    border: 1px solid #ddd;
}

/* Modal de confirmación (compacto) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    width: 90%;
    max-width: 300px;
    border-radius: 5px;
}

button.confirm-button, button.cancel-button {
    width: 100%;
    padding: 8px;
    margin-top: 10px;
}

button.confirm-button {
    background-color: #4CAF50;
}

button.cancel-button {
    background-color: #f44336;
}
