/* US Stock Profit Calculator Stylesheet */

/* Calculator Input Groups & Addon Styling */
.calc-input-group {
  display: flex;
  align-items: center;
  height: 42px;
  background-color: #ffffff;
  border: 1px solid rgba(115, 118, 134, 0.35);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.calc-input-group:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.calc-input-addon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  height: 100%;
  background-color: #eff4ff;
  color: #434655;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  border-right: 1px solid rgba(115, 118, 134, 0.2);
  user-select: none;
}

.calc-input-addon.addon-right {
  border-right: none;
  border-left: 1px solid rgba(115, 118, 134, 0.2);
}

.calc-input-addon.addon-target {
  background-color: #c7ffca;
  color: #006329;
  border-right-color: rgba(0, 99, 41, 0.2);
}

.calc-input-field {
  width: 100%;
  height: 100%;
  padding: 0 12px;
  background: transparent;
  border: none;
  outline: none;
  color: #0b1c30;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 500;
}

.calc-input-field::placeholder {
  color: #737686;
}

/* Quick Share Selection Pills */
.pill-shares {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  min-width: 44px;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
  user-select: none;
}

/* Preset Chips */
.preset-chip {
  transition: all 0.15s ease-in-out;
  cursor: pointer;
}
.preset-chip:hover {
  transform: translateY(-1px);
}

/* Result Chart Canvas Transitions */
#payoffSvg path,
#payoffSvg polygon,
#payoffSvg line,
#payoffSvg text,
#payoffSvg circle {
  transition: all 0.25s ease-out;
}

/* Sensitivity Table Transitions */
#sensitivityTableBody tr {
  transition: background-color 0.15s ease-in-out;
}

/* FAQ Details Smooth Open Animation */
details[open] summary ~ * {
  animation: faqAccordionOpen 0.2s ease-in-out;
}

@keyframes faqAccordionOpen {
  0% {
    opacity: 0;
    transform: translateY(-4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Broker Cards */
.broker-card {
  transition: all 0.2s ease-in-out;
}

/* Custom Horizontal Scrollbar for Data Tables & Formulas */
.custom-scrollbar::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}