.badge {
    position: absolute;
    top: -10px;
    right: -8px;
}
.notifications-popover .list__item:has(a[href="/notifications"]),
.notifications-popover .list__item:has(a[href="/notification"]) {
  display: none !important;
}
@media (max-width: 767px) {
  .badge { 
    top: -5px;
    margin-right: 4px;
    margin-left: 0px!important;
  }
}
.new-notification {
    background-color: #bb1300 !important;
}

/*  */
.no_notification_content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 340px;
  margin: 0 auto;
  height: 100%;
  padding: 20px 30px;
}
.no_notification_content h3 {
  font-family: Inter;
  font-weight: 700;
  font-style: Bold;
  font-size: 20px;
  line-height: 100%;
  letter-spacing: 0%;
  color: var(--text-muted);
}
.no_notification_content img {
  margin: 0 auto;
}
.no_notification_content p {
  margin: 0;
  font-weight: 400;
  font-style: Italic;
  font-size: 20px;
  line-height: 100%;
  letter-spacing: -2%;
  text-align: center;
  color: var(--text-secondary);
}

.notifications-popover .popover__content {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  height: auto;
  max-height: 700px;
  min-width: 436px;
  background: #fff;
}

.notifications-popover .popover__content.no_notification_content {
  min-width: 340px !important;
  padding: 0;
}

.notifications-popover .popover__content li.list__item {
  border-bottom: none;
  position: relative;
  cursor: pointer;
}

.notifications-popover .popover__content li.list__item:not(.list__item--section-header):hover {
  background-color: #EEEEEE;
}

.notifications-popover .popover__content li:not(:last-child, .list__item--section-header)::after {
  content: '';
  display: block;
  width: calc(100% - 55px);
  margin-left: auto;
  height: 1px;
  background-color: #E0E0E0;
  position: absolute;
  bottom: 0;
  right: 10px;
}

.notifications-popover .popover__content li.list__item.notification-unread .notification-avatar:before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background-color: #DC3545;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 3px;
  z-index: 1;
}

.notifications-popover .popover__content li.list__item.list__item--section-header {
  margin-top: -1px;
  padding-top: 10px;
}

.notifications-popover .popover__content li.list__item.list__item--section-header span.label.section-label {
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  color: #B3B3B3;
}

.notifications-popover .popover__content .list__item .list__content {
  display: flex;
  align-items: flex-start;
  width: 100%;
}

.notifications-popover .popover__content .list__item .list__content .label {
  font-weight: 600;
  font-size: 15px;
  line-height: 150%;
  color: var(--text-primary);
}

.notifications-popover .popover__content .list__item.notification-read .list__content .label {
  color: var(--text-secondary);
  font-weight: 400;
}

.notifications-popover .popover__content .list__item .list__content .notification-content {
  flex: 1;
  min-width: 0;
  display: flex;
}
.notifications-popover .popover__content .list__item .list__content .notification-content .meta {
  flex: 1;
  min-width: fit-content;
  margin-left: 10px;
}
.notifications-popover .popover__content .list__item .list__content .notification-content .meta li {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Adjust height to account for tabs */
.notifications-popover .notification-tabs {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
  margin-bottom: 0;
  padding: 20px 15px 0 15px;
  text-align: left;
}

/* Tab content styling */
.notification-tab-content {
  display: none;
}

.notification-tab-content.active {
  display: block;
}

.notifications-popover #unread-notifications-tab {
  margin-top: 20px;
}

/* Avatar styling */
.notification-avatar {
  position: relative;
  display: inline-block;
  vertical-align: top;
  margin-right: 10px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.notification-avatar .avatar-image {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

/* Loading indicator */
.notification-loading {
  padding: 20px;
  text-align: center;
}

.loading-spinner {
  color: #169eb4;
  font-size: 14px;
}

.notification-end {
  padding: 15px;
  text-align: center;
  color: #999;
  font-size: 12px;
}

.notification-end p {
  margin: 0;
}


/* Scrollbar styling for webkit browsers */
.notifications-popover .popover__content::-webkit-scrollbar {
  width: 8px;
}
.notifications-popover .popover__content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}
.notifications-popover .popover__content::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}
.notifications-popover .popover__content::-webkit-scrollbar-thumb:hover {
  background: #555;
}
.dashboard__item--active .notifications-popover .notification-tabs .notification-tab {
  padding: 0 10px;
}

@media (max-width: 568px) {
  .dashboard__item--active .notifications-popover {
    top: 42px !important;
    right: -72px;
    width: 100dvw !important;
    min-width: inherit !important;
  }
  .notifications-popover .popover__content {
    width: 100%;
    min-width: initial;
    max-height: 80dvh;
  }
  .notifications-popover .popover__content .list__item .list__content .label {
    font-size: 14px;
  }
}
