﻿/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SIGEAS-UPI â€” Identidad Visual FGR
   Pantone 5395 C (#1B242D) + Pantone Cool Gray 9C (#7E797B)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

:root {
    --fgr-dark:       #1B242D;
    --fgr-dark-hover: #243040;
    --fgr-dark-light: #2E3F52;
    --fgr-gray:       #7E797B;
    --fgr-gray-light: #F4F4F5;
    --fgr-gray-mid:   #D1CDD0;
    --fgr-white:      #FFFFFF;
    --fgr-success:    #2D7A4F;
    --fgr-warning:    #B8860B;
    --fgr-danger:     #8B2020;
    --fgr-info:       #1E5799;
}

/* â”€â”€ Escala base â”€â”€ */
html {
    font-size: 13px;
}

/* â”€â”€ Fuentes base â”€â”€ */
body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--fgr-gray-light) !important;
    font-size: 0.9rem;
}

h1, h2, h3, h4, h5, h6,
.mud-typography-h1, .mud-typography-h2,
.mud-typography-h3, .mud-typography-h4,
.mud-typography-h5, .mud-typography-h6 {
    font-family: 'Montserrat', sans-serif !important;
}

/* â”€â”€ Contenido principal â”€â”€ */
.fgr-main-content {
    padding-top: 76px !important; /* altura topbar 60px + margen */
    padding: 76px 24px 24px 24px;
    min-height: 100vh;
    background-color: var(--fgr-gray-light);
}

/* â”€â”€ Sidebar Brand â”€â”€ */
.fgr-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 16px 16px;
    background-color: var(--fgr-dark);
}

.fgr-brand-icon {
    flex-shrink: 0;
}

.fgr-brand-text {
    display: flex;
    flex-direction: column;
}

.fgr-brand-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
    letter-spacing: 1px;
}

.fgr-brand-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.3px;
    margin-top: 1px;
}

/* â”€â”€ Sidebar Footer â”€â”€ */
.fgr-sidebar-footer {
    padding: 12px 16px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* â”€â”€ Nav Menu â”€â”€ */
.fgr-nav-menu {
    padding: 8px 0;
}

.fgr-nav-menu .mud-nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.875rem;
}

.fgr-nav-menu .mud-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: white !important;
}

.fgr-nav-menu .mud-nav-link.active {
    background-color: rgba(255, 255, 255, 0.12) !important;
    border-left: 3px solid white;
    color: white !important;
    font-weight: 600;
}

.fgr-nav-menu .mud-nav-group-title {
    color: rgba(255, 255, 255, 0.85) !important;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.875rem;
}

/* â”€â”€ Cards â”€â”€ */
.mud-card {
    border-radius: 6px !important;
    box-shadow: 0 1px 4px rgba(27, 36, 45, 0.10) !important;
}

/* â”€â”€ Tablas â”€â”€ */
.mud-table-head .mud-table-cell {
    background-color: var(--fgr-dark) !important;
    color: white !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
}

/* â”€â”€ Drawer (sidebar) override â”€â”€ */
.mud-drawer-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    padding-top: 0 !important;
}

/* El MudDivider dentro del drawer no debe crecer â€” solo ser una lÃ­nea fina */
.mud-drawer-content hr.mud-divider {
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    height: 1px !important;
    min-height: 0 !important;
    margin: 0 !important;
}

/* â”€â”€ Encabezados de pÃ¡gina â”€â”€ */
.fgr-page-header-icon {
    color: rgba(255, 255, 255, 0.9);
    font-size: 2rem !important;
}

.fgr-page-title {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    color: white !important;
    margin: 0 !important;
}

.fgr-page-subtitle {
    color: rgba(255, 255, 255, 0.65) !important;
    margin: 0 !important;
}

/* TÃ­tulo de listado (fuera del header oscuro) */
.fgr-list-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* â”€â”€ Formularios â€” secciones con card â”€â”€ */
.fgr-page-header {
    background: linear-gradient(135deg, var(--fgr-dark) 0%, #2E3F52 100%);
    border-radius: 8px;
    padding: 14px 20px;
    margin-bottom: 14px;
}

.fgr-section-card {
    border-left: 4px solid var(--fgr-dark) !important;
    border-radius: 6px !important;
    margin-bottom: 10px;
}

.fgr-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
}

.fgr-section-title .mud-icon-root {
    color: var(--fgr-dark) !important;
    font-size: 1rem !important;
}

.fgr-section-title .mud-typography {
    font-weight: 700 !important;
    color: var(--fgr-dark) !important;
    font-size: 0.85rem !important;
}

/* â”€â”€ Campos autollenados desde pÃ³liza â”€â”€ */
.fgr-autofill .mud-input-outlined {
    background-color: #E8EDF2 !important;
    border-radius: 4px;
}
.fgr-autofill .mud-input-outlined label {
    background-color: #E8EDF2 !important;
}
.fgr-autofill input,
.fgr-autofill textarea {
    color: #4A5568 !important;
    cursor: default !important;
}

/* ── FileDropZone ── */
.fgr-dropzone {
    border: 2px dashed #c0bfc4;
    border-radius: 6px;
    background-color: transparent;
    box-sizing: border-box;
}
.fgr-dropzone-dragging {
    border-color: var(--mud-palette-primary) !important;
    background-color: rgba(99, 115, 129, 0.04);
}
.fgr-dropzone-has-file {
    border-color: #4caf50 !important;
    background-color: rgba(76, 175, 80, 0.04);
}

/* â”€â”€ Altura de campos â€” inputs mÃ¡s compactos â”€â”€ */
.mud-input-root-outlined.mud-input-root-margin-dense {
    padding: 9px 14px !important;
}

/* â”€â”€ Tabs â”€â”€ */
.mud-tabs-toolbar {
    min-height: 42px !important;
}

/* Tabs sobre fondo oscuro (Color.Primary = dark) */
.mud-tab {
    font-size: 0.8rem !important;
    min-height: 42px !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

.mud-tab:hover {
    color: rgba(255, 255, 255, 0.9) !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
}

.mud-tab.mud-tab-active {
    color: white !important;
    font-weight: 700 !important;
}

.mud-tab-slider {
    background-color: white !important;
}
