/* Notification Container */
.bv-wrapper {
    position: relative;
}

.bv-community-header {
    position: absolute;
    top: -100px;
    right: 0px;
    z-index: 999;
}

.bv-notifications-trigger {
    position: relative;
    cursor: pointer;
}

.bv-dashboard-nav__link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    text-decoration: none !important;
}

.bv-dashboard-nav__icon {
    display: flex;
    /* Fix svg alignment */
}

/* Badge */
.bv-notifications-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 50%;
    min-width: 16px;
    height: 16px;
    text-align: center;
    line-height: 12px;
    border: 2px solid #fff;
    /* Border to separate from icon */
}

/* Popover */
.bv-notifications-popover {
    position: absolute;
    right: 0;
    top: 36px;
    /* Spacing from bell */
    width: 320px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* Softer border */
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 10000;
    font-family: 'Lato', -apple-system, sans-serif;
    overflow: hidden;
    transform-origin: top right;
    animation: bvPopIn 0.2s ease-out;
}

@keyframes bvPopIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Header */
.bv-notifications-header {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.bv-notifications-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
}

#bv-mark-all-read {
    background: none;
    border: none;
    color: #E81809;
    /* Main brand color */
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

#bv-mark-all-read:hover {
    background: rgba(232, 24, 9, 0.05);
    text-decoration: none;
}

/* List */
.bv-notifications-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    max-height: 350px;
    overflow-y: auto;
}

/* Scrollbar */
.bv-notifications-list::-webkit-scrollbar {
    width: 6px;
}

.bv-notifications-list::-webkit-scrollbar-track {
    background: #f9f9f9;
}

.bv-notifications-list::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

/* Items */
.bv-notification-item {
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}

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

.bv-notification-item a {
    display: block;
    padding: 16px;
    text-decoration: none !important;
    color: inherit !important;
}

.bv-notification-item.unread {
    background: #fff9f9;
    /* Subtle red tint for unread */
}

.bv-notification-item.unread::before {
    content: "";
    /* Dot indicator */
    position: absolute;
    left: 6px;
    top: 22px;
    width: 6px;
    height: 6px;
    background: #E81809;
    border-radius: 50%;
}

.bv-notification-item:hover {
    background: #fcfcfc;
}

.bv-notification-content {
    font-size: 13px;
    line-height: 1.5;
    display: block;
    margin-bottom: 6px;
    color: #333;
}

.bv-notification-content strong {
    font-weight: 600;
}

.bv-notification-date {
    font-size: 11px;
    color: #999;
    display: block;
    font-weight: 500;
}

.bv-no-notifications {
    padding: 40px 20px;
    text-align: center;
    color: #888;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}