/* ============================================================
   SID LOGOS – Animaciones Profesionales  (v3)
   ============================================================ */

/* ----- Entrada deslizante ----- */
@keyframes sidLogoSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-18px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.sid-logo-entrada {
    animation: sidLogoSlideIn 0.55s ease-out forwards;
}

/* ============================================================
   EFECTO "RELLENO DE COLOR" — fill sweep iz→der
   ============================================================ */
.sid-logo-fill-wrap {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.sid-logo-fill-wrap .sid-logo-base {
    display: block;
    filter: grayscale(1) brightness(0.38);
    opacity: 0.4;
}

.sid-logo-fill-wrap .sid-logo-color {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    clip-path: inset(0 100% 0 0);
    animation: sidLogoFill var(--fill-dur, 2.4s) cubic-bezier(0.25, 0.46, 0.45, 0.94) var(--fill-delay, 0.7s) forwards;
}

@keyframes sidLogoFill {
    0% {
        clip-path: inset(0 100% 0 0);
    }

    100% {
        clip-path: inset(0 0% 0 0);
    }
}

.sid-logo-fill-fast {
    --fill-dur: 1.1s;
    --fill-delay: 0.15s;
}

/* ============================================================
   SPLASH SCREEN
   ============================================================ */
.sid-splash {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(140deg, #08111f 0%, #0b2549 55%, #112f63 100%);
    z-index: 9999;
}

.sid-splash .sid-logo-fill-wrap {
    animation: sidLogoSlideIn 0.5s ease-out 0.15s both;
}

.sid-splash .sid-logo-fill-wrap .sid-logo-color {
    --fill-dur: 2.2s;
    --fill-delay: 0.9s;
}

.sid-splash__texto {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    font-size: 11px;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
    margin-top: 10px;
    animation: sidLogoSlideIn 0.4s ease-out 0.45s both;
}

.sid-splash__barra-contenedor {
    width: 240px;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    margin-top: 30px;
    overflow: hidden;
    animation: sidLogoSlideIn 0.35s ease-out 0.8s both;
}

.sid-splash__barra {
    height: 100%;
    background: linear-gradient(90deg, #37C4C8 0%, #3FC7CE 60%, #6dd5e0 100%);
    border-radius: 2px;
    animation: sidProgressFill 2.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.9s both;
}

@keyframes sidProgressFill {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

/* ============================================================
   BOTÓN HAMBURGUESA — LogoSID completo como toggle
   ============================================================ */
.sid-hamburger {
    position: relative;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 10px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.sid-hamburger:hover {
    background: rgba(19, 60, 122, 0.07);
}

.sid-hamburger:active {
    background: rgba(19, 60, 122, 0.15);
}

.sid-hamburger:focus {
    outline: none;
}

.sid-hamburger__logo {
    height: 26px;
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease, opacity 0.2s ease;
    filter: drop-shadow(0 1px 3px rgba(19, 60, 122, 0.15));
}

.sid-hamburger:hover .sid-hamburger__logo {
    filter: drop-shadow(0 2px 8px rgba(55, 196, 200, 0.5));
    opacity: 0.9;
}

/* Escala suave cuando el drawer está abierto */
.sid-hamburger.drawer-open .sid-hamburger__logo {
    transform: scale(0.9);
    opacity: 0.75;
}

/* Ripple de apertura */
.sid-hamburger::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: radial-gradient(circle, rgba(55, 196, 200, 0.22) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.sid-hamburger:active::after {
    opacity: 1;
}

/* ============================================================
   APPBAR LOGO (solo LogoSID horizontal)
   ============================================================ */
.sid-appbar-logo {
    display: flex;
    align-items: center;
    padding: 0 6px;
}

.sid-appbar-logo img {
    transition: filter 0.25s ease;
}

.sid-appbar-logo img:hover {
    filter: drop-shadow(0 2px 8px rgba(55, 196, 200, 0.45));
}

/* ============================================================
   ICONOS DEL NAV DRAWER — Paleta LogoSID (#17427F → #3FC7CE)
   Selectores verificados para MudBlazor v6/v7
   ============================================================ */

/* Estado base: azul marino del logo */
.mud-nav-link .mud-icon-root,
.mud-nav-link .mud-nav-link-icon {
    color: #17427F !important;
    transition: color 0.22s ease, filter 0.22s ease, transform 0.2s ease;
}

/* Hover: desplaza al cian del logo */
.mud-nav-link:hover .mud-icon-root,
.mud-nav-link:hover .mud-nav-link-icon {
    color: #2889A9 !important;
    filter: drop-shadow(0 0 5px rgba(40, 137, 169, 0.45));
    transform: scale(1.12);
}

/* Activo: cian brillante */
.mud-nav-link.active .mud-icon-root,
.mud-nav-link.active .mud-nav-link-icon,
.mud-nav-link[aria-current="page"] .mud-icon-root {
    color: #3FC7CE !important;
    filter: drop-shadow(0 0 6px rgba(55, 196, 200, 0.55));
    transform: scale(1.08);
}

/* ---- Item completo activo: franja iz̆q degradado + fondo tenue ---- */
.mud-nav-link.active,
.mud-nav-link[aria-current="page"] {
    position: relative;
    background: linear-gradient(90deg,
            rgba(23, 66, 127, 0.10) 0%,
            rgba(55, 196, 200, 0.05) 100%) !important;
    border-radius: 0 8px 8px 0 !important;
}

/* Barra lateral izquierda como en el logo */
.mud-nav-link.active::before,
.mud-nav-link[aria-current="page"]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, #17427F 0%, #3FC7CE 100%);
}

/* ---- Texto del link activo ---- */
.mud-nav-link.active .mud-nav-link-text,
.mud-nav-link[aria-current="page"] .mud-nav-link-text {
    font-weight: 600 !important;
    background: linear-gradient(90deg, #17427F, #2889A9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Subtítulos de sección MENU PRINCIPAL / ADMINISTRACIÓN ---- */
.mud-nav-menu .mud-typography-subtitle2 {
    background: linear-gradient(90deg, #133c7a 0%, #2889A9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700 !important;
    font-size: 10px !important;
    letter-spacing: 1.2px;
}

/* ============================================================
   LOGIN CARD
   ============================================================ */
@keyframes sidLoginCardIn {
    0% {
        opacity: 0;
        transform: translateY(26px) scale(0.97);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.sid-login-card {
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 20px;
    box-shadow: 0 28px 64px rgba(13, 71, 161, 0.22), 0 4px 16px rgba(0, 0, 0, 0.12);
    padding: 40px 48px;
    width: 420px;
    max-width: 94vw;
    animation: sidLoginCardIn 0.55s cubic-bezier(0.34, 1.40, 0.64, 1) forwards;
}