body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4; 
    color: #333; 
    text-align: center;
    margin: 20px; 
    padding: 0;
}

.container {
    width: 80%;
    margin: 20px auto; 
    padding: 20px;
    background: #fff; 
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); 
}

.container > h1 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #007bff; 
}

.report-card .institution-name {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #28a745; 
}

.report-card > h2 {
    margin-top: 10px;
    margin-bottom: 15px;
    font-size: 1.8em;
    color: #007bff; 
}

.report-card > h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.6em;
    color: #6c757d; 
}


.input-form {
    margin-bottom: 20px;
}

input {
    display: block;
    margin: 5px auto;
    padding: 8px;
    width: 50%;
    border-radius: 5px;
    border: 1px solid #ccc; 
}

button {
    padding: 10px 20px;
    margin-top: 10px;
    cursor: pointer;
    background-color: #007bff; 
    color: white;
    border: none;
    border-radius: 5px;
    transition: 0.3s ease-in-out;
}

button:hover {
    background-color: #0056b3; 
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}


.report-card {
    display: none;
    margin-top: 20px;
    padding: 15px; 
    border: 1px solid #ddd; 
    border-radius: 5px;
}

table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
}

table, th, td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left; 
}

th {
    background-color: #f2f2f2; 
    color: #333;
}


.chart-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; 
    flex-wrap: wrap;
    margin-top: 30px;
}

.charts {
    width: 48%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}


.charts:last-child {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.pie-legend-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.legend-color-box {
    width: 15px;
    height: 15px;
    display: inline-block;
    margin-right: 10px;
    border-radius: 3px;
}

.legend-label {
    font-size: 0.9em;
    color: #333; 
}


canvas {
    width: 100% !important; 
    max-width: 400px;
    height: auto !important;
    background-color: white; 
}


#downloadPdfBtn {
    display: none;
    margin-top: 20px;
    padding: 10px 20px;
    cursor: pointer;
    background-color: #28a745; 
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#downloadPdfBtn:hover {
    background-color: #1e7e34; 
}

@media (max-width: 768px) {
    .chart-container {
        flex-direction: column;
        align-items: center;
    }

    .charts {
        width: 90%;
    }

    .charts:last-child {
        margin-top: 20px;
    }

    input {
        width: 80%;
    }

    canvas {
        width: 90% !important;
    }
}