/* core/optionPanel/optionPanel.css */

/* ===== Layout base del panel (compacto) ===== */
.opt-wrap{
  display:grid;
  gap:16px;
}

/* (El resumen superior se ha eliminado) */

.opt-section{
  display:grid; gap:12px;
  border:1px solid var(--border); border-radius:12px; padding:14px;
  background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
}
.opt-title{
  font-weight:900; letter-spacing:.2px;
  color:var(--text);
}

/* ===== Segmented buttons ===== */
.seg{
  display:flex; gap:8px; flex-wrap:wrap;
  padding:6px;
  border:1px solid var(--border);
  border-radius:14px;
  background:linear-gradient(180deg, rgba(255,255,255,.015), rgba(255,255,255,.005));
}
.seg button{
  background:transparent;
  color:var(--text);
  border:1px solid var(--border);
  padding:10px 14px;
  border-radius:12px;
  font-weight:800;
  letter-spacing:.3px;
  cursor:pointer;
  transition: transform .08s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.seg button:hover{
  border-color: rgba(0,255,248,.35);
  box-shadow:0 8px 18px rgba(0,255,248,.16);
}
.seg button[aria-pressed="true"]{
  background:linear-gradient(180deg, rgba(0,255,248,.16), rgba(0,255,248,.08));
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(0,255,248,.22);
}
.seg button:active{ transform: translateY(1px); }
.seg button:focus-visible{
  outline:none;
  box-shadow: 0 0 0 3px rgba(0,255,248,.18), 0 8px 18px rgba(0,255,248,.16);
  border-color: var(--accent);
}

/* ===== Inputs ===== */
.row{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.opt-input{
  background:#0e1420; border:1px solid var(--border); color:var(--text);
  border-radius:10px; padding:10px 12px; outline:none; width:100%;
}
.opt-input::placeholder{ color:rgba(234,246,255,.55); }
.opt-input:focus{
  border-color: var(--accent);
  box-shadow:0 0 0 3px rgba(0,255,248,.15);
}
label.opt-label{ color:var(--text); font-weight:800; }

/* ===== Slider ===== */
.slider-wrap{ display:flex; align-items:center; gap:12px; }
input[type="range"].slider{
  flex:1 1 auto; height:6px; border-radius:999px; background:#0f1724; outline:none; border:1px solid var(--border);
  -webkit-appearance:none; appearance:none;
}
input[type="range"].slider::-webkit-slider-thumb{
  -webkit-appearance:none; appearance:none; width:16px; height:16px; border-radius:50%;
  background:var(--accent); border:none; cursor:pointer;
}
.badge{
  min-width:42px; text-align:center; font-weight:900;
  color:var(--text);
  background:linear-gradient(180deg, rgba(0,255,248,.22), rgba(0,255,248,.12));
  border:1px solid var(--accent);
  border-radius:10px; padding:6px 8px;
}

/* ===== Chips (presets) ===== */
.chips{ display:flex; gap:8px; flex-wrap:wrap; }
.chip{
  padding:8px 12px;
  border:1px solid var(--border);
  border-radius:999px;
  background:linear-gradient(180deg, rgba(255,255,255,.015), rgba(255,255,255,.005));
  color:var(--text);
  font-weight:800; font-size:.9rem; letter-spacing:.2px;
  cursor:pointer;
  transition: transform .08s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.chip:hover{
  border-color: rgba(0,255,248,.35);
  box-shadow:0 8px 18px rgba(0,255,248,.16);
}
.chip:active{ transform: translateY(1px); }
.chip:focus-visible{
  outline:none;
  border-color: var(--accent);
  box-shadow:0 0 0 3px rgba(0,255,248,.18), 0 8px 18px rgba(0,255,248,.16);
}

/* ===== Switch ===== */
.switch{
  --h:24px; display:inline-flex; align-items:center; gap:10px; cursor:pointer; user-select:none;
  color:var(--text);
}
.switch input{ position:absolute; opacity:0; pointer-events:none; }
.switch .trk{
  width:44px; height:var(--h); border-radius:999px; background:#0c1522; border:1px solid var(--border);
  position:relative; transition:background .2s, border-color .2s;
}
.switch .knob{
  position:absolute; top:2px; left:2px; width:20px; height:20px; border-radius:50%; background:#dfefff; transition:left .2s;
}
.switch input:checked + .trk{ background:rgba(0,255,248,.25); border-color:var(--accent); }
.switch input:checked + .trk .knob{ left:22px; }

/* ===== Responsive ===== */
@media (max-width:720px){
  .row{ grid-template-columns:1fr; }
}
