/* * PERFEX CRM - PREMIUM EXECUTIVE UI OVERRIDE (CORREGIDO Y SEGURO)
 * Este CSS complementa los cambios del núcleo sin romper la estructura.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* =========================================
   1. VARIABLES Y FONDO GENERAL
========================================= */
body, .admin, .app, #wrapper, .tw-bg-neutral-50 {
    font-family: 'Inter', system-ui, sans-serif !important;
    background-color: #f8fafc !important;
    color: #1e293b !important;
}

/* =========================================
   2. MENÚ LATERAL (SIDEBAR MATCH PROTOTIPO)
========================================= */
#setup-menu-wrapper, .menu-wrapper, #side-menu, .tw-bg-slate-900 {
    background-color: #0f172a !important; /* slate-900 */
    border-right: none !important;
}

/* Ocultar fondo blanco del perfil en sidebar de forma SEGURA */
.menu-wrapper > div.tw-bg-white,
#setup-menu-wrapper > div.tw-bg-white {
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    box-shadow: none !important;
    margin: 0 !important; /* Resetea el error anterior */
}

/* Forzar colores de texto del perfil para que resalten en fondo oscuro */
.menu-wrapper > div p.tw-text-neutral-900,
#setup-menu-wrapper > div p.tw-text-neutral-900 {
    color: #f8fafc !important;
    font-weight: 600 !important;
}

.menu-wrapper > div p.tw-text-neutral-500,
#setup-menu-wrapper > div p.tw-text-neutral-500 {
    color: #94a3b8 !important;
}

/* =========================================
   3. BOTONES MODERNOS (TIPO SAAS)
========================================= */
.btn {
    border-radius: 0.5rem !important; /* rounded-lg */
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

/* Botones secundarios (Dashboard Options, Importar, Filtros, etc) */
.btn-default, .tw-border-neutral-200.btn, .tw-bg-neutral-100 {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.btn-default:hover, .tw-border-neutral-200.btn:hover, .tw-bg-neutral-100:hover {
    background-color: #f8fafc !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

/* Botones del Calendario (Forzados a superar Tailwind) */
.fc .fc-button-primary,
.fc-button {
    background-color: #ffffff !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
    background-image: none !important;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05) !important;
    text-shadow: none !important;
    text-transform: capitalize !important;
    font-weight: 500 !important;
    border-radius: 0.5rem !important;
    transition: all 0.2s ease !important;
}

.fc .fc-button-primary:hover,
.fc-button:hover {
    background-color: #f8fafc !important;
    color: #0f172a !important;
}

.fc .fc-button-primary:not(:disabled):active,
.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc-state-active {
    background-color: #4f46e5 !important; /* indigo-600 */
    color: #ffffff !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 4px 10px -2px rgba(79, 70, 229, 0.4) !important;
}