:root {
  --bg: #f4f4f4;
  --text: #222;
  --accent: #2b6cb0;
  --card: #ffffff;
}

body.dark {
  --bg: #111;
  --text: #eee;
  --accent: #63b3ed;
  --card: #1e1e1e;
}

body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: all 0.3s ease;
}

.container {
  max-width: 700px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  animation: slideUp 0.5s ease-out;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

h1 {
  font-size: 1.8rem;
}

input, select {
  width: 100%;
  padding: 0.5rem;
  margin: 0.4rem 0;
  border: 1px solid #ccc;
  border-radius: 8px;
}

button {
  background: var(--accent);
  color: white;
  padding: 0.6rem 1.2rem;
  margin: 0.5rem 0.2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

button:hover {
  background: darken(var(--accent), 10%);
}

.results-section {
  margin-top: 2rem;
  border-top: 1px solid #ccc;
  padding-top: 1rem;
}

#results {
  background: var(--bg);
  padding: 1rem;
  border-radius: 10px;
  font-family: monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
