 .global-comparison-btn {
  position: absolute;
  right: 10px;
  bottom: 70px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #25292e, #383e47);
  color: #e0e0e0;
  border: 1px solid #456789;
  border-radius: 25px;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.global-comparison-btn:hover {
  background-color: #3d566e;
  color: #D18F3A;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  border-color: #D18F3A;
}

.global-comparison-btn::after {
  content: "Advanced data plotting and analysis module";
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: 14px;
  margin-left: 8px;
  color: inherit;
}


.gc-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gc-content {
  width: 90vw;
  height: 95vh;
  background: linear-gradient(135deg, #25292e, #383e47);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  position: relative;
  margin-right: calc(100vw - 100%);
  overflow: hidden;
}


.gc-header {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem;
  background: #383e47;
  border-bottom: 1px solid #456789;
}


.gc-tab-content {
  flex: 1;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

.gc-chart-container, .gc-scatter-plot, .gc-variable-selectors, .gc-regression-controls {
  background: linear-gradient(135deg, #25292e, #383e47);
}

  .gc-header-left {
    display: flex;
    align-items: center;
  }
  
  .gc-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .gc-header h2 {
    color: #D18F3A;
    margin: 0;
    font-size: 1.5rem;
  }
  
  .gc-close {
    background: none;
    border: none;
    color: #ecf0f1;
    font-size: 24px;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    border-radius: 4px;
    transition: background-color 0.2s;
  }
  
  .gc-close:hover {
    background: rgba(231, 76, 60, 0.15);
}

.gc-export-btn:hover {
  background: rgba(60, 231, 74, 0.15);
}

  .gc-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }
  
  .gc-tab {
    color: #bdc3c7;
    padding: 0.25rem 0.75rem;
    font-size: 1.1rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-bottom-color 0.2s;
  }
  
  .gc-tab:hover {
    color: #D18F3A;
    border-bottom-color: #D18F3A;
  }
  
  .gc-tab.active {
    color: #D18F3A;
    border-bottom-color: #D18F3A;
  }

/* First tab specific styles */
#compare-tab {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
  
  .gc-chart-buttons {
    flex: 0 0 auto;
    position: sticky;
    top: 0;
    padding: 0.5rem;
    background: linear-gradient(135deg, #25292e, #383e47);
    z-index: 2;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid #456789;
  }
  
  .gc-add-chart {
    background: linear-gradient(135deg, #2a2e35, #3d4a57);
    color: #ecf0f1;
    border: 1px solid #456789;
    padding: 0.25rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .gc-add-chart:hover {
    background: #3d566e;
    border-color: #D18F3A;
  }
  
  #gc-charts-container {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
    height: calc(100% - 50px); /* Adjust based on gc-chart-buttons height */
    scrollbar-width: thin;
    scrollbar-color: #456789 #2c3e50;
  }
  
  #gc-charts-container::-webkit-scrollbar {
    width: 8px;
  }
  
  #gc-charts-container::-webkit-scrollbar-track {
    background: #25292e;
  }
  
  #gc-charts-container::-webkit-scrollbar-thumb {
    background-color: #456789;
    border-radius: 4px;
    border: 2px solid #25292e;
  }
  

  .gc-chart-container, .gc-scatter-plot, .gc-variable-selectors, .gc-regression-controls {
    background: linear-gradient(135deg, #25292e, #383e47);
  }

  .gc-chart-body {
    padding: 0.5rem;
  }

  .gc-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2a2e35;
    border-bottom: 1px solid #456789;
  }
  
  .gc-chart-header h3 {
    font-size: 1rem;
    margin: 0;
    color: #ecf0f1;
  }
  
  .gc-chart-actions {
    display: flex;
    gap: 0.5rem;
  }
  
  .gc-export-btn {
    background: none;
    border: none;
    color: #ecf0f1;
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
  }
  
.gc-add-variable-row {
  display: flex;
  gap: 0.5rem;
}

.gc-select-site,
.gc-select-variable,
.gc-regression-controls select {
  width: 100%;
  background: linear-gradient(135deg, #25292e, #383e47);
  color: #ecf0f1;
  border: 1px solid #456789;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}
  
.gc-select-site:hover,
.gc-select-variable:hover,
.gc-regression-controls select:hover {
  border-color: #D18F3A;
  background: rgba(255, 255, 255, 0.1);
}

  .gc-btn-add-variable {
    background: linear-gradient(135deg, #3a3f47, #484e57);
    color: #e0e0e0;
    border: 1px solid #A67C32;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
  }
  
  .gc-btn-add-variable:hover {
    background: #3d566e;
    border-color: #D18F3A;
    color: #D18F3A;
  }
  
  .gc-btn-add-variable:disabled {
    background: #5a5e66;
    border-color: #666b74;
    color: #95a5a6;
    cursor: not-allowed;
  }
  
  
  .gc-btn-add-variable:disabled {
    background: #95a5a6;
    cursor: not-allowed;
  }
  
  .gc-aggregation-controls {
    display: flex;
    gap: 0.25rem;
    margin: 0.5rem 0;
  }
  
  .gc-aggregation-btn {
    background: linear-gradient(135deg, #25292e, #383e47);
    color: #ecf0f1;
    border: 1px solid #456789;
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .gc-aggregation-btn.active {
    background: #A67C32;
    border-color: #D18F3A;
  }
  
  .gc-aggregation-btn:hover:not(.active) {
    background: #3d566e;
    border-color: #D18F3A;
  }






.gc-error {
  color: #e74c3c;
  text-align: center;
  padding: 1rem;
  background: rgba(231, 76, 60, 0.1);
  border-radius: 4px;
  margin: 1rem;
}


.gc-loading-container {
  margin: 1rem;
  width: calc(100% - 2rem);
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
}

.gc-loading-bar {
  width: 100%;
  height: 4px;
  background: #32383f;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.gc-loading-progress {
  width: 0%;
  height: 100%;
  background: #A67C32;
  position: absolute;
  left: 0;
  transition: width 0.3s ease;
}

.gc-loading-text {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #b0b0b0;
}

.gc-chart-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(42, 46, 53, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

