:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --text: #1f2937;
  --text-strong: #111827;
  --label: #4b5563;
  --muted: #6b7280;
  --faint: #9ca3af;
  --border: #d1d5db;
  --field: #f9fafb;
  --accent: #059669;
  --daily: #374151;
  --shadow: rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111827;
    --surface: #1f2937;
    --text: #f9fafb;
    --text-strong: #ffffff;
    --label: #d1d5db;
    --muted: #9ca3af;
    --faint: #6b7280;
    --border: #374151;
    --field: #111827;
    --accent: #34d399;
    --daily: #e5e7eb;
    --shadow: rgba(0, 0, 0, 0.4);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.container {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 12px var(--shadow);
}

h1 {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--label);
}

.input-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--field);
  margin-bottom: 2rem;
}

.currency-prefix {
  font-weight: 600;
  color: var(--muted);
  margin-right: 0.5rem;
}

input[type="number"] {
  border: none;
  background: transparent;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-strong);
  width: 100%;
  outline: none;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.results {
  text-align: center;
}

.weekly {
  margin-bottom: 1.5rem;
}

.weekly-label {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.weekly-value {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}

.daily {
  margin-bottom: 2rem;
}

.daily-label {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.daily-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--daily);
}

.details {
  font-size: 0.875rem;
  color: var(--faint);
  line-height: 1.6;
}

.details p {
  margin: 0.25rem 0;
}
