:root {
  --bg-color: #f8fafc;
  --surface: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --accent: #0ea5e9;
  --accent-hover: #0284c7;
  --border: #cbd5e1;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #0f172a;
    --surface: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #38bdf8;
    --border: #334155;
  }
}

* { 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.5;
}

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

.header { text-align: center; margin-bottom: 2rem; }
.badge {
  display: inline-block;
  background: rgba(14, 165, 233, 0.1);
  color: var(--accent);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.header h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.header p { color: var(--text-secondary); }

.converter-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.col { flex: 1; text-align: center; }

.labels-row {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

input[type="number"], input[type="text"] {
  width: 100%;
  background: var(--bg-color);
  border: 2px solid var(--border);
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: bold;
  padding: 0.75rem;
  border-radius: 8px;
  outline: none;
  font-family: 'Inter', sans-serif;
  text-align: center;
  transition: all 0.2s;
}
input[type="number"]:focus, input[type="text"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.action-row {
  margin: 2rem 0;
  text-align: center;
}

button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}
button:hover, button:active {
  background: #f59e0b;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.8);
}

.result-row {
  background: var(--bg-color);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 1.5rem 1rem;
}

.result-val {
  font-size: 2rem;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.result-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: bold;
}

.footer-note {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- CSS DE REFERÊNCIAS --- */
.references { margin-top: 2rem; padding: 1.5rem; background: rgba(15,23,42,0.05); border-radius: 8px; font-size: 0.9rem; text-align: left; }
.references h3 { margin-top: 0; font-size: 1rem; color: var(--text-primary, #17202a); margin-bottom: 0.5rem; }
.references p { margin-bottom: 1rem; color: var(--text-secondary, #475569); }
.references ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.references li { margin-bottom: 0.5rem; color: var(--text-secondary, #475569); }
.references a { color: #0ea5e9; text-decoration: none; font-weight: bold; }
.references .disclaimer { margin-top: 1rem; font-style: italic; color: #64748b; font-size: 0.85rem; border-top: 1px solid rgba(0,0,0,0.1); padding-top: 0.8rem; }
