/* ===========================
   CORE INQUEST (DEFAULT MODE)
   =========================== */
:root {
  --bg: #050506;
  --panel: #101011;
  --panel-gradient: linear-gradient(180deg, #161618, #0c0c0d);

  --text: #e9e9e9;
  --muted: #949494;

  --accent: #d92727;     /* Inquest red */
  --accent2: #ca1818;
  --accent-glow: 0 0 10px rgba(217,39,39,0.55);

  --border: #242426;

  --input-bg: #1a1a1c;
  --input-border: #333336;
  --input-focus: #d92727;

  --shadow-outer: 0 0 20px rgba(0,0,0,0.65);
  --shadow-inner: inset 0 0 12px rgba(0,0,0,0.4);
}

/* ===========================
   LEYLINE MODE (LIGHT THEME)
   =========================== */
.light {
  --bg: #0c1626;
  --panel: #132033;
  --panel-gradient: linear-gradient(180deg, #182b44, #111d2e);

  --text: #d7ecff;      /* icy magic */
  --muted: #7fa3c0;

  --accent: #23d2ff;    /* leyline teal */
  --accent2: #8f58f5;   /* arcane violet */
  --accent-glow: 0 0 12px rgba(35,210,255,0.55);

  --border: #4c204c;

  --input-bg: #162436;
  --input-border: #294565;
  --input-focus: #b923ff;

  --shadow-outer: 0 0 14px rgba(12,84,128,0.4);
  --shadow-inner: inset 0 0 10px rgba(255,255,255,0.08);
}

/* ===========================
   GLOBAL STRUCTURE
   =========================== */
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Segoe UI, Arial, sans-serif;
  transition: background 0.3s ease, color 0.3s ease;
}

.wrapper {
  width: 900px;
  margin: 35px auto;
  position: relative;
  text-align: center;
}

h1 {
  margin-bottom: 10px;
  color: var(--accent);
  text-shadow: var(--accent-glow);
  letter-spacing: 0.5px;
}

/* ===========================
   TABS
   =========================== */
.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
  gap: 10px;
}

.tab {
  padding: 10px 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text);
  font-weight: 500;
  box-shadow: var(--shadow-inner);
  transition: 0.2s ease;
}

.tab:hover {
  transform: translateY(-2px);
}

.tab.active {
  background: var(--accent);
  color: #ffffff !important;
  font-weight: 700;
  text-shadow: 0 0 3px rgba(0,0,0,0.45);
  box-shadow: var(--accent-glow);
}

/* ===========================
   TOOL PANELS
   =========================== */
.tool-pane {
  display: none;
  background: var(--panel-gradient);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  box-shadow: var(--shadow-outer), var(--shadow-inner);
}

.tool-pane.active {
  display: block;
}

.section-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--accent);
  text-shadow: var(--accent-glow);
  margin-bottom: 15px;
}

.note-box {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 20px;
  color: var(--text);
  box-shadow: var(--shadow-inner);
  font-size: 14px;
}

/* ===========================
   FORMS
   =========================== */
input[type="file"],
input[type="text"],
select {
  width: 100%;
  padding: 9px;
  background: var(--input-bg);
  color: var(--text);
  border-radius: 6px;
  border: 1px solid var(--input-border);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 10px var(--accent);
}

/* ===========================
   DRAG & DROP ZONES
   =========================== */
.drop-zone {
  margin-top: 4px;
  margin-bottom: 10px;
  border: 2px dashed var(--border);
  border-radius: 10px;
  background: var(--input-bg);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: 0.2s ease;
  box-shadow: var(--shadow-inner);
}

.drop-zone-icon {
  font-size: 20px;
}

.drop-zone-text {
  font-size: 14px;
  color: var(--muted);
}

.drop-zone input[type="file"] {
  display: none;
}

.drop-zone:hover {
  border-color: var(--accent);
  box-shadow: var(--accent-glow);
}

.drop-zone.dragover {
  border-color: var(--accent);
  box-shadow: var(--accent-glow);
  background: rgba(217,39,39,0.1);
}

body.light .drop-zone.dragover {
  background: rgba(35,210,255,0.08);
}

/* Disabled drop zones (used when Bring Deco to World Zero is checked) */
.drop-zone.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ===========================
   BUTTONS
   =========================== */
button {
  background: var(--accent);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-shadow: 0 0 4px rgba(0,0,0,0.4);
  box-shadow: var(--accent-glow);
  transition: 0.2s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 16px var(--accent2);
}

/* ===========================
   UTILITY
   =========================== */
.grid3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

pre {
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  white-space: pre-wrap;
  margin-top: 18px;
  font-size: 14px;
  color: var(--text);
}

/* Footer */
.footer {
  margin-top: 25px;
  font-size: 14px;
  color: var(--muted);
}

/* Theme Toggle */
#themeToggle {
  position: absolute;
  top: 15px;
  right: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text);
}

/* Link-like elements */
.link-like {
  cursor: pointer;
  color: var(--accent);
  text-decoration: none;
}

.link-like:hover {
  text-decoration: underline;
}

/* Video section */
.video-section {
  margin: 20px 0;
  text-align: center;
}

.video-caption {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
}

.video-link {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
  box-shadow: var(--accent-glow);
}

.video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 16px var(--accent2);
}

/* Extract groups container */
#extract-groups {
  margin-top: 15px;
  font-size: 14px;
}

/* Map choice title */
.map-choice-label {
  margin-bottom: 8px;
}

/* Checkbox row for Bring Deco to World Zero */
.checkbox-row {
  margin-bottom: 12px;
}

.checkbox-row label {
  cursor: pointer;
  font-size: 14px;
}

.checkbox-row input[type="checkbox"] {
  margin-right: 6px;
}

/* ===========================
   LIGHT MODE TWEAKS
   =========================== */
/* No extra rules needed here; variables handle theme */

/* =======================================================
   v7.5.2 — Enhanced Fade for Disabled Mover UI Elements
   ======================================================= */

/* Applies to:
   - Start/End drop zones
   - Their text labels
   - Safe Zone label
   - Safe Zone dropdown
*/
#vectorInputs.disabled,
.safezone-wrapper.disabled,
#vectorInputs.disabled *:not(input),
.safezone-wrapper.disabled *:not(select) {
    opacity: 0.25 !important;
    transition: opacity 0.2s ease-in-out;
}

/* Fade for the Safe Zone dropdown element itself */
#mover-safezone:disabled {
    opacity: 0.25 !important;
}

/* Shrink Safe Zone dropdown to match your UI style */
#mover-safezone {
    width: 180px;
    padding: 6px 8px;
    font-size: 0.95rem;
}

/* =======================================================
   v7.5.3 — Fade Labels in Deco Mover When Disabled
   ======================================================= */

.mover-label.disabled {
    opacity: 0.25 !important;
    transition: opacity 0.2s ease-in-out;
}
