
/* === SIDEBAR MODERNO === */

/* Fondo del sidebar con degradado suave */
.main-sidebar.sidebar-modern {
    background: radial-gradient(circle at top left, #111827, #020617 60%);
    border-right: 1px solid rgba(148, 163, 184, 0.18);
}

/* Área del logo arriba */
.main-sidebar .brand-link {
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    background: transparent;
}

.main-sidebar .brand-link span.brand-text {
    font-weight: 600;
    letter-spacing: .03em;
}

/* Navegación interior */
.sidebar-modern .nav-sidebar .nav-item {
    margin: 2px 6px;
}

/* Links del menú */
.sidebar-modern .nav-sidebar .nav-link {
    border-radius: 999px;
    margin: 2px 0;
    padding-top: 7px;
    padding-bottom: 7px;
    padding-left: 10px;
    font-size: .88rem;
    color: #e5e7eb;
    transition: background-color .15s ease, color .15s ease, transform .08s ease;
}

/* Iconos del menú */
.sidebar-modern .nav-sidebar .nav-link .nav-icon {
    font-size: 1rem;
    margin-right: 8px;
}

/* Hover */
.sidebar-modern .nav-sidebar .nav-link:hover {
    background: rgba(148, 163, 184, 0.15);
    color: #f9fafb;
    transform: translateX(1px);
}

/* Item activo estilo "pill" */
.sidebar-modern .nav-sidebar > .nav-item > .nav-link.active {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #f9fafb;
    box-shadow: 0 0 0 1px rgba(191, 219, 254, 0.35);
}

.sidebar-modern .nav-sidebar > .nav-item > .nav-link.active .nav-icon {
    color: #e0f2fe;
}

/* Headers de sección (NAVIGATION, REPORTES, etc.) */
.sidebar-modern .nav-sidebar .nav-header {
    font-size: .7rem;
    letter-spacing: .12em;
    color: #9ca3af;
    padding-top: 12px;
}

/* Scrollbar más discreto */
.sidebar-modern .sidebar {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.5) transparent;
}

.sidebar-modern .sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar-modern .sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-modern .sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(148, 163, 184, 0.6);
    border-radius: 999px;
}


/* ============================================================
   NAVBAR MODERNA ASTRAL / GLASSMORPHIC
   ============================================================*/
.navbar-astral {
    background: rgba(6, 32, 86, 0.962) !important; /* tono oscuro translúcido */
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
}

/* Marca / logo en navbar (si usas topnav layout) */
.navbar-astral .navbar-brand,
.navbar-astral .brand-link {
    color: #e2e8f0 !important;
    font-weight: 600;
    letter-spacing: .03em;
}

/* Íconos del navbar */
.navbar-astral .nav-link .fas,
.navbar-astral .nav-link .far,
.navbar-astral .nav-link .fa {
    color: #c7d2fe;
}

/* Links del navbar */
.navbar-astral .nav-link {
    color: #e2e8f0 !important;
    transition: .15s ease;
    border-radius: 8px;
    padding: 8px 12px;
}

/* Hover de los links */
.navbar-astral .nav-link:hover {
    color: #ffffff !important;
    background: rgba(99, 102, 241, 0.20);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.45);
}

/* Ítem activo */
.navbar-astral .nav-link.active {
    background: linear-gradient(135deg, #4f46e5, #9333ea) !important;
    color: #fff !important;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.55);
}

/* Dropdown clásico */
.navbar-astral .dropdown-menu {
    background: rgba(17, 24, 39, 0.85) !important;
    backdrop-filter: blur(18px);
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.30);
}

/* Dropdown items */
.navbar-astral .dropdown-item {
    color: #e2e8f0;
}

.navbar-astral .dropdown-item:hover {
    background: rgba(99, 102, 241, 0.25) !important;
    color: #fff !important;
}

/* Icono hamburguesa (modo móvil) */
.navbar-astral .navbar-toggler {
    border-color: rgba(255,255,255,0.25);
}

.navbar-astral .navbar-toggler-icon {
    filter: invert(1);
}
