body {
  font-family: Arial, sans-serif;
  background: #f8f8f8;
  margin: 0;
  padding: 20px;
  color: #333;
}

.calculator-container {
  max-width: 700px;
  margin: 30px auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 30px;
  text-align: center;
}

h1 {
  margin-bottom: 10px;
  color: #222;
}

p {
  font-size: 14px;
  margin-bottom: 20px;
  color: #555;
}

.diagram {
  margin-bottom: 20px;
}

.diagram img {
  max-width: 100%;
  height: auto;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  margin-right: 15px;
  font-weight: bold;
}

.inputs {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.field label {
  margin-bottom: 5px;
}

.field input {
  padding: 8px;
  width: 150px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.buttons {
  margin-bottom: 20px;
}

.buttons button {
  padding: 10px 20px;
  background: #1e73be;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin: 0 10px;
  font-weight: bold;
  transition: background 0.3s;
}

.buttons button[type="reset"] {
  background: #777;
}

.buttons button:hover {
  background: #155a8a;
}

.result-section {
  margin-top: 20px;
  text-align: left;
  background: #f4f7fb;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 16px;
  line-height: 1.5;
  white-space: pre-wrap;
}
