/*
  Tab 01 — Kinetic Indicator Tabs — standalone HTML/CSS/JS implementation.
  No build step, no framework, no external dependency: copy index.html,
  this file, and script.js into any project as-is.
*/

:root {
  --card-accent: #39ff14;
  --card-fg: oklch(0.145 0 0);
  --card-muted: oklch(0.5 0 0);
  --card-border: oklch(0.9 0 0);
}

.fluid-tabs {
  width: 100%;
  font-family:
    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji";
}

.fluid-tabs__list {
  position: relative;
  display: flex;
  gap: 1.75rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.fluid-tabs__list::-webkit-scrollbar {
  display: none;
}

.fluid-tabs__tab {
  flex-shrink: 0;
  border: none;
  background: none;
  padding: 0.875rem 0;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--card-muted);
  cursor: pointer;
  outline: none;
  transition: color 200ms ease-out;
}

.fluid-tabs__tab:hover {
  color: var(--card-fg);
}

.fluid-tabs__tab[aria-selected="true"] {
  color: var(--card-fg);
}

.fluid-tabs__tab:focus-visible {
  outline: 2px solid var(--card-accent);
  outline-offset: 2px;
}

.fluid-tabs__indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 9999px;
  background-color: var(--card-fg);
  pointer-events: none;
  transition-property: transform, width;
  transition-timing-function: ease-out;
  transition-duration: 150ms;
}

.fluid-tabs__baseline {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background-color: var(--card-border);
  pointer-events: none;
}

.fluid-tabs__panel {
  padding-top: 1.5rem;
  animation: fluid-tabs-panel-in 220ms ease-out both;
}

.fluid-tabs__panel h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--card-fg);
}

.fluid-tabs__panel p {
  margin: 0.375rem 0 0;
  max-width: 28rem;
  font-size: 0.875rem;
  color: var(--card-muted);
}

@keyframes fluid-tabs-panel-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fluid-tabs__indicator {
    transition: none;
  }

  .fluid-tabs__panel {
    animation: none;
  }
}

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

*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(to bottom, #fafafa, #f4f4f5);
}
.tab01-layout {
  display: flex;
  min-height: 20rem;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2.5rem;
}
.tab01-layout__panel {
  width: 100%;
  max-width: 32rem;
  border: 1px solid oklch(0.9 0 0);
  border-radius: 1rem;
  background: #ffffff;
  padding: 1.5rem;
}
.tab01-layout__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-bottom: 1px solid oklch(0.96 0 0);
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}
.tab01-layout__stat-label {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 500;
  color: oklch(0.7 0 0);
}
.tab01-layout__stat-value {
  margin: 0.125rem 0 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: oklch(0.145 0 0);
}
