/* Compare Panel Styles */
#comparePanel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  width: 280px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  display: none;
}

#comparePanel h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.compare-station-list {
  margin-bottom: 10px;
}

.compare-station-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.compare-station-name {
  flex: 1;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compare-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.compare-buttons button {
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
}

.compare-view-btn {
  background-color: #4caf50;
  color: white;
}

.compare-clear-btn {
  background-color: #f5f5f5;
  color: #333;
}

.remove-station-btn {
  background: none;
  border: none;
  color: #ff6b6b;
  cursor: pointer;
  font-weight: bold;
}

.no-stations-message {
  color: #777;
  font-style: italic;
  text-align: center;
  padding: 10px 0;
}

/* Compare Modal Styles */
.compare-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.compare-modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.compare-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.compare-modal-header h3 {
  margin: 0;
}

.compare-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #777;
}

.compare-tabs {
  display: flex;
  margin-bottom: 15px;
  border-bottom: 1px solid #ddd;
}

.compare-tab {
  padding: 10px 15px;
  background: #f5f5f5;
  border: none;
  cursor: pointer;
  margin-right: 5px;
  border-radius: 4px 4px 0 0;
}

.compare-tab.active {
  background: #4caf50;
  color: white;
}

.compare-chart-container {
  width: 100%;
  height: 400px;
  margin-bottom: 20px;
  background: #f8f9fa;
  padding: 15px;
  border-radius: 4px;
  box-sizing: border-box;
}

/* Add station button in popup */
.add-to-compare {
  margin-top: 10px;
  padding: 8px 12px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

/* Copy link button in popup */
.copy-link-btn {
  margin-top: 10px;
  padding: 8px 12px;
  background-color: #2196f3;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.copy-link-btn:hover {
  background-color: #1976d2;
}

.add-to-compare:hover {
  background-color: #45a049;
}

/* Comparison toggle button */
#toggleComparePanel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background: #4caf50;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  font-size: 20px;
}
