/* ================================================================
   MISAC Notification Sidebar — brand-aligned
================================================================ */

/* ── Empty state ─────────────────────────────────────────────── */
.msn-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 20px;
    gap: 14px;
    text-align: center;
}
.msn-empty__icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--m-accent-light, #edf5fb), var(--m-accent2-light, #fbeff7));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 16px rgba(34, 114, 181, 0.12);
}
.msn-empty__text {
    font-size: 14px;
    font-weight: 600;
    color: var(--m-text, #1e293b);
}
.msn-empty__sub {
    font-size: 12.5px;
    color: var(--m-text-muted, #94a3b8);
    line-height: 1.5;
}

/* ── Notification item ───────────────────────────────────────── */
.msn-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--m-border-light, #e9ecef);
    cursor: pointer;
    transition: background .15s;
    position: relative;
}
.msn-item:last-child { border-bottom: none; }
.msn-item:hover { background: var(--m-bg-subtle, #f8f9fb); }

.msn-item--unread {
    background: var(--m-accent-light, #edf5fb);
}
.msn-item--unread:hover { background: #e3f0f9; }

/* left accent strip for unread */
.msn-item--unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--m-brand, #2272b5), var(--m-brand2, #ab217f));
    border-radius: 0 2px 2px 0;
}

/* ── Icon circle ─────────────────────────────────────────────── */
.msn-item__icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--m-bg-subtle, #f8f9fb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-top: 1px;
}
.msn-item--unread .msn-item__icon {
    background: var(--m-surface, #fff);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ── Body ────────────────────────────────────────────────────── */
.msn-item__body { flex: 1; min-width: 0; }

.msn-item__title {
    font-size: 13px;
    font-weight: 500;
    color: var(--m-text, #1e293b);
    margin-bottom: 3px;
    line-height: 1.4;
}
.msn-item--unread .msn-item__title { font-weight: 700; }

.msn-item__body-text {
    font-size: 12px;
    color: var(--m-text-muted, #64748b);
    line-height: 1.45;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.msn-item__time {
    font-size: 11px;
    color: var(--m-text-muted, #94a3b8);
}

.msn-item__action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 7px;
    font-size: 12px;
    font-weight: 600;
    color: var(--m-brand, #2272b5);
    text-decoration: none;
    padding: 3px 9px;
    border-radius: 20px;
    background: var(--m-accent-bg, rgba(34, 114, 181, 0.08));
    transition: background .15s;
}
.msn-item__action:hover {
    background: var(--m-accent-light, #edf5fb);
    text-decoration: none;
}

/* ── Read button (shown on hover) ────────────────────────────── */
.msn-item__read-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: var(--m-text-muted, #94a3b8);
    font-size: 13px;
    cursor: pointer;
    padding: 3px 6px;
    border-radius: var(--m-radius, 6px);
    line-height: 1;
    transition: background .15s, color .15s;
    opacity: 0;
}
.msn-item:hover .msn-item__read-btn { opacity: 1; }
.msn-item__read-btn:hover {
    background: var(--m-bg-subtle, #f1f3f5);
    color: var(--m-text, #1e293b);
}

/* ── Error state ─────────────────────────────────────────────── */
.msn-error {
    text-align: center;
    padding: 48px 20px;
    color: var(--m-text-muted, #94a3b8);
    font-size: 13px;
}

/* ── Dark mode ───────────────────────────────────────────────── */
[data-theme="dark"] .msn-empty__icon {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.12), rgba(171, 33, 127, 0.1));
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
[data-theme="dark"] .msn-empty__text { color: #f1f5f9; }

[data-theme="dark"] .msn-item { border-bottom-color: rgba(255, 255, 255, 0.06); }
[data-theme="dark"] .msn-item:hover { background: rgba(255, 255, 255, 0.04); }
[data-theme="dark"] .msn-item--unread { background: rgba(96, 165, 250, 0.1); }
[data-theme="dark"] .msn-item--unread:hover { background: rgba(96, 165, 250, 0.14); }
[data-theme="dark"] .msn-item__icon { background: rgba(255, 255, 255, 0.07); }
[data-theme="dark"] .msn-item--unread .msn-item__icon {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
[data-theme="dark"] .msn-item__title { color: #f1f5f9; }
[data-theme="dark"] .msn-item__body-text { color: #94a3b8; }
[data-theme="dark"] .msn-item__action {
    color: #93c5fd;
    background: rgba(96, 165, 250, 0.1);
}
[data-theme="dark"] .msn-item__action:hover { background: rgba(96, 165, 250, 0.18); }
[data-theme="dark"] .msn-item__read-btn { color: #475569; }
[data-theme="dark"] .msn-item__read-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #f1f5f9;
}
