/* ==========================================================================
   NOTIFICATION ICON - Light Theme
   Inherits: core.css, components.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   Icon Container
   -------------------------------------------------------------------------- */
.notification-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 1001;
  pointer-events: auto;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
}

.notification-icon:hover {
  background-color: var(--bg-muted);
}

.notification-icon i {
  font-size: 1.25rem;
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   Count Badge
   -------------------------------------------------------------------------- */
.notification-count {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--primary);
  color: #FFFFFF;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 0.6875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.notification-count-visible {
  display: flex !important;
}

.notification-count-hidden {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Connection Status Indicator
   -------------------------------------------------------------------------- */
.connection-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-left: var(--space-xs);
}

.connection-status-connected {
  background-color: var(--success);
  animation: connectionPulse 2s infinite;
}

.connection-status-polling {
  background-color: var(--warning);
}

.connection-status-error,
.connection-status-disconnected {
  background-color: var(--danger);
}

.connection-status-offline {
  background-color: var(--text-muted);
}

@keyframes connectionPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .notification-icon {
    margin: 0 auto;
  }
}
