/* Панель уведомлений колокольчика по канону design_new.md (.notification-menu > .notification-item).
   Позиционирование меню задаётся инлайном из notifications-bell.js (position:fixed — обход overflow),
   здесь — внешний вид: шапка/подвал, строки-уведомления, иконки по уровню, точка непрочитанного. */

.notification-menu { padding: 0; overflow: hidden; }

.notification-menu-head {
    padding: .625rem .875rem;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    background: var(--surface-secondary, #f8f9fb);
}
.notification-menu-foot {
    padding: .5rem;
    border-top: 1px solid var(--border-color, #e5e7eb);
    color: var(--accent-color, #4154f1);
    text-decoration: none;
    background: var(--surface-secondary, #f8f9fb);
}
.notification-menu-foot:hover { background: var(--surface-hover, #eef1f7); text-decoration: none; }

.notification-stream { padding: .25rem 0; }

/* Строка уведомления */
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: .625rem;
    padding: .625rem .875rem;
    text-decoration: none;
    color: var(--text-color, #212529);
    border-left: 3px solid transparent;
    transition: background .12s ease;
}
.notification-item:hover { background: var(--surface-hover, #f2f4f8); color: inherit; text-decoration: none; }
.notification-item + .notification-item { border-top: 1px solid var(--border-subtle, #f0f2f5); }

/* Непрочитанное: акцентная полоса слева + плотнее шрифт */
.notification-item.unread { background: var(--unread-bg, rgba(65,84,241,.045)); border-left-color: var(--accent-color, #4154f1); }
.notification-item.unread .notification-title { font-weight: 600; }

/* Иконка по уровню */
.notification-icon {
    flex: 0 0 auto;
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: 1rem;
    margin-top: 1px;
}
.notification-icon.info    { color: #2f6bff; background: rgba(47,107,255,.12); }
.notification-icon.success { color: #1a9c5b; background: rgba(26,156,91,.12); }
.notification-icon.warning { color: #b8860b; background: rgba(230,162,10,.14); }
.notification-icon.danger  { color: #d63a3a; background: rgba(214,58,58,.12); }

.notification-body { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.notification-title { font-size: .8125rem; line-height: 1.25; }
.notification-text {
    font-size: .75rem;
    color: var(--text-muted, #6c757d);
    margin-top: .1rem;
    overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.notification-ago { font-size: .6875rem; color: var(--text-muted, #9aa0a6); margin-top: .2rem; }

/* Точка непрочитанного */
.notification-dot {
    flex: 0 0 auto;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent-color, #4154f1);
    align-self: center;
}

/* Тёмная тема */
@media (prefers-color-scheme: dark) {
    .notification-menu-head, .notification-menu-foot { background: rgba(255,255,255,.03); }
    .notification-item.unread { background: rgba(99,120,255,.10); }
    .notification-item:hover { background: rgba(255,255,255,.05); }
}
:root[data-theme="dark"] .notification-menu-head,
:root[data-theme="dark"] .notification-menu-foot { background: rgba(255,255,255,.03); }
:root[data-theme="dark"] .notification-item.unread { background: rgba(99,120,255,.10); }
:root[data-theme="dark"] .notification-item:hover { background: rgba(255,255,255,.05); }
