/* Simple Search Section Styles */
.search-section {
    background: rgba(0, 0, 0, 0.40);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-align: center;
}

.search-input-wrapper {
    width: 100%;
    margin: 0;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #00bfff;
    outline: none;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: #888888;
}

.search-input:focus {
    border-color: #00bfff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.2);
}

/* Search suggestions */
.search-suggestions {
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
}

.search-suggestions.show {
    display: block;
}

.suggestion-header {
    color: #00bfff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.suggestion-icon {
    margin-right: 8px;
    font-size: 16px;
}

.suggestion-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.suggestion-item {
    background: rgba(0, 191, 255, 0.1);
    color: #00bfff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid rgba(0, 191, 255, 0.3);
    transition: all 0.2s ease;
}

.suggestion-item:hover {
    background: rgba(0, 191, 255, 0.2);
    border-color: #00bfff;
    transform: translateY(-0.5px);
}

.no-suggestions {
    color: #888;
    font-style: italic;
    font-size: 13px;
}

/* Clear Search Button */
.clear-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888888;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    opacity: 0;
    visibility: hidden;
    line-height: 1;
}

.clear-search-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.clear-search-btn.show {
    opacity: 1;
    visibility: visible;
}

/* Show All Button */
.show-all-btn {
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 191, 255, 0.2);
    border: 1px solid #00bfff;
    color: #00bfff;
    font-size: 12px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.show-all-btn:hover {
    background: rgba(0, 191, 255, 0.3);
    color: #ffffff;
    border-color: #ffffff;
}

/* Pretty toggles (for section switches and select-all) */
.pretty-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #e6f7ff;
    position: relative;
}
.pretty-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
}
.pretty-toggle .toggle-ui {
    width: 36px;
    height: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    position: relative;
    transition: all 0.25s ease;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.25);
}
.pretty-toggle .toggle-ui:after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 2px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.25s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
    transform: translateY(-50%);
}
.pretty-toggle input[type="checkbox"]:checked + .toggle-ui {
    background: rgba(0, 191, 255, 0.3);
    border-color: rgba(0, 191, 255, 0.7);
}
.pretty-toggle input[type="checkbox"]:checked + .toggle-ui:after {
    transform: translate(16px, -50%);
}
.pretty-toggle .label-text { font-size: 13px; color: #e6f7ff; }

/* Enhanced Pretty checkboxes for filter options */
.pretty-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.08), rgba(0, 191, 255, 0.03));
    border: 1px solid rgba(0, 191, 255, 0.2);
    color: #e6f7ff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pretty-check::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.pretty-check:hover {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.15), rgba(0, 191, 255, 0.08));
    border-color: rgba(0, 191, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 
        0 4px 15px rgba(0, 191, 255, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

.pretty-check:hover::before {
    left: 100%;
}

.pretty-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    display: inline-block;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.pretty-check input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #00bfff, #0099cc);
    border-color: #00bfff;
    box-shadow: 
        0 0 10px rgba(0, 191, 255, 0.4),
        inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

.pretty-check input[type="checkbox"]:checked:after {
    content: '✓';
    position: absolute;
    left: 3px;
    top: -1px;
    font-size: 14px;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.pretty-check input[type="checkbox"]:hover {
    border-color: rgba(0, 191, 255, 0.8);
    box-shadow: 
        0 0 8px rgba(0, 191, 255, 0.3),
        inset 0 1px 3px rgba(255, 255, 255, 0.2);
}

/* Enhanced Filter Sections */
.filter-section {
    margin: 24px 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.filter-item {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.filter-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 191, 255, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-item:hover {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-color: rgba(0, 191, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 191, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.filter-item:hover::before {
    opacity: 1;
}

.filter-item-divider {
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 191, 255, 0.2), 
        rgba(255, 255, 255, 0.1), 
        rgba(0, 191, 255, 0.2), 
        transparent
    );
    margin: 16px 0;
    border-radius: 1px;
    position: relative;
}

.filter-item-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 1px;
    background: rgba(0, 191, 255, 0.4);
    border-radius: 1px;
}

.filter-summary {
    cursor: pointer;
    color: #00bfff;
    font-weight: 600;
    font-size: 16px;
    padding: 16px 0;
    border-bottom: 2px solid rgba(0, 191, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.filter-summary::before {
    content: '▶';
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    color: #66d9ff;
    text-shadow: 0 0 8px rgba(0, 191, 255, 0.5);
}

.filter-summary:hover {
    color: #66d9ff;
    border-bottom-color: rgba(0, 191, 255, 0.5);
    transform: translateX(6px);
    text-shadow: 0 0 12px rgba(0, 191, 255, 0.4);
}

.filter-summary:hover::before {
    transform: rotate(90deg) scale(1.1);
    color: #99e6ff;
}

details[open] .filter-summary::before {
    transform: rotate(90deg);
    color: #99e6ff;
}

.filter-content {
    padding: 20px 0;
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}

.filter-controls {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 16px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 16px;
}

.filter-button {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    color: #e5e5e5;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.filter-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-button:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.2),
        0 3px 8px rgba(255, 255, 255, 0.1);
}

.filter-button:hover::before {
    left: 100%;
}

.filter-button:hover::after {
    opacity: 1;
}

.filter-button:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.filter-button-primary {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.15), rgba(0, 191, 255, 0.05));
    border-color: rgba(0, 191, 255, 0.4);
    color: #00bfff;
    box-shadow: 0 2px 8px rgba(0, 191, 255, 0.2);
}

.filter-button-primary:hover {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.25), rgba(0, 191, 255, 0.1));
    border-color: rgba(0, 191, 255, 0.6);
    color: #66d9ff;
    box-shadow: 
        0 6px 20px rgba(0, 191, 255, 0.3),
        0 3px 8px rgba(0, 191, 255, 0.2);
}

.filter-divider {
    height: 4px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 191, 255, 0.3), 
        rgba(255, 255, 255, 0.2), 
        rgba(0, 191, 255, 0.3), 
        transparent
    );
    margin: 40px 0;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.filter-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

.filter-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 191, 255, 0.8), transparent);
    border-radius: 1px;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}