/* ═══════════════════════════════════════════════════════════════════════════
   BADGES & STATUS INDICATORS
   ═══════════════════════════════════════════════════════════════════════════ */

/* Standard Badge */
.badge {
  display: inline-flex;
  align-items: center;
  background: rgba(240, 211, 22, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-main);
  border: 1px solid rgba(240, 211, 22, 0.3);
  position: relative;
  cursor: help;
}

/* Badge with Tooltip */
.badge[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 0.75rem;
  background: var(--color-bg-dark);
  color: var(--color-text-primary);
  font-size: 1.1rem;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s,
    visibility 0.2s;
  margin-bottom: 8px;
  z-index: 100;
  box-shadow: var(--shadow-lg);
}

.badge[data-tooltip]::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--color-bg-dark);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s,
    visibility 0.2s;
  margin-bottom: -4px;
  z-index: 101;
}

.badge[data-tooltip]:hover::after,
.badge[data-tooltip]:hover::before {
  opacity: 1;
  visibility: visible;
}

.badge-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
  margin-left: auto;
}

/* Status Badges (pill style) */
.status-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  justify-content: center;
}

.status-badge {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 1rem;
  color: var(--color-text-muted);
}

.status-badge i {
  margin-right: 0.3rem;
}

/* Status Badge Variants */
.status-badge--highlight {
  background: rgba(231, 76, 60, 0.2);
  border-color: #e74c3c;
  color: #e74c3c;
}

.status-badge--warning {
  background: rgba(241, 196, 15, 0.2);
  border-color: #f1c40f;
  color: #f1c40f;
}

.status-badge--info {
  background: rgba(52, 152, 219, 0.2);
  border-color: #3498db;
  color: #3498db;
}

.status-badge--success {
  background: rgba(93, 214, 147, 0.2);
  border-color: var(--color-success);
  color: var(--color-success);
}

/* Count Badge */
.count-badge {
  display: inline-block;
  background: var(--color-accent-blue);
  color: var(--color-text-primary);
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  min-width: 30px;
  text-align: center;
}

/* Status Text Classes */
.status-active,
.status-clear {
  color: var(--color-success);
  font-weight: bold;
}

.status-inactive,
.status-alerting {
  color: var(--color-danger);
  font-weight: bold;
}

.triggered-status--active {
  background: linear-gradient(
    135deg,
    rgba(220, 53, 69, 0.1),
    rgba(220, 53, 69, 0.05)
  );
  color: var(--color-danger);
  font-weight: bold;
}

.triggered-status--inactive {
  background: linear-gradient(
    135deg,
    rgba(93, 214, 147, 0.1),
    rgba(93, 214, 147, 0.05)
  );
  color: var(--color-success);
  font-weight: bold;
}

.two-factor-tips {
  display: flex;
  align-items: center;
  gap: var(--space-md, 1rem);
  padding: var(--space-md, 1rem);
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 4px;
  margin-bottom: var(--space-md, 1rem);
  color: #856404;
}
