body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #e0e7ff 0%, #f5f7fa 100%);
  padding: 40px 0;
  min-height: 100vh;
}

.container {
  max-width: 900px;
  margin: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(60, 72, 100, 0.13);
  padding: 40px 32px;
}

h1 {
  text-align: center;
  margin-bottom: 36px;
  font-size: 2.5em;
  font-weight: 800;
  letter-spacing: -1px;
  color: #1a237e;
}

.calculator {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.inputs {
  flex: 1 1 240px;
  background: #f6f8fc;
  border-radius: 12px;
  padding: 18px 12px;
  box-shadow: 0 2px 8px rgba(60, 72, 100, 0.06);
  min-width: 200px;
}

.inputs label {
  display: block;
  margin-bottom: 18px;
  font-weight: 600;
  color: #374151;
  font-size: 1.05em;
  position: relative;
}

.inputs input,
.inputs select {
  width: 70%;
  padding: 10px 12px;
  margin-top: 7px;
  font-size: 1em;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  transition: border 0.2s;
  outline: none;
}

.inputs input:focus,
.inputs select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px #6366f133;
}

.inputs button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(90deg, #6366f1 0%, #2563eb 100%);
  color: white;
  font-size: 1.1em;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  margin-top: 18px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(60, 72, 100, 0.09);
  transition: background 0.2s, transform 0.1s;
}

.inputs button:hover {
  background: linear-gradient(90deg, #2563eb 0%, #6366f1 100%);
  transform: translateY(-2px) scale(1.02);
}

.results {
  flex: 1 1 320px;
  background: #f9fafb;
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 2px 8px rgba(60, 72, 100, 0.06);
  min-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: top;
}

.results h2 {
  font-size: 1.4em;
  font-weight: 700;
  color: #374151;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

.results p {
  font-size: 1.13em;
  margin-bottom: 14px;
  color: #374151;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.results strong {
  font-size: 1.15em;
  color: #2563eb;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.dollar-input-wrapper {
  position: relative;
  display: block;
}

.dollar-input-wrapper::before {
  content: "$";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6366f1;
  font-weight: 700;
  font-size: 1em;
  pointer-events: none;
}

.dollar-input {
  padding-left: 2.2em;
  text-align: right;
}

.right-align-input {
  text-align: right;
  padding-right: 12px;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
}
.results-table th, .results-table td {
  padding: 10px 8px;
  text-align: right;
  border-bottom: 1px solid #e5e7eb;
}
.results-table th:first-child,
.results-table td:first-child {
  text-align: left;
  color: #374151;
  font-weight: 600;
}
.results-table th {
  background: #f3f4f6;
  color: #2563eb;
  font-weight: 700;
}

@media (max-width: 900px) {
  .calculator {
    flex-direction: column;
    gap: 24px;
  }
  .container {
    padding: 24px 8px;
  }
}
