/* Notification bell + dropdown (phase 3.7) */
.side-bell { margin-bottom: 0.5rem; }
.notif-bell-icon { position: relative; display: inline-flex; }
.notif-badge {
    position: absolute; top: -7px; inset-inline-end: -9px;
    min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
    background: #e5484d; color: #fff; font-size: 0.68rem; font-weight: 700; line-height: 17px; text-align: center;
    box-shadow: 0 0 0 2px var(--bs-body-bg, #fff);
}
.has-unread .notif-bell-icon svg { color: var(--primary-color, #6e62c8); }
.notif-nav-bell {
    background: transparent; border: 1px solid var(--border-color, #dde3ea); border-radius: 10px;
    padding: 0.4rem 0.55rem; color: inherit; display: inline-flex; align-items: center;
}
.notif-nav-bell .theme-toggle-label { display: none; }
.notif-panel {
    position: fixed; z-index: 1080; max-height: min(70vh, 560px); display: flex; flex-direction: column;
    background: var(--bs-body-bg, #fff); color: var(--bs-body-color, #1f2937);
    border: 1px solid var(--border-color, #dde3ea); border-radius: 14px;
    box-shadow: 0 14px 40px rgba(20, 24, 60, 0.18); overflow: hidden; direction: rtl;
}
.notif-head {
    display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
    padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--border-color, #dde3ea);
}
.notif-head-actions { display: flex; align-items: center; gap: 0.6rem; font-size: 0.8rem; }
.notif-filter { display: inline-flex; align-items: center; gap: 0.25rem; cursor: pointer; margin: 0; }
.notif-link-btn { background: none; border: 0; color: var(--primary-color, #6e62c8); font-weight: 600; padding: 0; }
.notif-list { overflow-y: auto; }
.notif-empty { padding: 1.4rem; text-align: center; color: #8a94a6; font-size: 0.88rem; }
.notif-item {
    display: flex; gap: 0.6rem; padding: 0.65rem 0.9rem; text-decoration: none; color: inherit;
    border-bottom: 1px solid rgba(127, 127, 127, 0.12);
}
.notif-item:hover { background: rgba(110, 98, 200, 0.07); color: inherit; }
.notif-item.unread { background: rgba(110, 98, 200, 0.10); }
.notif-item.unread .notif-title { font-weight: 700; }
.notif-kind {
    flex: 0 0 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(110, 98, 200, 0.12); font-size: 0.85rem; font-weight: 700; color: var(--primary-color, #6e62c8);
}
.notif-text { display: flex; flex-direction: column; min-width: 0; gap: 0.1rem; }
.notif-title { font-size: 0.86rem; }
.notif-body {
    font-size: 0.78rem; color: #6b7385; overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.notif-meta { font-size: 0.72rem; color: #98a1b3; }
html[data-theme="dark"] .notif-panel { background: #1d2130; color: #e6e8ef; border-color: #2e3446; }
html[data-theme="dark"] .notif-badge { box-shadow: 0 0 0 2px #1d2130; }
html[data-theme="dark"] .notif-body { color: #a8b0c2; }
