:root {
  --accent: #095725;
  --accent-hover: #1c9c4b;

  --bg-main: #242e2b;
  --bg-card: #18251f;
  --bg-input: #2d3f35;

  --text-main: white;
  --text-muted: #9ca3af;
}


body {
  margin: 0;
  padding: 0;
  background: var(--bg-main);
  color: var(--text-main);
  font-family: Arial, sans-serif;
}

.container {
  max-width: 1400px;
  margin: auto;
  padding: 20px;
}

h1 {
  margin-bottom: 20px;
}

.controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
  max-width: 1100px;
}

.control-card {
  background: var(--bg-card);
  padding: 16px;
  border-radius: 14px;
  min-width: 0;
}

.comparison-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
}

select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: none;
  background:  var(--bg-input);
  color: var(--text-main);
  box-sizing: border-box;
}

.filter-wrapper {
  position: relative;
  width: 100%;
}

.pump-filter {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 38px 10px 10px;
  border-radius: 8px;
  border: none;
  background:  var(--bg-input);
  color: var(--text-main);
}

.clear-filter {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #9ca3af;
  font-size: 18px;
  user-select: none;
}

.clear-filter:hover {
  color: white;
}

.note {
  min-height: 18px;
  color: white;
  font-size: 16px;
  line-height: 1.3;
}

.chart-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 10px;
  margin-bottom: 20px;
}

#copChart,
#powerChart {
  width: 100%;
  height: 500px;
}

.custom-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 20px 0;
}

.legend-item {
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--bg-card);
  cursor: pointer;
  font-size: 13px;
  user-select: none;
}

.legend-item:hover {
  background: var(--accent-hover);
}

@media (max-width: 700px) {
  .controls {
    grid-template-columns: 1fr;
  }
  .container {
    padding: 10px;
  }

  .chart-card {
    padding: 4px;
    border-radius: 14px;
  }
  #copChart,
  #powerChart {
    height: 380px;
  }
  
  .topbar {
    align-items: flex-start;
  }

  h1 {
    font-size: 26px;
  }

  .subtitle {
    display: block;
    margin-left: 0;
    margin-top: 4px;
  }

  #shareButton {
    width: 100%;
  }
  
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

button {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
}

button:hover {
  background: var(--accent-hover);
}

#addComparisonButton {
  margin-bottom: 20px;
}

.info-card {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 16px;
  margin-top: 20px;
  color: #d1d5db;
  font-size: 14px;
  line-height: 1.5;
}

.info-card strong {
  color: white;
}

.subtitle {
  font-size: 0.45em;
  font-weight: normal;
  color: var(--text-muted);
  margin-left: 10px;
}

input:focus,
select:focus {
  outline: 2px solid  var(--accent-hover);
  outline-offset: 2px;
}

input,
select,
button {
  font-family: inherit;
}

.control-card,
.chart-card,
.info-card {
  background: var(--bg-card);
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.12);
}

