/* ════════════════════════════════════════════════════════════
 * GBI Slawi — notifikasi.css
 * Dropdown notifikasi di navbar
 * ════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════
   NAVBAR NOTIFIKASI
   Tambahkan ke bagian bawah style.css
   ════════════════════════════════════════════════════════════ */

/* ── Wrapper posisi relatif untuk dropdown ───────────────── */
.nav-notif-wrap {
    position: relative;
}

/* ── Tombol lonceng ──────────────────────────────────────── */
.nav-notif-btn {
    position: relative;
    background: none;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text2);
    font-size: 15px;
    cursor: pointer;
    padding: 4px 10px;
    transition: all .2s;
    font-family: inherit;
    line-height: 1;
}

.nav-notif-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ── Badge angka merah di pojok lonceng ──────────────────── */
.nav-notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e53e3e;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
    pointer-events: none;
}

/* ── Dropdown panel ──────────────────────────────────────── */
.nav-notif-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
    z-index: 999;
    overflow: hidden;
}

.nav-notif-dropdown.open {
    display: block;
}

/* ── Header dropdown ─────────────────────────────────────── */
.nav-notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
    color: var(--text1);
}

.nav-notif-read-all {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 11px;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

.nav-notif-read-all:hover {
    text-decoration: underline;
}

/* ── Daftar item notifikasi ──────────────────────────────── */
.nav-notif-list {
    max-height: 340px;
    overflow-y: auto;
}

/* ── Satu item notifikasi ────────────────────────────────── */
.nav-notif-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background .15s;
}

.nav-notif-item:last-child {
    border-bottom: none;
}

.nav-notif-item:hover {
    background: var(--bg2);
}

/* Belum dibaca → background lebih terang */
.nav-notif-item.unread {
    background: color-mix(in srgb, var(--gold) 8%, var(--card));
}

.nav-notif-item.unread:hover {
    background: color-mix(in srgb, var(--gold) 14%, var(--card));
}

/* ── Ikon jenis notifikasi ───────────────────────────────── */
.nav-notif-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── Konten teks ─────────────────────────────────────────── */
.nav-notif-content {
    flex: 1;
    min-width: 0;
}

.nav-notif-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-notif-desc {
    font-size: 12px;
    color: var(--text3);
    margin-top: 2px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-notif-time {
    font-size: 11px;
    color: var(--text3);
    margin-top: 4px;
}

/* ── Dot unread ──────────────────────────────────────────── */
.nav-notif-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
    margin-top: 6px;
}

/* ── State kosong ────────────────────────────────────────── */
.nav-notif-empty {
    text-align: center;
    color: var(--text3);
    font-size: 13px;
    padding: 24px 16px;
    margin: 0;
}

/* ════════════════════════════════════════════════════════════
   NAVBAR NOTIFIKASI
   Tambahkan ke bagian bawah style.css
   ════════════════════════════════════════════════════════════ */

/* ── Wrapper posisi relatif untuk dropdown ───────────────── */
.nav-notif-wrap {
    position: relative;
}

/* ── Tombol lonceng ──────────────────────────────────────── */
.nav-notif-btn {
    position: relative;
    background: none;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text2);
    font-size: 15px;
    cursor: pointer;
    padding: 4px 10px;
    transition: all .2s;
    font-family: inherit;
    line-height: 1;
}

.nav-notif-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ── Badge angka merah di pojok lonceng ──────────────────── */
.nav-notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e53e3e;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
    pointer-events: none;
}

/* ── Dropdown panel ──────────────────────────────────────── */
.nav-notif-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
    z-index: 999;
    overflow: hidden;
}

.nav-notif-dropdown.open {
    display: block;
}

/* ── Header dropdown ─────────────────────────────────────── */
.nav-notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
    color: var(--text1);
}

.nav-notif-read-all {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 11px;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

.nav-notif-read-all:hover {
    text-decoration: underline;
}

/* ── Daftar item notifikasi ──────────────────────────────── */
.nav-notif-list {
    max-height: 340px;
    overflow-y: auto;
}

/* ── Satu item notifikasi ────────────────────────────────── */
.nav-notif-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background .15s;
}

.nav-notif-item:last-child {
    border-bottom: none;
}

.nav-notif-item:hover {
    background: var(--bg2);
}

/* Belum dibaca → background lebih terang */
.nav-notif-item.unread {
    background: color-mix(in srgb, var(--gold) 8%, var(--card));
}

.nav-notif-item.unread:hover {
    background: color-mix(in srgb, var(--gold) 14%, var(--card));
}

/* ── Ikon jenis notifikasi ───────────────────────────────── */
.nav-notif-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── Konten teks ─────────────────────────────────────────── */
.nav-notif-content {
    flex: 1;
    min-width: 0;
}

.nav-notif-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-notif-desc {
    font-size: 12px;
    color: var(--text3);
    margin-top: 2px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-notif-time {
    font-size: 11px;
    color: var(--text3);
    margin-top: 4px;
}

/* ── Dot unread ──────────────────────────────────────────── */
.nav-notif-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
    margin-top: 6px;
}

/* ── State kosong ────────────────────────────────────────── */
.nav-notif-empty {
    text-align: center;
    color: var(--text3);
    font-size: 13px;
    padding: 24px 16px;
    margin: 0;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIF MOBILE — NOTIFIKASI
   ════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

    /* Dropdown jadi full-width dari kanan layar */
    .nav-notif-dropdown {
        position: fixed;
        top: 60px;
        /* tepat di bawah navbar */
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 0 0 16px 16px;
        border-left: none;
        border-right: none;
        border-top: none;
        max-height: 70vh;
        overflow-y: auto;
        box-shadow: 0 8px 32px rgba(0, 0, 0, .25);
    }

    /* Daftar item tidak perlu scroll sendiri karena
       sudah ditangani oleh dropdown */
    .nav-notif-list {
        max-height: none;
    }

    /* Item sedikit lebih besar agar mudah diklik di layar sentuh */
    .nav-notif-item {
        padding: 14px 16px;
    }

    .nav-notif-icon {
        font-size: 20px;
    }

    .nav-notif-title {
        font-size: 14px;
    }

    .nav-notif-desc {
        font-size: 13px;
    }

    .nav-notif-time {
        font-size: 12px;
    }
}

@media (max-width: 480px) {

    /* Badge angka sedikit lebih besar di layar kecil */
    .nav-notif-badge {
        min-width: 18px;
        height: 18px;
        font-size: 11px;
        top: -5px;
        right: -5px;
    }

    /* Header dropdown lebih compact */
    .nav-notif-header {
        padding: 10px 14px;
        font-size: 12px;
    }

    .nav-notif-read-all {
        font-size: 11px;
    }

    /* Item padding dikurangi sedikit */
    .nav-notif-item {
        padding: 12px 14px;
        gap: 8px;
    }
}

/* ════════════════════════════════════════════════════════════
   NAVBAR NOTIFIKASI
   Tambahkan ke bagian bawah style.css
   ════════════════════════════════════════════════════════════ */

/* ── Wrapper posisi relatif untuk dropdown ───────────────── */
.nav-notif-wrap {
    position: relative;
}

/* ── Tombol lonceng ──────────────────────────────────────── */
.nav-notif-btn {
    position: relative;
    background: none;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text2);
    font-size: 15px;
    cursor: pointer;
    padding: 4px 10px;
    transition: all .2s;
    font-family: inherit;
    line-height: 1;
}

.nav-notif-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ── Badge angka merah di pojok lonceng ──────────────────── */
.nav-notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e53e3e;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
    pointer-events: none;
}

/* ── Dropdown panel ──────────────────────────────────────── */
.nav-notif-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
    z-index: 999;
    overflow: hidden;
}

.nav-notif-dropdown.open {
    display: block;
}

/* ── Header dropdown ─────────────────────────────────────── */
.nav-notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
    color: var(--text1);
}

.nav-notif-read-all {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 11px;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

.nav-notif-read-all:hover {
    text-decoration: underline;
}

/* ── Daftar item notifikasi ──────────────────────────────── */
.nav-notif-list {
    max-height: 340px;
    overflow-y: auto;
}

/* ── Satu item notifikasi ────────────────────────────────── */
.nav-notif-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background .15s;
}

.nav-notif-item:last-child {
    border-bottom: none;
}

.nav-notif-item:hover {
    background: var(--bg2);
}

/* Belum dibaca → background lebih terang */
.nav-notif-item.unread {
    background: color-mix(in srgb, var(--gold) 8%, var(--card));
}

.nav-notif-item.unread:hover {
    background: color-mix(in srgb, var(--gold) 14%, var(--card));
}

/* ── Ikon jenis notifikasi ───────────────────────────────── */
.nav-notif-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── Konten teks ─────────────────────────────────────────── */
.nav-notif-content {
    flex: 1;
    min-width: 0;
}

.nav-notif-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-notif-desc {
    font-size: 12px;
    color: var(--text3);
    margin-top: 2px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-notif-time {
    font-size: 11px;
    color: var(--text3);
    margin-top: 4px;
}

/* ── Dot unread ──────────────────────────────────────────── */
.nav-notif-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
    margin-top: 6px;
}

/* ── State kosong ────────────────────────────────────────── */
.nav-notif-empty {
    text-align: center;
    color: var(--text3);
    font-size: 13px;
    padding: 24px 16px;
    margin: 0;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIF MOBILE — NOTIFIKASI
   ════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

    /* Item sedikit lebih besar agar mudah diklik di layar sentuh */
    .nav-notif-item {
        padding: 14px 16px;
    }

    .nav-notif-icon {
        font-size: 20px;
    }

    .nav-notif-title {
        font-size: 14px;
    }

    .nav-notif-desc {
        font-size: 13px;
    }

    .nav-notif-time {
        font-size: 12px;
    }
}

@media (max-width: 480px) {

    /* Badge angka sedikit lebih besar di layar kecil */
    .nav-notif-badge {
        min-width: 18px;
        height: 18px;
        font-size: 11px;
        top: -5px;
        right: -5px;
    }

    /* Header dropdown lebih compact */
    .nav-notif-header {
        padding: 10px 14px;
        font-size: 12px;
    }

    .nav-notif-read-all {
        font-size: 11px;
    }

    /* Item padding dikurangi sedikit */
    .nav-notif-item {
        padding: 12px 14px;
        gap: 8px;
    }
}

/* ════════════════════════════════════════════════════════════
   NAVBAR NOTIFIKASI
   Tambahkan ke bagian bawah style.css
   ════════════════════════════════════════════════════════════ */

/* ── Wrapper posisi relatif untuk dropdown ───────────────── */
.nav-notif-wrap {
    position: relative;
}

/* ── Tombol lonceng ──────────────────────────────────────── */
.nav-notif-btn {
    position: relative;
    background: none;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text2);
    font-size: 15px;
    cursor: pointer;
    padding: 4px 10px;
    transition: all .2s;
    font-family: inherit;
    line-height: 1;
}

.nav-notif-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ── Badge angka merah di pojok lonceng ──────────────────── */
.nav-notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e53e3e;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
    pointer-events: none;
}

/* ── Dropdown panel ──────────────────────────────────────── */
.nav-notif-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
    z-index: 999;
    overflow: hidden;
}

.nav-notif-dropdown.open {
    display: block;
}

/* ── Header dropdown ─────────────────────────────────────── */
.nav-notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
    color: var(--text1);
}

.nav-notif-read-all {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 11px;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

.nav-notif-read-all:hover {
    text-decoration: underline;
}

/* ── Daftar item notifikasi ──────────────────────────────── */
.nav-notif-list {
    max-height: 340px;
    overflow-y: auto;
}

/* ── Satu item notifikasi ────────────────────────────────── */
.nav-notif-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background .15s;
}

.nav-notif-item:last-child {
    border-bottom: none;
}

.nav-notif-item:hover {
    background: var(--bg2);
}

/* Belum dibaca → background lebih terang */
.nav-notif-item.unread {
    background: color-mix(in srgb, var(--gold) 8%, var(--card));
}

.nav-notif-item.unread:hover {
    background: color-mix(in srgb, var(--gold) 14%, var(--card));
}

/* ── Ikon jenis notifikasi ───────────────────────────────── */
.nav-notif-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── Konten teks ─────────────────────────────────────────── */
.nav-notif-content {
    flex: 1;
    min-width: 0;
}

.nav-notif-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-notif-desc {
    font-size: 12px;
    color: var(--text3);
    margin-top: 2px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-notif-time {
    font-size: 11px;
    color: var(--text3);
    margin-top: 4px;
}

/* ── Dot unread ──────────────────────────────────────────── */
.nav-notif-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
    margin-top: 6px;
}

/* ── State kosong ────────────────────────────────────────── */
.nav-notif-empty {
    text-align: center;
    color: var(--text3);
    font-size: 13px;
    padding: 24px 16px;
    margin: 0;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIF MOBILE — NOTIFIKASI
   ════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

    /* Dropdown tidak boleh terpotong di tepi layar —
       pasang ke kanan layar dengan right negatif jika perlu */
    .nav-notif-wrap {
        position: static;
    }

    .nav-notif-dropdown {
        position: fixed;
        top: 65px;
        /* tinggi navbar */
        right: 12px;
        left: 12px;
        width: auto;
        max-height: 60vh;
        overflow-y: auto;
        border-radius: 14px;
    }

    /* Sembunyikan nama user agar navbar tidak penuh */
    .nav-user-name {
        display: none;
    }

    /* Item lebih besar agar mudah disentuh */
    .nav-notif-item {
        padding: 14px 16px;
    }

    .nav-notif-icon {
        font-size: 20px;
    }

    .nav-notif-title {
        font-size: 14px;
    }

    .nav-notif-desc {
        font-size: 13px;
    }

    .nav-notif-time {
        font-size: 12px;
    }
}

@media (max-width: 480px) {

    /* Dropdown full width dengan margin kecil di layar sangat kecil */
    .nav-notif-dropdown {
        right: 8px;
        left: 8px;
        max-height: 55vh;
    }

    /* Badge sedikit lebih besar */
    .nav-notif-badge {
        min-width: 18px;
        height: 18px;
        font-size: 11px;
        top: -5px;
        right: -5px;
    }

    /* Header compact */
    .nav-notif-header {
        padding: 10px 14px;
    }

    .nav-notif-item {
        padding: 12px 14px;
        gap: 8px;
    }
}

@media (max-width: 480px) {

    /* Badge angka sedikit lebih besar di layar kecil */
    .nav-notif-badge {
        min-width: 18px;
        height: 18px;
        font-size: 11px;
        top: -5px;
        right: -5px;
    }

    /* Header dropdown lebih compact */
    .nav-notif-header {
        padding: 10px 14px;
        font-size: 12px;
    }

    .nav-notif-read-all {
        font-size: 11px;
    }

    /* Item padding dikurangi sedikit */
    .nav-notif-item {
        padding: 12px 14px;
        gap: 8px;
    }
}

/* ════════════════════════════════════════════════════════════
   NAVBAR NOTIFIKASI
   Tambahkan ke bagian bawah style.css
   ════════════════════════════════════════════════════════════ */

/* ── Wrapper posisi relatif untuk dropdown ───────────────── */
.nav-notif-wrap {
    position: relative;
}

/* ── Tombol lonceng ──────────────────────────────────────── */
.nav-notif-btn {
    position: relative;
    background: none;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text2);
    font-size: 15px;
    cursor: pointer;
    padding: 4px 10px;
    transition: all .2s;
    font-family: inherit;
    line-height: 1;
}

.nav-notif-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ── Badge angka merah di pojok lonceng ──────────────────── */
.nav-notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e53e3e;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
    pointer-events: none;
}

/* ── Dropdown panel ──────────────────────────────────────── */
.nav-notif-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: #171717;
    background-color: #171717;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
    z-index: 999;
    overflow: hidden;
}

.nav-notif-dropdown.open {
    display: block;
}

/* ── Header dropdown ─────────────────────────────────────── */
.nav-notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
    color: var(--text1);
}

.nav-notif-read-all {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 11px;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

.nav-notif-read-all:hover {
    text-decoration: underline;
}

/* ── Daftar item notifikasi ──────────────────────────────── */
.nav-notif-list {
    max-height: 340px;
    overflow-y: auto;
}

/* ── Satu item notifikasi ────────────────────────────────── */
.nav-notif-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background .15s;
}

.nav-notif-item:last-child {
    border-bottom: none;
}

.nav-notif-item:hover {
    background: transparent;
}

/* Belum dibaca → background lebih terang */
.nav-notif-item.unread {
    background: transparent;
    /* diganti oleh theme override di bawah */
}

.nav-notif-item.unread:hover {
    background: transparent;
    /* diganti oleh theme override di bawah */
}

/* ── Ikon jenis notifikasi ───────────────────────────────── */
.nav-notif-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── Konten teks ─────────────────────────────────────────── */
.nav-notif-content {
    flex: 1;
    min-width: 0;
}

.nav-notif-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-notif-desc {
    font-size: 12px;
    color: var(--text3);
    margin-top: 2px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-notif-time {
    font-size: 11px;
    color: var(--text3);
    margin-top: 4px;
}

/* ── Dot unread ──────────────────────────────────────────── */
.nav-notif-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
    margin-top: 6px;
}

/* ── Background solid per tema ───────────────────────────── */
[data-theme="dark"] .nav-notif-dropdown {
    background: #171717;
}

[data-theme="light"] .nav-notif-dropdown {
    background: #ffffff;
}

/* ── Item hover per tema ─────────────────────────────────── */
[data-theme="dark"] .nav-notif-item:hover {
    background: #1f1f1f;
}

[data-theme="light"] .nav-notif-item:hover {
    background: #f5f2ed;
}

[data-theme="dark"] .nav-notif-item.unread {
    background: #1c1a13;
}

[data-theme="light"] .nav-notif-item.unread {
    background: #fdf8e8;
}

.nav-notif-empty {
    text-align: center;
    color: var(--text3);
    font-size: 13px;
    padding: 24px 16px;
    margin: 0;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIF MOBILE — NOTIFIKASI
   ════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

    /* Dropdown tidak boleh terpotong di tepi layar —
       pasang ke kanan layar dengan right negatif jika perlu */
    .nav-notif-wrap {
        position: static;
    }

    .nav-notif-dropdown {
        position: fixed;
        top: 65px;
        /* tinggi navbar */
        right: 12px;
        left: 12px;
        width: auto;
        max-height: 60vh;
        overflow-y: auto;
        border-radius: 14px;
    }

    /* Sembunyikan nama user agar navbar tidak penuh */
    .nav-user-name {
        display: none;
    }

    /* Item lebih besar agar mudah disentuh */
    .nav-notif-item {
        padding: 14px 16px;
    }

    .nav-notif-icon {
        font-size: 20px;
    }

    .nav-notif-title {
        font-size: 14px;
    }

    .nav-notif-desc {
        font-size: 13px;
    }

    .nav-notif-time {
        font-size: 12px;
    }
}

@media (max-width: 480px) {

    /* Dropdown full width dengan margin kecil di layar sangat kecil */
    .nav-notif-dropdown {
        right: 8px;
        left: 8px;
        max-height: 55vh;
    }

    /* Badge sedikit lebih besar */
    .nav-notif-badge {
        min-width: 18px;
        height: 18px;
        font-size: 11px;
        top: -5px;
        right: -5px;
    }

    /* Header compact */
    .nav-notif-header {
        padding: 10px 14px;
    }

    .nav-notif-item {
        padding: 12px 14px;
        gap: 8px;
    }
}

@media (max-width: 480px) {

    /* Badge angka sedikit lebih besar di layar kecil */
    .nav-notif-badge {
        min-width: 18px;
        height: 18px;
        font-size: 11px;
        top: -5px;
        right: -5px;
    }

    /* Header dropdown lebih compact */
    .nav-notif-header {
        padding: 10px 14px;
        font-size: 12px;
    }

    .nav-notif-read-all {
        font-size: 11px;
    }

    /* Item padding dikurangi sedikit */
    .nav-notif-item {
        padding: 12px 14px;
        gap: 8px;
    }
}

