.data_menu {
  padding: 30px 35px;
  background: rgba(8, 8, 24, 0.82);
  border: 1px solid rgba(0, 245, 255, 0.15);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  width: 80%;
  max-width: 820px;
  margin: 0 auto 40px;
  color: #e2e8f0;
  box-shadow:
    0 0 50px rgba(0, 245, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  height: auto;
  position: relative;
}

.data_menu h1 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 6px;
}

.graph-description {
  text-align: center;
  margin: 0 0 28px;
  color: rgba(226, 232, 240, 0.55);
  font-size: 1.3rem;
}

h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(0, 245, 255, 0.65);
  margin: 0 0 14px;
}

.cont1, .cont2 {
  padding: 10px 15px;
  height: auto;
}

#myForm, #myForm2 {
  padding: 4px 0;
  color: #e2e8f0;
}

/* ── Select ── */
select {
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(0, 245, 255, 0.05);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2300f5ff' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  border: 1px solid rgba(0, 245, 255, 0.3);
  color: #e2e8f0;
  padding: 10px 36px 10px 14px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  width: 100%;
  max-width: 280px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

select:hover,
select:focus {
  border-color: rgba(0, 245, 255, 0.6);
  background-color: rgba(0, 245, 255, 0.09);
  box-shadow: 0 0 14px rgba(0, 245, 255, 0.18);
}

select option {
  background: #08081a;
  color: #e2e8f0;
}

/* ── Radio buttons ── */
.radio-inline {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(226, 232, 240, 0.85);
  margin: 9px 0;
  font-size: 0.88rem;
  cursor: pointer;
}

.radio-inline input[type="radio"] {
  accent-color: #00f5ff;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

/* ── Submit button ── */
#submit,
input[type="submit"] {
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.12), rgba(191, 0, 255, 0.12));
  border: 1px solid rgba(0, 245, 255, 0.4);
  color: #00f5ff;
  padding: 10px 30px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  top: 10px;
  width: auto;
  transition: box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

#submit:hover:not(:disabled),
input[type="submit"]:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.22), rgba(191, 0, 255, 0.22));
  border-color: rgba(0, 245, 255, 0.75);
  box-shadow: 0 0 22px rgba(0, 245, 255, 0.35);
}

#submit:disabled,
input[type="submit"]:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ── Chart container ── */
.chart-container {
  position: relative;
  padding: 30px;
  margin: 0 auto 50px;
  background: rgba(8, 8, 24, 0.82);
  border: 1px solid rgba(0, 245, 255, 0.15);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: white;
  box-shadow:
    0 0 50px rgba(0, 245, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

/* ── Responsive ── */
@media screen and (max-width: 700px) {
  .chart-container,
  .data_menu {
    width: 100%;
    padding: 20px 16px;
    border-radius: 12px;
  }
}
