/*
 * 干し芋市場分析レポート プレミアムデザインシステム
 * 配色: サツマイモパープル (#4F1E5E), 黄金ゴールド (#D4AF37), 深いアースカラー (#121113, #1A181C)
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

:root {
  /* ライトモード用の配色 */
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f3f5;
  --accent-purple: #701e8a;
  --accent-gold: #b38600;
  --accent-gold-gradient: linear-gradient(135deg, #b38600 0%, #8f5a00 100%);
  --accent-purple-gradient: linear-gradient(135deg, #701e8a 0%, #9c3cbf 100%);
  --text-primary: #212529;
  --text-secondary: #495057;
  --text-muted: #868e96;
  --border-color: #dee2e6;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(112, 30, 138, 0.15);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.16);
  --shadow-purple: 0 8px 30px rgba(112, 30, 138, 0.1);

  /* アニメーション */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* フォント */
  --font-family: 'Outfit', 'Noto Sans JP', sans-serif;
}

[data-theme="dark"] {
  /* ダークモード用の配色 */
  --bg-primary: #0e0d10;
  --bg-secondary: #17151a;
  --bg-tertiary: #232027;
  --accent-purple: #8b3cff;
  --accent-gold: #f3b007;
  --accent-gold-gradient: linear-gradient(135deg, #f3b007 0%, #ff8c00 100%);
  --accent-purple-gradient: linear-gradient(135deg, #8b3cff 0%, #d13cff 100%);
  --text-primary: #f5f4f6;
  --text-secondary: #b0aeb5;
  --text-muted: #6e6b73;
  --border-color: #2e2a35;
  --glass-bg: rgba(23, 21, 26, 0.7);
  --glass-border: rgba(139, 60, 255, 0.15);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.8);
  --shadow-purple: 0 8px 30px rgba(139, 60, 255, 0.2);
}

/* リセット & 共通スタイル */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

/* スクロールバー */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
}

/* ヘッダー */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(14, 13, 16, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-normal);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-icon {
  font-size: 1.8rem;
  background: var(--accent-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(243, 176, 7, 0.4));
}

.header-brand h1 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, #ffffff, #d8d4dc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-period {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-gold);
  background: rgba(243, 176, 7, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  border: 1px solid rgba(243, 176, 7, 0.2);
  margin-left: 0.5rem;
}

.header-nav {
  display: flex;
  gap: 1.5rem;
}

.header-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition-fast);
}

.header-nav a:hover {
  color: var(--text-primary);
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-purple-gradient);
  transition: var(--transition-fast);
}

.header-nav a:hover::after {
  width: 100%;
}

/* メインコンテンツレイアウト */
.report {
  max-width: 1400px;
  margin: 6rem auto 2rem;
  padding: 0 2rem;
}

/* セクション共通スタイル */
.section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-color);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
}

.section:last-child {
  border-bottom: none;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: -0.5px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 2rem;
  background: var(--accent-purple-gradient);
  border-radius: 4px;
}

/* キービジュアル・サマリー */
.section-summary {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.hero-banner {
  background: linear-gradient(135deg, rgba(79, 30, 94, 0.4) 0%, rgba(14, 13, 16, 0) 100%),
              url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="%2317151a" width="100" height="100"/><path d="M0 100 C 30 70, 70 30, 100 0" stroke="%232e2a35" stroke-width="1" fill="none"/></svg>');
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-purple);
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 60, 255, 0.15) 0%, transparent 70%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-tag {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-gold);
  margin-bottom: 1rem;
  display: inline-block;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #ffffff, #d2cdd6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 800px;
}

/* KPIカードグリッド */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.kpi-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.kpi-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 60, 255, 0.4);
  box-shadow: var(--shadow-md);
}

.kpi-primary {
  background: linear-gradient(135deg, rgba(139, 60, 255, 0.1) 0%, rgba(23, 21, 26, 1) 100%);
  border: 1px solid rgba(139, 60, 255, 0.3);
}

.kpi-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-purple-gradient);
}

.kpi-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.kpi-value {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.kpi-primary .kpi-value {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(139, 60, 255, 0.3);
}

.kpi-sub {
  font-size: 0.8rem;
  font-weight: 500;
}

.trend-up {
  color: #10b981;
}

.trend-down {
  color: #ef4444;
}

/* 要約ハイライト */
.summary-points {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
}

.summary-points h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.summary-points ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.summary-points li {
  position: relative;
  padding-left: 3rem;
}

.summary-points li::before {
  content: '0' counter(list-item);
  counter-increment: list-item;
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-purple);
  background: rgba(139, 60, 255, 0.1);
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(139, 60, 255, 0.2);
}

.summary-points strong {
  display: block;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.summary-points p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* 用語解説アコーディオン */
.terminology-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-normal);
}

.terminology-box[open] {
  border-color: rgba(139, 60, 255, 0.2);
}

.terminology-box summary {
  padding: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  outline: none;
  transition: var(--transition-fast);
  color: var(--text-secondary);
}

.terminology-box summary:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

.term-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.1);
}

.term-item {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.term-item strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.25rem;
}

/* PESTLE分析カードグリッド */
.pestle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.pestle-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  transition: var(--transition-normal);
}

.pestle-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 60, 255, 0.3);
  box-shadow: var(--shadow-md);
}

.pestle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.pestle-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pestle-letter {
  font-size: 2rem;
  font-weight: 800;
  color: rgba(139, 60, 255, 0.2);
  line-height: 1;
}

.pestle-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.pestle-icon {
  font-size: 1.5rem;
}

.pestle-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.pestle-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.tag-opportunity {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.tag-threat {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.pestle-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pestle-bullet {
  position: relative;
  padding-left: 1rem;
}

.pestle-bullet::before {
  content: '•';
  color: var(--accent-purple);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.pestle-bullet strong {
  color: var(--text-primary);
}

/* グラフ・可視化エリア */
.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 2rem;
}

.chart-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.chart-card.full-width {
  grid-column: 1 / -1;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.chart-info h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.chart-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.chart-wrap {
  width: 100%;
  position: relative;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.chart-tall {
  height: 400px;
}

.chart-medium {
  height: 300px;
}

.chart-side-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.chart-side-desc strong {
  color: var(--text-primary);
}

/* インサイトバナー */
.insight-banner {
  background: linear-gradient(90deg, rgba(243, 176, 7, 0.08) 0%, rgba(0, 0, 0, 0) 100%);
  border-left: 4px solid var(--accent-gold);
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.5rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

/* テーブルスタイル */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.product-table th {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-weight: 600;
  padding: 1rem 1.2rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
}

.product-table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.product-table tbody tr:hover td {
  background: rgba(139, 60, 255, 0.04);
  color: var(--text-primary);
}

.product-table tbody tr:last-child td {
  border-bottom: none;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-a {
  background: rgba(139, 60, 255, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(139, 60, 255, 0.3);
}

.badge-origin-jp {
  background: rgba(243, 176, 7, 0.1);
  color: var(--accent-gold);
  border: 1px solid rgba(243, 176, 7, 0.2);
}

.badge-origin-cn {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* 参入障壁・考察カード */
.synthesis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.synthesis-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.synthesis-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}

.synthesis-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-top: 0.5rem;
}

.synthesis-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.synthesis-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.synthesis-item strong {
  font-size: 1.05rem;
  color: var(--text-primary);
}

.synthesis-item p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* ロードマップ・提言 */
.recommendations-box {
  background: linear-gradient(135deg, rgba(23, 21, 26, 1) 0%, rgba(14, 13, 16, 1) 100%);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem;
  margin-top: 2rem;
}

.recommendations-box h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.rec-card {
  background: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
}

.rec-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gold-gradient);
}

.rec-num {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  background: var(--accent-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.rec-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.rec-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* フッター */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 2rem;
  margin-top: 5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.footer-inner p {
  max-width: 900px;
}

/* アニメーションキーフレーム */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* モバイル対応 */
@media (max-width: 992px) {
  .header-nav {
    display: none; /* 簡単のためモバイルナビは一旦非表示、またはハンバーガーにする */
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .chart-grid {
    grid-template-columns: 1fr;
  }
  .synthesis-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero-banner {
    padding: 1.5rem;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .kpi-value {
    font-size: 1.8rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
}

/* ============================================================ */
/* Simulator Style */
/* ============================================================ */
.simulator-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

.simulator-card:hover {
  border-color: var(--glass-border);
  box-shadow: var(--shadow-purple);
}

.sim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 900px) {
  .sim-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.sim-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.control-group label {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 1rem;
}

.control-group label span {
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 1.2rem;
}

.control-group input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-tertiary);
  outline: none;
}

.control-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-purple);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(139, 60, 255, 0.5);
  transition: var(--transition-fast);
}

.control-group input[type="range"]::-webkit-slider-thumb:hover {
  background: #a855f7;
  transform: scale(1.1);
}

.range-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sim-results {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.result-box {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
  transition: var(--transition-fast);
}

.result-box:hover {
  border-color: var(--glass-border);
  background: rgba(139, 60, 255, 0.05);
}

.result-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}

.result-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.result-value.highlight {
  color: var(--accent-gold);
}

.result-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* ============================================================ */
/* Control Panel & Toggle Buttons */
/* ============================================================ */
.control-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.2rem 2rem;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.control-panel-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-gold);
  border-left: 3px solid var(--accent-gold);
  padding-left: 0.5rem;
}

.control-panel-body {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.control-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.control-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.toggle-group {
  display: flex;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2px;
}

.toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 18px;
  transition: var(--transition-fast);
}

.toggle-btn:hover {
  color: var(--text-primary);
}

.toggle-btn.active {
  background: var(--accent-purple);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(139, 60, 255, 0.4);
}

.theme-toggle-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
  margin-left: 1.5rem;
}

.theme-toggle-btn:hover {
  background: var(--accent-purple);
  color: #ffffff;
  border-color: var(--accent-purple);
}
