/* General Container Styling */
.chart-container {
    position: relative;
    margin: 20px auto;
    width: 100%;
    height: 300px; /* Set a fixed height for both charts */
    max-width: 500px; /* Optional: restrict max width if needed */
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Chart Styling */
.chart-container canvas {
    width: 100% !important;
    height: 100% !important; /* Ensure canvas fills the container */
}

/* Legend Styling */
.chartjs-legend ul {
    display: flex;
    justify-content: center;
    padding: 0;
    margin-top: 15px;
}

.chartjs-legend ul li {
    list-style-type: none;
    margin: 0 10px;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
}

.chartjs-legend ul li span {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 5px;
    border-radius: 50%;
}

/* Tooltip Styling */
.chartjs-tooltip {
    background-color: rgba(255, 87, 51, 0.9);
    color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 10px;
    font-size: 14px;
}

/* Media Query for Smaller Screens */
@media only screen and (max-width: 600px) {
    .chart-container {
        height: 250px; /* Adjust height for smaller screens if needed */
    }

    .chartjs-legend ul li {
        margin: 0 5px;
        font-size: 12px;
    }
}

.instructions {
    margin-top: 20px;
    padding: 20px;
    background-color: #fff;
    border-left: 5px solid #f44336; /* Orange-red left border */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
    color: #333;
}

.instructions h5 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #f44336; /* Orange-red text for heading */
}

.instructions p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* General Styles for Tabs */
.nav-tabs {
    border-bottom: 2px solid #f44336; /* Border color matching the theme */
    justify-content: center; /* Center tabs */
}

.nav-item {
    margin-bottom: 0;
}

.nav-link {
    color: #333;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 5px; /* Slight rounding for the corners */
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    background-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition */
}

.nav-link.active {
    background-color: #f44336; /* Active tab background color */
    color: #fff; /* Active tab text color */
    border-color: #f44336; /* Active tab border color */
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15); /* Shadow effect to make it pop */
    font-size: 18px; /* Slightly larger font for active tab */
    transition: font-size 0.3s ease; /* Smooth transition for font size */
}

.nav-link:hover {
    color: #f44336;
    background-color: rgba(244, 67, 54, 0.1); /* Slight background highlight on hover */
}

.tab-content {
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-top: none;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Handling for Tabs */
@media (max-width: 576px) {
    .nav-tabs {
        flex-wrap: nowrap; /* Prevents tabs from wrapping to the next line */
        overflow-x: auto;  /* Horizontal scroll for small screens */
    }

    .nav-item {
        flex: 0 0 auto; /* Keeps tabs from shrinking */
    }

    .nav-link {
        font-size: 14px;  /* Adjusts font size for smaller screens */
        padding: 10px 15px;
    }

    .nav-link.active {
        font-size: 16px; /* Reduce active tab font size for small screens */
    }
}

@media (max-width: 400px) {
    .nav-link {
        font-size: 12px; /* Further adjust font size for extra small screens */
        padding: 8px 10px;
    }

    .nav-link.active {
        font-size: 14px; /* Further reduce active tab font size for small screens */
    }
}

/* Container */
.container {
    margin-top: 50px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Flexbox Alignment for Tab Navigation */
.nav-tabs {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}


