/* Base reset & font */
body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  background-color: #ffffff;
  color: #333;
  padding: 2rem;
}

/* Header styling */
.main-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 2rem;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-img {
  width: 40px;
  height: auto;
  margin-right: 0.8rem;
}

.main-header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: rgb(20, 56, 127);
}

/* Chart container */
.chart-container {
  max-width: 1000px;
  margin: 0 auto;
  background-color: #f9f9f9;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Ensure the chart gets a proper height */
#chart {
  width: 100%;
  height: 350px; /* Set a fixed height */
}

/* Style for the range buttons container */
.range-buttons {
  display: flex;
  justify-content: center; /* Center the buttons */
  gap: 10px; /* Space between the buttons */
  margin: 20px 0; /* Margin above and below */
}

/* Style for each button */
.range-buttons button {
  background-color: #4caf50; /* Green background */
  color: white; /* Text color */
  font-size: 16px;
  padding: 5px 10px; /* Vertical and horizontal padding */
  border: none;
  border-radius: 5px; /* Rounded corners */
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s ease-in-out; /* Smooth transition */
  font-weight: bold;
}

/* Hover effect */
.range-buttons button:hover {
  background-color: #45a049; /* Slightly darker green on hover */
  transform: translateY(-2px); /* Lift the button */
}

/* Active button state */
.range-buttons button.active {
  background-color: #ff5733; /* Red color for active */
  transform: translateY(0); /* Reset transform */
}

/* Optional: focus state for accessibility */
.range-buttons button:focus {
  outline: none; /* Remove the default focus outline */
  box-shadow: 0 0 5px rgba(255, 87, 51, 0.7); /* Glow effect */
}
