body {
    font-family: Arial, sans-serif;
    margin: 20px;
  }
  
  form {
    max-width: 400px;
  }
  
  label {
    display: grid;
    grid-template-columns: 1fr 200px;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    text-align: right;
  }
  
  input, select {
    padding: 5px;
    width: 100%;
    margin-top: 0;
  }
  
  .result {
    margin-top: 20px;
    padding: 10px;
    border: 2px solid #000;
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }
  
  .result p {
    margin: 5px 0;
  }
  
  .result p strong {
    font-size: 1.1em;
  }
  
  #disclaimer {
    margin-top: 40px;
    font-size: 0.9em;
    color: #555;
  }
  
  table {
    border-collapse: collapse;
    margin-top: 10px;
    width: 100%;
  }
  
  table, th, td {
    border: 1px solid #999;
  }
  
  th, td {
    padding: 5px;
    text-align: center;
  }
  
  th {
    background-color: #b0b0b0;
  }
  
#buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    width: 103%;
}

#buttons button {
    padding: 10px 15px;
    margin-right: 0;
}
  
  /* D3 Chart Styles */
  .chart-tooltip {
    position: absolute;
    background-color: white;
    padding: 5px;
    border: 1px solid black;
    border-radius: 5px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
  }
  
  .chart-line {
    fill: none;
    stroke-width: 1.5;
  }
  
  .chart-point {
    transition: r 0.2s;
  }
  
  .chart-title {
    font-size: 16px;
    text-anchor: middle;
  }
  
  .chart-axis-label {
    font-size: 12px;
  }

  .clear-button {
    background-color: #ff4444;
    color: white;
}

.clear-button:hover {
    background-color: #cc0000;
}
