.notification-bell {
  position: relative;
  /* Essential for positioning the badge */
  cursor: pointer;
  font-size: 1.5em;
  /* Adjust size as needed */
  color: #ccc;
  /* Subtle grey color */
  transition: color 0.2s ease;
  margin-right: 8px;
  padding-right: 1px;
  padding-left: 12px;
  /* A bit of space before the profile icon */
}

.notification-bell:hover {
  color: #fff;
  /* White on hover */
}

/* Styling for the unread count badge */
.notification-badge {
  position: absolute;
  top: -5px;
  /* Position above the bell */
  right: -8px;
  /* Position to the right of the bell */
  background-color: #ff0000;
  /* Red color for alerts */
  color: white;
  border-radius: 50%;
  padding: 2px 4px;
  font-size: 0.5em;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  min-width: 10px;
  text-align: center;
  line-height: 1;
  pointer-events: none;
  /* Allows clicks to pass through to the bell */
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

/* Apply the animation when new notifications are present */
.notification-badge.new-notifications {
  animation: pulse 1s infinite;
}

/* Mobile: show at bottom */
@media (max-width: 450px) {


  /* E. Notification Bell Icon */
  .notification-bell {
    font-size: 1.1em;
    /* Smaller bell icon */
    padding-right: 1px;
    padding-left: 10px;
  }

  /* F. Notification Badge */
  .notification-badge {
    padding: 2px 2px;
    font-size: 0.5em;
    /* Smaller text in the badge */
    top: -5px;
    right: -7px;
  }

}