:root {
    --blue-950: #0a1628;
    --blue-900: #0f2347;
    --blue-800: #1e3a5f;
    --blue-700: #1d4ed8;
    --blue-600: #2563eb;
    --blue-400: #60a5fa;
    --blue-100: #dbeafe;
    --blue-50: #eff6ff;
    --surface: #f0f4fb;
    --white: #ffffff;
    --muted: #6b85a8;
    --border: rgba(37, 99, 235, 0.12);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    background: var(--surface);
    min-height: 100vh;
}

/* ─── NAVBAR WRAPPER ─── */
.navbar-admin {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

/* ─── TOP BAR ─── */
.top-bar {
    background: var(--blue-900);
    height: 76px;
    display: flex;
    align-items: center;
    padding: 0 36px;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

/* Línea de luz superior */
.top-bar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(96, 165, 250, 0.6) 30%,
        rgba(37, 99, 235, 0.9) 50%,
        rgba(96, 165, 250, 0.6) 70%,
        transparent 100%
    );
}

/* Resplandor sutil fondo */
.top-bar::after {
    content: "";
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(
        ellipse,
        rgba(37, 99, 235, 0.18) 0%,
        transparent 70%
    );
    pointer-events: none;
}

/* Logo */
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
    box-shadow: 0 0 16px rgba(37, 99, 235, 0.5);
    flex-shrink: 0;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.3px;
}

.logo-text span {
    color: var(--blue-400);
}

/* Zona derecha: user */
.top-right {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

/* Notificación */
.notif-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition:
        background 0.2s,
        border-color 0.2s;
    color: rgba(255, 255, 255, 0.6);
    font-size: 22px;
}

.notif-btn:hover {
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.4);
    color: var(--blue-400);
}

.notif-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--blue-400);
    border: 1.5px solid var(--blue-900);
    animation: pulseDot 2s ease infinite;
}

@keyframes pulseDot {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.5);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(96, 165, 250, 0);
    }
}

/* Divider */
.top-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
}

/* User button */
.user-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 8px 16px 8px 8px;
    cursor: pointer;
    transition:
        background 0.2s,
        border-color 0.2s;
    position: relative;
}

.user-btn:hover {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.35);
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--blue-700), var(--blue-400));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
}

.user-role {
    font-size: 11px;
    color: var(--muted);
    font-weight: 400;
}

.user-chevron {
    font-size: 18px;
    color: var(--muted);
    margin-left: 2px;
    transition: transform 0.2s;
}

/* Dropdown */
.dropdown-menu-custom {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow:
        0 8px 32px rgba(37, 99, 235, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    z-index: 100;
    animation: dropIn 0.2s ease;
}

@keyframes dropIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-btn.open .dropdown-menu-custom {
    display: block;
}
.user-btn.open .user-chevron {
    transform: rotate(180deg);
}

.dropdown-header {
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--border);
}

.dropdown-header .dh-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--blue-800);
}

.dropdown-header .dh-email {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
}

.dropdown-item-custom {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--blue-800);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
}

.dropdown-item-custom:hover {
    background: var(--blue-50);
    color: var(--blue-600);
}

.dropdown-item-custom.danger {
    color: #dc2626;
    border-top: 1px solid var(--border);
}

.dropdown-item-custom.danger:hover {
    background: #fef2f2;
}

.dropdown-item-custom i {
    font-size: 16px;
    opacity: 0.7;
}

/* ─── BOTTOM NAV ─── */
.bottom-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 36px;
    height: 64px;
    gap: 6px;
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.06);
}

.nav-item-admin {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link-admin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link-admin i {
    font-size: 26px;
    transition:
        transform 0.2s,
        color 0.2s;
}

.nav-link-admin:hover {
    background: var(--blue-50);
    color: var(--blue-600);
}

.nav-link-admin:hover i {
    color: var(--blue-600);
    transform: translateY(-1px);
}

/* Estado activo */
.nav-link-admin.active {
    background: linear-gradient(
        135deg,
        rgba(37, 99, 235, 0.08),
        rgba(37, 99, 235, 0.04)
    );
    color: var(--blue-600);
}

.nav-link-admin.active i {
    color: var(--blue-600);
}

/* Indicador inferior activo */
.nav-link-admin.active::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--blue-600);
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.5);
}

/* Tooltip */
.nav-link-admin .tooltip-label {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue-900);
    color: white;
    font-size: 11px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 7px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition:
        opacity 0.15s,
        transform 0.15s;
    transform: translateX(-50%) translateY(4px);
    letter-spacing: 0.03em;
}

.nav-link-admin .tooltip-label::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--blue-900);
}

.nav-link-admin:hover .tooltip-label {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Separador */
.nav-sep {
    width: 1px;
    height: 20px;
    background: var(--border);
    margin: 0 6px;
}

/* Badge de conteo */
.nav-badge {
    position: absolute;
    top: 4px;
    right: 8px;
    background: var(--blue-600);
    color: white;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.4);
}

/* ─── DEMO PAGE CONTENT ─── */
.page-demo {
    padding: 40px 28px;
    max-width: 900px;
    margin: 0 auto;
}

.demo-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 12px;
    color: var(--blue-600);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06);
}

.demo-label span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue-400);
}

.demo-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.demo-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.05);
}

.demo-card .dc-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--blue-50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--blue-600);
    margin-bottom: 16px;
}

.demo-card .dc-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--blue-800);
    line-height: 1;
    margin-bottom: 4px;
}

.demo-card .dc-label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}
