/*
  Badge 01 — Status Badge — standalone HTML/CSS implementation.
  No build step, no framework, no external dependency: copy index.html and
  this file into any project as-is.
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 9999px;
  padding: 0.25rem 0.625rem;
  font-family:
    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji";
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.status-badge__dot-wrap {
  position: relative;
  display: flex;
  width: 0.375rem;
  height: 0.375rem;
  flex-shrink: 0;
}

.status-badge__dot {
  position: relative;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
}

.status-badge__pulse {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  animation: status-badge-ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes status-badge-ping {
  75%,
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-badge__pulse {
    display: none;
  }
}

.status-badge--active {
  background-color: oklch(0.96 0.03 165);
  color: oklch(0.42 0.1 165);
}
.status-badge--active .status-badge__dot,
.status-badge--active .status-badge__pulse {
  background-color: oklch(0.6 0.14 165);
}

.status-badge--pending {
  background-color: oklch(0.96 0.04 85);
  color: oklch(0.48 0.12 75);
}
.status-badge--pending .status-badge__dot,
.status-badge--pending .status-badge__pulse {
  background-color: oklch(0.65 0.16 75);
}

.status-badge--inactive {
  background-color: oklch(0.95 0 0);
  color: oklch(0.45 0 0);
}
.status-badge--inactive .status-badge__dot {
  background-color: oklch(0.65 0 0);
}

.status-badge--error {
  background-color: oklch(0.96 0.03 20);
  color: oklch(0.5 0.16 20);
}
.status-badge--error .status-badge__dot {
  background-color: oklch(0.6 0.18 20);
}

/*
  Page layout — the canvas this resource is presented on. Adjust or drop it
  when placing the resource inside your own layout.
*/

body {
  margin: 0;
  font-family:
    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(to bottom, #fafafa, #f4f4f5);
}
.badge01-layout {
  display: flex;
  min-height: 20rem;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.badge01-layout__panel {
  width: 100%;
  max-width: 22rem;
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background-color: #ffffff;
  padding: 0.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 16px 40px -16px rgba(0, 0, 0, 0.14);
}
.badge01-layout__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.625rem 0.75rem;
}
.badge01-layout__name {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.75rem;
  color: #0f172a;
}
