/* ==========================================================================
 * Panda Dropbox Cloner theme
 * Dropbox — airy white canvas, Dropbox-style blue, soft rounded cards. Light by default.
 * Loaded after cloner.css; it only overrides design tokens and a few accents.
 * ========================================================================== */

/* Dark mode */
:root {
  --red: #3d8bff;
  --red-hover: #6aa6ff;
  --red-deep: #0042b0;
  --red-soft: rgba(61, 139, 255, 0.16);
  --red-ring: rgba(61, 139, 255, 0.3);
  --on-red: #ffffff;
  --bg: #0b1322;
  --canvas: #0f1a2e;
  --surface: #14223a;
  --surface-2: #1b2c4a;
  --rail: #0e182b;
  --line: #22355a;
  --line-strong: #2f4670;
  --text: #eef3ff;
  --text-2: #c3cfe6;
  --muted: #8999b6;
  --radius: 16px;
  --boot-bg: #0f1a2e;
  --boot-text: #eef3ff;
  --boot-text-2: #c3cfe6;
  --boot-text-3: #8999b6;
  --boot-track: #0b1322;
  --boot-bar: #3d8bff;
}

/* Light mode */
html.light {
  --red: #0061fe;
  --red-hover: #0050d4;
  --red-deep: #0042b0;
  --red-soft: #e8f0ff;
  --red-ring: rgba(0, 97, 254, 0.22);
  --on-red: #ffffff;
  --bg: #f7f5f2;
  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-2: #f2efea;
  --rail: #ffffff;
  --line: #e8e4de;
  --line-strong: #d3cdc4;
  --text: #1e1919;
  --text-2: #4f4a45;
  --muted: #8a837b;
  --green: #12a150;
  --green-soft: #e6f6ed;
  --amber: #b45309;
  --amber-soft: #fff6e8;
  --shadow: 0 1px 2px rgba(30, 25, 25, 0.05), 0 6px 20px rgba(30, 25, 25, 0.06);
  --boot-bg: #ffffff;
  --boot-text: #1e1919;
  --boot-text-2: #4f4a45;
  --boot-text-3: #8a837b;
  --boot-track: #f2efea;
  --boot-bar: #0061fe;
}

/* Loader spinners in the brand colour (light + dark) */
.spinner { background: rgba(61, 139, 255, 0.12); }
.spinner::before { border-color: #3d8bff; border-right-color: transparent; }
.spinner span { background: #14223a; box-shadow: 0 0 0 4px #0f1a2e; }
html.light .spinner { background: #e8f0ff; }
html.light .spinner::before { border-color: #0061fe; border-right-color: transparent; }
html.light .spinner span { background: #e8f0ff; box-shadow: 0 0 0 4px #ffffff; }
.spinner.xs, .spinner.xs span, html.light .spinner.xs, html.light .spinner.xs span { background: transparent; box-shadow: none; }
.spinner.xs::before, html.light .spinner.xs::before { border-color: var(--red); border-right-color: transparent; }

/* Phase loader strip */
.phase-loader { background: linear-gradient(90deg, rgba(61, 139, 255, 0.1), rgba(61, 139, 255, 0.02)); }
html.light .phase-loader { background: linear-gradient(90deg, #e8f0ff, #ffffff); }

/* Brand, rails and cards */
.brand-name b { color: var(--red); }
html.light .brand-name b { color: #0042b0; }
html.light .topbar { background: rgba(255, 255, 255, 0.96); }
html.light .side { background: #ffffff; }
.side-item.active { background: var(--red-soft); color: var(--red); }
.side-item.active i { color: var(--red); }

/* Buttons */
.btn-red, .new-btn, .btn-lg { border-radius: 999px; }
.new-btn { box-shadow: 0 8px 20px var(--red-ring); }
.hero-orbit::before { border-color: var(--red); border-right-color: transparent; border-bottom-color: transparent; }
.hero h1 .red { background: linear-gradient(90deg, #0042b0, #0061fe, #4c9bff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Progress bar */
.fill { background: linear-gradient(90deg, #0042b0, #0061fe, #4c9bff); }
.mini-bar span, .quota-track span { background: var(--red); }

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