.notification-wrapper {
    position: relative;
}

.notification-button {
    position: relative;
    border: none;
    background: transparent;
    padding: 8px 10px;
    color: #495057;
}

.notification-button:hover {
    color: #A50084;
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 16px;
    height: 16px;
    padding: 0 5px;
    border-radius: 999px;
    background-color: #dc3545;
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
}

.notification-popup {
    display: none;
    position: absolute;
    top: 42px;
    right: 0;
    width: 320px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    overflow: hidden;
}

.notification-popup.show {
    display: block;
}

.notification-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    font-weight: 700;
    border-bottom: 1px solid #eee;
}

.notification-popup-unread-count {
    flex: 0 0 auto;
    padding: 3px 8px;
    border-radius: 999px;
    background-color: #fff0f6;
    color: #d6007f;
    font-size: 11px;
    font-weight: 700;
}

.notification-popup-item {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f1f1;
    text-decoration: none;
    color: #212529;
}

.notification-popup-item:hover {
    background-color: #f8f9fa;
}

.notification-popup-item.unread {
    background-color: #fff7fb;
}

.notification-popup-item.unread:hover {
    background-color: #ffedf6;
}

.notification-popup-title-row {
    display: flex;
    align-items: center;
    gap: 7px;
}

.notification-unread-dot {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #e6007e;
    box-shadow: 0 0 0 3px rgba(230, 0, 126, 0.1);
}

.notification-popup-title {
    font-size: 14px;
    font-weight: 600;
}

.notification-popup-item.unread .notification-popup-title {
    color: #8e005f;
    font-weight: 700;
}

.notification-popup-message {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin-top: 3px;
    font-size: 13px;
    color: #6c757d;
}

.notification-popup-empty {
    padding: 20px 16px;
    color: #6c757d;
    text-align: center;
}

.notification-popup-footer {
    padding: 10px 16px;
    text-align: center;
    background-color: #fafafa;
}

.notification-popup-footer a {
    color: #A50084;
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 575.98px) {
    .notification-popup {
        position: fixed;
        top: 66px;
        right: max(10px, env(safe-area-inset-right));
        left: max(10px, env(safe-area-inset-left));
        width: auto;
        max-height: calc(100dvh - 78px);
    }

    .notification-popup-body {
        max-height: calc(100dvh - 178px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .notification-popup-header {
        padding: 11px 13px;
    }

    .notification-popup-item {
        padding: 11px 13px;
    }

    .notification-popup-title,
    .notification-popup-message {
        overflow-wrap: anywhere;
    }
}
