/* Estilos Generales */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f4f7f9;
    color: #333;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.container.hidden {
    display: none;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
}

/* Modal de Login */
#login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#login-modal-overlay.hidden {
    display: none;
}

#login-modal {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

#login-modal h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.password-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

#login-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    box-sizing: border-box;
}

#login-form #password {
    padding-right: 40px;
}

.toggle-password-icon {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #7f8c8d;
}

#login-form button {
    width: 100%;
    padding: 12px;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

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

#login-error {
    color: #e74c3c;
    margin-top: 15px;
    height: 20px;
    font-weight: 600;
}

/* Filtros */
.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    align-items: center;
}

.filters input, .filters select, .filters button {
    width: 100%;
    padding: 12px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.filters input::placeholder {
    color: #aab0b7;
}

.filters button {
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s, color 0.2s;
}

#filter-button {
    background-color: #3498db;
    color: #fff;
    border-color: #3498db;
}

#filter-button:hover {
    background-color: #2980b9;
}

#reset-button {
    background-color: #95a5a6;
    color: #fff;
    border-color: #95a5a6;
}

#reset-button:hover {
    background-color: #7f8c8d;
}

.delete-button {
    background-color: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}

.delete-button:hover {
    background-color: #c0392b;
}

/* Tabla */
.table-container {
    overflow-x: auto;
}

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

thead {
    background-color: #34495e;
    color: #fff;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

tbody tr:hover {
    background-color: #e8f4fd;
}

td input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* Mensaje de Carga */
#loading-message {
    text-align: center;
    font-size: 18px;
    color: #7f8c8d;
    padding: 40px;
}

/* Paginación */
#pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

#pagination-container button {
    margin: 0 5px;
    padding: 8px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
}

#pagination-container button:disabled {
    background-color: #f4f7f9;
    cursor: not-allowed;
}