/* ── Notification component — shared by the dashboard bell, the list
   shortcode, and the counter shortcode. One stylesheet, one look. ───── */

.rp-notif-dropdown-wrap { position: relative; display: inline-flex; align-items: center; }

.rp-notif-bell-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%; border: none; background: transparent;
    color: var(--rp-text, #111827); cursor: pointer; transition: background .15s;
}
.rp-notif-bell-btn:hover { background: rgba(0,0,0,.06); }
.rp-notif-bell-btn:focus-visible { outline: 2px solid var(--rp-primary, #1A3FD4); outline-offset: 2px; }

.rp-notif-badge {
    position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 999px; background: #DC2626; color: #fff; font-size: 10px; font-weight: 700;
    line-height: 16px; text-align: center; box-shadow: 0 0 0 2px var(--rp-bg, #fff);
}

.rp-notif-panel {
    position: absolute; top: calc(100% + 8px); right: 0; width: 340px; max-width: 92vw;
    max-height: 70vh; background: #fff; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.18);
    border: 1px solid var(--rp-border, #E5EAF2); z-index: 500; display: flex; flex-direction: column;
    overflow: hidden;
}
.rp-notif-panel-head {
    display: flex; align-items: center; justify-content: space-between; padding: 12px 14px;
    border-bottom: 1px solid var(--rp-border, #E5EAF2); flex-shrink: 0;
}
.rp-notif-panel-head strong { font-size: 14px; }
.rp-notif-panel-head button, .rp-notif-list-head button {
    background: none; border: none; color: var(--rp-primary, #1A3FD4); font-size: 12px;
    cursor: pointer; padding: 4px 6px;
}
.rp-notif-panel-list { overflow-y: auto; flex: 1; }

.rp-notif-item {
    display: flex; align-items: flex-start; gap: 8px; padding: 12px 14px;
    border-bottom: 1px solid var(--rp-border, #F1F4F9); position: relative;
}
.rp-notif-item.rp-notif-unread { background: var(--rp-primary-l, #EEF3FF); }
.rp-notif-item-main { flex: 1; min-width: 0; }
.rp-notif-item-subject { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.rp-notif-item-body { font-size: 12px; color: var(--rp-muted, #6B7280); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rp-notif-item-time { font-size: 11px; color: var(--rp-muted, #9CA3AF); margin-top: 4px; }
.rp-notif-item-dismiss {
    flex-shrink: 0; background: none; border: none; font-size: 16px; line-height: 1; color: var(--rp-muted, #9CA3AF);
    cursor: pointer; padding: 2px 4px; border-radius: 4px;
}
.rp-notif-item-dismiss:hover { background: rgba(0,0,0,.06); color: #111; }
.rp-notif-empty { padding: 24px 14px; text-align: center; font-size: 13px; color: var(--rp-muted, #6B7280); }

/* Full list shortcode */
.rp-notif-list-head { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.rp-notif-list-body .rp-notif-item { border: 1px solid var(--rp-border, #E5EAF2); border-radius: 8px; margin-bottom: 8px; }
.rp-notif-list-body .rp-notif-item.rp-notif-unread { border-color: var(--rp-primary, #1A3FD4); }

/* Counter-only shortcode */
.rp-notif-counter-only {
    display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px;
    padding: 0 5px; border-radius: 999px; background: #DC2626; color: #fff; font-size: 11px; font-weight: 700;
}

/* Responsive: full-width dropdown sheet on small screens */
@media (max-width: 480px) {
    .rp-notif-panel { position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: 100%; max-width: 100%;
        max-height: 80vh; border-radius: 14px 14px 0 0; }
}
