
  .bar-graph {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
  }

  .bar-graph h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
  }

  .bar {
    margin-bottom: 20px;
    display: flex; /* Aligns label and bar horizontally */
    align-items: center; /* Vertically centers the label and the bar */
  }

  .label {
    font-weight: bold;
    margin-right: 15px; /* Space between the label and the bar */
    color: #555;
    width: 200px; /* Set a fixed width for the label */
    text-align: right; /* Align label text to the right */
  }

  /* Bar Fill Styling */
  .bar-fill {
    height: 25px;
    line-height: 25px;
    color: #fff;
    text-align: right;
    padding-right: 10px;
    border-radius: 5px;
    transition: background 0.3s ease;
    cursor: default;
    position: relative;
  }

  /* Tooltip Styling */
  .bar-fill::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -28px;
    left: 0;
    background-color: #333;
    color: #fff;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }

  /* Show tooltip on hover */
  .bar-fill:hover::after {
    opacity: 1;
  }

  .chart-footer {
    position: relative;
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #999;
  }

  /* Watermark Styling */
  .watermark {
    text-align: center;
    color: rgba(0,0,0,0.15);
    font-size: 12px;
    padding: 10px 0;
    margin-top: 15px;
  }

  /* Responsive Adjustments - Keeps the original responsiveness intact */
  @media (max-width: 600px) {
    .bar-fill {
      font-size: 12px;
      height: 22px;
      line-height: 22px;
    }

    .label {
      font-size: 14px;
      width: 120px; /* Adjusts the width of the label for smaller screens */
    }

    .bar-fill::after {
      font-size: 11px;
      top: -26px;
    }
  }


