/* =========================
   PRAGIA NAVBAR SYSTEM
========================= */

:root {
    --primary: #1565C0;
    --primary-light: #42A5F5;
    --primary-soft: #E8F1FC;
    --dark: #101828;
    --muted: #667085;
    --white: #FFFFFF;
    --border: #E5E7EB;
}

/* prevent scroll when sidebar open */
body.menu-open {
    overflow: hidden;
}

/* =========================
   NAVBAR
========================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(14px);
    background: rgba(255,255,255,0.85);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255,255,255,0.96);
    box-shadow: 0 12px 28px rgba(16,24,40,0.08);
}

.nav-inner {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* =========================
   LOGO
========================= */

.brand {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 50px;
    object-fit: contain;
}

/* =========================
   DESKTOP NAV
========================= */

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark);
    font-weight: 800;
    font-size: 15px;
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    transition: 0.25s ease;
}

.nav-links a i {
    color: var(--primary);
    font-size: 16px;
}

.nav-links a:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

/* =========================
   ACTION BUTTONS
========================= */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-actions .btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 14px;
    text-decoration: none;
    transition: 0.25s ease;
}

.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: 0 10px 25px rgba(21,101,192,0.25);
}

.btn-outline {
    background: white;
    color: var(--primary);
    border: 1px solid #BBD7F4;
}

.btn-primary:hover,
.btn-outline:hover {
    transform: translateY(-2px);
}

/* =========================
   MOBILE BUTTON
========================= */

.mobile-menu-btn {
    display: none;
    border: 0;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    font-size: 22px;
    cursor: pointer;
}

/* =========================
   SIDEBAR OVERLAY
========================= */

.sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(16,24,40,0.55);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* =========================
   MOBILE SIDEBAR (FIXED)
========================= */

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    z-index: 1001;
    width: min(330px, 85%);
    height: 100vh;
    background: #ffffff;
    box-shadow: -20px 0 50px rgba(0,0,0,0.2);
    padding: 20px;
    transition: right 0.35s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-sidebar.show {
    right: 0;
}

/* =========================
   SIDEBAR HEADER
========================= */

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 18px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.sidebar-brand img {
    height: 42px;
}

.sidebar-close {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 18px;
    cursor: pointer;
}

/* =========================
   SIDEBAR LINKS
========================= */

.sidebar-links {
    display: grid;
    gap: 8px;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 800;
    transition: 0.25s ease;
}

.sidebar-links a i {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 16px;
}

.sidebar-links a:hover {
    background: #f4f8ff;
    color: var(--primary);
    transform: translateX(3px);
}

/* =========================
   SIDEBAR ACTION BUTTONS
========================= */

.sidebar-actions {
    margin-top: auto;
    display: grid;
    gap: 10px;
    padding-top: 20px;
}

.sidebar-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 14px;
    border-radius: 14px;
    font-weight: 900;
    text-decoration: none;
    transition: 0.25s ease;
}

.sidebar-btn.outline {
    border: 1px solid #BBD7F4;
    color: var(--primary);
    background: white;
}

.sidebar-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 10px 25px rgba(21,101,192,0.25);
}

.sidebar-btn:hover {
    transform: translateY(-2px);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 600px) {
    .nav-inner {
        height: 72px;
    }

    .brand-logo {
        height: 42px;
    }

    .mobile-sidebar {
        width: 85%;
    }
}