/* ── Storage health indicator ────────────────────────────────────────────── */

.st-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 193, 7, 0.18);
    color: #ffc107;
    font-size: 15px;
    cursor: default;
    animation: stPulse 2s ease-in-out infinite;
    list-style: none;
}

@keyframes stPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.55; }
}

[data-theme="dark"] .st-indicator {
    background: rgba(255, 193, 7, 0.12);
    color: #ffd54f;
}

/* ── Notification Bell ───────────────────────────────────────────────────── */

.nb-bell-wrapper {
    position: relative;
    list-style: none;
}

.nb-bell-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
    font-size: 17px;
    position: relative;
    transition: background 0.15s;
}

.nb-bell-btn:hover { background: rgba(255,255,255,0.12); color: inherit; }

.nb-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    background: #dc3545;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    padding: 0 3px;
    pointer-events: none;
}

/* ── Dropdown panel ──────────────────────────────────────────────────────── */

.nb-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 340px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
    z-index: 1050;
    overflow: hidden;
    animation: nbFadeIn 0.15s ease;
}

@keyframes nbFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.nb-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #1a3a5c;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.nb-mark-all {
    font-size: 11px;
    font-weight: 600;
    color: #2d7dd2;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}

.nb-mark-all:hover { text-decoration: underline; }

.nb-dropdown-body {
    max-height: 380px;
    overflow-y: auto;
}

.nb-dropdown-footer {
    padding: 10px 16px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
    background: #fafafa;
}

.nb-dropdown-footer a {
    font-size: 12px;
    font-weight: 600;
    color: #2d7dd2;
    text-decoration: none;
}

.nb-dropdown-footer a:hover { text-decoration: underline; }

/* ── Notification items ──────────────────────────────────────────────────── */

.nb-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 14px;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    color: inherit;
    transition: background 0.1s;
    cursor: pointer;
    position: relative;
}

.nb-item:last-child { border-bottom: none; }
.nb-item:hover { background: #f8f9fa; color: inherit; text-decoration: none; }

.nb-item-full {
    padding: 14px 18px;
    border-bottom: 1px solid #f0f0f0;
}

.nb-item-unread { background: #f0f5ff; }
.nb-item-unread:hover { background: #e8effc; }

.nb-item-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.nb-item-content { flex: 1; min-width: 0; }

.nb-item-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.nb-item-unread .nb-item-title { color: #1a3a5c; }

.nb-item-message {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nb-item-meta {
    font-size: 10.5px;
    color: #bbb;
    margin-top: 3px;
}

.nb-item-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2d7dd2;
    flex-shrink: 0;
    margin-top: 5px;
}

/* ── Empty state ─────────────────────────────────────────────────────────── */

.nb-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 32px 20px;
    color: #ccc;
    font-size: 13px;
}

.nb-empty i { font-size: 28px; }

/* ── Dark mode ───────────────────────────────────────────────────────────── */

[data-theme="dark"] .nb-dropdown {
    background: #1e1e2e;
    border-color: #2e2e4a;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

[data-theme="dark"] .nb-dropdown-header { background: #181828; border-color: #2e2e4a; color: #a0c0e8; }
[data-theme="dark"] .nb-dropdown-footer { background: #181828; border-color: #2e2e4a; }
[data-theme="dark"] .nb-item { border-color: #2a2a3e; color: #d0d0e8; }
[data-theme="dark"] .nb-item:hover { background: #252535; }
[data-theme="dark"] .nb-item-unread { background: #1a2a3e; }
[data-theme="dark"] .nb-item-unread:hover { background: #1e3050; }
[data-theme="dark"] .nb-item-title { color: #d0d0e8; }
[data-theme="dark"] .nb-item-message { color: #888; }
[data-theme="dark"] .nb-item-meta { color: #555; }
[data-theme="dark"] .nb-empty { color: #444; }
