/* === DEMO APP — Mokemon Skin === */

body.skin-mokemon {
  --bg: #f5f0e8;
  --bg-card: #ffffff;
  --bg-card-alt: #efe9dc;
  --border: #d6cdba;
  --border-accent: #4a7c59;
  --text: #2c1810;
  --text-muted: #5a4a3a;
  --text-dim: #8a7a6a;
  --accent: #4a7c59;
  --accent-bright: #6fa57e;
  --warm: #ffd700;
  --danger: #b85c38;
  --info: #4a90a4;
  --moss: #4a7c59;
  --earth: #2c1810;
  --glow: #ffd700;
  --spore: #f5f0e8;

  font-family: 'Nunito Sans', sans-serif;
  background: linear-gradient(180deg, var(--spore) 0%, #e8f4e8 100%);
  color: var(--earth);
  font-size: 14px;
  line-height: 1.5;
}

body.skin-mokemon .skin-corp-only { display: none !important; }

body.skin-mokemon h2, body.skin-mokemon h3, body.skin-mokemon h4, body.skin-mokemon h5 {
  font-family: 'Fredoka One', cursive;
  font-weight: 400;
  color: var(--earth);
}

/* === Sidebar === */
body.skin-mokemon .sidebar {
  background: white;
  border-right: 4px solid var(--earth);
}
body.skin-mokemon .sb-name {
  font-family: 'Fredoka One', cursive;
  color: var(--moss);
}
body.skin-mokemon .sb-link {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: var(--earth);
}
body.skin-mokemon .sb-link:hover { background: var(--bg-card-alt); }
body.skin-mokemon .sb-link.active {
  background: var(--moss);
  color: white;
}
body.skin-mokemon .skin-switcher-mini {
  background: var(--moss);
  color: white;
  border: 2px solid var(--earth);
  border-radius: 100px;
  padding: 8px 14px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  cursor: pointer;
}

/* === Main === */
body.skin-mokemon .main { background: var(--spore); }
body.skin-mokemon .m-header {
  border-bottom: 3px dashed var(--moss);
}
body.skin-mokemon .m-header h2 {
  font-size: 26px;
  color: var(--earth);
}
body.skin-mokemon .m-header h2::after { content: ' 🍄'; }

body.skin-mokemon .m-status {
  background: var(--moss);
  color: white;
  padding: 6px 14px;
  border-radius: 100px;
  font-weight: 700;
  border: 2px solid var(--earth);
  font-family: 'Nunito', sans-serif;
}
body.skin-mokemon .status-dot { background: var(--glow) !important; }
body.skin-mokemon .m-select {
  background: white;
  border: 3px solid var(--earth);
  color: var(--earth);
  padding: 6px 12px;
  border-radius: 100px;
  font-weight: 700;
}

/* === Container Cards (Pokemon-style) === */
body.skin-mokemon .cont-card {
  background: white;
  border: 4px solid var(--earth);
  border-radius: 16px;
  box-shadow: 0 4px 0 var(--earth);
  padding: 18px;
}
body.skin-mokemon .cont-card.cont-warn { background: linear-gradient(135deg, var(--glow) 0%, white 70%); }
body.skin-mokemon .cont-card.cont-alert {
  background: linear-gradient(135deg, #fee 0%, white 70%);
  animation: pulseAlertM 2s infinite;
}
@keyframes pulseAlertM {
  0%, 100% { box-shadow: 0 4px 0 var(--earth); }
  50% { box-shadow: 0 4px 0 var(--earth), 0 0 24px rgba(184,92,56,0.5); }
}
body.skin-mokemon .cont-name {
  font-family: 'Fredoka One', cursive;
  font-size: 16px;
  color: var(--earth);
}
body.skin-mokemon .cont-status {
  font-family: 'Fredoka One', cursive;
  font-size: 11px;
}
body.skin-mokemon .cs {
  background: var(--bg-card-alt);
  border: 2px solid var(--earth);
  border-radius: 8px;
  padding: 8px;
}
body.skin-mokemon .cs-l {
  font-size: 9px;
  color: var(--earth);
  font-weight: 700;
  text-transform: uppercase;
}
body.skin-mokemon .cs-v {
  font-family: 'Fredoka One', cursive;
  color: var(--moss);
}
body.skin-mokemon .cont-stage {
  border-top: 2px dashed var(--moss);
  font-family: 'Nunito', sans-serif;
  color: var(--earth);
  font-weight: 600;
}
body.skin-mokemon .cont-alert-msg {
  background: var(--danger);
  color: white;
  border: 2px solid var(--earth);
  border-radius: 8px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
}

/* === Overview extra === */
body.skin-mokemon .ox-card {
  background: white;
  border: 3px solid var(--earth);
  border-radius: 12px;
  box-shadow: 0 3px 0 var(--earth);
}
body.skin-mokemon .ox-card h4 {
  font-family: 'Fredoka One', cursive;
  font-size: 13px;
  color: var(--moss);
}
body.skin-mokemon .ox-row {
  border-bottom: 1px dashed var(--border);
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
}
body.skin-mokemon .ox-row .ok { color: var(--moss); }
body.skin-mokemon .ox-tour-hint {
  background: linear-gradient(135deg, var(--glow) 0%, white 70%);
}

/* === Sensors === */
body.skin-mokemon .chart-card {
  background: white;
  border: 3px solid var(--earth);
  border-radius: 12px;
  box-shadow: 0 4px 0 var(--earth);
}
body.skin-mokemon .si-card {
  background: white;
  border: 3px solid var(--earth);
  border-radius: 12px;
  box-shadow: 0 3px 0 var(--earth);
}
body.skin-mokemon .si-card h5 {
  font-family: 'Fredoka One', cursive;
  font-size: 13px;
  color: var(--moss);
}

/* === AI Camera === */
body.skin-mokemon .camera-feed {
  background: var(--earth);
  border: 4px solid var(--earth);
  border-radius: 16px;
  box-shadow: 0 4px 0 var(--earth);
  overflow: hidden;
}
body.skin-mokemon .feed-frame {
  background: linear-gradient(180deg, #4a3060 0%, #2c1810 100%);
}
body.skin-mokemon .feed-grow {
  background-image:
    radial-gradient(ellipse 30px 16px at 25% 55%, rgba(255,215,0,0.85) 0%, rgba(255,215,0,0.4) 30%, transparent 65%),
    radial-gradient(ellipse 28px 14px at 45% 60%, rgba(255,215,0,0.8) 0%, rgba(255,215,0,0.35) 30%, transparent 65%),
    radial-gradient(ellipse 32px 18px at 68% 55%, rgba(232,244,232,0.9) 0%, rgba(232,244,232,0.4) 30%, transparent 65%),
    radial-gradient(ellipse 24px 12px at 32% 70%, rgba(180,220,180,0.6) 0%, transparent 60%),
    radial-gradient(ellipse 20px 10px at 55% 72%, rgba(180,220,180,0.5) 0%, transparent 60%);
}
body.skin-mokemon .feed-meta {
  font-family: 'Nunito', monospace;
  font-weight: 700;
  color: var(--glow);
}
body.skin-mokemon .btn-scan {
  background: var(--moss);
  color: white;
  border: 3px solid var(--earth);
  padding: 14px 18px;
  border-radius: 100px;
  font-family: 'Fredoka One', cursive;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--earth);
}
body.skin-mokemon .btn-scan:hover { transform: translate(-1px,-1px); box-shadow: 0 5px 0 var(--earth); }
body.skin-mokemon .scan-result {
  background: white;
  border: 3px solid var(--earth);
  border-radius: 12px;
  font-family: 'Fredoka One', cursive;
  box-shadow: 0 3px 0 var(--earth);
}
body.skin-mokemon .scan-result.scan-ok { color: var(--moss); }
body.skin-mokemon .scan-result.scan-warn { color: #d97706; }
body.skin-mokemon .scan-result.scan-alert { color: var(--danger); }
body.skin-mokemon .camera-meta,
body.skin-mokemon .camera-history {
  background: white;
  border: 3px solid var(--earth);
  border-radius: 12px;
  box-shadow: 0 3px 0 var(--earth);
}
body.skin-mokemon .camera-meta h5,
body.skin-mokemon .camera-history h4 {
  font-family: 'Fredoka One', cursive;
  color: var(--moss);
}

/* === Finance === */
body.skin-mokemon .fin-controls,
body.skin-mokemon .fin-pl,
body.skin-mokemon .fin-stats {
  background: white;
  border: 3px solid var(--earth);
  border-radius: 12px;
  box-shadow: 0 4px 0 var(--earth);
}
body.skin-mokemon .fin-controls h4,
body.skin-mokemon .fin-pl h4 {
  font-family: 'Fredoka One', cursive;
  color: var(--moss);
}
body.skin-mokemon .preset-btn {
  background: white;
  border: 2px solid var(--earth);
  color: var(--earth);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 100px;
  cursor: pointer;
}
body.skin-mokemon .preset-btn.active {
  background: var(--moss);
  color: white;
}
body.skin-mokemon .pl-table {
  font-family: 'Nunito Sans', sans-serif;
}
body.skin-mokemon .pl-table .num.green { color: var(--moss); font-weight: 700; }
body.skin-mokemon .pl-table .num.red { color: var(--danger); font-weight: 700; }
body.skin-mokemon .pl-total td {
  border-top: 2px solid var(--moss);
  font-weight: 800;
}
body.skin-mokemon .fs {
  background: var(--bg-card-alt);
  border: 2px solid var(--earth);
  border-radius: 10px;
}
body.skin-mokemon .fs-v {
  font-family: 'Fredoka One', cursive;
  color: var(--moss);
}
body.skin-mokemon .btn-print {
  background: white;
  border: 3px solid var(--earth);
  color: var(--earth);
  padding: 6px 16px;
  border-radius: 100px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  cursor: pointer;
}

/* === SPECIES GUIDE Mokemon === */
body.skin-mokemon .species-grid-demo { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-bottom: 24px; }
body.skin-mokemon .species-dx { background: white; border: 4px solid #2c1810; border-radius: 14px; padding: 16px 18px; position: relative; box-shadow: 0 5px 0 #2c1810; }
body.skin-mokemon .species-dx.species-active { background: linear-gradient(135deg, #ffd700 0%, white 60%); }
body.skin-mokemon .species-dx.species-locked { filter: grayscale(0.4); opacity: 0.85; }
body.skin-mokemon .species-dx.species-legendary { background: linear-gradient(135deg, #b85c38 0%, white 50%); }
body.skin-mokemon .dx-num { position: absolute; top: 10px; right: 12px; font-family: 'Fredoka One', cursive; font-size: 12px; color: #2c1810; }
body.skin-mokemon .dx-lock { position: absolute; top: 10px; left: 12px; font-size: 16px; }
body.skin-mokemon .dx-mascot { text-align: center; height: 96px; margin-bottom: 8px; filter: drop-shadow(3px 4px 0 rgba(44,24,16,0.4)); }
body.skin-mokemon .dx-icon { text-align: center; font-size: 56px; margin-bottom: 8px; }
body.skin-mokemon .species-dx h3 { font-family: 'Fredoka One', cursive; font-size: 22px; color: #2c1810; margin: 4px 0; }
body.skin-mokemon .dx-meta { font-family: 'Nunito', sans-serif; font-size: 11px; color: #5a4a3a; font-weight: 600; margin-bottom: 8px; }
body.skin-mokemon .dx-tag { display: inline-block; font-family: 'Fredoka One', cursive; font-size: 10px; padding: 3px 9px; border: 2px solid #2c1810; border-radius: 100px; margin-bottom: 10px; box-shadow: 0 2px 0 #2c1810; }
body.skin-mokemon .tag-phase0 { background: #4a7c59; color: white; }
body.skin-mokemon .tag-phase2 { background: #4a90a4; color: white; }
body.skin-mokemon .tag-phase3 { background: #b85c38; color: white; }
body.skin-mokemon .tag-support { background: #c8a44e; color: #2c1810; }
body.skin-mokemon .dx-stat { display: grid; grid-template-columns: 60px 1fr 28px; gap: 8px; align-items: center; font-size: 11px; font-family: 'Nunito', monospace; color: #2c1810; font-weight: 700; padding: 2px 0; }
body.skin-mokemon .dx-stat .bar { display: block; height: 8px; background: #efe9dc; border: 2px solid #2c1810; border-radius: 100px; overflow: hidden; }
body.skin-mokemon .dx-stat .bar i { display: block; height: 100%; background: linear-gradient(90deg, #4a7c59, #ffd700); }
body.skin-mokemon .species-dx.species-legendary .dx-stat .bar i { background: linear-gradient(90deg, #b85c38, #ffd700); }
body.skin-mokemon .dx-desc { font-family: 'Nunito Sans', sans-serif; font-size: 12px; color: #2c1810; font-weight: 500; border-top: 2px dashed #4a7c59; padding-top: 10px; margin-top: 10px; }
body.skin-mokemon .species-modal { position: fixed; inset: 0; z-index: 999; background: rgba(44,24,16,0.7); display: flex; align-items: center; justify-content: center; padding: 24px; }
body.skin-mokemon .species-modal[hidden] { display: none; }
body.skin-mokemon .sm-content { background: white; border: 4px solid #2c1810; border-radius: 16px; padding: 32px; max-width: 480px; position: relative; box-shadow: 0 6px 0 #2c1810; }
body.skin-mokemon .sm-close { position: absolute; top: 8px; right: 12px; background: transparent; border: none; color: #2c1810; font-size: 28px; cursor: pointer; font-family: 'Fredoka One', cursive; }

/* === Roadmap === */
body.skin-mokemon .rmp-bar {
  background: var(--bg-card-alt);
  border: 2px solid var(--earth);
  border-radius: 100px;
  width: 200px;
  height: 12px;
  overflow: hidden;
}
body.skin-mokemon .rmp-fill {
  background: linear-gradient(90deg, var(--moss), var(--glow));
  height: 100%;
}
body.skin-mokemon .rmp-pct {
  font-family: 'Fredoka One', cursive;
  color: var(--moss);
}
body.skin-mokemon .quest {
  background: white;
  border: 3px solid var(--earth);
  border-radius: 12px;
  box-shadow: 0 3px 0 var(--earth);
}
body.skin-mokemon .quest summary {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: var(--earth);
}
body.skin-mokemon .quest.done summary { color: var(--moss); }
body.skin-mokemon .quest.done summary::before { content: '🏆 '; }
body.skin-mokemon .quest.in-progress summary { color: #d97706; }
body.skin-mokemon .quest.in-progress summary::before { content: '⚡ '; }
body.skin-mokemon .quest.todo summary { color: var(--text-dim); }
body.skin-mokemon .quest.todo summary::before { content: '🔒 '; }
body.skin-mokemon .quest p {
  font-family: 'Nunito Sans', sans-serif;
  border-top: 1px dashed var(--moss);
}

/* === Presentation === */
body.skin-mokemon .pres-card {
  background: white;
  border: 4px solid var(--earth);
  border-radius: 16px;
  box-shadow: 0 6px 0 var(--earth);
  text-align: center;
  max-width: 600px;
  margin: 32px auto;
  padding: 32px;
}
body.skin-mokemon .pres-card h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 26px;
  color: var(--moss);
  margin-bottom: 12px;
}
body.skin-mokemon .btn-primary {
  background: var(--moss);
  color: white;
  border: 3px solid var(--earth);
  padding: 14px 28px;
  border-radius: 100px;
  font-family: 'Fredoka One', cursive;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--earth);
}
body.skin-mokemon .btn-ghost {
  background: white;
  color: var(--earth);
  border: 3px solid var(--earth);
  padding: 14px 28px;
  border-radius: 100px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--earth);
}
body.skin-mokemon .pres-narration {
  background: var(--glow);
  border: 2px solid var(--earth);
  border-left-width: 6px;
  border-radius: 8px;
  font-family: 'Nunito Sans', sans-serif;
  color: var(--earth);
  font-weight: 600;
}

@media (max-width: 800px) {
  body.skin-mokemon { flex-direction: column; }
  body.skin-mokemon .sidebar {
    width: 100%;
    height: auto;
    flex-direction: row;
    overflow-x: auto;
    padding: 12px;
  }
  body.skin-mokemon .sb-nav { display: flex; gap: 6px; padding: 0; flex: 1; }
  body.skin-mokemon .sb-link { white-space: nowrap; padding: 6px 10px; font-size: 11px; }
  body.skin-mokemon .sb-brand, body.skin-mokemon .sb-footer { display: none; }
  body.skin-mokemon .main { height: calc(100vh - 60px); padding: 16px; }
}
