/* Notifications Dropdown Styling */

.badge-notifications {
  padding: 0.25rem 0.5rem;
  min-width: 1.25rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notification-item {
  display: flex;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

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

.notification-item:last-child {
  border-bottom: none;
}

.notification-item.unread {
  background-color: rgba(var(--bs-primary-rgb), 0.05);
}

.notification-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-right: 0.875rem;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  color: var(--bs-body-color);
}

.notification-message {
  font-size: 0.8125rem;
  color: var(--bs-secondary-color);
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.notification-time {
  font-size: 0.75rem;
  color: var(--bs-tertiary-color);
}

/* Icon colors */
.notification-icon.bg-primary { background-color: rgba(var(--bs-primary-rgb), 0.12); color: var(--bs-primary); }
.notification-icon.bg-success { background-color: rgba(var(--bs-success-rgb), 0.12); color: var(--bs-success); }
.notification-icon.bg-danger { background-color: rgba(var(--bs-danger-rgb), 0.12); color: var(--bs-danger); }
.notification-icon.bg-warning { background-color: rgba(var(--bs-warning-rgb), 0.12); color: var(--bs-warning); }
.notification-icon.bg-info { background-color: rgba(var(--bs-info-rgb), 0.12); color: var(--bs-info); }
.notification-icon.bg-secondary { background-color: rgba(var(--bs-secondary-rgb), 0.12); color: var(--bs-secondary); }

/* Empty state */
.notifications-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--bs-secondary-color);
}

.notifications-empty i {
  font-size: 3rem;
  opacity: 0.5;
  margin-bottom: 0.5rem;
}

/* Dropdown menu custom width */
.notification-dropdown {
  width: 420px;
  max-width: 90vw;
}

@media (max-width: 576px) {
  .notification-dropdown {
    width: 100vw;
    max-width: 100vw;
    left: 0 !important;
    right: 0 !important;
  }
}

/* Badge animation */
@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.badge-notifications.has-new {
  animation: badgePulse 2s infinite;
}

/* Smooth scrollbar */
.notifications-list::-webkit-scrollbar {
  width: 6px;
}

.notifications-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.notifications-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.notifications-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}
