/* ══════════════════════════════════════════════
   In-App Notification Center — Styles  
   Bell icon, dropdown panel, notification items
   ══════════════════════════════════════════════ */

/* ─── Notification Badge on Bell ──────────────── */
#notificationBell {
    position: relative;
}

#notificationBell .notification-badge {
    position: absolute;
    top: 4px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    pointer-events: none;
    animation: notif-badge-pop 0.3s ease;
}

@keyframes notif-badge-pop {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* ─── Notification Dropdown Panel ─────────────── */
.notification-dropdown {
    position: fixed;
    left: 60px;
    /* sidebar width */
    bottom: 80px;
    /* above bell icon */
    width: 360px;
    max-height: 480px;
    background: var(--bg-primary, #1e1e2e);
    border: 1px solid var(--border-color, #2d2d3d);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    overflow: hidden;
    display: none;
    animation: notif-slide-in 0.2s ease;
}

.notification-dropdown.notif-open {
    display: block;
}

@keyframes notif-slide-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    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 var(--border-color, #2d2d3d);
    background: var(--bg-secondary, #252535);
}

.notif-header-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary, #e1e1e6);
}

.notif-mark-all {
    background: none;
    border: none;
    color: var(--accent-color, #6c5ce7);
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.15s;
}

.notif-mark-all:hover {
    background: rgba(108, 92, 231, 0.1);
}

/* ─── List Container ──────────────────────────── */
.notif-list {
    max-height: 400px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.notif-list::-webkit-scrollbar {
    width: 4px;
}

.notif-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

/* ─── Notification Item ───────────────────────── */
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color, rgba(45, 45, 61, 0.5));
    transition: background 0.15s;
    position: relative;
}

.notif-item:hover {
    background: var(--bg-hover, rgba(108, 92, 231, 0.06));
}

.notif-item.notif-unread {
    background: rgba(108, 92, 231, 0.04);
}

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

/* Icon */
.notif-icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary, #252535);
    border-radius: 8px;
}

/* Content */
.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary, #e1e1e6);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notif-unread .notif-title {
    font-weight: 600;
}

.notif-body {
    font-size: 12px;
    color: var(--text-secondary, #8888a0);
    margin-top: 2px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notif-time {
    font-size: 11px;
    color: var(--text-muted, #6c6c80);
    margin-top: 4px;
}

/* Unread dot */
.notif-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color, #6c5ce7);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
}

/* ─── Empty / Loading States ──────────────────── */
.notif-empty,
.notif-loading {
    padding: 40px 16px;
    text-align: center;
    color: var(--text-muted, #6c6c80);
    font-size: 14px;
}

/* ─── Load More Button ────────────────────────── */
.notif-load-more {
    display: block;
    width: 100%;
    padding: 12px;
    background: none;
    border: none;
    border-top: 1px solid var(--border-color, #2d2d3d);
    color: var(--accent-color, #6c5ce7);
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
}

.notif-load-more:hover {
    background: rgba(108, 92, 231, 0.06);
}

/* ─── Mobile Responsive ───────────────────────── */
@media (max-width: 768px) {
    .notification-dropdown {
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        width: 100%;
        max-height: 70vh;
        border-radius: 16px 16px 0 0;
        border: none;
        border-top: 1px solid var(--border-color, #2d2d3d);
    }
}