/*
  Select 01 — Native Select Field — standalone HTML/CSS implementation.
  No build step, no framework, no external dependency: copy index.html,
  this file (JavaScript is not required — this resource is native
  HTML/CSS only) into any project as-is.
*/

:root {
  --select-accent: #39ff14;
  --select-fg: oklch(0.145 0 0);
  --select-muted: oklch(0.5 0 0);
  --select-border: oklch(0.85 0 0);
  --select-error: oklch(0.55 0.2 25);
}

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

.native-select__label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--select-fg);
}

.native-select__field-wrap {
  position: relative;
}

.native-select__field {
  width: 100%;
  appearance: none;
  border-radius: 0.75rem;
  border: 1px solid var(--select-border);
  background-color: #ffffff;
  padding: 0.625rem 2.25rem 0.625rem 0.875rem;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--select-fg);
  cursor: pointer;
  outline: none;
  transition: border-color 150ms ease-out;
}

.native-select__field:focus-visible {
  border-color: var(--select-accent);
  box-shadow: 0 0 0 2px color-mix(in oklch, var(--select-accent) 30%, transparent);
}

.native-select__field:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.native-select__field--error {
  border-color: var(--select-error);
}

.native-select__field--error:focus-visible {
  border-color: var(--select-error);
  box-shadow: 0 0 0 2px color-mix(in oklch, var(--select-error) 30%, transparent);
}

.native-select__chevron {
  position: absolute;
  top: 50%;
  right: 0.875rem;
  height: 1rem;
  width: 1rem;
  transform: translateY(-50%);
  color: var(--select-muted);
  pointer-events: none;
  transition: color 150ms ease-out;
}

.native-select__field:focus-visible ~ .native-select__chevron {
  color: var(--select-fg);
}

.native-select__helper {
  margin: 0.375rem 0 0;
  font-size: 0.75rem;
  color: var(--select-muted);
}

.native-select__error {
  margin: 0.375rem 0 0;
  font-size: 0.75rem;
  color: var(--select-error);
}

@media (prefers-reduced-motion: reduce) {
  .native-select__field,
  .native-select__chevron {
    transition: 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);
}
.select01-layout {
  display: flex;
  min-height: 20rem;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2.5rem;
}
.select01-layout__panel {
  width: 100%;
  max-width: 24rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border: 1px solid oklch(0.9 0 0);
  border-radius: 1rem;
  background: #ffffff;
  padding: 1.5rem;
}
