/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    background-color: #bf2026;
    color: white;
    padding: 1rem;
    text-align: center;
    position: relative; /* Añadido para el posicionamiento del formulario */
}

main {
    padding: 1rem;
}

form {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    margin-bottom: 2rem;
}

label {
    display: block;
    margin: 0.5rem 0;
}

input[type="text"],
input[type="checkbox"],
button {
    margin-top: 0.5rem;
}

input[type="text"] {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: calc(100% - 1.2rem);
}

button {
    background-color: #bf2026;
    color: white;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

/* Table Styles */
.visitor-table {
    width: 100%;
    border-collapse: collapse;
}

.visitor-table th,
.visitor-table td {
    padding: 0.8rem;
    border: 1px solid #ddd;
    text-align: left;
}

.visitor-table th {
    background-color: #000000;
    color: white;
}

/* Login Form Styles */
.login-form {
    max-width: 400px;
    margin: auto;
}

.login-form input {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.login-form button {
    width: 100%;
    background-color: #bf2026;
    color: white;
    border: none;
    padding: 0.7rem;
    border-radius: 5px;
    cursor: pointer;
}

.login-form button:hover {
    background-color: #bf2026;
}

/* Logout Button Styles */
#logout-form {
    display: inline;
    position: absolute;
    top: 10px; /* Ajusta la distancia desde el borde superior */
    right: 10px; /* Ajusta la distancia desde el borde derecho */
    background-color: transparent; /* Asegura que no haya fondo blanco */
    border: none; /* Elimina cualquier borde por defecto */
}

.btn-danger {
    background-color: #dc3545; /* Rojo para el botón de cerrar sesión */
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-danger:active {
    background-color: #bd2130;
}

.btn-danger:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.25);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn:active {
    background-color: #004080;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.25);
}

/* Logout Button Link Style */
.logout-button {
    background: none;
    border: none;
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    margin: 0;
}

.logout-button:hover {
    color: #0056b3;
}



