.top-content {
    background: url(/assets/img/background-ai.png) no-repeat!important;
    background-size: cover !important;
}
.container{
    max-width: 75%;
}

.header-chat-ai{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding:30px 0 20px 0;
    gap: 50px;
}
.header-chat-ai .left-chat-ai{
    max-width: 70%;
}
.item-category.active {
    background: linear-gradient(90deg, #4facfe, #00f2fe); /* xanh dương gradient */
    color: #fff; /* chữ trắng */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.header-chat-ai .left-chat-ai .list-category{
    display: flex;                /* để các item nằm ngang */
    overflow-x: auto;             /* cho phép cuộn ngang */
    white-space: nowrap;         /* không cho xuống dòng */
    gap: 10px;
    padding: 10px 0;
}
.header-chat-ai .left-chat-ai .list-category .item-category{
    font-size: 20px ;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
}
.header-chat-ai .left-chat-ai .list-category::-webkit-scrollbar {
    height: 6px;
}

.header-chat-ai .left-chat-ai .list-category::-webkit-scrollbar-track {
    background: transparent;
}

.header-chat-ai .left-chat-ai .list-category::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    transition: background-color 0.3s;
}

.header-chat-ai .left-chat-ai .list-category::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.35);
}
.list-category .active{
    background-color: #D9D9D9;
}
.right-chat-ai .container-search {
    position: relative;
    height: 45px;
}

.right-chat-ai .search-input {
    width: 100%;
    height: 100%;
    padding: 0 40px 0 16px;
    border: 1px solid #000;
    border-radius: 999px;
    outline: none;
    font-size: 18px;
}

.right-chat-ai .search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 16px;
    pointer-events: none;
}
.content-chat-ai{
    padding-left: 10px;
}
.container{
    padding-bottom: 30px;
}
.content-chat-ai .item-chat .name-category{
    font-size: 25px;
    font-weight: 550;
    margin-top: 20px;
    margin-bottom: 5px !important;
}
.list-inf-chat{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.list-inf-chat .item-inf-chat{
    flex: 0 0 calc(25% - 15px);
    border: 1px solid #A8A8A8;
    padding: 15px 30px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin-bottom: 5px;
}
@media (min-width: 900px) and (max-width: 1400px){
    .list-inf-chat .item-inf-chat {
        flex: 0 0 calc(33% - 15px);
    }
    .header .left-header{
        gap: 20px !important;
    }

}
@media (min-width: 800px) and (max-width: 1000px) {
    .list-inf-chat .item-inf-chat{
        flex: 0 0 calc(50% - 15px) !important;
    }
    .container{
        max-width: 90% !important;
    }
}
@media (min-width: 900px) and (max-width: 1100px) {
    .header .left-header .container-logo {
        width: 20% !important;
    }
    .header .left-header{
        gap: 20px !important;
    }
    .header .sidebar{
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .container-header{
        padding: 0 20px !important;
    }
}
.list-chat {
    display: none;
}

.list-chat.active {
    display: block;
}


.item-inf-chat .img-user-chat{
    border-radius: 50%;
    width: 60%;
    object-fit: contain;
}
.item-inf-chat .text-inf-chat{
    padding-top: 15px;
}
.item-inf-chat {
    transition: all 0.3s ease;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0); /* mặc định không có bóng */
}

.item-inf-chat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); /* bóng nhẹ */
    z-index: 2;
    cursor: pointer;
}

.item-inf-chat .text-inf-chat .name-chat{
    font-size: 18px;
    font-weight: 550;
    text-align: center;
    margin-bottom: 3px;
}
.item-inf-chat .text-inf-chat .des-chat{
    font-size: 15px;
    text-align: center;
    margin-bottom: 3px;
}

@media (max-width: 768px) {
    .item-inf-chat .img-user-chat {
        width: 75% !important;
    }
        .list-inf-chat{
        justify-content: space-between;
        gap: 10px;
    }
    .content-chat-ai{
        padding-left: 0 !important;
    }
    .header-chat-ai{
        gap: 15px;
        padding: 0;
    }
    .header-chat-ai .left-chat-ai{
        max-width: 100% !important;
    }
    .item-inf-chat {
        flex: 0 0 calc(50% - 10px) !important;
    }
    .list-inf-chat .item-inf-chat {
        padding: 10px !important;
    }
    .header-chat-ai {
        flex-direction: column;
        align-items: stretch;
    }
    .right-chat-ai {
        margin-top: 10px;
        order: -1; /* Đưa search lên đầu */
    }
    .header-chat-ai .left-chat-ai .list-category{
        padding: 0 !important;
    }
    .content-chat-ai .item-chat .name-category{
        margin-top: 10px !important;
    }
    .search-input {
        width: 100%;
    }

    .left-chat-ai {
        width: 100%;
    }

    .list-category {
        overflow-x: auto !important;
        width: 100% !important;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch; /* cho mượt trên iOS */
        scrollbar-width: none; /* Firefox */
        margin: 5px 0;
    }
    .name-category{
        font-size: 20px !important;
    }
    .list-category::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }
    .header-chat-ai .left-chat-ai .list-category .item-category{
        white-space: nowrap !important;
        font-size: 16px !important;
        padding: 5px 10px !important;
    }
    .header-chat-ai{
        padding-bottom: 0 !important;
    }
    .text-inf-chat{
        min-height: 90px !important;
    }
}

