/* styles.css */
:root {
    --primary-color: #4A90E2; /* Azul claro */
    --secondary-color: #357ABD; /* Azul intermedio */
    --text-color: white;
    --bg-color: #f4f4f4;
    --border-color: #ccc;
    --hover-color: #2F6BB6; /* Azul más oscuro para hover */
}

[data-theme="dark"] {
    --primary-color: #1a1a1a;
    --secondary-color: #333;
    --text-color: #f4f4f4;
    --bg-color: #121212;
    --border-color: #444;
    --hover-color: #555;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
}

header, footer {
    background-color: var(--primary-color);
    color: var(--text-color);
    text-align: center;
    padding: 1em 0;
}

footer {
    position: fixed;
    width: 100%;
    bottom: 0;
}

main {
    padding: 20px;
}

.form-container, .visitor-list {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-container h2, .visitor-list h2 {
    margin-top: 0;
}

.form-container label {
    display: block;
    margin-bottom: 5px;
}

.form-container input, 
.form-container select, 
.form-container textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.form-container button {
    padding: 10px 15px;
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-container button:hover {
    background-color: var(--secondary-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid black;
}

th, td {
    padding: 10px;
    text-align: left;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #eaeaea;
}

.edit-link, .delete-link {
    margin-right: 10px;
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s;
}

.edit-link:hover, .delete-link:hover {
    text-decoration: underline;
    color: var(--hover-color);
}

.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--primary-color);
    transition: background-color 0.3s, color 0.3s;
}

.pagination a.active {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: 2px solid var(--secondary-color);
}

.pagination a:hover {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

@media (max-width: 600px) {
    .form-container, .visitor-list {
        padding: 10px;
    }
    table, th, td {
        font-size: 14px;
    }
}
