/* Performance Filters CSS */

/* Ensure the parent container has relative positioning for absolute child */
.page-blog .container {
    position: relative;
}

.performance-filter-container {
    position: absolute;
    top: -10px;
    left: 15px;
    /* Align with bootstrap container padding */
    z-index: 100;
    margin-bottom: 0;
    display: flex;
    justify-content: flex-start;
}

@media only screen and (max-width: 991px) {
    .performance-filter-container {
        position: relative;
        justify-content: center;
        margin-bottom: 20px;
        left: 0;
    }
}

.custom-dropdown {
    position: relative;
    display: inline-block;
    min-width: 200px;
}

.dropdown-selected {
    background-color: var(--primary-color);
    color: var(--accent-color);
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.dropdown-selected:hover {
    background-color: #1a1a1a;
    border-color: var(--accent-color);
}

.dropdown-selected::after {
    content: '\f078';
    /* FontAwesome Chevron Down */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 14px;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.custom-dropdown.active .dropdown-selected::after {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 5px;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 200;
    overflow: hidden;
    list-style: none;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.custom-dropdown.active .dropdown-options {
    transform: scaleY(1);
    opacity: 1;
}

.dropdown-options li {
    padding: 10px 20px;
    cursor: pointer;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-options li:last-child {
    border-bottom: none;
}

.dropdown-options li:hover {
    background-color: var(--accent-color);
    color: var(--white-color);
    padding-left: 25px;
    /* Subtle slide effect */
}

/* Scrollbar for dropdown */
.dropdown-options::-webkit-scrollbar {
    width: 5px;
}

.dropdown-options::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dropdown-options::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
}