/*
  Tab 03 — Command Center 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.
*/

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

:root {
  --card-accent: #39ff14;
  --card-notify: oklch(0.68 0.19 40);
}

.command-tabs {
  width: 100%;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid oklch(0.269 0 0);
  background-color: oklch(0.145 0 0);
  font-family:
    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji";
}

.command-tabs__list {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.5rem;
}

.command-tabs__tab {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  border: none;
  border-radius: 0.5rem;
  background: none;
  padding: 0.5rem 0.625rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  color: oklch(0.65 0 0);
  cursor: pointer;
  outline: none;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}

.command-tabs__tab:hover {
  background-color: oklch(0.205 0 0);
  color: oklch(0.85 0 0);
}

.command-tabs__tab--active {
  background-color: oklch(0.269 0 0);
  color: #ffffff;
}

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

.command-tabs__icon {
  position: relative;
  display: flex;
  height: 1.5rem;
  width: 1.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  background-color: oklch(0.205 0 0);
  transition: background-color 200ms ease-out;
}

.command-tabs__tab--active .command-tabs__icon {
  background-color: oklch(0.35 0 0);
}

.command-tabs__icon svg {
  height: 0.875rem;
  width: 0.875rem;
}

.command-tabs__dot {
  position: absolute;
  top: -0.125rem;
  right: -0.125rem;
  height: 0.375rem;
  width: 0.375rem;
  border-radius: 9999px;
  background-color: var(--card-notify);
}

.command-tabs__label {
  flex: 1 1 auto;
}

.command-tabs__shortcut {
  border: 1px solid oklch(0.3 0 0);
  border-radius: 0.25rem;
  padding: 0.125rem 0.375rem;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 0.625rem;
  color: oklch(0.45 0 0);
  transition: border-color 200ms ease-out, color 200ms ease-out;
}

.command-tabs__tab--active .command-tabs__shortcut {
  border-color: oklch(0.4 0 0);
  color: oklch(0.75 0 0);
}

.command-tabs__stage {
  border-top: 1px solid oklch(0.269 0 0);
  background-color: oklch(0.205 0 0);
  padding: 1.25rem;
}

.command-tabs__panel {
  animation: command-tabs-panel-in 220ms ease-out both;
}

.command-tabs__panel h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
}

.command-tabs__panel p {
  margin: 0.375rem 0 0;
  max-width: 28rem;
  font-size: 0.875rem;
  color: oklch(0.65 0 0);
}

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

@media (prefers-reduced-motion: reduce) {
  .command-tabs__tab,
  .command-tabs__icon,
  .command-tabs__shortcut {
    transition: none;
  }

  .command-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, #f0f0f1, #e4e4e7b3);
}
.tab03-layout {
  display: flex;
  min-height: 18rem;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2.5rem;
}
.tab03-layout__panel {
  width: 100%;
  max-width: 22rem;
}
