.filter-danhmucwebsite,
.filter-loaigiaodien {
    margin-bottom: 2rem;
}
.filter-danhmucwebsite li,
.filter-loaigiaodien li {
    transition: all 0.2s ease;
    border-radius: 0.5rem;
    position: relative;
}
.filter-danhmucwebsite li.active,
.filter-loaigiaodien li.active {
    background-color: #f3f4f6;
}
.category-item {
    transition: all 0.2s ease;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #374151;
}
.category-item:hover {
    background-color: #f3f4f6;
    color: #109aff;
    text-decoration: none;
}
.category-item.active {
    background-color: #f3f4f6;
    color: #109aff;
    font-weight: 600;
}
.category-checkbox {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    margin-right: 8px;
    transition: all 0.2s ease;
}
.category-checkbox:checked {
    background-color: #109aff;
    border-color: #109aff;
}
.category-checkbox:checked::after {
    content: "&#xEB7B;";
    font-family: remixicon !important;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.category-item.active .category-checkbox {
    background-color: #109aff;
    border-color: #109aff;
}

#search-input {
    transition: all 0.2s ease;
}

#search-input:focus {
    box-shadow: 0 0 0 3px rgba(16, 154, 255, 0.1);
}

#search-loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
#search-results {
    transition: all 0.3s ease;
}

#results-count {
    font-size: 0.875rem;
    color: #6b7280;
}

#clear-search {
    transition: all 0.2s ease;
}

#clear-search:hover {
    color: #109aff;
}

#results-grid,
#default-results {
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .filter-danhmucwebsite,
    .filter-loaigiaodien {
        margin-bottom: 1.5rem;
    }
    
    .category-item {
        padding: 0.375rem 0.5rem;
        font-size: 0.875rem;
    }
    
    #search-input {
        width: 100%;
    }
}
.category-item,
.category-checkbox,
#search-input,
#clear-search {
    transition: all 0.2s ease;
}
.category-item:hover .category-checkbox:not(:checked) {
    border-color: #109aff;
}
.filter-website li.active input{
    background-color: #109aff;
    border-color: #109aff;
}
.filter-website li.active input[type="checkbox"]::after {
    content: "✓";
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.search-loading-overlay {
    position: relative;
}

.search-loading-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.scrollable-preview {
    overflow: hidden;
    position: relative;
  }

  .scrollable-preview img {
    transition: transform 5s ease-out;
    transform: translateY(0);
    object-position: top;
  }

  .scrollable-preview:hover img {
    transform: translateY(calc(-100% + 100% / 3));
  }

  .scrollable-preview:not(:hover) img {
    transition: transform 3s ease-out;
    transform: translateY(0);
  }

  .category-item {
    transition: all 0.2s;
  }

  .category-item:hover {
    background-color: #f3f4f6;
    color: #109aff;
  }

  .category-item.active {
    color: #109aff;
    font-weight: 600;
  }

  input[type="checkbox"].category-checkbox {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    margin-right: 8px;
  }

  input[type="checkbox"].category-checkbox:checked {
    background-color: #109aff;
    border-color: #109aff;
  }

  input[type="checkbox"].category-checkbox:checked::after {
    content: "✓";
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  input[type="number"]::-webkit-inner-spin-button,
  input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }

  .color-option input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
  }

  .color-option input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .star-rating input[type="radio"] {
    display: none;
  }

  .star-rating label {
    cursor: pointer;
    color: #d1d5db;
  }

  .star-rating input[type="radio"]:checked~label {
    color: #fbbf24;
  }

  .star-rating label:hover,
  .star-rating label:hover~label {
    color: #fbbf24;
  }

  .pagination-item {
    transition: all 0.2s;
  }

  .pagination-item:hover:not(.active) {
    background-color: #f3f4f6;
  }

  .pagination-item.active {
    background-color: #109aff;
    color: white;
  }

  .gradient-text {
    background: linear-gradient(to right, #00C4CC, #A3D8F4, #F4E04D);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .category-item.active {
    background-color: #f3f4f6;
    color: #109aff;
    font-weight: 600;
  }
  .pagination-item{
    border-radius: 99px;
    height: 40px;
    width: 40px;
    text-align: center;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }