/* ═══ Notification Bell ═══ */
.header-notification-bell-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Badge */
.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    line-height: 1;
    transform: translate(4px, -4px);
}

/* Dropdown */
.notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 340px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    border: 1px solid #e5e7eb;
    z-index: 10001;
    overflow: hidden;
}

.notification-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.notification-dropdown-title {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
}

.notification-mark-read {
    background: none;
    border: none;
    font-size: 12px;
    color: #3b82f6;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
}
.notification-mark-read:hover {
    background: #eff6ff;
}

.notification-dropdown-list {
    max-height: 320px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background 0.1s;
}
.notification-item:last-child { border-bottom: none; }
.notification-item:hover { background: #f9fafb; }

.notif-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    margin-top: 2px;
}
.notif-success {
    background: #f0fdf4;
    color: #22c55e;
}
.notif-error {
    background: #fef2f2;
    color: #ef4444;
}

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

.notification-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-item-preview {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.notification-item-time {
    flex-shrink: 0;
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
    margin-top: 2px;
}

.notification-dropdown-empty {
    padding: 24px 16px;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
}

.notification-dropdown-footer {
    padding: 10px 16px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.notification-view-all {
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: #3b82f6;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    width: 100%;
}
.notification-view-all:hover {
    background: #eff6ff;
}

/* Dark theme */
[data-theme="dark"] .notification-dropdown {
    background: #1e1e1e;
    border-color: #333;
}
[data-theme="dark"] .notification-dropdown-header { border-color: #333; }
[data-theme="dark"] .notification-dropdown-footer { border-color: #333; }
[data-theme="dark"] .notification-dropdown-title { color: #e0e0e0; }
[data-theme="dark"] .notification-item { border-color: #2a2a2a; }
[data-theme="dark"] .notification-item:hover { background: #2a2a2a; }
[data-theme="dark"] .notification-item-title { color: #e0e0e0; }
[data-theme="dark"] .notification-item-preview { color: #999; }
[data-theme="dark"] .notification-dropdown-empty { color: #777; }

/* Mobile: dropdown full width */
@media (max-width: 768px) {
    .notification-dropdown {
        position: fixed;
        top: 60px;
        left: 8px;
        right: 8px;
        width: auto;
    }
}
