@font-face {
  font-family: 'Quantico';
  src: url('./quantico-BXatNHwx.ttf') format('truetype');
}
@font-face {
  font-family: 'Fira Code';
  src: url('./fira-code-DParIw5o.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  src: url('./inter-DYjygwQm.ttf') format('truetype');
}
@font-face {
  font-family: 'Kanit';
  src: url('./kanit-bWYhieLo.ttf') format('truetype');
}

.non-selectable {
  user-select: none;
}

.small-dark-input {
  padding: 4px;
  border-radius: 4px;
  background-color: var(--bg-input);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 12px;
  outline: none;
  flex: 1;
  box-sizing: border-box;
}

.small-dark-button {
  padding: 3px 6px;
  border-radius: 4px;
  background-color: var(--bg-button);
  color: var(--text);
  border: 1px solid var(--bg-input);
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.1s ease;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.small-dark-button img {
  width: 20px;
  height: 20px;
}

.small-dark-button:hover {
  background-color: var(--bg-button-hover);
}

.settings-bar {
  height: 25px;
  display: flex;
  align-items: center;
}

.text-yellow {
  color: rgba(255, 215, 0);
  font-weight: bold;
}

.text-pink {
  color: #ff7fd3;
  font-weight: bold;
}

.text-blue {
  color: rgb(135, 206, 255);
  font-weight: bold;
}

.small-dark-button.button-red {
  background-color: rgba(200, 0, 0, 0.5);
}

.small-dark-button.button-blue {
  background-color: rgba(0, 100, 255, 0.5);
}

.news-wrapper {
  padding: 3px;
  margin-bottom: 3px;
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  margin-left: 0.5%;
  margin-right: 0.5%;
}

.news-wrapper:hover {
  color: var(--text);
}

.news-wrapper-critical {
  box-shadow: 0px 0px 4px 2px rgba(0, 191, 255, calc(0.5 * var(--highlight-intensity, 1)));
}

.news-wrapper-critical:hover {
  box-shadow: 0px 0px 4px 2px rgba(0, 191, 255, calc(0.7 * var(--highlight-intensity, 1)));
}

.news-wrapper-price-alert {
  box-shadow: 0px 0px 4px 2px rgba(0, 191, 255, calc(0.5 * var(--highlight-intensity, 1)));
}

.news-wrapper-price-alert:hover {
  box-shadow: 0px 0px 4px 2px rgba(0, 191, 255, calc(0.7 * var(--highlight-intensity, 1)));
}

.news-wrapper-price-alert-up {
  box-shadow: 0px 0px 2px 2px rgba(255, 191, 0, calc(0.5 * var(--highlight-intensity, 1)));
  color: var(--text);
}
.news-wrapper-price-alert-up:hover {
  box-shadow: 0px 0px 2px 2px rgba(255, 191, 0, calc(0.7 * var(--highlight-intensity, 1)));
  color: var(--text);
}
.news-wrapper-price-alert-down {
  box-shadow: 0px 0px 2px 2px rgba(255, 191, 0, calc(0.5 * var(--highlight-intensity, 1)));
  color: var(--text);
}

.news-wrapper-price-alert-down:hover {
  box-shadow: 0px 0px 2px 2px rgba(255, 191, 0, calc(0.7 * var(--highlight-intensity, 1)));
  color: var(--text);
}

/* .news-wrapper-price-alert {
  background-color: #2e2e00 !important;
  box-shadow: 0px 0px 2px 2px rgba(255, 191, 0, 0.5);
}

.news-wrapper-price-alert:hover {
  background-color: #4d4d00 !important;
  box-shadow: 0px 0px 2px 2px rgba(255, 191, 0, 0.7);
} */

/* Light theme highlight overrides removed — backgrounds now computed in JS via highlight intensity */

.news-time {
  font-size: 10px;
  right: 0;
  color: var(--text-muted);
}
.news-time:hover {
  color: #fffa9f;
}
.search-button,
.news-button {
  background-color: var(--bg-hover);
  height: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0;
  border: none;
  box-shadow: none;
  outline: none;
}

.search-button {
  border-radius: 1px 0 0 1px;
}

.news-button {
  color: var(--text);
  border-radius: 0 2px 2px 0;
  /* font-weight: bold; */
  font-size: 16px;
  font-family: 'Quantico';
  padding-left: 2px;
  padding-right: 5px;
  /* min-width: 125px; */
  width: 115px;
}

.news-button:hover,
.search-button:hover {
  background-color: var(--bg-button-hover);
}

.news-side-bar {
  display: flex;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 50px;
  cursor: pointer;
  z-index: 1;
}

.news-cap-color {
  width: 5px;
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}

.news-gap {
  width: 10px;
}

.day-break {
  text-align: center;
  background-color: var(--bg-alt);
  color: var(--text);
}

.day-break-line {
  border: none;
  height: 1px;
  background-color: var(--bg-button-hover);
  margin: 1px;
}

.day-break-text {
  font-size: 12px;
}

.status-label {
  font-size: 13px;
}

.profit {
  color: var(--profit) !important;
}

.loss {
  color: var(--loss) !important;
}

.news-explainer-box {
  margin-top: 6px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-dim);
}

.news-explainer-box-gray {
  background: var(--bg-alt);
  border-left: 3px solid var(--text-muted);
}

.news-explainer-box-blue {
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
}

.news-explainer-box-purple {
  background: var(--bg-alt);
  border-left: 3px solid #a78bfa;
}

