html, body, main, header, footer {
  margin: 0px;
  padding: 0px;
}

#app-title {
  text-align: center;
  font-size: 1.5rem;
  color: #1a3a5c;
  margin: 20px 0;
}

.calculator-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 24px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.input-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
}

.input-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.input-wrapper:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-field {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 12px;
  font-size: 1rem;
  color: #1a1a1a;
  background: transparent;
  min-width: 0;
}

.input-field::placeholder {
  color: #aaa;
}

.unit {
  padding: 10px 14px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  border-left: 1px solid #d0d5dd;
}

.button-group {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.btn {
  flex: 1;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s, opacity 0.2s;
}

.btn:active {
  opacity: 0.85;
}

.btn-primary {
  background: #2563eb;
  color: #ffffff;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-outline {
  background: transparent;
  color: #2563eb;
  border: 2px solid #2563eb;
}

.btn-outline:hover {
  background: #eff6ff;
}

.result-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.result-highlight {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.result-label {
  font-size: 0.95rem;
  color: #64748b;
  font-weight: 500;
}

.result-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  font-variant-numeric: tabular-nums;
}

.result-highlight .result-value {
  color: #2563eb;
}

.result-unit {
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 500;
}

@media (max-width: 768px) {
  .calculator-container {
    margin: 0 12px;
    padding: 16px;
  }

  #app-title {
    font-size: 1.25rem;
  }

  .result-value {
    font-size: 1.25rem;
  }

  .btn {
    padding: 10px 16px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .calculator-container {
    margin: 0 24px;
  }
}
