#stacked-bar-chart {
    width: 100%; /* Ensure the container takes the full width */
}
.bar {
    font: 10px sans-serif;
}
.axis-label {
    font-weight: bold;
    font-size: 20px;
    font-family: "Sakkal Majalla";
    fill: #911818;  /* Text color */
    dominant-baseline: middle;
    text-anchor: middle;
    alignment-baseline: middle;

    /* Simulating circular background using multiple shadows */
    text-shadow:
            0px 0px 8px #430100,  /* Inner glow */
            0px 0px 0px #430100,
            2px 4px 4px #430100,
            0px 0px 0px #430100;
}

.tooltip {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    padding: 5px;
    font-size: 12px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}
.avg-line {
    stroke: red;
    stroke-width: 2;
    stroke-dasharray: 5, 5;
    fill: none;
}
.avg-point {
    fill: red;
}
.avg-label {
    fill: red;
    font-size: 12px;
    font-weight: bold;
}
.legend {
    font-size: 12px;
}
.legend rect {
    stroke-width: 2;
}
/*.container {
    display: flex;
    align-items: flex-start;
}*/
#chart {
    margin-right: 20px;
}

.checkbox-container label {
    margin-right: 5px;
}

.chart-container {
    display: flex;
    flex-direction: column; /* Stack checkboxes above the chart */
    align-items: flex-start; /* Align content to the left */
}

.checkbox-container {
    display: grid;
    grid-template-columns: repeat(8, 1fr); /* Create 3 columns for checkboxes */
    gap: 10px; /* Space between the checkboxes */
    margin-bottom: 20px; /* Add space between the checkboxes and the chart */
}

.checkbox-container label {
    font-size: 80%;
    display: inline-block;
    margin-bottom: 5px; /* Space between labels and checkboxes */
}

.checkbox-container input {
    height: 20px;
    width: 20px;
}


.custom-button {
    background-color: #3f51b5; /* Primary blue background */
    color: white; /* White text */
    padding: 15px 20px; /* Padding for a larger button */
    font-size: 16px; /* Larger font */
    border: none; /* Remove border */
    border-radius: 8px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth hover effect */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow for depth */
}

.custom-button:hover:enabled {
    background-color: #303f9f; /* Slightly darker blue on hover */
    transform: translateY(-2px); /* Slight movement on hover */
}

.custom-button:active {
    background-color: #283593; /* Even darker blue on click */
    transform: translateY(0); /* Reset movement */
}

.custom-button.active {
    background-color: #b94931fc; /* Purple for active state */
    transform: translateY(-2px); /* Keep movement */
}

.button-container {
    display: flex; /* Align buttons in a row */
    gap: 15px; /* Space between buttons */
    justify-content: center; /* Center buttons */
    margin-bottom: 20px; /* Bottom margin for spacing */
}
