/* Notification Bell — Sidebar Header */

.notification-bell-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary, #64748b);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.notification-bell-btn:hover {
    background: var(--hover-bg, var(--bg-tertiary, rgba(0, 0, 0, 0.06)));
    color: var(--text-primary, #1e293b);
}

.notification-bell-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--color-danger, #ef4444);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    pointer-events: none;
}

/* Hide bell in collapsed sidebar */
.sidebar:not(.expanded) .notification-bell-btn {
    display: none;
}

/* Dropdown Panel */

.notification-bell-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    min-width: 280px;
    max-height: 420px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 200;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.notif-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.notif-dropdown-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
}

.notif-mark-all-btn {
    border: none;
    background: none;
    color: var(--color-primary, #3b82f6);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
}

.notif-mark-all-btn:hover {
    background: var(--color-primary-bg-light, rgba(59, 130, 246, 0.08));
}

.notif-dropdown-list {
    overflow-y: auto;
    max-height: 320px;
    flex: 1;
}

.notif-dropdown-item {
    display: flex;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.1s;
    border-bottom: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.04));
}

.notif-dropdown-item:hover {
    background: var(--hover-bg, var(--bg-tertiary, #f8fafc));
}

.notif-dropdown-item.unread {
    background: var(--color-primary-bg-light, rgba(59, 130, 246, 0.04));
}

.notif-dropdown-item.unread:hover {
    background: var(--color-primary-bg-light, rgba(59, 130, 246, 0.08));
}

.notif-item-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-primary-bg-light, rgba(59, 130, 246, 0.1));
    color: var(--color-primary, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

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

.notif-item-message {
    font-size: 0.8125rem;
    color: var(--text-primary, #1e293b);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-item-description {
    margin-top: 2px;
    font-size: 0.75rem;
    color: var(--text-secondary, #64748b);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.notif-item-time {
    font-size: 0.6875rem;
    color: var(--text-muted, #94a3b8);
}

.notif-item-cta {
    margin-left: auto;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--color-primary, #3b82f6);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.notif-dropdown-empty {
    padding: 32px 14px;
    text-align: center;
    color: var(--text-muted, #94a3b8);
    font-size: 0.8125rem;
}

.notif-dropdown-footer {
    padding: 10px 14px;
    text-align: center;
    border-top: 1px solid var(--border-color, #e2e8f0);
}

.notif-dropdown-footer a {
    color: var(--color-primary, #3b82f6);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
}

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