/* ======== CONTAINER ======== */
.tst-container {
  width: 100%;
  max-width: 1200px;
  margin: 20px auto;
  background: #fff;/*1e1e2f*/
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

/* ======== TOOLBAR ======== */
.tst-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
  padding: 10px 0;
}

/* ======== LABELS + SELECTS ======== */
.tst-select-group {
  display: flex;
  flex-direction: column;
  color: #1e1e2f;
  font-family: "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
}

.tst-select-group label {
  margin-bottom: 5px;
  font-weight: 500;
}

.tst-select {
  background-color: #2a2a3d;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  min-width: 180px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #999 50%), 
                    linear-gradient(135deg, #999 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(1em + 2px), 
                       calc(100% - 13px) calc(1em + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.tst-select:hover {
  border-color: #666;
  background-color: #33334a;
}

.tst-select:focus {
  outline: none;
  border-color: #00bcd4;
  box-shadow: 0 0 0 2px rgba(0, 188, 212, 0.3);
}

/* ======== CHART CONTAINER ======== */
#tradingview_chart_container {
  width: 100%;
  height: 700px;
  border-radius: 10px;
  overflow: hidden;
  background-color: #fff;/*0f0f1a*/
}

#tradingview_chart {
  width: 100%;
  height: 100%;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 768px) {
  .tst-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .tst-select {
    width: 100%;
  }
}

/* ======== LOADER ======== */
.tst-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  margin: -25px 0 0 -25px;
  border: 5px solid rgba(255, 255, 255, 0.2);
  border-top-color: #00bcd4;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10;
  display: none;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.tst-chart-wrapper {
  position: relative;
  width: 100%;
  height: 700px;
}

.tst-fade-out {
  opacity: 0;
  transition: opacity 0.4s ease-out;
}

.tst-fade-in {
  opacity: 1;
  transition: opacity 0.4s ease-in;
}


