/* OKLCH Color Lab — Glacier theme */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #00D2D3;
  --primary-dim: rgba(0,210,211,0.12);
  --primary-glow: rgba(0,210,211,0.3);
  --secondary: #48DBFB;
  --accent: #FF9FF3;
  --accent-dim: rgba(255,159,243,0.12);
  --bg: #081A1A;
  --bg-card: #0F2626;
  --bg-input: #061414;
  --border: rgba(0,210,211,0.15);
  --border-focus: rgba(0,210,211,0.5);
  --text: #D4F0F0;
  --text-dim: #7EB8B8;
  --text-muted: #3D6B6B;
  --green: #00B894;
  --yellow: #FDCB6E;
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --transition: 0.2s ease;
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100vh; line-height: 1.6; }

.header { border-bottom: 1px solid var(--border); background: rgba(15,38,38,0.95); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 10; }
.header-inner { max-width: 700px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; }
.header-left { display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 1.2rem; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; background: var(--primary-dim); border-radius: var(--radius-sm); }
.header h1 { font-size: 1.05rem; font-weight: 700; }
.subtitle { font-size: 0.72rem; color: var(--text-dim); }

.main { max-width: 700px; margin: 0 auto; padding: 20px; }

.picker-card, .sliders-card, .palette-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; }
.panel-header { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; border-bottom: 1px solid var(--border); }
.panel-label { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }

.picker-body { padding: 14px; display: flex; align-items: center; gap: 14px; }
.input-row { display: flex; align-items: center; gap: 8px; flex: 1; }
.input-label { font-size: 0.72rem; font-weight: 600; color: var(--text-dim); }
.hex-input { padding: 6px 10px; font-family: var(--mono); font-size: 0.82rem; color: var(--text); background: var(--bg-input); border: 1px solid var(--border); border-radius: 6px; outline: none; width: 100px; }
.hex-input:focus { border-color: var(--border-focus); }
.color-native { width: 36px; height: 36px; border: none; cursor: pointer; background: none; }
.swatch { width: 64px; height: 64px; border-radius: var(--radius-sm); border: 2px solid var(--border); flex-shrink: 0; }

.sliders { padding: 14px; }
.slider-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.slider-label { font-size: 0.72rem; font-weight: 500; color: var(--text-dim); min-width: 60px; }
.slider-val { font-family: var(--mono); color: var(--primary); }
.slider { flex: 1; height: 6px; border-radius: 3px; appearance: none; background: rgba(0,210,211,0.15); cursor: pointer; }
.slider::-webkit-slider-thumb { appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--primary); border: 2px solid var(--bg); cursor: pointer; }
.slider-hue { background: linear-gradient(90deg, oklch(0.7 0.15 0), oklch(0.7 0.15 60), oklch(0.7 0.15 120), oklch(0.7 0.15 180), oklch(0.7 0.15 240), oklch(0.7 0.15 300), oklch(0.7 0.15 360)); }

.gamut-bar { background: rgba(253,203,110,0.1); border: 1px solid rgba(253,203,110,0.3); color: var(--yellow); padding: 6px 14px; border-radius: var(--radius-sm); font-size: 0.75rem; margin-bottom: 12px; text-align: center; }

.output-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin-bottom: 12px; }
.output-chip { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px; cursor: pointer; transition: all var(--transition); }
.output-chip:hover { border-color: var(--primary); }
.output-chip-label { font-size: 0.62rem; color: var(--text-muted); text-transform: uppercase; margin-bottom: 2px; }
.output-chip-value { font-family: var(--mono); font-size: 0.72rem; color: var(--secondary); word-break: break-all; }

.palette-strip { display: flex; padding: 10px; gap: 3px; }
.palette-swatch { flex: 1; height: 40px; border-radius: 4px; cursor: pointer; transition: transform 0.15s; }
.palette-swatch:hover { transform: scaleY(1.3); }

.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column-reverse; gap: 8px; }
.toast { padding: 10px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: 0 4px 24px rgba(0,0,0,0.5); font-size: 0.82rem; animation: toastIn 0.3s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
