.notification-bell-wrap {
    position: relative;
}

.notification-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--border-color, #d1d5db);
    color: var(--text-color, #1f2937);
    background: var(--card-bg, #fff);
}

.notification-count {
    display: inline-flex;
    min-width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 5px;
    background: #b91c1c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.notification-count[hidden] {
    display: none;
}

.notification-menu {
    width: min(390px, calc(100vw - 24px));
    max-height: min(70vh, 560px);
    overflow-y: auto;
    padding: 0;
    border: 1px solid #d1d5db;
    box-shadow: 0 12px 30px rgb(15 23 42 / 18%);
}

.notification-menu-header,
.notification-menu-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
}

.notification-menu-header {
    border-bottom: 1px solid #e5e7eb;
}

.notification-menu-item {
    padding: 11px 14px;
    border-bottom: 1px solid #e5e7eb;
    white-space: normal;
}

.notification-menu-item.is-unread,
.notification-item.is-unread {
    background: #eff6ff;
}

.notification-menu-item-title,
.notification-item-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.notification-menu-item p {
    margin: 4px 0;
    color: #374151;
    font-size: 13px;
    white-space: normal;
}

.notification-menu-item small,
.notification-item small {
    color: #4b5563;
    font-size: 12px;
}

.notification-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #2563eb;
}

.notification-menu-action {
    margin-top: 8px;
}

.notification-menu-empty,
.notification-empty {
    padding: 18px 14px;
    margin: 0;
    color: #4b5563;
    text-align: center;
}

.notification-list {
    display: grid;
    gap: 10px;
}

.notification-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}

.notification-item-main {
    min-width: 0;
}

.notification-item-main p {
    margin: 7px 0;
    overflow-wrap: anywhere;
}

.notification-item-actions {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 6px;
}

.notification-unread-label {
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 575.98px) {
    .notification-item {
        flex-direction: column;
    }

    .notification-menu {
        position: fixed !important;
        top: 65px !important;
        right: 12px !important;
        left: 12px !important;
        width: auto;
        transform: none !important;
    }
}
