/* ═══════════════════════════════════════════════
   Ákotí Badges & Tags — Pure CSS

   Badge:  <span class="akoti-badge">New</span>
   Tag:    <span class="akoti-tag">Finance</span>
   Dot:    <span class="akoti-dot"></span>
   Status: <span class="akoti-status-dot success"></span> Active

   Colors: .primary, .success, .warning, .danger, .info, .muted
   Sizes:  .sm, .lg
   ═══════════════════════════════════════════════ */

/* ── Badge ─────────────────────────────────────────── */

.akoti-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 8px 3px 8px 3px;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  background: #1a2f5e;
  color: white;
  letter-spacing: 0.2px;
}

.akoti-badge.primary { background: #1a2f5e; color: white; }
.akoti-badge.success { background: #e8f5e9; color: #2e7d32; }
.akoti-badge.warning { background: #fff3e0; color: #e65100; }
.akoti-badge.danger  { background: #fce4ec; color: #c62828; }
.akoti-badge.info    { background: #e8f0f8; color: #1a2f5e; }
.akoti-badge.muted   { background: #f0f2f5; color: #5f6368; }
.akoti-badge.bronze  { background: #fdf0e0; color: #8b5e20; }

.akoti-badge.sm { font-size: 9px; padding: 1px 6px; }
.akoti-badge.lg { font-size: 13px; padding: 4px 12px; }

/* Outline variant */
.akoti-badge.outline {
  background: transparent;
  border: 1px solid currentColor;
}
.akoti-badge.outline.primary { color: #1a2f5e; background: transparent; }
.akoti-badge.outline.success { color: #2e7d32; background: transparent; }
.akoti-badge.outline.warning { color: #e65100; background: transparent; }
.akoti-badge.outline.danger  { color: #c62828; background: transparent; }
.akoti-badge.outline.info    { color: #1a2f5e; background: transparent; }
.akoti-badge.outline.muted   { color: #5f6368; background: transparent; }

/* ── Tag (removable) ───────────────────────────────── */

.akoti-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 10px 4px 10px 4px;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  background: #f0f2f5;
  color: #1e1e24;
  border: 1px solid rgba(26,47,94,0.08);
  transition: all 0.15s;
  white-space: nowrap;
}

.akoti-tag:hover {
  background: #e8f0f8;
  border-radius: 4px 10px 4px 10px;
}

.akoti-tag-remove {
  width: 14px;
  height: 14px;
  border: none;
  background: rgba(0,0,0,0.08);
  color: #5f6368;
  border-radius: 50%;
  cursor: pointer;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s;
}
.akoti-tag-remove:hover { background: #e53935; color: white; }

/* Tag colors */
.akoti-tag.primary { background: #e8f0f8; border-color: #a8c8e8; color: #1a2f5e; }
.akoti-tag.success { background: #e8f5e9; border-color: #a5d6a7; color: #2e7d32; }
.akoti-tag.warning { background: #fff3e0; border-color: #ffcc80; color: #e65100; }
.akoti-tag.danger  { background: #fce4ec; border-color: #ef9a9a; color: #c62828; }

/* ── Status Dot ────────────────────────────────────── */

.akoti-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8a8a96;
  flex-shrink: 0;
}

.akoti-dot.success { background: #4caf50; }
.akoti-dot.warning { background: #ff9800; }
.akoti-dot.danger  { background: #f44336; }
.akoti-dot.info    { background: #2196f3; }
.akoti-dot.primary { background: #1a2f5e; }

/* Pulsing */
.akoti-dot.pulse {
  animation: akoti-dot-pulse 2s ease-in-out infinite;
}
@keyframes akoti-dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Status with label */
.akoti-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #5f6368;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .akoti-badge { background: #a8c8e8; color: #0f1b3d; }
  :root:not([data-theme="light"]) .akoti-badge.success { background: #1b5e20; color: #a5d6a7; }
  :root:not([data-theme="light"]) .akoti-badge.warning { background: #bf360c; color: #ffcc80; }
  :root:not([data-theme="light"]) .akoti-badge.danger  { background: #b71c1c; color: #ef9a9a; }
  :root:not([data-theme="light"]) .akoti-badge.info    { background: #1a2f5e; color: #a8c8e8; }
  :root:not([data-theme="light"]) .akoti-badge.muted   { background: #2a2a32; color: #9a9aa6; }
  :root:not([data-theme="light"]) .akoti-tag { background: #2a2a32; color: #e0e0e4; border-color: rgba(255,255,255,0.08); }
}
