/* --- CUSTOM FILAMENT THEME FOR JIRECH S.A.C. --- */

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

/* --- 1. CONFIGURACIÓN DE TIPOGRAFÍA GENERAL --- */
body {
    font-family: 'Inter', sans-serif !important;
}

h1, h2, h3, h4, h5, h6, .fi-logo {
    font-family: 'Outfit', sans-serif !important;
}

/* --- 2. PERSONALIZACIÓN DE LA PÁGINA DE LOGIN (SIMPLE LAYOUT) --- */
.fi-simple-layout {
    background: linear-gradient(135deg, #0b2545 0%, #134074 100%) !important;
    position: relative;
    overflow: hidden;
}

/* Burbujas decorativas de fondo para el Login */
.fi-simple-layout::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(197, 168, 128, 0.15) 0%, rgba(0,0,0,0) 70%);
    top: -50px;
    left: -50px;
    border-radius: 50%;
}

.fi-simple-layout::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(30, 82, 142, 0.2) 0%, rgba(0,0,0,0) 70%);
    bottom: -100px;
    right: -100px;
    border-radius: 50%;
}

/* Tarjeta del Formulario de Login */
.fi-simple-layout main {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(197, 168, 128, 0.3) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35) !important;
    padding: 30px !important;
    z-index: 10;
}

/* Logo e Identidad del Login */
.fi-simple-header-logo {
    height: 70px !important;
    width: auto !important;
    margin: 0 auto 15px auto !important;
}

.fi-simple-header-heading {
    color: #0b2545 !important;
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px;
}

/* --- 3. PANEL DE NAVEGACIÓN LATERAL (SIDEBAR) --- */
.fi-sidebar {
    background-color: #0b2545 !important;
    border-right: 2px solid #c5a880 !important;
}

/* Cabecera del Sidebar */
.fi-sidebar-header {
    background-color: #091a32 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.fi-sidebar-header .fi-logo {
    color: #c5a880 !important;
    font-size: 1.35rem !important;
    font-weight: 800 !important;
}

/* Items del Menú del Sidebar */
.fi-sidebar-item-button {
    color: #cbd5e1 !important;
    transition: all 0.2s ease !important;
    border-radius: 8px !important;
    margin: 2px 0 !important;
}

.fi-sidebar-item-button:hover {
    background-color: rgba(197, 168, 128, 0.1) !important;
    color: #c5a880 !important;
}

/* Item Activo del Menú */
.fi-sidebar-item-button.fi-active {
    background-color: #c5a880 !important;
    color: #0b2545 !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 10px rgba(197, 168, 128, 0.25) !important;
}

.fi-sidebar-item-button.fi-active svg {
    color: #0b2545 !important;
}

/* Iconos de Items Inactivos */
.fi-sidebar-item-button:not(.fi-active) svg {
    color: #94a3b8 !important;
}

.fi-sidebar-item-button:not(.fi-active):hover svg {
    color: #c5a880 !important;
}

/* Títulos de Grupo en Sidebar */
.fi-sidebar-group-label {
    color: #c5a880 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-weight: 700 !important;
}

/* --- 4. BARRA SUPERIOR (TOPBAR) --- */
.fi-topbar {
    background-color: #134074 !important;
    border-bottom: 1px solid #c5a880 !important;
}

/* Texto y Botones en Topbar */
.fi-topbar-collapse-btn svg,
.fi-topbar-dropdown-trigger button,
.fi-topbar-item {
    color: #ffffff !important;
}

.fi-topbar-collapse-btn:hover svg,
.fi-topbar-item:hover {
    color: #c5a880 !important;
}

.fi-topbar-dropdown-trigger button:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
}

/* --- 5. DETALLES Y AJUSTES DE COMPONENTES --- */
/* Botón principal de Filament */
.fi-btn-color-primary,
.fi-ac-btn-action,
.fi-modal-submit-action button {
    background-color: #c5a880 !important;
    color: #0b2545 !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.fi-btn-color-primary:hover,
.fi-ac-btn-action:hover,
.fi-modal-submit-action button:hover {
    background-color: #b3925d !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 10px rgba(197, 168, 128, 0.3) !important;
}

/* Bordes de foco para inputs */
input:focus, select:focus, textarea:focus {
    border-color: #c5a880 !important;
    box-shadow: 0 0 0 2px rgba(197, 168, 128, 0.2) !important;
}

/* Color de links del panel */
.fi-link, .fi-breadcrumbs a {
    color: #134074 !important;
    transition: all 0.2s ease !important;
}

.fi-link:hover, .fi-breadcrumbs a:hover {
    color: #c5a880 !important;
    text-decoration: none !important;
}
