/*
 * Gaya dropdown notifikasi di topbar.
 *
 * Diekstrak dari blok <style> pada
 * ticketing-v1/resources/views/layouts/head-css.blade.php. Di Laravel berkas
 * itu dimuat di setiap halaman, jadi aturannya tetap global di sini.
 *
 * Nilai yang di view lama ditulis sebagai style inline pada elemen header dan
 * footer dropdown dipindahkan ke kelas .notif-list-* di bawah, supaya markup
 * React-nya tetap bersih tanpa mengubah tampilannya.
 */

/* Lebar dropdown responsif */
.dropdown-menu.notif-list {
    max-width: 100%;
    min-width: 420px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Dot notifikasi */
.unread-dot {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 8px;
    height: 8px;
    background-color: red;
    border-radius: 50%;
    z-index: 1;
}

/* Hindari overflow teks */
.notification-item {
    display: block;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.notification-item .flex-grow-1 {
    min-width: 0;
}

/* Style konten notifikasi */
.notification-item h6 {
    margin-bottom: 0.25rem;
    font-size: 14px;
}

.notification-item p {
    margin-bottom: 0;
    font-size: 12px;
}

.avatar-xs {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.avatar-title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 18px;
    /* Sesuaikan agar ikon tidak gepeng */
    line-height: 1;
    border-radius: 50%;
}

/* Header dropdown */
.notif-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 14px;
    border-bottom: 1px solid #f0f0f0;
}

.notif-list-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.2px;
}

.notif-list-refresh {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    border: 1.5px solid #d0d0d0;
    background: transparent;
    color: #555;
    font-size: 14px;
    transition: all 0.2s;
}

.notif-list-refresh:hover:not(:disabled) {
    border-color: #555;
    color: #1a1a1a;
}

/* Daftar notifikasi */
.notif-list-body {
    max-height: 300px;
    overflow-y: auto;
}

/* Footer dropdown */
.notif-list-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-top: 1px solid #f0f0f0;
    background: #fff;
}

.notif-list-footer .form-check-label {
    font-size: 13px;
    color: #555;
    cursor: pointer;
    margin: 0;
}

.notif-list-footer .form-check-input {
    cursor: pointer;
}

.notif-list-read-all {
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: #2e7d32;
}

.notif-list-read-all:disabled {
    color: #9e9e9e;
}

/* Responsif mobile */
@media (max-width: 576px) {
    .dropdown-menu.notif-list {
        width: 90vw;
        min-width: 0;
    }
}
