/* Admin bell notifications - top bar trigger + dropdown */

.notif-bell-wrap {
    position: relative;
}

.notif-bell-trigger {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: calc(10px * var(--radius-scale));
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text-muted);
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.notif-bell-trigger:hover {
    border-color: var(--primary);
    color: var(--text-main);
}

.notif-bell-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: calc(20px * var(--radius-scale));
    background: var(--danger);
    color: white;
    font-size: 0.68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notif-bell-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 360px;
    max-height: 480px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: calc(14px * var(--radius-scale));
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25);
    z-index: 10003;
    flex-direction: column;
    overflow: hidden;
}

.notif-bell-dropdown.open {
    display: flex;
}

.notif-bell-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
}

.notif-bell-mark-all {
    border: none;
    background: none;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

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

.notif-bell-list {
    overflow-y: auto;
}

.notif-bell-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.notif-bell-item {
    display: flex;
    gap: 12px;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text-main);
}

.notif-bell-item:last-child {
    border-bottom: none;
}

.notif-bell-item:hover {
    background: rgba(var(--primary-rgb), 0.06);
}

.notif-bell-item.unread {
    background: rgba(var(--primary-rgb), 0.04);
}

.notif-bell-item i {
    width: 18px;
    text-align: center;
    color: var(--primary);
    margin-top: 2px;
}

.notif-bell-item-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.notif-bell-item-title {
    font-size: 0.85rem;
    font-weight: 600;
}

.notif-bell-item-message {
    font-size: 0.78rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notif-bell-item-date {
    font-size: 0.72rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    /* right: -60px pushed the panel 60px past the bell, and the bell sits at
       the right edge of the screen, so part of it was always off-screen.
       Pinning it to the viewport keeps it fully visible at any width. */
    .notif-bell-dropdown {
        position: fixed;
        top: 70px;
        left: 12px;
        right: 12px;
        width: auto;
        max-height: calc(100dvh - 90px);
    }
}
