/* TechTools — salary calculator styles */
/* ---- Salary Type Tabs ---- */
.salary-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-radius: var(--radius-btn);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  width: fit-content;
}
.salary-tab {
  padding: 10px 28px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  white-space: nowrap;
}
.salary-tab:first-child {
  border-right: 1px solid rgba(255,255,255,0.06);
}
.salary-tab.active {
  background: rgba(16,185,129,0.15);
  color: var(--cat-life);
  text-shadow: 0 0 16px rgba(16,185,129,0.35);
}
.salary-tab:hover:not(.active) {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}

/* ---- Config Panel ---- */
.salary-panel {
  margin-bottom: 24px;
}

/* Shared input styles (same pattern as mortgage.css) */
.param-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.param-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.param-unit {
  font-weight: 400;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
}
.param-input-wrap {
  display: flex;
  align-items: stretch;
  position: relative;
}
.param-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-primary);
  font-size: 18px;
  font-family: var(--font-hero);
  font-weight: 600;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  padding-right: 52px;
  -moz-appearance: textfield;
}
.param-input::-webkit-outer-spin-button,
.param-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.param-input:focus {
  border-color: rgba(16,185,129,0.5);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.08);
}
.param-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}
.param-suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--text-muted);
  pointer-events: none;
  font-weight: 500;
}
.salary-input-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 20px;
}

/* City Select */
.salary-select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-primary);
  font-size: 18px;
  font-family: var(--font-hero);
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.salary-select:focus {
  border-color: rgba(16,185,129,0.5);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.08);
}
.salary-select option {
  background: #111;
  color: #fff;
}

/* Insurance Grid */
.insurance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.insurance-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.insurance-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 7px;
}
.insurance-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.insurance-input-wrap {
  max-width: 160px;
}
.rate-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-primary);
  font-size: 16px;
  font-family: var(--font-hero);
  font-weight: 600;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  padding-right: 40px;
  -moz-appearance: textfield;
}
.rate-input::-webkit-outer-spin-button,
.rate-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.rate-input:focus {
  border-color: rgba(16,185,129,0.5);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.08);
}
.rate-suffix {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--text-muted);
  pointer-events: none;
  font-weight: 500;
}

/* ---- Result Panel ---- */
.salary-result {
  min-height: 160px;
  margin-bottom: 24px;
}
#resultContent { display: none; }
#resultContent.visible { display: block; }
#emptyState.hidden { display: none; }

/* Result Cards */
.salary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.salary-cards .result-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 18px 16px;
  text-align: center;
}
.salary-cards .result-card.highlight {
  border-color: rgba(16,185,129,0.3);
  background: rgba(16,185,129,0.08);
}
.salary-cards .result-card.highlight-secondary {
  border-color: rgba(19,221,196,0.2);
  background: rgba(19,221,196,0.04);
}
.salary-cards .result-card-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.salary-cards .result-card-value {
  font-family: var(--font-hero);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
}
.salary-cards .result-card.highlight .result-card-value {
  color: var(--cat-life);
  text-shadow: 0 0 24px rgba(16,185,129,0.35);
  font-size: 34px;
}
.salary-cards .result-card.highlight-secondary .result-card-value {
  color: var(--accent-teal);
  text-shadow: 0 0 16px rgba(19,221,196,0.2);
}
.salary-cards .result-card-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---- Donut Chart ---- */
.chart-section {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}
.donut-container {
  display: flex;
  align-items: center;
  gap: 36px;
  justify-content: center;
  flex-wrap: wrap;
}
.donut-chart {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.donut-center {
  position: absolute;
  inset: 24px;
  background: var(--bg-primary);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.donut-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.donut-value {
  font-family: var(--font-hero);
  font-size: 20px;
  font-weight: 700;
  color: var(--cat-life);
  text-shadow: 0 0 12px rgba(16,185,129,0.3);
}
.donut-pct {
  font-size: 12px;
  color: var(--text-muted);
}
.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.donut-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.legend-text {
  color: var(--text-secondary);
  min-width: 70px;
}
.legend-val {
  color: var(--text-primary);
  font-weight: 600;
  font-family: var(--font-hero);
}

/* ---- Tax Breakdown Table ---- */
.tax-breakdown-section {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}
.tax-table-wrap {
  overflow-x: auto;
}
.tax-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.tax-table th {
  background: rgba(16,185,129,0.08);
  color: var(--cat-life);
  font-weight: 600;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(16,185,129,0.12);
  white-space: nowrap;
}
.tax-table th:last-child { text-align: right; }
.tax-table td {
  padding: 9px 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  white-space: nowrap;
}
.tax-table td:last-child { text-align: right; font-weight: 600; }
.tax-table tr.active-row {
  background: rgba(16,185,129,0.08);
}
.tax-table tr.active-row td {
  color: var(--cat-life);
  font-weight: 600;
}
.tax-table tr.active-row td:last-child {
  text-shadow: 0 0 8px rgba(16,185,129,0.3);
}

/* ---- Employer Section ---- */
.employer-section {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}
.employer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.employer-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
}
.employer-card-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.employer-rate {
  font-size: 11px;
  color: var(--accent-teal);
  opacity: 0.7;
  font-weight: 400;
}
.employer-card-value {
  font-family: var(--font-hero);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}
.employer-total {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.employer-total-item {
  background: rgba(16,185,129,0.06);
  border: 1px solid rgba(16,185,129,0.15);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.employer-total-item span:first-child {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}
.employer-total-value {
  font-family: var(--font-hero);
  font-size: 24px;
  font-weight: 700;
  color: var(--cat-life);
  text-shadow: 0 0 16px rgba(16,185,129,0.2);
}

/* ---- Section Title ---- */
.section-title {
  font-family: var(--font-hero);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .salary-tabs { width: 100%; }
  .salary-tab { flex: 1; text-align: center; padding: 10px 16px; font-size: 14px; }
  .salary-input-row { flex-direction: column; gap: 12px; }
  .insurance-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .insurance-input-wrap { max-width: 100%; }
  .salary-cards { grid-template-columns: 1fr 1fr; }
  .salary-cards .result-card-value { font-size: 22px; }
  .salary-cards .result-card.highlight .result-card-value { font-size: 28px; }
  .donut-container { flex-direction: column; gap: 20px; }
  .donut-chart { width: 160px; height: 160px; }
  .donut-value { font-size: 18px; }
  .employer-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
  .employer-total { grid-template-columns: 1fr; }
  .salary-panel { padding: 20px 16px; }
  .chart-section,
  .tax-breakdown-section,
  .employer-section { padding: 16px; }
  .tax-table { font-size: 12px; }
  .tax-table th,
  .tax-table td { padding: 7px 10px; }
}
@media (max-width: 480px) {
  .salary-cards { grid-template-columns: 1fr; }
  .insurance-grid { grid-template-columns: 1fr; }
  .employer-grid { grid-template-columns: 1fr 1fr; }
}
