.calculator {
  background: #ffffff;
  color: inherit;
  max-width: 500px;
  margin: 2em auto;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-family: inherit;
}

.calculator h2 {
  font-size: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
}

.tab {
  flex: 1;
  padding: 10px;
  background-color: #f1f1f1;
  color: #333;
  font-weight: 600;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s ease;
}

.tab.active {
  background-color: #0073aa;
  color: #fff;
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

input,
select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font: inherit;
  box-sizing: border-box;
}

.calculate-btn {
  width: 100%;
  padding: 10px;
  background-color: #0073aa;
  color: #fff;
  border: none;
  font-size: 16px;
  cursor: pointer;
  border-radius: 4px;
  margin-top: 10px;
  transition: background 0.2s ease;
}

.calculate-btn:hover {
  background-color: #005e8c;
}

.result-table {
  margin-top: 20px;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: #fafafa;
}

.result-table h3 {
  background: #f0f0f0;
  margin: 0;
  padding: 10px;
  font-size: 16px;
  border-bottom: 1px solid #ddd;
}

.result-row {
  display: flex;
  border-bottom: 1px solid #eee;
}

.result-label,
.result-value {
  padding: 10px;
  flex: 1;
}

.result-label {
  background: #f9f9f9;
  font-weight: 500;
}

.result-value {
  text-align: right;
  font-weight: 600;
}
