/* ==========================================================================
 * Panda MediaFire Cloner theme — bright white canvas, MediaFire-style blue,
 * soft blue-grey rails. Light by default, deep navy in dark mode.
 * Loaded after cloner.css; it only overrides design tokens and a few accents.
 * ========================================================================== */

/* Dark mode (navy) */
:root {
  --red: #2b8cff;
  --red-hover: #57a5ff;
  --red-deep: #0f5fd0;
  --red-soft: rgba(43, 140, 255, 0.16);
  --red-ring: rgba(43, 140, 255, 0.30);
  --bg: #0b1220;
  --canvas: #0f1829;
  --surface: #142036;
  --surface-2: #1b2a45;
  --rail: #0e1727;
  --line: #22324f;
  --line-strong: #2f4366;
  --text: #eef4ff;
  --text-2: #c2d0e6;
  --muted: #8a9bb8;
  --boot-bg: #0f1829;
  --boot-text: #eef4ff;
  --boot-text-2: #a9bbd8;
  --boot-text-3: #7d91b2;
  --boot-track: #0b1220;
  --boot-bar: #2b8cff;
}

/* Light mode (default for MediaFire) */
html.light {
  --red: #1478f0;
  --red-hover: #0b63cf;
  --red-deep: #0a56b8;
  --red-soft: #e8f2ff;
  --red-ring: rgba(20, 120, 240, 0.20);
  --bg: #f3f7fc;
  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef4fb;
  --rail: #ffffff;
  --line: #e2eaf4;
  --line-strong: #c9d6e6;
  --text: #13233a;
  --text-2: #3f5370;
  --muted: #7a8aa3;
  --green: #12a150;
  --green-soft: #e6f6ed;
  --amber: #b45309;
  --amber-soft: #fff6e8;
  --shadow: 0 1px 2px rgba(19, 35, 58, 0.05), 0 6px 20px rgba(19, 35, 58, 0.06);
  --boot-bg: #ffffff;
  --boot-text: #13233a;
  --boot-text-2: #5b6f8c;
  --boot-text-3: #95a5bd;
  --boot-track: #e8f0fa;
  --boot-bar: #1478f0;
}

/* Loader spinner in brand blue */
.spinner { background: #e8f2ff; box-shadow: inset 0 0 0 1px rgba(20, 120, 240, .08); }
.spinner::before { border-color: #1478f0; border-right-color: transparent; }
.spinner span { background: #e8f2ff; box-shadow: 0 0 0 4px #ffffff; }
:root:not(.light) .spinner { background: #142036; }
:root:not(.light) .spinner::before { border-color: #57a5ff; border-right-color: transparent; }
:root:not(.light) .spinner span { background: #142036; box-shadow: 0 0 0 4px #0f1829; }
.spinner.xs::before { border-color: var(--red); border-right-color: transparent; }

/* Phase loader strip */
.phase-loader { background: linear-gradient(90deg, rgba(20, 120, 240, .08), rgba(20, 120, 240, .02)); }
html.light .phase-loader { background: linear-gradient(90deg, #eef5ff, #f8fbff); }

/* Top bar & brand */
.brand-name b { color: var(--red); }
.topbar { box-shadow: 0 1px 0 var(--line); }
html.light .topbar { background: rgba(255, 255, 255, 0.96); }

/* Sidebar: rounded blue pill for the active item, like a modern file manager */
.side-item.active { background: var(--red-soft); color: var(--red); }
html.light .side { background: #ffffff; }

/* Buttons: friendly blue, fully rounded */
.btn-red, .new-btn { border-radius: 999px; }
.new-btn { box-shadow: 0 8px 20px var(--red-ring); }
.btn-lg { border-radius: 999px; }

/* Hero */
.hero-orbit::before { border-color: var(--red); border-right-color: transparent; border-bottom-color: transparent; }
.hero h1 .red { background: linear-gradient(90deg, #1478f0, #00b3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Progress bar gradient */
.fill { background: linear-gradient(90deg, #0a56b8, #1478f0, #3fb4ff); }

/* Engine / chips */
.dh-colab { background: #f9ab00; }
.mini-bar span, .quota-track span { background: var(--red); }

/* Console stays dark for readability */
html.light .console { background: #0f1829; }

/* Light-mode spinner must beat cloner.css's html.light rules */
html.light .spinner { background: #e8f2ff; }
html.light .spinner::before { border-color: #1478f0; border-right-color: transparent; }
html.light .spinner span { background: #e8f2ff; box-shadow: 0 0 0 4px #ffffff; }
html.light .spinner.xs::before { border-color: #1478f0; border-right-color: transparent; }
html.light .spinner.xs, html.light .spinner.xs span { background: transparent; box-shadow: none; }
