/* body {
  background-color: #f5f5f5;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.header {
  background: linear-gradient(135deg, #2d7a3e 0%, #1e5a2d 100%);
  color: white;
  padding: 15px 20px;
  margin-bottom: 20px;
}

.header h1 {
  font-size: 24px;
  margin: 0;
  display: flex;
  align-items: center;
}

.header .fa-chart-line {
  margin-right: 10px;
} */
.update-time {
  font-size: 13px;
  color: #e0e0e0;
  margin-top: 5px;
}

.share-btn {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
}

.share-btn:hover {
  background-color: #218838;
}

.index-card {
  background: white;
  border-radius: 4px;
  padding: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  border: 1px solid #e4e4e4;
  transition: all 0.3s ease;
}

.index-card:hover {
  /* transform: translateY(-2px); */
  box-shadow: 0 4px 8px rgb(0 0 0 / 20%);
}

.index-card.active {
  border: 1px solid #0163ac;
  background: linear-gradient(135deg, #f5faff 0%, #ffffff 100%);
  position: relative;
}

.index-card.active::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #0163acbd;
  height: 0;
}

.index-card.negative {
  border: 2px solid #dc3545;
}

.index-card.negative.active {
  border: 2px solid #007bff;
}

.index-name {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 0;
}

.index-value {
  font-size: 16px;
  font-weight: 600;
  color: #1f5aa2;
}

.index-value.stock-price {
  color: #de8500 !important;
  font-weight: 600;
  font-size: 20px;
}

.index-change {
  font-size: 18px;
  font-weight: bold;
  margin-top: 4px;
}

.index-change.negative {
  color: #dc3545;
}

.index-change.positive {
  color: #28a745;
}

.chart-container {
  background: white;
  border-radius: 4px;
  padding: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.time-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.time-btn {
  padding: 3px 10px;
  border: none;
  background: white;
  cursor: pointer;
  font-size: 14px;
  color: #777;
  border-bottom: 1px solid transparent;
}

.time-btn.active,
.time-btn:hover {
  color: #0163ac;
  border-bottom: 1px solid #0163ac;
}

.stats-box {
  background: #f8f9fa;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.stats-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 16px;
}

.stats-label {
  color: #666;
}

.stats-value {
  font-weight: 600;
  color: #333;
}

.ref-price strong {
  color: #ff9900 !important;
}

.open-price strong {
  color: #ff9900 !important;
}

.floor-price strong {
  color: #1f9ffc !important;
}

.highest-price strong {
  color: #00a500 !important;
}

.ceiling-price strong {
  color: #ff00ff !important;
}

.lowest-price strong {
  color: #cc0000 !important;
}

.top-stocks-card {
  background: linear-gradient(90deg, #9e3071, #1c5ca4);
  border-radius: 4px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.top-stocks-header {
  background: linear-gradient(135deg, #151b37 0%, #b52c54 100%);
  color: white;
  padding: 10px;
  border-radius: 4px 4px 0 0;
  margin: -15px -15px 15px -15px;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid #e4e4e47d;
}

.stock-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.stock-item:last-child {
  border-bottom: none;
}

.stock-code {
  font-weight: 600;
  font-size: 15px;
  color: #333;
}

.stock-price {
  font-size: 16px;
  font-weight: 500;
  margin: 0 15px;
}

.stock-change {
  font-size: 14px;
  font-weight: 500;
  margin-right: 10px;
}

.index-change > span {
  font-size: 14px;
}

.stock-percent {
  background-color: #9b4dca;
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  min-width: 70px;
  text-align: center;
}

.suggest-btn {
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  padding: 12px;
  text-align: center;
  border-radius: 8px;
  margin-top: 15px;
  cursor: pointer;
  color: #666;
  font-weight: 500;
}

.suggest-btn:hover {
  background-color: #e8e8e8;
}

.suggest-btn i {
  margin-right: 8px;
  color: #28a745;
}
.container-fluid.stock-box.zoom-out {
  padding:0;
  margin: 20px 0
}
.stock-box.zoom-out * {
  zoom: 96%;
}

@media all and (max-width: 768px) {
  .stock-box.zoom-out * {
  zoom: unset
}
  .index-card {
    padding: 5px;
  }

  .index-name {
    font-size: 14px;
  }

  .index-value {
    text-align: right;
  }

  .index-change {
    font-size: 14px;
  }

  .index-change > span {
    font-size: 12px;
  }

  .index-navs {
    overflow-x: scroll;
  }

  .index-navs > div {
    padding: 0px;
  }

  .chart-container {
    border-radius: 0;
    padding: 0;
    box-shadow: unset;
  }

  .time-selector {
    display: flex;
    /* gap: 4px; */
    margin-top: 10px;
    margin-bottom: 10px;
    justify-content: center;
  }
}

/* instance search */

.select2-container {
  width: 100% !important;
}
.select2-container--default .select2-selection--single {
  height: 45px;
  border: 1px solid #b6b6b6;
  border-radius: 4px;
  padding: 4px;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  line-height: 33px;
  padding-left: 5px;
  color: #333;
  font-size: 16px;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 43px;
}
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: #007bff;
}
.select2-dropdown {
  border: 2px solid #007bff;
  border-radius: 8px;
}
.select2-results__option {
  padding: 7px 5px;
}
.stock-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stock-option-code {
  font-weight: 600;
  color: #0163ac;
  font-size: 14px;
}
.stock-option-name {
  color: #666;
  font-size: 14px;
  margin-left: 8px;
  flex: 1;
}
.stock-option-exchange {
  font-size: 12px;
  color: #999;
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 4px;
}
.stock-option-link {
  color: #28a745;
  font-size: 12px;
  margin-left: 10px;
}
.stock-option-link:hover {
  text-decoration: underline;
}
.select2-search--dropdown .select2-search__field {
  height: 32px;
  text-transform: uppercase;
}

.select2-container--default
  .select2-results__option--highlighted[aria-selected] {
  background-color: #b6e0ff70;
  color: white;
}
