@import url("../../../assets/conversion-workbench.css");

:root {
  --tool-accent: #2563eb;
  --tool-accent-strong: #1d4ed8;
  --tool-accent-soft: #eaf2ff;
}

.tool-card-soft {
  border: 1px solid var(--tool-border);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 16px 34px rgba(34, 64, 122, 0.08);
  padding: 20px;
}

.salary-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
}

.salary-form,
.salary-choice-card {
  display: grid;
  gap: 14px;
}

.salary-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-stack {
  display: grid;
  gap: 8px;
}

.field-stack span {
  font-size: 14px;
  color: #475569;
}

.salary-input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--tool-border);
  border-radius: 12px;
  background: #fff;
  color: #334155;
  font-size: 14px;
}

.salary-choice-card {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--tool-border);
  border-radius: 18px;
  background: #f8fbff;
}

.salary-form-card .converter-actions {
  margin-top: 18px;
}

.salary-form-card .converter-status {
  margin-top: 10px;
}

.choice-group {
  display: grid;
  gap: 10px;
}

.choice-group > span {
  font-size: 14px;
  color: #334155;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice-chip {
  display: inline-flex;
  align-items: center;
}

.choice-chip input {
  display: none;
}

.choice-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--tool-border);
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 14px;
  cursor: pointer;
}

.choice-chip input:checked + span {
  border-color: #93c5fd;
  background: var(--tool-accent-soft);
  color: var(--tool-accent-strong);
}

.salary-hero {
  padding: 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.16), transparent 34%),
    linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
}

.salary-hero__label {
  font-size: 13px;
  color: #cbd5e1 !important;
}

.salary-hero__value {
  margin-top: 12px;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1;
  font-weight: 800;
  color: #ffffff !important;
  text-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
}

.salary-hero__sub {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.8;
  color: #dbeafe !important;
}

.salary-meta {
  margin-top: 16px;
}

.salary-table-card {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--tool-border);
  border-radius: 20px;
  background: #fff;
}

.salary-table-wrap {
  overflow-x: auto;
}

.salary-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.salary-table th,
.salary-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  font-size: 14px;
  color: #334155;
}

.salary-table th {
  color: #64748b;
  font-weight: 600;
}

@media (max-width: 980px) {
  .salary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .salary-form,
  .converter-meta.salary-meta {
    grid-template-columns: 1fr;
  }
}
