/* ========== XECUTE — css/07-buttons-forms-scroll.css ========== */
/* Shared buttons, form inputs, scrollbars */

/* ====== COMMON BUTTONS ====== */
.btn-primary {
  padding: 8px 16px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s, filter 0.15s;
}
.btn-primary:hover { filter: brightness(1.1); }

.btn-secondary {
  padding: 8px 16px;
  background: var(--bg-hover);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
}
.btn-secondary:hover { background: var(--bg-elevated); }

.btn-danger {
  padding: 8px 16px;
  background: var(--accent-red);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: filter 0.15s;
}
.btn-danger:hover { filter: brightness(1.1); }

.btn-info {
  padding: 8px 16px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: filter 0.15s;
}
.btn-info:hover { filter: brightness(1.1); }

.cache-btn {
  padding: 4px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: filter 0.12s;
}
.cache-btn.restore { background: var(--accent-green); color: white; }
.cache-btn.restore:hover { filter: brightness(1.1); }
.cache-btn.delete { background: var(--accent-red); color: white; }
.cache-btn.delete:hover { filter: brightness(1.1); }

/* ====== FORM INPUTS ====== */
.setting-input {
  padding: 5px 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 12px;
  width: 70px;
  outline: none;
}
.setting-input:focus { border-color: var(--accent); }

.setting-select {
  padding: 5px 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 12px;
  outline: none;
  cursor: pointer;
}
.setting-select:focus { border-color: var(--accent); }

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
  flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--bg-hover);
  transition: 0.3s;
  border: 1px solid var(--border);
}
.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background: var(--text-muted);
  transition: 0.3s;
}
.slider.round { border-radius: 22px; }
.slider.round:before { border-radius: 50%; }
input:checked + .slider { background: var(--accent-green); border-color: var(--accent-green); }
input:checked + .slider:before { transform: translateX(20px); background: white; }

/* ====== SCROLLBARS ====== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
