/* ============================================================
   SALARY TO HOURLY CALCULATOR — salary-to-hourly.css
   Responsive glassmorphism styles for wage conversions
   Toolspot by Tradesala
   ============================================================ */

.container {
  --tool-gold: #f59e0b;
  --tool-gold-soft: rgba(245, 158, 11, 0.12);
  --tool-gold-glow: rgba(245, 158, 11, 0.25);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 100px;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

/* ─── TWO-COLUMN LAYOUT OVERRIDE ─── */
.tool-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1024px) {
  .tool-layout {
    grid-template-columns: 1fr;
  }
}

/* ─── SEGMENTED TAB SWITCH ─── */
.mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.mode-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  background: var(--tool-gold);
  border-radius: 8px;
  box-shadow: 0 4px 12px var(--tool-gold-glow);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

.mode-btn {
  border: none;
  background: transparent !important;
  color: var(--text-2);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.25s ease;
  position: relative;
  z-index: 1;
  box-shadow: none !important;
}

.mode-btn.active {
  color: #ffffff !important;
}

body.light .mode-toggle {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

body.light .mode-indicator {
  background: var(--tool-gold);
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.2);
}

body.light .mode-btn {
  color: #334155;
}

body.light .mode-btn.active {
  color: #ffffff !important;
}

/* ─── INPUT FORM FIELDS GRIDS ─── */
.amount-freq-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
}

.slider-group {
  margin-top: 14px;
}

.slider-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.slider-val-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--tool-gold);
  background: var(--tool-gold-soft);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--tool-gold-glow);
}

body.light .slider-val-badge {
  color: #d97706;
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.15);
}

.range-slider-wrap {
  position: relative;
  width: 100%;
}

.range-slider-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  outline: none;
  margin: 12px 0 6px;
}

.range-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--tool-gold);
  cursor: pointer;
  box-shadow: 0 0 10px var(--tool-gold-glow);
  transition: transform 0.15s ease;
}

.range-slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

body.light .range-slider-input {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.08);
}

body.light .range-slider-input::-webkit-slider-thumb {
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
}

.slider-bounds {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-3);
  font-weight: 600;
}

/* Collapsible PTO Section */
.pto-collapse-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 12px 0 4px;
  color: var(--text-2);
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
}

.pto-collapse-icon {
  transition: transform 0.25s ease;
  font-size: 12px;
  color: var(--text-3);
}

.pto-collapse-btn.active .pto-collapse-icon {
  transform: rotate(90deg);
}

.pto-fields-container {
  display: none;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
}

body.light .pto-fields-container {
  border-top-color: rgba(0, 0, 0, 0.06);
}

/* ─── RESULT HERO CARD (Frosted Gold style) ─── */
.result-hero {
  background: linear-gradient(135deg, rgba(30, 25, 20, 0.45) 0%, rgba(20, 15, 10, 0.6) 100%);
  border: 1px solid rgba(245, 158, 11, 0.12);
  border-left: 4px solid var(--tool-gold);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 
    0 16px 36px rgba(0, 0, 0, 0.25), 
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 25px rgba(245, 158, 11, 0.02);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.result-hero:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 
    0 20px 40px rgba(245, 158, 11, 0.08), 
    inset 0 1px 1px rgba(255, 255, 255, 1);
}

body.light .result-hero {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.3) 0%, rgba(255, 255, 255, 0.9) 100%);
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-left: 4px solid var(--tool-gold);
  box-shadow: 
    0 16px 36px rgba(245, 158, 11, 0.05), 
    inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

body.light .result-hero:hover {
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 
    0 20px 40px rgba(245, 158, 11, 0.08), 
    inset 0 1px 1px rgba(255, 255, 255, 1);
}

.result-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 80% 20%, var(--tool-gold-soft) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.result-hero * {
  z-index: 1;
}

.hero-title-lbl {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 2px;
}

.converted-words-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 6px 0;
}

.salary-hero-text {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.25));
}

body.light .salary-hero-text {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 3px rgba(245, 158, 11, 0.18));
}

.salary-hero-subtext {
  font-family: 'Figtree', sans-serif;
  font-size: 13.5px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.45;
  font-weight: 600;
}

/* Secondary KPI grid inside main result hero */
.salary-metrics-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
  margin-top: 4px;
}

body.light .salary-metrics-summary {
  border-top-color: rgba(0, 0, 0, 0.06);
}

.summary-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.summary-val {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.summary-lbl {
  font-family: 'Figtree', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-3);
  letter-spacing: 0.5px;
}

/* ─── SCHEDULE COMPARISON TABLE ─── */
.schedule-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  margin-top: 12px;
}

body.light .schedule-table-wrap {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.01);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}

.schedule-table th {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-3);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

body.light .schedule-table th {
  border-bottom-color: rgba(0, 0, 0, 0.08);
  color: #64748b;
  background: rgba(0, 0, 0, 0.01);
}

.schedule-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  vertical-align: middle;
}

body.light .schedule-table td {
  border-bottom-color: rgba(0, 0, 0, 0.04);
  color: #334155;
}

.schedule-table tbody tr:last-child td {
  border-bottom: none;
}

.schedule-table tr:hover td {
  background: rgba(255, 255, 255, 0.015);
}

body.light .schedule-table tr:hover td {
  background: rgba(0, 0, 0, 0.01);
}

.freq-name-td {
  font-weight: 700;
  color: var(--text);
}

body.light .freq-name-td {
  color: #0f172a;
}

.highlight-val-td {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--tool-gold);
}

body.light .highlight-val-td {
  color: #d97706;
}

/* Button style overrides for gold theme */
.rb-btn-primary {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.2) !important;
  color: #ffffff !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.2);
  transition: all 0.3s ease;
}

.rb-btn-primary:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.3);
}

/* Light Mode Overrides for Primary Button (Gold theme) */
body.light .rb-btn-primary {
  background: rgba(245, 158, 11, 0.08) !important;
  border: 1px solid rgba(245, 158, 11, 0.18) !important;
  color: #d97706 !important;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.04) !important;
}

body.light .rb-btn-primary:hover {
  background: rgba(245, 158, 11, 0.15) !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
  color: #b45309 !important;
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.08) !important;
}

/* Gold/Amber badge buttons/spans inside labels (.lbl-auto) */
.fg label .lbl-auto {
  outline: none;
  font-family: 'Figtree', sans-serif;
  color: var(--tool-gold) !important;
  background: var(--tool-gold-soft) !important;
  border: 1px solid var(--tool-gold-glow) !important;
  transition: all 0.2s ease;
}

.fg label button.lbl-auto {
  cursor: pointer;
}

.fg label button.lbl-auto:hover {
  background: var(--tool-gold-glow) !important;
  border-color: var(--tool-gold) !important;
  transform: scale(1.02);
}

body.light .fg label .lbl-auto {
  color: #d97706 !important;
  background: rgba(245, 158, 11, 0.08) !important;
  border-color: rgba(245, 158, 11, 0.2) !important;
}

body.light .fg label button.lbl-auto:hover {
  background: rgba(245, 158, 11, 0.15) !important;
  border-color: #d97706 !important;
}

/* Responsive table hides */
@media (max-width: 768px) {
  .schedule-table th:nth-child(3),
  .schedule-table td:nth-child(3) {
    display: none;
  }
}

/* Tab Views toggle with smooth animation */
.tab-view-pane {
  display: none;
}
.tab-view-pane.active-view {
  display: block;
  animation: tabFadeUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes tabFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Side-by-side Comparison responsive adjustments */
@media (max-width: 768px) {
  #view-offer-comparison .tool-layout {
    grid-template-columns: 1fr !important;
  }
}

/* Net Take Home row separator formatting for light & dark mode */
.net-take-home-row {
  font-weight: 700;
  border-top: 1.5px solid rgba(255, 255, 255, 0.1) !important;
}
body.light .net-take-home-row {
  border-top-color: rgba(0, 0, 0, 0.08) !important;
}



