/* ============================================
   GENZFLOW — NOTIFICATION CENTER
   Bell icon, badge, dropdown panel
   ============================================ */

/* Bell container */
.notif-bell-wrapper {
    position: relative;
    display: inline-flex;
    margin-bottom: 8px;
}

.notif-bell-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary, #8a8a9a);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
}

.notif-bell-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary, #f0f0f5);
}

.notif-bell-btn span {
    opacity: 0.85;
}

/* Unread badge */
.notif-badge {
    position: absolute;
    top: 4px;
    left: 26px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: hsl(0, 70%, 55%);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    pointer-events: none;
    animation: badgePop 0.3s ease;
}

.notif-badge.hidden {
    display: none;
}

@keyframes badgePop {
    0% {
        transform: scale(0);
    }

    60% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Dropdown panel — uses position:fixed to escape sidebar overflow clipping */
.notif-dropdown {
    position: fixed;
    width: 320px;
    max-height: 420px;
    background: var(--card-bg, #1a1a24);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: notifSlideUp 0.2s ease;
}

.notif-dropdown.open {
    display: flex;
}

@keyframes notifSlideUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.notif-header-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #f0f0f5);
}

.notif-mark-all {
    background: none;
    border: none;
    color: hsl(245, 70%, 62%);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.notif-mark-all:hover {
    background: rgba(110, 86, 207, 0.1);
}

/* Notification list */
.notif-list {
    flex: 1;
    overflow-y: auto;
    max-height: 340px;
}

/* Notification item */
.notif-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: background 0.15s ease;
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.notif-item.unread {
    background: rgba(110, 86, 207, 0.06);
}

.notif-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-item-icon.success {
    background: rgba(76, 175, 80, 0.15);
    color: hsl(145, 60%, 45%);
}

.notif-item-icon.error {
    background: rgba(244, 67, 54, 0.15);
    color: hsl(0, 65%, 50%);
}

.notif-item-icon.info {
    background: rgba(110, 86, 207, 0.15);
    color: hsl(245, 70%, 62%);
}

.notif-item-icon.warning {
    background: rgba(255, 183, 77, 0.15);
    color: hsl(45, 80%, 55%);
}

.notif-item-body {
    flex: 1;
    min-width: 0;
}

.notif-item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #f0f0f5);
    margin-bottom: 2px;
}

.notif-item-message {
    font-size: 12px;
    color: var(--text-secondary, #8a8a9a);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notif-item-time {
    font-size: 11px;
    color: var(--text-muted, #55556a);
    margin-top: 4px;
}

.notif-item .unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: hsl(245, 70%, 62%);
    flex-shrink: 0;
    margin-top: 4px;
}

/* Empty state */
.notif-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted, #55556a);
    font-size: 13px;
}

.notif-empty i {
    margin-bottom: 8px;
    opacity: 0.5;
}

/* Light mode */
[data-theme="light"] .notif-dropdown {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}