* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f0f2f5;
  color: #333;
}

.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.sidebar {
  width: 200px;
  background-color: #2c3e50;
  color: white;
  padding: 20px;
  height: calc(100vh - 60px);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  overflow-y: auto;
  scrollbar-width: thin; /* Firefox */
}

.sidebar::-webkit-scrollbar {
  width: 6px; /* Chrome/Safari */
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.logo {
  font-size: 24px;
  margin-bottom: 20px;
  text-align: center;
}

.filters label {
  display: block;
  margin: 10px 0 5px;
  font-weight: bold;
}

.filters select, .filters input {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.filters button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 4px;
  width: 100%;
  margin-bottom: 10px;
}

.main-content {
  margin-left: 200px;
  flex: 1;
  padding: 20px;
  background-color: #fff;
  overflow: visible;
}

.chart-and-image-container {
  display: flex;
  width: 100%;
  height: 400px; /* 固定高度，避免页面滚动 */
  gap: 20px; /* 间距 */
  margin: 20px 0;
}

.header {
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
}

.header h1 {
  font-size: 2rem;
  text-align: center;
}

.examples {
  font-size: 1.2rem;
  text-align: center;
  margin-top: 10px;
  color: #666;
}

.chart-container {
  /*width: 100%;*/
  flex: 3;
  height: 100%;
  /*height: 500px;*/
  /*margin: 20px 0;*/
  position: relative;
}

.right-panel {
  flex: 1; /* 相当于 25% */
  height: 100%;
  overflow-y: auto; /* 超出时垂直滚动 */
  padding: 10px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.tooltip {
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  border-radius: 4px;
  position: absolute;
  display: none;
  z-index: 100;
}

#download-btn {
  background-color: #23b632;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 4px;
  float: right;
  margin-top: 10px;
}

.footer {
  text-align: center;
  padding: 10px;
  background-color: #eee;
  margin-top: auto;
}

/* 功能连接按钮特殊样式 */
#show-fc-matrix-btn {
  background-color: #9b59b6; /* 紫色区分 */
}

#show-fc-btn {
  background-color: #e67e22; /* 橙色区分 */
}

/* 热图容器样式 */
.fc-matrix-container {
  width: 100%;
  height: 100%;
  overflow: auto;
}

/* 功能连接结果展示 */
#functional-connectivity-result {
  margin: 20px 0;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 4px;
  text-align: center;
}

/* 图表切换样式 */
#bloodflow-chart, #fc-matrix-chart {
  width: 100% !important;
  height: 100% !important;
}