.error-message {
  color: #ff4d4f;
  margin-top: 3px;
  font-size: 12px;
}

.highlighted {
  background-color: #3a3a3a;
}

.input {
  padding: 4px;
  border-radius: 4px;
  background-color: #1e1e1e;
  color: white;
  border: 1px solid #333;
  font-size: 12px;
  outline: none;
  box-sizing: border-box;
  width: 50%;
}

.trade-panel-bar {
  display: flex;
  align-items: center;
  gap: 5px;
}

.chart-button-container {
  display: flex;
  gap: 4px;
}

/* Seconds menu styling */
.seconds-button-container {
  position: relative;
  display: inline-block;
}

.seconds-menu {
  position: absolute;
  bottom: 100%;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background-color: rgba(25, 25, 25, 0.95);
  border: 1px solid rgba(180, 180, 249, 0.15);
  border-radius: 4px;
  padding: 2px;
  z-index: 10;
  margin-bottom: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  user-select: none;
}

.seconds-menu .chart-button {
  width: 100%;
  text-align: center;
  margin: 1px 0;
  border: none;
  border-radius: 2px;
}

.seconds-menu .chart-button:hover {
  background-color: rgba(180, 180, 249, 0.1);
  border-color: rgba(180, 180, 249, 0.25);
}

.seconds-menu .chart-button.selected {
  background-color: rgba(180, 180, 249, 0.15);
  border-color: rgba(180, 180, 249, 0.3);
}

.chart-button-container {
  display: flex;
  gap: 4px;
}

.chart-button {
  display: inline-block;
  cursor: pointer;
  background-color: rgba(25, 25, 25, 0.95);
  border: 1px solid rgba(180, 180, 249, 0.15);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 26px;
  font-family: 'Inter';
  font-weight: 500;
  font-size: 0.9em;
  padding: 0 4px;
  transition: all 0.2s ease;
  user-select: none;
}

.chart-button.selected {
  background-color: rgba(180, 180, 249, 0.15);
  border-color: rgba(180, 180, 249, 0.3);
  color: #fff;
  font-weight: 500;
}

.chart-button:hover {
  background-color: rgba(180, 180, 249, 0.1);
  border-color: rgba(180, 180, 249, 0.25);
  color: #fff;
}

.chart-button-icon {
  height: 1em;
  width: 1em;
  vertical-align: middle;
  display: inline-block;
}

.star-button {
  transition: transform 0.2s ease;
}

.star-button:hover {
  transform: scale(1.1);
}

.star-button:active {
  transform: scale(0.95);
}

.symbol-search-wrapper {
  flex: 1;
  min-width: 150px;
  margin: 0 8px;
}

.chart-indicators-container {
  position: relative;
  display: inline-block;
  user-select: none;
}

.indicators-popup,
.indicators-popup-compact {
  z-index: 10000;
  min-width: 140px;
  padding: 6px 6px 6px 8px;
  font-size: 12px;
  background: rgba(25, 25, 25, 0.97);
  border-radius: 6px;
  border: 1px solid #333;
  box-shadow: 0 2px 8px #000a;
  margin-bottom: 6px; /* space between button and popup */
  user-select: none;
}
.indicator-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 2px;
  min-height: 24px;
}

.indicator-row:last-child {
  margin-bottom: 0;
}

.indicator-input {
  width: 32px;
  font-size: 12px;
  padding: 1px 2px;
  border-radius: 3px;
  border: 1px solid #444;
  background: #222;
  color: #fff;
  text-align: center;
  margin-left: 4px;
  margin-right: 2px;
}

.indicator-plus {
  background: none;
  border: none;
  color: #aaa;
  font-size: 15px;
  cursor: pointer;
  padding: 0 2px;
  border-radius: 2px;
  transition: color 0.15s;
  min-width: 18px;
  min-height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.indicator-plus:hover:not(:disabled) {
  color: #fff;
  background: #222;
}
.indicator-plus:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
