/**
 * Status Indicator & Alert Component Styles
 */

/* =============================================================================
   STATUS DOT
   Small colored indicator
   ============================================================================= */

.statusDot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--text-tertiary);
  flex-shrink: 0;
}

.statusDotSuccess {
  background: var(--status-success);
}

.statusDotWarning {
  background: var(--status-warning);
}

.statusDotError {
  background: var(--status-error);
}

.statusDotInfo {
  background: var(--status-info);
}

.statusDotNeutral {
  background: var(--text-tertiary);
}

/* Larger status dot */
.statusDotLarge {
  width: 10px;
  height: 10px;
}

/* =============================================================================
   STATUS BADGE
   Labeled status indicator
   ============================================================================= */

.statusBadge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-0-5) var(--space-2);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: var(--font-medium);
}

.statusBadgeSuccess {
  background: rgba(34, 197, 94, 0.15);
  color: var(--status-success);
}

.statusBadgeWarning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--status-warning);
}

.statusBadgeError {
  background: rgba(239, 68, 68, 0.15);
  color: var(--status-error);
}

.statusBadgeInfo {
  background: rgba(59, 130, 246, 0.15);
  color: var(--status-info);
}

.statusBadgeNeutral {
  background: var(--bg-elevated);
  color: var(--text-secondary);
}

/* =============================================================================
   ALERT
   Informational message block
   ============================================================================= */

.alert {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-default);
  border: 1px solid;
}

.alertIcon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.alertContent {
  flex: 1;
  min-width: 0;
}

.alertTitle {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-0-5);
}

.alertMessage {
  font-size: var(--text-xs);
}

.alertDismiss {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-tertiary);
  cursor: pointer;
  transition: var(--transition-all);
  margin-left: auto;
}

.alertDismiss:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* Alert variants */
.alertSuccess {
  background: rgba(34, 197, 94, 0.1);
  border-color: var(--status-success);
}

.alertSuccess .alertIcon,
.alertSuccess .alertTitle {
  color: var(--status-success);
}

.alertSuccess .alertMessage {
  color: var(--text-secondary);
}

.alertWarning {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--status-warning);
}

.alertWarning .alertIcon,
.alertWarning .alertTitle {
  color: var(--status-warning);
}

.alertWarning .alertMessage {
  color: var(--text-secondary);
}

.alertError {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--status-error);
}

.alertError .alertIcon,
.alertError .alertTitle {
  color: var(--status-error);
}

.alertError .alertMessage {
  color: var(--text-secondary);
}

.alertInfo {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--status-info);
}

.alertInfo .alertIcon,
.alertInfo .alertTitle {
  color: var(--status-info);
}

.alertInfo .alertMessage {
  color: var(--text-secondary);
}

/* =============================================================================
   SEVERITY INDICATOR
   Security severity levels (for vulnerability context)
   ============================================================================= */

.severity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-0-5) var(--space-1-5);
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.severityCritical {
  background: var(--severity-critical, #7f1d1d);
  color: var(--color-red-100);
}

.severityHigh {
  background: var(--severity-high, #dc2626);
  color: white;
}

.severityMedium {
  background: var(--severity-medium, #f59e0b);
  color: var(--color-gray-900);
}

.severityLow {
  background: var(--severity-low, #22c55e);
  color: var(--color-gray-900);
}

.severityInfo {
  background: var(--severity-info, #3b82f6);
  color: white;
}

.severityNone {
  background: var(--bg-elevated);
  color: var(--text-secondary);
}

/* =============================================================================
   CONNECTION STATUS
   Online/offline indicator
   ============================================================================= */

.connectionStatus {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1-5);
  font-size: 10px;
  font-weight: var(--font-medium);
}

.connectionDot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
}

.connectionOnline .connectionDot {
  background: var(--status-success);
  box-shadow: 0 0 4px var(--status-success);
}

.connectionOnline .connectionLabel {
  color: var(--status-success);
}

.connectionOffline .connectionDot {
  background: var(--status-error);
}

.connectionOffline .connectionLabel {
  color: var(--text-tertiary);
}

.connectionConnecting .connectionDot {
  background: var(--status-warning);
  animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* =============================================================================
   CVSS SCORE
   CVSS score display (security specific)
   ============================================================================= */

.cvssScore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 20px;
  padding: 0 var(--space-1);
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: var(--font-bold);
  font-family: var(--font-mono);
}

.cvssScoreCritical {
  background: var(--severity-critical, #7f1d1d);
  color: var(--color-red-100);
}

.cvssScoreHigh {
  background: var(--severity-high, #dc2626);
  color: white;
}

.cvssScoreMedium {
  background: var(--severity-medium, #f59e0b);
  color: var(--color-gray-900);
}

.cvssScoreLow {
  background: var(--severity-low, #22c55e);
  color: var(--color-gray-900);
}

.cvssScoreNone {
  background: var(--bg-elevated);
  color: var(--text-secondary);
}
