/* 基本图表容器样式 */
.chartBox {
  width: 100%;
  margin: auto 0;
  overflow: auto;
  float: left;
}

/* 分析结果区域样式 */
.analysis-results {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* 加载动画样式 */
.chart-container {
  position: relative;
}

.loading-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  z-index: 1000;
}

.loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.loading-text {
  margin-top: 10px;
  text-align: center;
  color: #666;
  font-size: 14px;
}

/* 基因输入切换样式 */
.gene-input-toggle {
  margin-bottom: 15px;
}

.toggle-gene-input {
  color: #666;
  font-size: 13px;
  padding: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}

.toggle-gene-input:hover {
  color: #333;
  text-decoration: none;
}

.toggle-icon {
  width: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 5px;
}

.toggle-icon i {
  font-size: 10px;
  transition: transform 0.2s ease;
  transform-origin: center;
}

.toggle-text {
  display: inline-block;
  position: relative;
  top: 1px;
}

/* 基因输入区域样式 */
.gene-input-section {
  display: none;
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 4px;
  border: 1px solid #e9ecef;
  margin-bottom: 15px;
  overflow: hidden;
}

.gene-input-section .form-group {
  margin-bottom: 10px;
}

.gene-input-section .text-muted {
  color: #6c757d;
  font-size: 12px;
}

/* 比较区域样式 */
.compare-section {
  position: relative;
  z-index: 1;
}

/* 多选下拉框样式 */
.multiselect-container {
  max-height: 300px !important;
  overflow-y: auto !important;
  z-index: 1050 !important;
}

.btn-group {
  width: 100%;
}

.multiselect-container.dropdown-menu {
  width: 100%;
  position: absolute;
  z-index: 1050 !important;
}

/* 确保Advanced Options中的元素不会遮挡下拉框 */
.gene-input-section {
  position: relative;
  z-index: 1;
}

/* 自定义滑轨样式 */
input[type=range] {
  -webkit-appearance: none;
  background: transparent;
}

input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #5470c6;
  margin-top: -6px;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

input[type=range]:focus {
  outline: none;
}

input[type=range]:focus::-webkit-slider-thumb {
  background: #3a56b4;
}
/* 标签样式 */
.label-default {
  background-color: #666;
  padding: 4px 8px;
  border-radius: 3px;
  display: inline-block;
}
