/* Explain: Styles for the admin notification panel and items. */
/* Pusat notifikasi panel petugas desa */
.notif-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.6rem);
    z-index: 85;
    display: flex;
    flex-direction: column;
    width: min(23rem, calc(100vw - 2.5rem));
    max-height: min(26rem, calc(100vh - 9rem));
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.notif-panel.hidden {
    display: none;
}

.notif-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.notif-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    overflow-y: auto;
    padding: 0.45rem;
}

.notif-empty {
    padding: 1.6rem 1rem;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.6;
    color: var(--text-muted);
}

.notif-item {
    display: block;
    width: 100%;
    border: 1px solid transparent;
    border-radius: 0.95rem;
    background: transparent;
    padding: 0.7rem 0.8rem;
    text-align: left;
    transition: background 300ms ease, border-color 300ms ease;
}

.notif-item:hover {
    background: color-mix(in srgb, var(--primary-color) 8%, transparent);
}

.notif-item.is-unread {
    border-color: color-mix(in srgb, var(--primary-color) 32%, transparent);
    background: color-mix(in srgb, var(--primary-color) 8%, var(--surface-color));
}

.notif-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.notif-item-title {
    font-size: 0.9rem;
    font-weight: 900;
    color: var(--charcoal-color);
}

.notif-item-msg {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.notif-item-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.35rem;
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--text-muted);
}

.notif-dot {
    display: inline-flex;
    height: 0.5rem;
    width: 0.5rem;
    flex-shrink: 0;
    border-radius: 999px;
    background: var(--accent-color);
}