/* Notification Badge */
.bg-notification-badge {
  background-color: var(--color-error) !important;
}

/* Notifications Dropdown */
.notifications-dropdown {
  position: relative;
}

.notifications-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 360px;
  max-height: 480px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  z-index: 1050;
  display: none;
  overflow: hidden;
}

.notifications-dropdown-menu.show {
  display: block;
}

.notifications-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-secondary--lightest);
}

.notifications-dropdown-header h6 {
  font-weight: 600;
  color: var(--color-neutral--800);
}

.notifications-dropdown-list {
  max-height: 400px;
  overflow-y: auto;
}

.notifications-empty {
  padding: 40px 20px;
  text-align: center;
}

/* Notification Item */
.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  margin: 8px 12px;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: opacity 0.15s ease;
}

.notification-item.read {
  opacity: 0.6;
}

/* Style-based colors - Background + Border */

/* Info - Light cyan/teal with teal border */
.notification-item.notification-info {
  background-color: var(--color-secondary--lighter);
  border-color: var(--color-secondary--darker);
}

.notification-item.notification-info .notification-title,
.notification-item.notification-info .notification-title a,
.notification-item.notification-info .notification-time {
  color: var(--color-secondary--darker);
}


/* Approved - Light green with green border */
.notification-item.notification-approved {
  background-color: rgba(var(--bs-success-rgb), 0.5);
  border-color: var(--color-success--dark);
}

.notification-item.notification-approved .notification-title,
.notification-item.notification-approved .notification-title a,
.notification-item.notification-approved .notification-time {
  color: var(--color-success--dark);
}

/* Warning - Light yellow with yellow border */
.notification-item.notification-warning {
  background-color: rgba(var(--bs-warning-rgb), 0.5);
  border-color: var(--color-warning);
}

.notification-item.notification-warning .notification-title,
.notification-item.notification-warning .notification-title a,
.notification-item.notification-warning .notification-time {
  color: var(--color-warning--dark);
}

/* Updated - Light yellow with yellow border */
.notification-item.notification-updated {
  background-color: rgba(var(--bs-warning-rgb), 0.5);
  border-color: var(--color-warning);
}

.notification-item.notification-updated .notification-title,
.notification-item.notification-updated .notification-title a,
.notification-item.notification-updated .notification-time {
  color: var(--color-warning--dark);
}

/* Rejected - Light red with red border */
.notification-item.notification-rejected {
  background-color: var(--color-error--lighter);
  border-color: var(--color-error);
}

.notification-item.notification-rejected .notification-title,
.notification-item.notification-rejected .notification-title a,
.notification-item.notification-rejected .notification-time {
  color: var(--color-error--dark);
}

/* Signed - Light teal with teal border */
.notification-item.notification-signed {
  background-color: var(--color-secondary--lighter);
  border-color: var(--color-secondary--darker);
}

.notification-item.notification-signed .notification-title,
.notification-item.notification-signed .notification-title a,
.notification-item.notification-signed .notification-time {
  color: var(--color-secondary--darker);
}

/* Notification Icon */
.notification-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

/* Notification Content */
.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  line-height: 1.4;
  margin-bottom: 2px;
}

.notification-title a{
  text-decoration: none;
}

.notification-title a:hover{
  text-decoration: underline;
}

.notification-time {
  font-size: 12px;
}

.notification-body {
  font-size: 14px;
}

/* Mark as Read Button */
.btn.notification-mark-read-btn {
  background-color: transparent;
  border: none;
  padding: var(--spacing-xs);
  opacity: 0.7;
}
.btn.notification-mark-read-btn img {
  width: 24px;
  height: 24px;
}
.btn.notification-mark-read-btn:hover {
  opacity: 1;
}
.btn.notification-mark-read-btn:active {
  opacity: 1;
}

/* Full page notifications list */
#notifications-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

#notifications-list .notification-item {
  margin: 0 0 12px 0;
}

.empty-state {
  text-align: center;
  padding: 40px;
  color: #6b7280;
}
