:root {
  --bg-color: #fffdf7;
  --surface: #ffffff;
  --text-primary: #17202a;
  --text-secondary: #475569;
  --accent: #f6b84b;
  --success: #10b981;
  --border: #e2e8f0;
}
[data-theme="dark"] {
  --bg-color: #17202a;
  --surface: #1e2832;
  --text-primary: #fffdf7;
  --text-secondary: rgba(255, 253, 247, 0.7);
  --accent: #f6b84b;
  --success: #34d399;
  --border: rgba(255, 253, 247, 0.15);
}
[data-theme="dim"] {
  --bg-color: #1e3a8a;
  --surface: #2548a8;
  --text-primary: #fffdf7;
  --text-secondary: rgba(255, 253, 247, 0.78);
  --accent: #2bae9a;
  --success: #34d399;
  --border: rgba(255, 253, 247, 0.2);
}
[data-theme="black"] {
  --bg-color: #000000;
  --surface: #0a0a0a;
  --text-primary: #fffdf7;
  --text-secondary: rgba(255, 253, 247, 0.7);
  --accent: #f6b84b;
  --success: #34d399;
  --border: rgba(255, 253, 247, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
}

h1, h2, .logo { font-family: 'Georgia', serif; }

.app-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.header { text-align: center; margin-bottom: 3rem; }
.logo { font-size: 1.5rem; font-weight: bold; margin-bottom: 1.5rem; }
.dot { color: var(--accent); }
.header h1 { font-size: 2.5rem; margin-bottom: 1rem; font-weight: normal; }
.header p { color: var(--text-secondary); }

.timeline-app {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.controls {
  margin-bottom: 2rem;
  text-align: center;
}

.controls label {
  display: block;
  font-weight: 600;
  margin-bottom: 1rem;
}

input[type="range"] {
  width: 100%;
  appearance: none;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  outline: none;
  margin-bottom: 1rem;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(246, 184, 75, 0.4);
}

.slider-value {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--accent);
}

.milestone-card {
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(246, 184, 75, 0.05);
  border: 2px solid var(--accent);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.milestone-card h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.milestone-card p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.progress-bar-container {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--success);
  width: 0%;
  transition: width 0.5s ease-out;
}

.support-tips {
  margin-top: 2.5rem;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
}

.support-tips h3 {
  font-family: 'Georgia', serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #059669;
}

.support-tips p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.support-tips ul {
  padding-left: 1.2rem;
  color: var(--text-secondary);
}

.support-tips li {
  margin-bottom: 0.8rem;
}

.support-tips strong {
  color: var(--text-primary);
}

/* --- CSS DE REFERÊNCIAS --- */
.references { margin-top: 2rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; font-size: 0.9rem; text-align: left; color: var(--text-primary); }
.references h3 { margin-top: 0; font-size: 1rem; color: var(--text-primary); margin-bottom: 0.5rem; }
.references p { margin-bottom: 1rem; color: var(--text-secondary); }
.references ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.references li { margin-bottom: 0.5rem; color: var(--text-secondary); }
.references a { color: var(--accent); text-decoration: none; font-weight: bold; }
.references .disclaimer { margin-top: 1rem; font-style: italic; color: var(--text-secondary); font-size: 0.85rem; border-top: 1px solid var(--border); padding-top: 0.8rem; }
