body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background-color: #f4f4f9;
}

h1 {
    color: #2c3e50;
}

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

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

th {
    background-color: #3498db;
    color: white;
}

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

a {
    text-decoration: none;
    color: #3498db;
    margin: 0 5px;
}

input[type="text"], input[type="date"], select {
    padding: 8px;
    margin: 5px 0;
    width: 100%;
    max-width: 300px;
}

button {
    padding: 10px 15px;
    background-color: #2ecc71;
    color: white;
    border: none;
    cursor: pointer;
}

button\:hover {
    background-color: #27ae60;
}

.logout {
    position: absolute;
    top: 20px;
    right: 20px;
}

.logout img {
    width: 40px;
    height: 32px;
    vertical-align: middle;
}

/* Estilos del login: */

.login-container {
    width: 100%;
    max-width: 400px;

    margin: 100px auto;

    background-color: white;

    padding: 40px;

    border-radius: 10px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);

    box-sizing: border-box;
}

.login-container h1 {
    text-align: center;

    margin-top: 0;
    margin-bottom: 30px;

    color: #2c3e50;
}

.campo {
    margin-bottom: 20px;
}

.campo label {
    display: block;

    margin-bottom: 7px;

    color: #2c3e50;

    font-weight: bold;
}

.campo input {
    width: 100%;

    padding: 10px;

    border: 1px solid #ccc;

    border-radius: 5px;

    box-sizing: border-box;

    font-size: 15px;
}

.campo input:focus {
    outline: none;

    border-color: #3498db;
}

.error {
    background-color: #f8d7da;

    color: #721c24;

    padding: 10px;

    margin-bottom: 20px;

    border-radius: 5px;

    text-align: center;
}

.login-container button {
    width: 100%;

    padding: 12px;

    background-color: #2ecc71;

    color: white;

    border: none;

    border-radius: 5px;

    font-size: 16px;

    cursor: pointer;
}

.login-container button:hover {
    background-color: #27ae60;
}

/* Formularios de crear y editar */

.form-container {
    width: 100%;
    max-width: 500px;
    margin: 60px auto;
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.form-container h1 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 30px;
    color: #2c3e50;
}

.form-container .campo {
    margin-bottom: 20px;
}

.form-container .campo label {
    display: block;
    margin-bottom: 7px;
    color: #2c3e50;
    font-weight: bold;
}

.form-container .campo input,
.form-container .campo select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 15px;
    background-color: white;
}

.form-container .campo input:focus,
.form-container .campo select:focus {
    outline: none;
    border-color: #3498db;
}

.form-container .campo input[type="file"] {
    padding: 8px;
    background-color: #f8f8f8;
}

.form-container .campo img {
    display: block;
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-top: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.form-container button {
    width: 100%;
    padding: 12px;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.form-container button:hover {
    background-color: #27ae60;
}

.form-container a {
    display: block;
    text-align: center;
    margin-top: 20px;
}
.dashboard-link {
    text-align: center;
    margin-top: 20px;
}

.dashboard-link button {
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.dashboard-link button:hover {
    background-color: #2980b9;
}
