/* Salary Calculator Styles - Premium Edition with NEW COLORS */

.page-title {
  font-size: 32px;
  margin-bottom: 10px;
  font-weight: 700;
  background: linear-gradient(135deg, #9200C5 0%, #A020D0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  color: #555;
  margin-bottom: 25px;
  font-size: 16px;
  font-weight: 400;
}

/* CARD */
.calc-card {
  background: #fff;
  border: 1px solid #E8E4EC;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.calc-card:hover {
  border-color: #40E0D0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* GRID - Three Column Layout */
.calc-grid-salary {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

/* SECTION CARDS */
.section-card {
  background: #fff;
  border: 1px solid #E8E4EC;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.section-title {
  margin: 0 0 20px 0;
  font-size: 18px;
  font-weight: 600;
  color: #9200C5;
  padding-bottom: 12px;
  border-bottom: 2px solid #E8E4EC;
}

.results-section {
  background: linear-gradient(135deg, rgba(146, 0, 197, 0.02) 0%, rgba(160, 32, 208, 0.04) 100%);
}

/* INPUTS */
.input-group {
  margin-bottom: 20px;
}

.input-group label {
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #333;
}

.input-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.input-row input[type="number"] {
  width: 90px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #E8E4EC;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  background: #fff;
}

.input-row input[type="number"]:focus {
  outline: none;
  border-color: #40E0D0;
  box-shadow: 0 0 0 3px rgba(64, 224, 208, 0.15);
}

.input-row input[type="number"]:hover {
  border-color: #40E0D0;
}

/* INPUT ROW SIMPLE (No slider) */
.input-row-simple {
  display: flex;
  align-items: center;
}

.input-row-simple input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #E8E4EC;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  background: #fff;
}

.input-row-simple input[type="number"]:focus {
  outline: none;
  border-color: #40E0D0;
  box-shadow: 0 0 0 3px rgba(64, 224, 208, 0.15);
}

/* SELECT */
.tax-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #E8E4EC;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  background: #fff;
  cursor: pointer;
}

.tax-select:focus {
  outline: none;
  border-color: #40E0D0;
  box-shadow: 0 0 0 3px rgba(64, 224, 208, 0.15);
}

/* SLIDER */
.input-row input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: #E8E4EC;
  outline: none;
  cursor: pointer;
}

.input-row input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 4px;
  background: linear-gradient(
    to right,
    #40E0D0 0%,
    #40E0D0 calc((var(--val) - var(--min)) / (var(--max) - var(--min)) * 100%),
    #E8E4EC calc((var(--val) - var(--min)) / (var(--max) - var(--min)) * 100%),
    #E8E4EC 100%
  );
}

.input-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #40E0D0 0%, #48D4C4 100%);
  border-radius: 50%;
  cursor: pointer;
  margin-top: -7px;
  box-shadow: 0 2px 6px rgba(64, 224, 208, 0.3);
  transition: all 0.2s ease;
}

.input-row input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 10px rgba(64, 224, 208, 0.5);
}

.input-row input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 4px;
  background: #E8E4EC;
}

.input-row input[type="range"]::-moz-range-progress {
  height: 6px;
  border-radius: 4px;
  background: #40E0D0;
}

.input-row input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #40E0D0 0%, #48D4C4 100%);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(64, 224, 208, 0.3);
  transition: all 0.2s ease;
}

.input-row input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 10px rgba(64, 224, 208, 0.5);
}

/* RESULTS - 4 boxes in 2x2 grid */
.result-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.result-box {
  background: #f9f9f9;
  padding: 14px 12px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #E8E4EC;
  transition: all 0.2s ease;
}

.result-box:hover {
  border-color: #40E0D0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.result-box span {
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.result-box strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, #9200C5 0%, #A020D0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.result-box.highlight {
  background: linear-gradient(135deg, rgba(64, 224, 208, 0.1) 0%, rgba(72, 212, 196, 0.15) 100%);
  border-color: #40E0D0;
  grid-column: span 2;
}

.result-box.highlight strong {
  background: linear-gradient(135deg, #40E0D0 0%, #48D4C4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 22px;
}

/* SALARY BREAKDOWN */
.salary-breakdown {
  background: #fff;
  border: 1px solid #E8E4EC;
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
}

.salary-breakdown h4 {
  margin: 0 0 15px 0;
  font-size: 16px;
  font-weight: 600;
  color: #9200C5;
}

.breakdown-section {
  margin-bottom: 20px;
}

.breakdown-section h5 {
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: #40E0D0;
  border-bottom: 1px solid #E8E4EC;
  padding-bottom: 8px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 13px;
}

.breakdown-item span {
  color: #555;
}

.breakdown-item strong {
  color: #333;
  font-weight: 600;
}

.breakdown-item.total-item {
  border-top: 2px solid #E8E4EC;
  margin-top: 8px;
  padding-top: 12px;
  font-weight: 600;
}

.net-salary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: linear-gradient(135deg, rgba(64, 224, 208, 0.1) 0%, rgba(72, 212, 196, 0.15) 100%);
  border-radius: 8px;
  border: 2px solid #40E0D0;
  margin-top: 15px;
}

.net-salary span {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.net-salary strong {
  font-size: 20px;
  font-weight: 700;
  color: #40E0D0;
}

/* SEO */
section {
  margin-top: 40px;
  line-height: 1.7;
}

section h2 {
  font-size: 24px;
  margin-bottom: 16px;
  font-weight: 600;
  background: linear-gradient(135deg, #9200C5 0%, #A020D0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

section p {
  color: #444;
  margin-bottom: 14px;
}

section ul {
  margin-left: 20px;
  color: #444;
}

section ul li {
  margin-bottom: 10px;
}

/* FAQ */
.faq-section {
  margin-top: 40px;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #E8E4EC;
}

.faq-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: 600;
  background: linear-gradient(135deg, #9200C5 0%, #A020D0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* MOBILE */
@media (max-width: 1200px) {
  .calc-grid-salary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 28px;
  }

  .result-cards {
    grid-template-columns: 1fr;
  }

  .result-box.highlight {
    grid-column: span 1;
  }

  .calc-card {
    padding: 20px;
  }

  .section-card {
    padding: 15px;
  }

  .faq-section {
    padding: 20px;
  }

  section {
    margin-top: 30px;
  }
}

/* Smooth animations */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}