:root { 
    --primary: #0d6efd; 
    --success: #198754; 
    --danger: #dc3545; 
    --warning: #ffc107;
    --gray: #6c757d; 
    --light: #f8f9fa; 
    --dark: #212529;
}

body { font-family: 'Segoe UI', Arial, sans-serif; background-color: #eaeff2; margin: 0; padding: 20px; color: #333; }
.container { max-width: 1100px; margin: 0 auto; background: white; padding: 25px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }

h1, h2 { margin-top: 0; color: var(--dark); border-bottom: 2px solid var(--light); padding-bottom: 10px; }

/* Barra de herramientas (Buscador y Filtros) */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 20px; flex-wrap: wrap; }
.search-form { display: flex; gap: 8px; flex-grow: 1; }
.search-form input, .search-form select { padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; }

/* Botones */
.btn { padding: 10px 16px; border: none; border-radius: 4px; cursor: pointer; font-weight: 600; text-decoration: none; font-size: 14px; display: inline-block; transition: background 0.2s; }
.btn-blue { background: var(--primary); color: white; }
.btn-green { background: var(--success); color: white; }
.btn-red { background: var(--danger); color: white; }
.btn-gray { background: var(--gray); color: white; }
.btn:hover { opacity: 0.9; }

/* Tabla */
.table-container { overflow-x: auto; margin-top: 10px; }
table { width: 100%; border-collapse: collapse; background: white; }
th { background: var(--light); padding: 12px; text-align: left; font-size: 12px; text-transform: uppercase; color: #666; border-bottom: 2px solid #dee2e6; }
td { padding: 12px; border-bottom: 1px solid #eee; vertical-align: middle; font-size: 14px; }
tr:hover { background-color: #fcfcfc; }

/* Badges de Estado */
.badge { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: bold; text-transform: uppercase; }
.badge-activo { background: #d1e7dd; color: #0f5132; }
.badge-inactivo { background: #f8d7da; color: #842029; }

/* Acciones en Tabla */
.actions-cell { display: flex; gap: 6px; }
.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 3px; }

/* Formularios (Add/Edit) */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 25px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-weight: bold; font-size: 14px; color: #555; }
.field input, .field select { padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 15px; }
.field input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 2px rgba(13,110,253,0.1); }
.buttons-row { display: flex; gap: 10px; border-top: 1px solid #eee; padding-top: 20px; }

/* Paginación */
.pagination { display: flex; justify-content: center; gap: 5px; margin-top: 30px; }
.pagination a, .pagination span { padding: 8px 14px; border: 1px solid #dee2e6; border-radius: 4px; text-decoration: none; color: var(--primary); }
.pagination .current { background: var(--primary); color: white; border-color: var(--primary); }
.pagination .dots { border: none; padding: 8px 5px; color: #999; }

/* Importación */
details { background: #fcfcfc; border: 1px solid #eee; padding: 10px; border-radius: 5px; margin-bottom: 20px; }
summary { font-weight: bold; cursor: pointer; padding: 5px; }
.btn-orange { 
    background: #fd7e14; 
    color: white; 
}

/* Asegurar que la celda de acciones no envuelva los botones */
.actions-cell { 
    display: flex; 
    gap: 4px; 
    justify-content: center; 
}

.btn-sm {
    padding: 6px 8px;
    font-size: 11px;
    white-space: nowrap;
}
.main-header {
    background: #ffffff;
    border-bottom: 2px solid #e2e8f0;
    padding: 10px 0;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.client-logo {
    height: 50px; /* Ajusta según el logo del cliente */
    width: auto;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    margin-right: 20px;
}

.btn-logout {
    background: var(--danger);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-logout:hover {
    background: #b91c1c;
}

/* --- Estilos de Footer --- */
.main-footer {
    margin-top: 50px;
    padding: 20px 0;
    border-top: 1px solid #dee2e6;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}

.dev-credits {
    margin-top: 5px;
    font-size: 12px;
    color: var(--primary);
}