.filter-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    /* Black background with opacity */
}

.filter-modal-content {
    background-color: #1a1a1a;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 400px;
    color: whitesmoke;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: white;
}

label {
    display: block;
    margin: 10px 0 5px;
}

input {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #333;
    color: white;
}

.apply-filter-btn {
    width: 100%;
    padding: 10px;
    background-color: #1DB954;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.apply-filter-btn:hover {
    background-color: #058130;
}

.grade-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* 5 columns */
    gap: 10px;
    margin: 10px 0;
}

.grade-btn {
    padding: 10px;
    background-color: #444;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.grade-btn.active {
    background-color: #b99020;
    /* Highlight active buttons */
    color: white;
}

.grade-btn.active:hover {
    background-color: #b99020;
    /* Highlight active buttons */
    color: white;
}

.grade-btn:hover {
    background-color: #666;
}

.pads-row {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
}

.pads-btn {
    padding: 10px;
    background-color: #444;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    transition: background-color 0.3s ease;
    flex: 1;
    /* Make all buttons equal width */
    margin: 0 5px;
    /* Add spacing between buttons */
}

.pads-btn.active {
    background-color: #b99020;
    /* Highlight the selected button */
    color: white;
}

.pads-btn.active:hover {
    background-color: #b99020;
    /* Highlight the selected button */
    color: white;
}

.pads-btn:hover {
    background-color: #666;
}

.stars-row {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
}

.stars-btn {
    padding: 10px;
    background-color: #444;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    transition: background-color 0.3s ease;
    flex: 1;
    /* Make all buttons equal width */
    margin: 0 5px;
    /* Add spacing between buttons */
}

.stars-btn.active {
    background-color: #b99020;
    /* Highlight the selected button */
    color: white;
}

.stars-btn.active:hover {
    background-color: #b99020;
    /* Highlight the selected button */
    color: white;
}

.stars-btn:hover {
    background-color: #666;
}

.sun-aspect-row {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
}

.sun-aspect-btn {
    padding: 10px;
    background-color: #444;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    transition: background-color 0.3s ease;
    flex: 1;
    /* Make both buttons equal width */
    margin: 0 5px;
    /* Add spacing between buttons */
}

.sun-aspect-btn.active {
    background-color: #b99020;
    /* Highlight the selected button */
    color: white;
}

.sun-aspect-btn.active:hover {
    background-color: #b99020;
    /* Highlight the selected button */
    color: white;
}

.sun-aspect-btn:hover {
    background-color: #666;
}

#filter-container {
    display: flex;
    justify-content: flex-start;
    /* Align the button to the left */
    margin-bottom: 10px;
    /* Add spacing below the button */
}

.filter-btn {
    padding: 8px 16px;
    background-color: #1DB954;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.filter-btn:hover {
    background-color: #058130;
}

.applied-filters-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    /* Enable horizontal scrolling */
    gap: 10px;
    /* Add spacing between filter elements */
    padding: 10px 0;
    margin-top: 10px;
    /* Optional: Add a bottom border for separation */
}

.applied-filter {
    display: flex;
    align-items: center;
    background-color: #b99020;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    /* Prevent text wrapping */
}

.applied-filter .remove-filter {
    margin-left: 8px;
    background-color: transparent;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
}

.applied-filter .remove-filter:hover {
    color: #ff4d4d;
    /* Change color on hover */
}

#grade-bar-graph-container {
    width: 100%;
    /* Take the full width of the parent */
    overflow-x: auto;
    /* Enable horizontal scrolling */
    overflow-y: hidden;
    /* Prevent vertical scrolling */
    white-space: nowrap;
    /* Prevent wrapping of child elements */
    border: 1px solid #444;
    /* Optional: Add a border around the container */
    border-radius: 8px;
    /* Optional: Rounded corners */
    margin: 20px 0;
}

.bar-graph {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    height: 200px;
    width: calc(10.5 * 50px);
    /* Limit visible columns to 10.5 (each column is 50px wide) */
    padding: 10px;
    background-color: #1a1a1a;
}

.bar {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 42.5px;
    /* Fixed width for each bar */
    min-width: 42.5px;
    /* Ensure the bar cannot shrink below this width */
    margin: 0 5px;
    /* Add spacing between bars */
    border-radius: 4px;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    /* Ensure padding and borders are included in the width */
}

.bar:hover {
    opacity: 0.8;
}

.bar-label {
    margin-top: 5px;
    font-size: 17px;
    color: whitesmoke;
}

.bar-value {
    margin-bottom: 5px;
    font-size: 15px;
    color: whitesmoke;
    opacity: 0.9;
}