/* Interactive Simulator Styles */

.simulator-section {
  background: #ffffff;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  border-radius: 1.25rem;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-2px) scale(1.002);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
  border-color: rgba(99, 102, 241, 0.1);
}

.ticker-panel {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ticker-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(255, 255, 255, 0.08) 1px,
    transparent 0
  );
  background-size: 24px 24px;
  opacity: 0.6;
  mask-image: linear-gradient(to bottom, black, transparent);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent);
}

.metric-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.4rem;
  font-family: "Inter", sans-serif;
}

.metric-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.metric-sublabel {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.25rem;
  font-weight: 400;
}

.control-pill {
  background: #f1f5f9;
  border-radius: 0.6rem;
  padding: 0.25rem;
  display: flex;
  gap: 0.25rem;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.btn-pill {
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.4rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: #64748b;
}

.btn-pill.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.btn-pill:not(.active):hover {
  color: #334155;
  background: rgba(255, 255, 255, 0.5);
}

/* Charts */
.chart-container-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.wf-area {
  fill: url(#wf-gradient);
  opacity: 1;
  transition: d 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.wf-line {
  fill: none;
  stroke: #2563eb;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: d 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 2px 4px rgba(37, 99, 235, 0.2));
}

/* Inputs */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
  margin: 10px 0;
}

input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  cursor: pointer;
  background: #cbd5e1;
  border-radius: 2px;
  transition: background 0.2s;
}

input[type="range"]::-webkit-slider-thumb {
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #ffffff;
  cursor: grab;
  -webkit-appearance: none;
  margin-top: -6px;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow:
    0 2px 5px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(0, 0, 0, 0.05);
}

input[type="range"]:active::-webkit-slider-thumb {
  cursor: grabbing;
  transform: scale(1.2);
}

input[type="range"]:focus::-webkit-slider-runnable-track {
  background: #94a3b8;
}

/* Animations */
@keyframes highlight-pulse-indigo {
  0% {
    color: #818cf8;
    transform: scale(1);
  }

  50% {
    color: #6366f1;
    transform: scale(1.05);
  }

  100% {
    color: inherit;
    transform: scale(1);
  }
}

.highlight-pulse {
  animation: highlight-pulse-indigo 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-block;
  /* Required for transform */
}

/* Financial Planning Chart Container */
.hiring-curve-container {
  overflow: visible;
  position: relative;
}

.hiring-curve-container svg {
  overflow: visible;
}
