
.market-layout {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}
        
.filters-sidebar {
    width: 220px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 12px;
    padding: 1rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.filter-section {
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-title {
    color: #e5e7eb;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.filter-title.collapsible:hover {
    color: #f3f4f6;
}

.filter-title .arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: #9ca3af;
}

.filter-title.collapsible.active .arrow {
    transform: rotate(180deg);
}

.filter-options {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.filter-options.active {
    max-height: 500px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-input-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    transition: all 0.3s ease;
    flex: 1;
}

.price-input-group:focus-within {
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.price-icon {
    font-size: 0.9rem;
    margin-right: 0.4rem;
    opacity: 0.7;
}

.price-input {
    background: transparent;
    border: none;
    color: #e5e7eb;
    font-size: 0.8rem;
    outline: none;
    width: 100%;
    min-width: 0;
}

.price-separator {
    color: #9ca3af;
    font-size: 1rem;
    font-weight: 600;
    padding: 0 0.2rem;
}

.price-input::placeholder {
    color: #9ca3af;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0;
    color: #d1d5db;
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.2s ease;
    user-select: none;
}

.filter-option:hover {
    color: #f3f4f6;
}

.filter-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
    cursor: pointer;
}

.float-inputs {
    display: flex;
    gap: 0.5rem;
}

.float-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    color: #e5e7eb;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.float-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.float-input::placeholder {
    color: #9ca3af;
}

.stickers-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    color: #e5e7eb;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.stickers-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.stickers-input::placeholder {
    color: #9ca3af;
}

.reset-filters-btn {
    width: 100%;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.75rem;
}

.reset-filters-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.market-content {
    flex: 1;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.market-nav {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 1rem;
}

.nav-categories {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    max-width: 100%;
    overflow: hidden;
    align-items: center;
}

.nav-category-dropdown {
    position: relative;
    color: #9ca3af;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-category-dropdown:nth-last-child(-n+3) .category-dropdown {
    left: auto;
    right: 0;
}

.nav-category-dropdown:hover {
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.nav-category-dropdown.active {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.nav-category-dropdown .dropdown-arrow {
    font-size: 0.6rem;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.nav-category-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.category-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 150px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-height: 300px;
    overflow-y: auto;
}

.nav-category-dropdown.active .category-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.category-dropdown a {
    display: block;
    color: #d1d5db;
    text-decoration: none;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.category-dropdown a:hover {
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.05);
}

.search-and-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
    height: 100%;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
    transition: all 0.3s ease;
    height: 36px;
}

.search-box:focus-within {
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-input {
    background: transparent;
    border: none;
    color: #e5e7eb;
    font-size: 0.85rem;
    padding: 0;
    width: 180px;
    outline: none;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-btn {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    transition: color 0.2s ease;
    margin-left: 0.5rem;
}

.search-btn:hover {
    color: #e5e7eb;
}

.market-actions {
    display: flex;
    gap: 0.3rem;
}

.refresh-btn {
    width: 36px;
    height: 36px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    color: #3b82f6;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
    transform: rotate(180deg);
}

@media (max-width: 1024px) {
    .market-layout {
        flex-direction: column;
    }
    
    .filters-sidebar {
        width: 100%;
        position: static;
    }
    
    .nav-categories {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .nav-category {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .search-input {
        width: 150px;
    }
}

@media (max-width: 768px) {
    .market-nav {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .search-and-actions {
        justify-content: space-between;
    }
    
    .search-input {
        width: 100%;
    }
    
    .nav-categories {
        justify-content: center;
    }
}

@keyframes filterSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-options.active {
    animation: filterSlideIn 0.3s ease;
}

.filter-option input[type="checkbox"]:checked + span {
    color: #3b82f6;
    font-weight: 600;
}

.filter-option input[type="checkbox"]:checked {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.no-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    grid-column: 1 / -1;
}

.no-items-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.no-items-text {
    color: #9ca3af;
    font-size: 1.2rem;
    font-weight: 500;
}

.filter-options {
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.3) transparent;
}

.filter-options::-webkit-scrollbar {
    width: 4px;
}

.filter-options::-webkit-scrollbar-track {
    background: transparent;
}

.filter-options::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 2px;
}

.filter-options::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}
