/* real-hourly-wage-calculator */

/* ===== Collapsible Sections ===== */
.evvy-collapsible-section {
  margin-bottom: 0.75rem;
}
.evvy-collapsible-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: color-mix(in srgb, var(--cluster-dark) 5%, transparent);
  border: 1px solid var(--evvy-border-color, #DEE2E6);
  border-radius: var(--evvy-radius-lg, 12px);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--evvy-text-primary, #333);
  cursor: pointer;
  transition: background 0.2s;
}
.evvy-collapsible-toggle:hover {
  background: color-mix(in srgb, var(--cluster-dark) 10%, transparent);
}
.evvy-collapsible-arrow {
  margin-left: auto;
  transition: transform 0.3s ease;
}
.evvy-collapsible-toggle[aria-expanded="false"] .evvy-collapsible-arrow {
  transform: rotate(-90deg);
}
.evvy-collapsible-body {
  padding: 0.75rem 0 0;
  max-height: 600px;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
  opacity: 1;
}
.evvy-collapsible-body.evvy-collapsible-collapsed {
  max-height: 0;
  opacity: 0;
  padding: 0;
}

/* ===== Compact Input Groups ===== */
.evvy-input-compact {
  max-width: 320px;
}

/* ===== Comparison Card ===== */
.evvy-comparison-card {
  background: color-mix(in srgb, var(--cluster-dark) 4%, transparent);
  border: 1px solid var(--evvy-border-color, #DEE2E6);
  border-radius: var(--evvy-radius-lg, 12px);
  padding: 1.25rem;
  margin-top: 0.75rem;
}
.evvy-comparison-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--evvy-text-secondary, #666);
  margin-bottom: 0.75rem;
}
.evvy-comparison-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}
.evvy-comparison-col {
  text-align: center;
  flex: 1;
}
.evvy-comparison-label {
  font-size: 0.75rem;
  color: var(--evvy-text-secondary, #666);
  margin-bottom: 0.25rem;
}
.evvy-comparison-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}
.evvy-comparison-nominal {
  color: var(--evvy-text-primary, #333);
}
.evvy-comparison-real {
  color: var(--cluster-dark, #0D3D3A);
}
.evvy-comparison-arrow {
  font-size: 1.25rem;
  color: var(--evvy-text-secondary, #999);
}
.evvy-comparison-gap {
  text-align: center;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--evvy-border-color, #DEE2E6);
  font-size: 0.8125rem;
  color: var(--evvy-text-secondary, #666);
}
.evvy-comparison-gap-amount {
  font-weight: 700;
  color: var(--evvy-text-primary, #333);
}
.evvy-comparison-gap.evvy-gap-negative .evvy-comparison-gap-amount {
  color: #ef4444;
}

/* ===== Trade-Off Card ===== */
.evvy-tradeoff-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  background: color-mix(in srgb, var(--cluster-dark) 6%, transparent);
  border: 1px solid var(--evvy-border-color, #DEE2E6);
  border-radius: var(--evvy-radius-lg, 12px);
  padding: 1rem 1.25rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--evvy-text-primary, #333);
  line-height: 1.5;
}
.evvy-tradeoff-icon {
  font-size: 1.5rem;
  color: var(--cluster-dark, #0D3D3A);
  flex-shrink: 0;
}
.evvy-tradeoff-hours {
  display: inline-block;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--cluster-dark, #0D3D3A);
  padding: 0 0.15em;
}

/* ===== Premium Section Titles ===== */
.evvy-premium-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--evvy-text-primary, #333);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.evvy-premium-section-desc {
  font-size: 0.8125rem;
  color: var(--evvy-text-secondary, #666);
  margin-bottom: 0.75rem;
}

/* ===== Job Comparison Grid ===== */
.evvy-job-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.evvy-job-col {
  background: color-mix(in srgb, var(--cluster-dark) 3%, transparent);
  border: 1px solid var(--evvy-border-color, #DEE2E6);
  border-radius: var(--evvy-radius-lg, 12px);
  padding: 1rem;
}
.evvy-job-col-label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cluster-dark, #0D3D3A);
  margin-bottom: 0.75rem;
}
.evvy-job-result {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--evvy-border-color, #DEE2E6);
}
.evvy-job-result-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cluster-dark, #0D3D3A);
}
.evvy-job-winner {
  text-align: center;
  margin-top: 0.75rem;
  padding: 0.625rem;
  border-radius: var(--evvy-radius-lg, 12px);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--evvy-text-secondary, #666);
}
.evvy-job-winner-a,
.evvy-job-winner-b {
  background: color-mix(in srgb, var(--cluster-dark) 8%, transparent);
  color: var(--cluster-dark, #0D3D3A);
}

/* ===== Pie Chart ===== */
#cost-pie-chart {
  display: block;
  max-width: 240px;
  max-height: 240px;
  margin: 0.75rem auto;
}
.evvy-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: center;
  margin-top: 0.5rem;
}
.evvy-legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--evvy-text-secondary, #666);
}
.evvy-legend-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}
.evvy-legend-label {
  font-weight: 600;
  color: var(--evvy-text-primary, #333);
}
.evvy-legend-value {
  font-variant-numeric: tabular-nums;
}

/* ===== Dark Mode ===== */
[data-bs-theme="dark"] .evvy-collapsible-toggle {
  background: color-mix(in srgb, var(--cluster-dark) 12%, transparent);
  color: #e0e0e0;
}
[data-bs-theme="dark"] .evvy-collapsible-toggle:hover {
  background: color-mix(in srgb, var(--cluster-dark) 18%, transparent);
}
[data-bs-theme="dark"] .evvy-comparison-card {
  background: color-mix(in srgb, var(--cluster-dark) 10%, transparent);
}
[data-bs-theme="dark"] .evvy-comparison-nominal {
  color: #e0e0e0;
}
[data-bs-theme="dark"] .evvy-comparison-real {
  color: #6ee7b7;
}
[data-bs-theme="dark"] .evvy-comparison-gap-amount {
  color: #e0e0e0;
}
[data-bs-theme="dark"] .evvy-comparison-gap.evvy-gap-negative .evvy-comparison-gap-amount {
  color: #f87171;
}
[data-bs-theme="dark"] .evvy-tradeoff-card {
  background: color-mix(in srgb, var(--cluster-dark) 14%, transparent);
  color: #e0e0e0;
}
[data-bs-theme="dark"] .evvy-tradeoff-icon {
  color: #6ee7b7;
}
[data-bs-theme="dark"] .evvy-tradeoff-hours {
  color: #6ee7b7;
}
[data-bs-theme="dark"] .evvy-premium-section-title {
  color: #e0e0e0;
}
[data-bs-theme="dark"] .evvy-job-col {
  background: color-mix(in srgb, var(--cluster-dark) 8%, transparent);
}
[data-bs-theme="dark"] .evvy-job-col-label {
  color: #6ee7b7;
}
[data-bs-theme="dark"] .evvy-job-result-value {
  color: #6ee7b7;
}
[data-bs-theme="dark"] .evvy-job-winner-a,
[data-bs-theme="dark"] .evvy-job-winner-b {
  background: color-mix(in srgb, var(--cluster-dark) 16%, transparent);
  color: #6ee7b7;
}
[data-bs-theme="dark"] .evvy-legend-label {
  color: #e0e0e0;
}
[data-bs-theme="dark"] .evvy-comparison-title {
  color: #999;
}

/* ===== Mobile ===== */
@media (max-width: 575.98px) {
  .evvy-job-compare-grid {
    grid-template-columns: 1fr;
  }
  .evvy-comparison-value {
    font-size: 1.2rem;
  }
  .evvy-comparison-row {
    gap: 0.75rem;
  }
  #cost-pie-chart {
    max-width: 200px;
    max-height: 200px;
  }
  .evvy-input-compact {
    max-width: 100%;
  }
}
