/**
 * @file
 * Notification widget: bell in grey circle + red badge, blue header panel,
 * white body, avatar + message + timestamp, green View All button.
 */

/* Bell trigger: light grey circular background */
.notification-bell-btn {
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: none;
}

.notification-bell-circle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: #e9ecef;
  color: #495057;
}

.notification-bell-icon {
  font-size: 1.25rem;
}

/* Red circular badge, top-right of bell */
.notification-widget-header .notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  color: #fff;
  background-color: #dc3545;
  border-radius: 50%;
  border: 2px solid var(--ct-body-bg, #fff);
}

/* Hide contrib block badge only when JS removes .notification-icon (#notificationcount). */
.notification-widget-header #notificationcount.notification-badge:not(.notification-icon) {
  display: none !important;
}

/* Dropdown panel: rounded corners, shadow, white body */
.notification-dropdown-panel {
  min-width: 320px;
  max-width: 380px;
  border-radius: 0.5rem !important;
  overflow: hidden;
}

/* Blue header */
.notification-dropdown-head {
  background: #1e90ff;
  background-image: none;
  padding: 0.75rem 1rem;
}

.notification-dropdown-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #fff !important;
}

.notification-dropdown-subtitle {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.95);
}

.notification-dropdown-footer {
  background: #f8f9fa;
  margin: 0;
}

/* Body: white, scrollable */
.notification-dropdown-body {
  background: #fff;
  overflow-y: auto;
}

/* Unread item: subtle grey background */
.notification-item-unread {
  background-color: rgba(0, 0, 0, 0.04);
}

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

/* Avatar circle */
.notification-avatar {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e9ecef;
  color: #6c757d;
  font-size: 1rem;
}

/* Message: dark grey, readable */
.notification-message {
  font-size: 0.8125rem;
  color: #495057;
  line-height: 1.4;
}

/* Timestamp: clock icon + uppercase, light grey */
.notification-time {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  color: #6c757d !important;
}

.notification-time span {
  letter-spacing: 0.02em;
}

/* View All button: light green bg, dark green text, rounded, centered */
.notification-view-all-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #d4edda;
  color: #0f5132;
  border: 1px solid #badbcc;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
  font-size: 0.875rem;
}

.notification-view-all-btn:hover {
  background-color: #c3e6cb;
  color: #0a3622;
  border-color: #9ecaa6;
}
