.notification-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #ea5455;
    position: absolute;
    top: 5px;
    right: -3px;
    display: none; /* Initially hidden, will be shown when there are notifications */
}

.dropdown-notifications-item {
    cursor: pointer;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
}

.dropdown-notifications-item:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.dropdown-notifications-item.marked-as-read {
    opacity: 0.7;
    background-color: #f8f9fa;
}

.dropdown-notifications-read,
.dropdown-notifications-archive {
    display: inline-block;
    padding: 0.25rem;
}

.dropdown-notifications-read:hover,
.dropdown-notifications-archive:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
}

.notification-avatar.bg-light-primary {
    background-color: rgba(105, 108, 255, 0.16) !important;
    color: #696cff !important;
}

.notification-avatar.bg-light-success {
    background-color: rgba(40, 199, 111, 0.16) !important;
    color: #28c76f !important;
}

.notification-avatar.bg-light-danger {
    background-color: rgba(234, 84, 85, 0.16) !important;
    color: #ea5455 !important;
}

.notification-avatar.bg-light-warning {
    background-color: rgba(255, 159, 67, 0.16) !important;
    color: #ff9f43 !important;
}

.notification-avatar.bg-light-info {
    background-color: rgba(0, 207, 232, 0.16) !important;
    color: #00cfe8 !important;
}

.notification-avatar-initial {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.notification-avatar {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-time {
    font-size: 0.75rem;
    color: #6c757d;
    white-space: nowrap;
    margin-left: 0.5rem;
}

.notification-message {
    margin-bottom: 0;
    color: #6c757d;
    word-break: break-word;
}

.notification-content {
    flex-grow: 1;
    max-width: calc(100% - 50px);
}

.notification-sender-name {
    font-weight: 600;
    color: #5e5873;
}

.notification-dropdown {
    max-height: none !important;
    overflow-y: visible !important;
}

.notification-list-container {
    max-height: 400px;
    overflow-y: auto;
}

.dropdown-menu-header {
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 1;
}

.dropdown-menu-footer {
    position: sticky;
    bottom: 0;
    background-color: white;
    z-index: 1;
}


/* Fix for navbar dropdown on mobile */
@media (max-width: 767.98px) {
    .top-navbar-dropdown {
      right: 10px !important;
      left: auto !important;
      width: 300px !important;
      margin-top: 10px !important;
      box-shadow: 0 0.25rem 1rem rgba(161, 172, 184, 0.45) !important;
      z-index: 9999 !important;
    }

    .navbar-dropdown .dropdown-menu {
      overflow: visible !important;
    }

    .dropdown-user .dropdown-menu {
      max-height: calc(100vh - 100px);
      overflow-y: auto;
    }
  }