/* Notification System Styles */

/* Notification Bell Container */
.notification-bell {
  position: relative;
  display: flex;
  align-items: center;
  margin-right: 12px;
}

/* Notification Button */
#notificationButton {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 20px;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#notificationButton:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Notification Badge */
.notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
  animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Notification Dropdown */
.notification-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 340px;
  max-height: 480px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  z-index: 1000;
  backdrop-filter: blur(12px);
}

/* Dropdown Header */
.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-1, #f8fafc);
}

.notification-mark-all {
  background: transparent;
  border: none;
  color: var(--primary, #3b82f6);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.notification-mark-all:hover {
  background: rgba(59, 130, 246, 0.1);
}

/* Notification List */
.notification-list {
  max-height: 380px;
  overflow-y: auto;
}

/* Notification Item */
.notification-item {
  display: flex;
  align-items: flex-start;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.notification-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

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

.notification-item.unread {
  background: rgba(59, 130, 246, 0.08);
}

.notification-item.unread:hover {
  background: rgba(59, 130, 246, 0.12);
}

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

.notification-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1, #f8fafc);
  margin-bottom: 2px;
  line-height: 1.4;
}

.notification-message {
  font-size: 12px;
  color: var(--text-2, #94a3b8);
  line-height: 1.4;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.notification-time {
  font-size: 11px;
  color: var(--text-3, #64748b);
}

/* Unread Indicator Dot */
.notification-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary, #3b82f6);
  flex-shrink: 0;
  margin-left: 12px;
  margin-top: 4px;
}

/* Loading & Empty States */
.notification-loading,
.notification-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-3, #64748b);
  font-size: 13px;
}

@media (max-width: 480px) {
  .notification-dropdown {
    width: 300px;
    right: -60px;
  }
}
