@import url('https://fonts.googleapis.com/css2?family=Inter:wght@700&display=swap');

.navbar-container {
  -webkit-app-region: drag;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0px;
  user-select: none;
}

/* .chart-logo lives in Chart/chart.css now — it belongs with the chart,
   not the navbar, and needs to load in pop-out windows too. */

/* Logo button — also the dropdown trigger. Compact (matches stock-terminal
   PanelToolbar) with a small caret indicating it's interactive. */

.navbar-logo-button {
  -webkit-app-region: no-drag;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  height: 28px;
  min-width: 42px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  cursor: pointer;
  color: var(--text);
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.navbar-logo-button:hover,
.navbar-logo-button.open {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.navbar-logo-img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.navbar-logo-caret {
  font-size: 12px;
  opacity: 0.7;
  line-height: 1;
}

/* Portaled dropdown menu — fixed-positioned, z-index above panel content
   and other floating elements. */

.navbar-dropdown {
  min-width: 220px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 0;
  z-index: 10000;
  box-shadow: 0 8px 24px var(--shadow);
  font-family: Inter, sans-serif;
  font-size: 13px;
  color: var(--text-dim);
  user-select: none;
}

.navbar-dropdown-group + .navbar-dropdown-group {
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 4px;
}

.navbar-dropdown-category {
  padding: 4px 12px 2px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

.navbar-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin: 0 4px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.1s ease;
}

.navbar-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.navbar-dropdown-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.navbar-dropdown-label {
  flex: 1;
}

.navbar-dropdown-pin {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.1s ease;
  padding: 0 2px;
}

.navbar-dropdown-pin:hover {
  color: #ffd96b;
}

.navbar-dropdown-pin.pinned {
  color: #f5c542;
}

.nav-items {
  display: flex;
  align-items: center;
  flex-grow: 1;
  gap: 6px;
  margin-left: 6px;
  text-align: center;
}

.nav-item {
  -webkit-app-region: no-drag;
  display: flex;
  align-items: center;
  cursor: pointer;
}

/* Uniform box for icon chips only — so SVG-internal padding differences
   (Trade icon ends at the right edge, News icon has whitespace inside
   its viewbox, etc.) don't translate into visibly uneven gaps between
   chips. Excludes the clock / ws-status nav-items which size to their
   own content. Targeting `.nav-item` that contains a `.nav-img` keeps
   this rule self-contained — no extra modifier class on the JSX side. */

.nav-item:has(.nav-img) {
  justify-content: center;
  width: 32px;
  height: 28px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.nav-item:has(.nav-img):hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.nav-img {
  width: 20px;
  height: 20px;
  /* Force all navbar icons to white in dark theme regardless of the SVG's
     native fill, so newly-added icons (CLI, AddChart) look consistent
     with the existing ones without needing to edit each SVG. */
  filter: brightness(0) invert(1);
}

.nav-label {
  font-weight: 600;
  font-size: 15px;
  line-height: 18px;
  color: var(--text);
  margin-left: 5px;
}

.nav-item.clock {
  color: var(--text);
}

.bouncy {
  transition:
    transform 0.1s ease,
    opacity 0.1s ease;
}

.bouncy:hover {
  opacity: 0.7;
  transform: translateY(-1px);
}

.bouncy:active {
  transform: translateY(1px);
}

.nav-control-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
}

.control-button {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  cursor: pointer;
  margin-left: 9px;
  -webkit-app-region: none;
}

.modal-close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  -webkit-app-region: none;
  background-color: var(--loss);
}

.min-button {
  background-color: #fcff67;
}

.close-button {
  background-color: var(--loss);
}

.terminal-blur {
  background-color: #656565;
}

.control-button:hover {
  opacity: 0.6;
}

.refresh-icon {
  transition: transform 0.5s ease;
  filter: invert(100%);
}

.nav-item.refresh:hover .refresh-icon {
  transform: rotate(360deg);
}

.nav-item.refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.049);
  border: 1px solid transparent;
  padding: 6px;
  cursor: pointer;
  color: white;
  font-weight: 600;
  font-size: 15px;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
  border-color: var(--border-light);
}

.nav-item.refresh:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--border);
}

.sleep-mode-active {
  position: relative;
}

.sleep-mode-active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(45, 185, 255, 0.05);
  pointer-events: none;
}
.dragbar {
  position: absolute;
  -webkit-app-region: drag;
  height: 15px;
  width: 100%;
}

.logo {
  position: absolute;
  width: 35px;
  height: 50px;
  left: 44px;
  top: 32px;
}

.bg-logo {
  position: absolute;
  width: 196px;
  height: 322px;
  left: 1023px;
  top: 300px;
}

.login-title {
  position: absolute;
  width: 71px;
  height: 29px;
  left: 170px;
  top: 229px;
  font-weight: 600;
  font-size: 24px;
  line-height: 29px;
  color: var(--text);
}

.login-des {
  position: absolute;
  width: 510px;
  height: 21px;
  left: 170px;
  top: 290px;
  font-weight: 400;
  font-size: 17px;
  line-height: 21px;
  color: var(--text);
}

.login-label {
  position: absolute;
  width: 32px;
  height: 22px;
  left: 170px;
  top: 340px;
  font-weight: 500;
  font-size: 18px;
  line-height: 22px;
  color: var(--text);
}

.login-input {
  position: absolute;
  width: 528px;
  height: 50px;
  left: 170px;
  top: 374px;

  background: rgba(251, 158, 181, 0.06);
  border: 1.75px solid #fb9eb5;
  border-radius: 10px;
  padding-left: 20px;

  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 19px;
  color: var(--text);
}

.login-input:focus {
  outline: none;
}

.login-input::placeholder {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 19px;
  color: var(--text);
  opacity: 0.2;
}

.login-button {
  position: absolute;
  width: 528px;
  height: 50px;
  left: 170px;
  top: 470px;
  background: #fa5d82;
  border-radius: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  line-height: 19px;
  cursor: pointer;
  border: none;
}

.bg-bottom-flower1 {
  position: absolute;
  width: 281px;
  height: 295px;
  left: -79px;
  top: 816px;

  opacity: 0.1;
}

.bg-bottom-flower2 {
  position: absolute;
  width: 160px;
  height: 168px;
  left: 61px;
  top: 892px;

  opacity: 0.1;
}

.bg-top-flower1 {
  position: absolute;
  width: 160px;
  height: 168px;
  right: 0;
  top: -80px;
  opacity: 0.1;
  transform: rotate(-172.75deg);
}

.bg-top-flower2 {
  position: absolute;
  width: 281px;
  height: 295px;
  right: -130px;
  top: -120px;

  opacity: 0.1;
  transform: rotate(-172.75deg);
}

.wrapper {
  width: 696px;
  height: 396px;
  background: #161929;
  position: relative;
  overflow: hidden;
}

.background {
  width: 700px;
  height: 400px;
  background: #161929;
  background-size: 100%, 100%;
  position: absolute;
  background-position-y: -50px;
}

.background__image {
  background: url('./pvp_auth-CEyAiODh.png') top right no-repeat;
  position: absolute;
  z-index: 3;
  width: 100%;
  height: 100%;
}

.foreground {
  position: absolute;
  width: 700px;
  height: 400px;
  background: #161929;
  background-size: 100%, 100%;
  background-position-y: -30px;
}

.dragbar {
  -webkit-app-region: drag;
  position: absolute;
  width: 100%;
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  padding: 8px;
  z-index: 3;
}

.welcome__Text {
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  line-height: 11px;
  letter-spacing: 0em;
  text-align: left;
  color: var(--text-muted);
}

.soft__name {
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 17px;
  letter-spacing: 0em;
  text-align: left;
  color: var(--text);
  margin-top: 6px;
}

.bottom {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 9px;
}

.foreground .bottom {
  position: relative;
  top: calc(50% - 60px);
  justify-content: flex-end;
  z-index: 2;
  right: 37px;
}

.bottom__left {
  background: linear-gradient(115.31deg, #ce7cff 0%, #734bff 100%);
  width: 131px;
  height: 2px;
  border-radius: 4px;
}

.bottom__right {
  width: 3px;
  height: 2px;
  border-radius: 4px;
  background: linear-gradient(115.31deg, #ce7cff 0%, #734bff 100%);
}

/* Animations */
@keyframes tail {
  0% {
    width: 0;
  }

  30% {
    width: 100px;
  }

  100% {
    width: 0;
  }
}

@keyframes shining {
  0% {
    width: 0;
  }
  50% {
    width: 30px;
  }
  100% {
    width: 0;
  }
}

@keyframes shooting {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(320px);
  }
}

@keyframes floating {
  from {
    transform: translate(0, 0px);
  }
  65% {
    transform: translate(0, 5px);
  }
  to {
    transform: translate(0, -0px);
  }
}

.form__wrapper {
  position: relative;
  top: calc(50% - 83px);
  height: 128px;
  display: flex;
  flex-direction: column;
  z-index: 3;
  background: #1a1d2d;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 28px 102px;
  margin: 0 133px;
  text-align: center;
  justify-content: center;
}

.overlay {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
  top: 25px;
  left: 37px;
}

.contact__us {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  top: calc(50% - 60px);
  justify-content: center;
  z-index: 2;
}

.help {
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 12px;
  letter-spacing: 0em;
  text-align: left;
  color: var(--text-muted);
}

.contact__us a {
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 12px;
  letter-spacing: 0em;
  text-align: left;
  color: #ce7cff;
  text-decoration: none !important;
}

.input__login {
  display: flex;
  justify-content: center;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 15px;
  letter-spacing: 0em;
  text-align: left;
  color: #ce7cff;
}

.enter__license {
  color: var(--text-muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  line-height: 11px;
  letter-spacing: 0em;
  text-align: center;
  margin-top: 13px;
}

.input {
  margin-top: 15px;
  border-radius: 5px;
  font-size: 10px;
  padding: 12px 0px 12px 18px;
  letter-spacing: 0.7px;
  background-color: transparent;
  border: 1px solid #ce7cff;
  outline: none;
  color: var(--text);
  font-weight: 600;
  transition: 0.2s ease;
  margin-bottom: 17px;
  width: 100%;
}

.input::placeholder {
  color: var(--text-muted);
}

.button {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 40px;
  margin: 0 auto;
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.2s ease;
  font-weight: bold;
  background:
    linear-gradient(115.31deg, #74ff79 0%, #60ffbc 100%),
    linear-gradient(0deg, #ffffff, #ffffff);
  color: #0d0c10;
  height: 36px;
  border: none;
  outline: none;
  border-radius: 5px;
  width: 110px;
}

.button:hover {
  transform: translateY(-2px);
  filter: brightness(80%);
}

.button--countdown {
  width: 100%;
  padding: 12px 10px;
  white-space: nowrap;
  background: transparent;
  border: 1px solid #ce7cff;
  color: #ce7cff;
}

.button--countdown:hover {
  transform: translateY(-2px);
  filter: none;
  background: rgba(206, 124, 255, 0.1);
}

.wipe-key-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(115.31deg, #ff6b6b 0%, #ff9999 100%);
  color: var(--text);
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 3px;
  font-size: 10px;
  font-family: 'Inter';
  transition: 0.2s ease;
}

.wipe-key-button:hover {
  transform: translateY(-2px);
  filter: brightness(80%);
}

.error__text {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff3c5d;
  font-size: 14px;
  font-weight: bold;
  margin-top: 3px;
  font-family: 'Inter';
}

.login__text {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 3px;
}

.loading {
  width: 100%;
  display: flex;
  justify-content: center;
}

#success__gif,
#loading__gif {
  display: block;
  width: 30%;
  /*height: 50px;*/
}
.loading {
  height: 81px;
}
.form-group {
  margin-bottom: 0.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.25rem;
}

.form-group input {
  width: 100%;
  padding: 0.3rem;
  background: var(--bg-input);
  border-radius: 5px;
  color: var(--text);
  border: 1px solid transparent;
}

.connection-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.connection-item button {
  padding: 0.25rem 0.5rem;
  background-color: #ff4444;
  color: var(--text);
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.sound-select {
  width: 50%;
  padding: 0.3rem;
  background: var(--bg-input);
  border-radius: 5px;
  color: var(--text);
  border: 1px solid transparent;
}
.api-key-label {
  font-size: 17px;
  font-weight: 600;
  line-height: 29px;
  color: #fffa9f;
}

input[type='checkbox'] {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  border: 1px solid #d8d8d8;
  margin-right: 5px;
  vertical-align: middle;
}

select {
  width: 110px;
}

.param-input {
  background: var(--bg-input);
  width: 400px;
  height: 25px;
  border-radius: 5px;
  color: var(--text);
  border: 1px solid transparent;
  padding: 5px 15px;
}

.param-input:focus {
  outline: none;
  border: 1px solid var(--accent);
}

.settings-input {
  background: var(--bg-input);
  width: 100px;
  height: 25px;
  border-radius: 5px;
  color: var(--text);
  /* Use the theme border token (not transparent) so the field stays visible on
     themes where --bg-input matches the page background, e.g. Gruvbox/Cobalt. */
  border: 1px solid var(--border);
  padding: 0px 5px;
  margin-top: 2px;
}

.settings-input:focus {
  outline: none;
  border: 1px solid var(--accent);
}

.label-input-vertical {
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: center;
  gap: 3px;
}

.setting-label {
  font-weight: 800;
  font-size: 18px;
  line-height: 29px;
  color: #fffa9f;
}

.trading-size-table {
  table-layout: auto;
  border-collapse: collapse;
  font-size: 13px;
  width: 100%;
  margin: 0 auto;
  color: var(--text-dim);
}

.trading-size-table th,
.trading-size-table td {
  text-align: left;
  padding: 5px 10px;
  vertical-align: middle;
}

.trading-size-table th {
  text-align: left;
  white-space: nowrap;
  background: var(--bg-alt);
  color: var(--text);
}

.trading-size-table-normal th {
  font-weight: normal !important;
}

.trading-size-table tr:hover {
  background-color: var(--bg-hover);
  cursor: pointer;
}

.reveal-hide-button {
  width: 60px;
  height: 25px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  border: none;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  margin-left: 5px;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.3s;
}

.reveal-hide-button:hover {
  background-color: var(--accent);
  border-color: var(--accent);
}

.grid-row {
  display: grid;
  grid-template-columns: 210px auto auto;
  align-items: center;
  margin-bottom: 10px;
}
.label {
  font-weight: bold;
}

.settings-info {
  font-size: 13px;
  margin: 10px 0;
  color: pink;
  font-weight: bold;
}

/* Settings Search */
.tab-list-container {
  display: flex;
  flex-direction: column;
  width: 200px;
  flex-shrink: 0;
  height: 100%;
  overflow: hidden;
  border-right: 1px solid var(--border);
}

.settings-search-container {
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.settings-search-input {
  background: var(--bg-input);
  width: 180px;
  height: 24px;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 2px 8px;
  font-size: 12px;
}

.settings-search-input:focus {
  outline: none;
  border-color: var(--accent);
}

.settings-search-input::placeholder {
  color: var(--text-muted);
}

.settings-search-clear {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.settings-search-clear:hover {
  color: var(--text);
}

.search-results-container {
  padding: 14px 18px;
  flex: 1;
  min-width: 0;
  overflow-y: auto;
}

.search-results-count {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.search-results-empty {
  color: var(--text-muted);
  font-size: 12px;
  padding: 20px 10px;
}

.search-results-category-group {
  margin-bottom: 6px;
}

.search-result-category {
  font-size: 11px;
  color: #fffa9f;
  margin-top: 10px;
  margin-bottom: 4px;
  font-weight: 600;
}

.search-result-item {
  padding: 6px 8px;
  background: var(--bg-alt);
  margin-bottom: 4px;
  cursor: pointer;
  border: 1px solid var(--border);
}

.search-result-item:hover {
  background: var(--accent);
}

.search-result-item:focus {
  outline: 1px solid var(--accent);
}

.search-result-label {
  font-weight: 600;
  color: var(--text);
  font-size: 12px;
}

.search-result-description {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.search-result-section {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

.search-highlight {
  background-color: rgba(72, 154, 236, 0.4);
  color: var(--text);
}
/* Chrome for the dedicated, frameless Settings window. The titlebar is the
   only OS drag region; everything else (incl. the close button) opts out. */
.settings-window-root {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background: var(--bg-base);
  color: var(--text);
}

.settings-window-titlebar {
  -webkit-app-region: drag;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  flex-shrink: 0;
  /* No right padding — the close control runs flush to the window corner,
     native-window style. */
  padding: 0 0 0 12px;
  background: var(--bg-navbar);
  border-bottom: 1px solid var(--border);
  user-select: none;
}

.settings-window-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.settings-window-close {
  -webkit-app-region: no-drag;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s ease;
}

.settings-window-close:hover {
  background: #e81123;
  color: #fff;
}

.settings-window-body {
  flex: 1;
  min-height: 0;
  /* Flush, no outer padding — the tab menu and the per-tab content each own
     their own scroll region (see tabs.css). */
  padding: 0;
  overflow: hidden;
  display: flex;
}

/* react-tabs injects a <div class="react-tabs"> wrapper between the body and
   .tabs-wrapper; stretch the whole chain so the columns can fill the window. */
.settings-window-root .react-tabs {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
