/* Halaman Notifikasi: daftar pengumuman dengan tombol X */
.notif-count {
    flex: none;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--blue-soft);
    color: var(--blue-deep);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.notif-state {
    margin: 4px 2px 12px;
}

.notif-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.notif-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 34px;
    align-items: start;
    gap: 14px;
    padding: 16px 16px 16px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--blue);
    border-radius: var(--r);
    box-shadow: var(--shadow-xs);
    animation: notif-enter 260ms var(--ease) both;
    transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}

.notif-item.is-leaving {
    opacity: 0;
    transform: translateX(14px);
}

.notif-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--blue-soft);
    color: var(--blue-deep);
}

.notif-body {
    min-width: 0;
}

.notif-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
}

.notif-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
}

.notif-meta time {
    font-size: 12px;
    color: var(--muted);
}

.notif-text {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted-2);
    overflow-wrap: anywhere;
}

.notif-close {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
}

.notif-close:hover {
    background: var(--soft);
    border-color: var(--line);
    color: var(--ink);
}

.notif-close[disabled] {
    opacity: .5;
    cursor: wait;
}

@keyframes notif-enter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 520px) {
    .notif-item {
        grid-template-columns: 36px minmax(0, 1fr) 32px;
        gap: 11px;
        padding: 14px 10px 14px 14px;
    }
    .notif-icon {
        width: 36px;
        height: 36px;
    }
    .notif-count {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .notif-item,
    .notif-item.is-leaving {
        animation: none;
        transition: none;
    }
}
