/* ======================================================================
   HEADER KANAN JSP (WEB-INF/baru/include/navbar.jsp) — ANTI ZIG-ZAG & KONTRAS TAJAM
   ----------------------------------------------------------------------
   Dipakai bersama oleh kerangka WEB-INF/baru (tema Falcon + base-theme.css + kantin-theme.css).

   1) TINGGI & GARIS TENGAH SERAGAM (40px desktop / 36px mobile):
      Bendera bahasa (#ais-lang-switcher-navbar > a), tombol tema
      (.theme-control-toggle), lonceng (#navbarDropdownNotification),
      dan kapsul profil (#navbarDropdownUser .user-profile-wrapper)
      disamakan tingginya dan disejajarkan tepat pada satu garis tengah
      horizontal tanpa efek zig-zag (mengalahkan height: 45px !important di base-theme.css).
      CATATAN: `display` pada `.nav-item` TIDAK dipaksa supaya kelas
      responsif Bootstrap `d-none d-sm-block` pada tombol tema tetap jalan.
   2) KESERAGAMAN LATAR KAPSUL PROFIL (TIDAK MENCOLOK) & KONTRAS TEKS TAJAM:
      - Pada header berlatar gelap/berwarna `.navbar-mini-hero`, kapsul profil
        `#navbarDropdownUser .user-profile-wrapper` memakai latar kaca semi-transparan
        `rgba(255, 255, 255, 0.16)` dan border `rgba(255, 255, 255, 0.28)` yang 100%
        seragam dengan kapsul bendera bahasa dan tombol lonceng di sebelahnya (tidak
        memakai blok putih solid yang mencolok), sedangkan teks nama dan peran dikunci
        terang kontras (`var(--theme-text-on-primary, #ffffff)`) dengan bayangan halus.
      - Pada navbar berlatar terang standar (tanpa `.navbar-mini-hero`), kapsul profil
        memakai tint lembut `rgba(15, 23, 42, 0.05)` yang 100% seragam dengan tombol
        bahasa/lonceng dan mengunci teks gelap tajam `#0f172a` / `#475569`.
   3) LINGKARAN INDIKATOR BAWAAN FALCON DIMATIKAN:
      `.notification-indicator::before` bawaan Falcon dimatikan karena
      navbar memakai badge angka `#notifUnreadBadge` yang hanya tampil saat
      ada notifikasi belum dibaca.
   ====================================================================== */
html body .navbar-nav-icons,
html body .navbar-mini-hero .navbar-nav-icons,
html body .navbar-mini-hero .navbar-nav-icons.gap-2,
html body .navbar-mini-hero .navbar-nav-icons.gap-sm-3 {
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
}

html body .navbar-nav-icons > .nav-item {
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
}

html body .navbar-nav-icons > .nav-item > a,
html body .navbar-nav-icons > .nav-item > .theme-control-toggle,
html body .navbar-mini-hero .navbar-nav-icons > .nav-item > a.nav-link.notification-indicator {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
}

html body #ais-lang-switcher-navbar > a {
    height: 40px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    background: rgba(15, 23, 42, 0.05) !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    gap: 6px !important;
    transition: background 0.16s ease, border-color 0.16s ease;
}

html body #ais-lang-switcher-navbar > a:hover {
    background: rgba(37, 99, 235, 0.08) !important;
    border-color: rgba(37, 99, 235, 0.28) !important;
}

html body .navbar-mini-hero #ais-lang-switcher-navbar > a {
    background: rgba(255, 255, 255, 0.16) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
}

html body .navbar-mini-hero #ais-lang-switcher-navbar > a > span {
    color: #ffffff !important;
}

html body .navbar-mini-hero #ais-lang-switcher-navbar > a:hover {
    background: rgba(255, 255, 255, 0.26) !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
}

html body .navbar-nav-icons > .nav-item > .theme-control-toggle,
html body .navbar-nav-icons > .nav-item > a.notification-indicator,
html body .navbar-mini-hero .navbar-nav-icons > .nav-item > a.nav-link.notification-indicator {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    background: rgba(15, 23, 42, 0.05) !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    position: relative !important;
    transition: background 0.16s ease, border-color 0.16s ease;
}

html body .navbar-mini-hero .navbar-nav-icons > .nav-item > a.nav-link.notification-indicator {
    background: rgba(255, 255, 255, 0.16) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    color: #ffffff !important;
}

html body .navbar-nav-icons > .nav-item > .theme-control-toggle:hover,
html body .navbar-nav-icons > .nav-item > a.notification-indicator:hover {
    background: rgba(37, 99, 235, 0.08) !important;
    border-color: rgba(37, 99, 235, 0.28) !important;
}

html body .navbar-mini-hero .navbar-nav-icons > .nav-item > a.nav-link.notification-indicator:hover {
    background: rgba(255, 255, 255, 0.28) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

html body .navbar-nav-icons > .nav-item > a#navbarDropdownUser {
    padding: 0 !important;
    margin: 0 !important;
}

html body .navbar-nav-icons .user-profile-wrapper,
html body #navbarDropdownUser .user-profile-wrapper {
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    margin: 0 !important;
    padding: 3px 12px 3px 4px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    background: rgba(15, 23, 42, 0.05) !important;
    background-color: rgba(15, 23, 42, 0.05) !important;
    box-shadow: none !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    text-shadow: none !important;
    align-items: center !important;
    box-sizing: border-box !important;
    transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease !important;
}

html body #navbarDropdownUser .user-profile-wrapper:hover {
    background: rgba(37, 99, 235, 0.08) !important;
    background-color: rgba(37, 99, 235, 0.08) !important;
    border-color: rgba(37, 99, 235, 0.28) !important;
    transform: none !important;
}

html body .navbar-nav-icons .user-profile-wrapper .user-profile-name,
html body #navbarDropdownUser .user-profile-wrapper .user-profile-name {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    text-shadow: none !important;
    font-weight: 700 !important;
    opacity: 1 !important;
}

html body .navbar-nav-icons .user-profile-wrapper .user-profile-role,
html body #navbarDropdownUser .user-profile-wrapper .user-profile-role {
    color: #475569 !important;
    -webkit-text-fill-color: #475569 !important;
    text-shadow: none !important;
    font-weight: 600 !important;
    opacity: 1 !important;
}

html body .navbar-nav-icons .user-profile-wrapper svg,
html body .navbar-nav-icons .user-profile-wrapper i,
html body #navbarDropdownUser .user-profile-wrapper svg,
html body #navbarDropdownUser .user-profile-wrapper i {
    color: #475569 !important;
    fill: #475569 !important;
    -webkit-text-fill-color: #475569 !important;
    filter: none !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

/* Header gelap/gradasi (.navbar-mini-hero): latar kaca seragam dengan bendera & lonceng + teks putih kontras */
html body .navbar-mini-hero #navbarDropdownUser .user-profile-wrapper {
    background: rgba(255, 255, 255, 0.16) !important;
    background-color: rgba(255, 255, 255, 0.16) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12) !important;
    color: var(--theme-text-on-primary, #ffffff) !important;
    -webkit-text-fill-color: var(--theme-text-on-primary, #ffffff) !important;
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.28) !important;
}

html body .navbar-mini-hero #navbarDropdownUser .user-profile-wrapper:hover {
    background: rgba(255, 255, 255, 0.26) !important;
    background-color: rgba(255, 255, 255, 0.26) !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18) !important;
    transform: none !important;
}

html body .navbar-mini-hero #navbarDropdownUser .user-profile-wrapper .user-profile-name {
    color: var(--theme-text-on-primary, #ffffff) !important;
    -webkit-text-fill-color: var(--theme-text-on-primary, #ffffff) !important;
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.32) !important;
    font-weight: 700 !important;
    opacity: 1 !important;
}

html body .navbar-mini-hero #navbarDropdownUser .user-profile-wrapper .user-profile-role {
    color: var(--theme-text-on-primary, #ffffff) !important;
    -webkit-text-fill-color: var(--theme-text-on-primary, #ffffff) !important;
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.28) !important;
    font-weight: 600 !important;
    opacity: 0.9 !important;
}

html body .navbar-mini-hero #navbarDropdownUser .user-profile-wrapper svg,
html body .navbar-mini-hero #navbarDropdownUser .user-profile-wrapper i {
    color: var(--theme-text-on-primary, #ffffff) !important;
    fill: var(--theme-text-on-primary, #ffffff) !important;
    -webkit-text-fill-color: var(--theme-text-on-primary, #ffffff) !important;
    filter: none !important;
    text-shadow: none !important;
    opacity: 0.92 !important;
}

html body .navbar-nav-icons .user-profile-wrapper .avatar,
html body #navbarDropdownUser .user-profile-wrapper .avatar {
    width: 32px !important;
    height: 32px !important;
    flex-shrink: 0 !important;
}

html body .navbar-nav-icons .user-profile-wrapper .avatar img,
html body #navbarDropdownUser .user-profile-wrapper .avatar img {
    width: 32px !important;
    height: 32px !important;
}

/* Badge angka menempel rapi di pojok kanan-atas lingkaran lonceng */
.navbar-nav-icons .notification-indicator .indicator-badge {
    top: -4px !important;
    right: -4px !important;
    left: auto !important;
}

/* Indikator bawaan theme dimatikan (redundan + selalu tampil) */
.navbar-nav-icons .notification-indicator::before {
    display: none !important;
    content: none !important;
}

/* Badge angka: benar-benar hilang saat tidak ada yang belum dibaca */
.navbar-nav-icons .indicator-badge.d-none {
    display: none !important;
}

@media (max-width: 768px) {
    html body .navbar-nav-icons,
    html body .navbar-mini-hero .navbar-nav-icons {
        gap: 6px !important;
    }

    html body .navbar-nav-icons > .nav-item,
    html body .navbar-nav-icons > .nav-item > a,
    html body .navbar-nav-icons > .nav-item > .theme-control-toggle,
    html body .navbar-mini-hero .navbar-nav-icons > .nav-item > a.nav-link.notification-indicator,
    html body .navbar-nav-icons .user-profile-wrapper,
    html body #navbarDropdownUser .user-profile-wrapper {
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
    }

    html body #ais-lang-switcher-navbar > a {
        padding: 0 9px !important;
    }

    html body .navbar-nav-icons > .nav-item > .theme-control-toggle,
    html body .navbar-nav-icons > .nav-item > a.notification-indicator,
    html body .navbar-mini-hero .navbar-nav-icons > .nav-item > a.nav-link.notification-indicator {
        width: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
    }

    html body .navbar-nav-icons .user-profile-wrapper,
    html body #navbarDropdownUser .user-profile-wrapper {
        padding: 2px !important;
    }

    html body .navbar-nav-icons .user-profile-wrapper .avatar,
    html body .navbar-nav-icons .user-profile-wrapper .avatar img,
    html body #navbarDropdownUser .user-profile-wrapper .avatar,
    html body #navbarDropdownUser .user-profile-wrapper .avatar img {
        width: 30px !important;
        height: 30px !important;
    }
}
