/* ───────────────────────────────────────────────────────────
   Уведомления: карточки с иконкой, заголовком, описанием и
   действием. Цвета левой полосы — по severity.
   ─────────────────────────────────────────────────────────── */

#notificationsList {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notification-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: var(--fp-surface);
    border: 1px solid var(--fp-border);
    border-left: 4px solid var(--fp-border);
    border-radius: var(--fp-radius);
    transition: background .15s, box-shadow .15s;
}

.notification-card:hover {
    box-shadow: var(--fp-shadow);
}


.notification-card.severity-info    { border-left-color: #4263eb; }
.notification-card.severity-success { border-left-color: #2b8a3e; }
.notification-card.severity-warning { border-left-color: #e8590c; }
.notification-card.severity-danger  { border-left-color: #c92a2a; }

/* Непрочитанное — слегка подсвеченный фон */
.notification-card.is-unread {
    background: var(--fp-bg-accent, rgba(66, 99, 235, 0.06));
}


.notification-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    background: var(--fp-bg);
    color: var(--fp-muted);
}

.notification-card.severity-info    .notification-icon { color: #4263eb; background: rgba(66,99,235,0.10); }
.notification-card.severity-success .notification-icon { color: #2b8a3e; background: rgba(43,138,62,0.10); }
.notification-card.severity-warning .notification-icon { color: #e8590c; background: rgba(232,89,12,0.10); }
.notification-card.severity-danger  .notification-icon { color: #c92a2a; background: rgba(201,42,42,0.10); }

/* Основное содержимое */
.notification-body {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--fp-text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.unread-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #c92a2a;
}

.notification-desc {
    margin-top: 4px;
    font-size: 14px;
    color: var(--fp-text);
    line-height: 1.45;
    word-break: break-word;
}

.notification-meta {
    margin-top: 8px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.notification-actions {
    flex-shrink: 0;
}

.notification-card.row-just-updated {
    animation: notifFlash 1.4s ease-out;
}

@keyframes notifFlash {
    0%   { background-color: rgba(232, 89, 12, 0.24); }
    100% { background-color: var(--fp-bg-accent, rgba(66, 99, 235, 0.06)); }
}

/* Мобильный layout — компактнее */
@media (max-width: 576px) {
    .notification-card {
        padding: 10px 12px;
        gap: 10px;
    }
    .notification-icon {
        width: 32px; height: 32px;
        font-size: 16px;
    }
    .notification-title { font-size: 14px; }
    .notification-desc  { font-size: 13px; }
    .notification-meta  { gap: 8px; font-size: 11px; }
}

.nav-bell {
    position: relative;
}

.nav-bell .bell-count {
    position: absolute;
    top: 0;
    right: -2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #c92a2a;
    color: white;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.nav-bell .bell-count:empty { display: none; }

.notification-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.notification-action-row .btn {
    padding: 2px 10px;
    font-size: 12px;
}
