body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f8f9fa;
  color: #222;
  line-height: 1.6;
  margin: 0;
  padding: 1rem;
}

header {
  background-color: #2e3a59;
  color: white;
  padding: 2rem 1rem;
  text-align: center;
  border-radius: 10px;
  margin-bottom: 2rem;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

main {
  max-width: 800px;
  margin: auto;
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input, select, button {
  padding: 0.6rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button {
  background-color: #2e3a59;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #445678;
}

#resultContainer {
  margin-top: 1rem;
  padding: 1rem;
  border-left: 4px solid #2e3a59;
  background-color: #eef3f8;
  border-radius: 5px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

table, th, td {
  border: 1px solid #ccc;
}

th, td {
  padding: 0.75rem;
  text-align: center;
}

th {
  background-color: #f0f0f0;
}

code {
  display: block;
  background-color: #f1f1f1;
  padding: 0.5rem;
  margin: 0.5rem 0;
  border-left: 3px solid #2e3a59;
  font-size: 0.95rem;
  overflow-x: auto;
}

footer {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.9rem;
  color: #555;
}

@media (max-width: 600px) {
  main {
    padding: 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  button, input, select {
    font-size: 0.95rem;
  }
}
