/* Table Container */
#rateContainer {
    margin: 20px auto;
    max-width: 1000px;
    padding: 0 15px;
}

/* Table Styling */
#rateContainer table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    text-align: center;
}

#rateContainer th,
#rateContainer td {
    padding: 10px 15px;
    border: 1px solid #ddd;
}

#rateContainer th {
    background-color: #f4f4f4;
    font-weight: bold;
    color: #333;
}

#rateContainer tr:nth-child(even) {
    background-color: #f9f9f9;
}

#rateContainer tr:hover {
    background-color: #f1f1f1;
}

/* Header and Title Styling */
#rateContainer .title {
    text-align: center;
    margin-top: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

#rateContainer #rate-month-year {
    text-align: center;
    font-size: 20px;
    margin-bottom: 20px;
    color: #555;
}

/* Filters Section Styling */
#rateContainer .filters {
    display: flex;
    flex-direction: row;
    /* Ensures horizontal layout */
    justify-content: center;
    /* Centers items horizontally */
    align-items: center;
    gap: 15px;
    /* Adds spacing between year and month selectors */
    margin-bottom: 20px;
}

/* Ensures labels and dropdowns are aligned properly */
#rateContainer .filters label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

#rateContainer .filters select {
    padding: 10px;
    font-size: 16px;
    width: auto;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    #rateContainer table {
        font-size: 14px;
    }

    #rateContainer th,
    #rateContainer td {
        padding: 8px 10px;
    }

    #rateContainer .title {
        font-size: 20px;
    }

    #rateContainer #rate-month-year {
        font-size: 18px;
    }

    /* Adjust filters for smaller screens */
    #rateContainer .filters {
        flex-direction: column;
        /* Switch back to vertical layout for small screens */
        gap: 10px;
    }

    #rateContainer .filters select {
        width: 100%;
        font-size: 14px;
    }
}