/* ================================================================
   SISTEMA DE DISEÑO GLOBAL — PALETA MONOCROMÁTICA (GRIS, NEGRO, BLANCO)
   Armonizado con el menú principal (#BAB9B8, #18181b, #ffffff)
   ================================================================ */

:root {
    --theme-black: #0f172a;
    --theme-dark: #18181b;
    --theme-charcoal: #27272a;
    --theme-grey-dark: #3f3f46;
    --theme-grey-slate: #52525b;
    --theme-grey-menu: #BAB9B8;
    --theme-grey-border: #cbd5e1;
    --theme-grey-light: #e2e8f0;
    --theme-grey-surface: #f4f4f5;
    --theme-grey-bg: #f8fafc;
    --theme-white: #ffffff;
    --theme-text-primary: #18181b;
    --theme-text-secondary: #475569;
    --theme-text-muted: #64748b;
    --theme-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --theme-shadow-md: 0 10px 25px rgba(0, 0, 0, 0.1);
    --theme-shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.18);
    --theme-radius-sm: 8px;
    --theme-radius-md: 14px;
    --theme-radius-lg: 20px;
}

/* ================================================================
   BOTONES GLOBALES — ARMONIZACIÓN
   ================================================================ */
.btn-primary {
    background: linear-gradient(135deg, #18181b 0%, #27272a 100%) !important;
    border-color: #18181b !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.25s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: linear-gradient(135deg, #27272a 0%, #3f3f46 100%) !important;
    border-color: #27272a !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.btn-secondary {
    background: #BAB9B8 !important;
    border-color: #BAB9B8 !important;
    color: #18181b !important;
    font-weight: 700;
}

.btn-secondary:hover {
    background: #a8a7a6 !important;
    border-color: #a8a7a6 !important;
    color: #000000 !important;
}

.btn-outline-primary {
    border-color: #18181b !important;
    color: #18181b !important;
    background: transparent !important;
}

.btn-outline-primary:hover {
    background: #18181b !important;
    color: #ffffff !important;
}

.btn-info {
    background: linear-gradient(135deg, #3f3f46 0%, #52525b 100%) !important;
    border-color: #3f3f46 !important;
    color: #ffffff !important;
}

.btn-info:hover {
    background: linear-gradient(135deg, #27272a 0%, #3f3f46 100%) !important;
    border-color: #27272a !important;
    color: #ffffff !important;
}

/* ================================================================
   BADGES Y CHIPS
   ================================================================ */
.badge-primary,
.bg-primary {
    background-color: #18181b !important;
    color: #ffffff !important;
}

.text-primary {
    color: #18181b !important;
}

.badge-info,
.bg-info {
    background-color: #BAB9B8 !important;
    color: #18181b !important;
}

/* ================================================================
   FORM CONTROLS & FOCUS RINGS
   ================================================================ */
.form-control:focus,
.form-select:focus {
    border-color: #BAB9B8 !important;
    box-shadow: 0 0 0 0.25rem rgba(186, 185, 184, 0.35) !important;
}

/* ================================================================
   SWEETALERT2 CUSTOM THEMING (MONOCROMÁTICO)
   ================================================================ */
.swal2-popup {
    border-radius: 18px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25) !important;
}

.swal2-confirm {
    background: linear-gradient(135deg, #18181b 0%, #27272a 100%) !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
    font-weight: 700 !important;
}

.swal2-confirm:hover {
    background: linear-gradient(135deg, #27272a 0%, #3f3f46 100%) !important;
}

.swal2-cancel {
    background: #BAB9B8 !important;
    color: #18181b !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
}

/* ================================================================
   TABLAS Y TARJETAS
   ================================================================ */
.table thead th {
    background-color: #f4f4f5 !important;
    color: #18181b !important;
    border-bottom: 2px solid #cbd5e1 !important;
    font-weight: 800 !important;
}

.table-hover tbody tr:hover {
    background-color: rgba(186, 185, 184, 0.1) !important;
}

/* Paginación */
.pagination .page-item.active .page-link {
    background-color: #18181b !important;
    border-color: #18181b !important;
    color: #ffffff !important;
}

.pagination .page-link {
    color: #18181b !important;
}

.pagination .page-link:hover {
    background-color: #e2e8f0 !important;
    color: #000000 !important;
}
