.calculator {
  border: 1px solid #bbf7d0;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.header {
  padding: 1.5rem;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  background: linear-gradient(to right, #eef2ff, #eff6ff);
}

.headerTitle {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #111827;
}

.headerDescription {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #4b5563;
  margin-top: 0.375rem;
}

.body {
  padding: 1.5rem;
}

.modeSelector {
  display: flex;
  background: #f1f5f9;
  padding: 0.25rem;
  border-radius: 0.375rem;
}

.modeSelector button {
  flex: 1;
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  border: none;
  background: transparent;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  cursor: pointer;
  font-family: inherit;
  color: #64748b;
}

.modeSelector button.active {
  background: #fff;
  color: #020817;
}

.bodyContent {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.input,
.output {
  flex: 1;
}

.input .title,
.output .result {
  color: #111827;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.output .result span {
  color: #2563eb;
}

.output .description {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #4b5563;
}

.note {
  border: 1px solid #fde68a;
  background: #fffbeb;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.formula {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.code {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono',
    'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.25rem;
  margin-top: 0.5rem;
}

.note,
.formula {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 0.5rem;
  color: #374151;
}

.note > .label,
.formula > .label {
  font-size: 0.875rem;
  line-height: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #111827;
}

@media (max-width: 768px) {
  .bodyContent {
    display: block;
  }

  .output {
    margin-top: 1.5rem;
  }
}
