body {
  font-family: Arial, sans-serif;
  background-color: #dec689;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.container {
  background: #f6f5f5;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 350px;
  text-align: center;
}

h1 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

label, select, input, button {
  width: 100%;
  margin-bottom: 1rem;
  font-size: 1rem;
}

input, select {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.to {
  display: block;
  margin: 0.5rem 0;
  font-weight: bold;
}

button {
  padding: 0.6rem;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background-color: #45a049;
}

#result {
  margin-top: 1rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: #222;
}

.theme-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.9rem;
}

body.dark {
  background-color: #121212;
  color: #f0f0f0;
}

body.dark .container {
  background-color: #1e1e1e;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

body.dark select,
body.dark input {
  background-color: #2c2c2c;
  color: #f0f0f0;
  border: 1px solid #555;
}

body.dark button {
  background-color: #00796B;
}

body.dark button:hover {
  background-color: #00695C;
}

.footer {
  margin-top: 2rem;
  padding: 1rem;
  text-align: center;
  font-size: 0.95rem;
  color: #666;
  background-color: #f0f0f0;
  border-top: 1px solid #ccc;
  position: relative;
}

body.dark .footer {
  background-color: #1a1a1a;
  color: #aaa;
  border-top: 1px solid #333;
}
