.chatbot-list {
    list-style: none;
    padding: 15px;
    margin: 0 0 0 15px;
    background: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #333 #1a1a1a;
}

.chatbot-list::-webkit-scrollbar {
    width: 6px;
}

.chatbot-list::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.chatbot-list::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.chatbot-list::-webkit-scrollbar-thumb:hover {
    background: #444;
}

.chatbot-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 5px 0px 5px 0px;
    color: inherit;
    text-decoration: none;
    margin: 0 0px;
}

.chatbot-item {
    display: flex;
    align-items: center;
    padding: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s ease-in-out, background-color 0.3s ease;
    cursor: pointer;
    margin: 0 -15px;
    position: relative;
    background-color: transparent;
}

.chatbot-item:hover .chatbot-link {
    background-color: #262626;
    padding-left: 5px;
}

.chatbot-item:hover {
    background-color: #262626;
    padding-left: 5px;
}

.chatbot-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #fff;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.chatbot-item:hover::after {
    opacity: 1;
}

.chatbot-item.active {
    background-color: #262626;
    padding-left: 20px;
}

.chatbot-item.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #4a9eff;
    opacity: 1;
}

.chatbot-item.active .bot-name {
    color: #fff;
    font-weight: 600;
}

.chatbot-item.active .bot-icon {
    transform: scale(1.1);
    border-color: #4a9eff;
}

.chatbot-item.active .question-count {
    background: #4a9eff;
    color: #fff;
    border-color: #4a9eff;
}

.bot-icon {
    font-size: 1.5em;
    margin-right: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #333;
    border: 1px solid #444;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.chatbot-item:hover .bot-icon {
    transform: scale(1.1);
}

.bot-name {
    flex: 1;
    font-size: 1em;
    font-weight: 500;
    color: #e0e0e0;
    transition: color 0.2s ease;
}

.chatbot-item:hover .bot-name {
    color: #fff;
}

.chatbot-item:last-child {
    border-bottom: none;
}

.bot-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.bot-icon-emoji {
    font-size: 20px;
    line-height: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: inherit;
    border-radius: 50%;
    color: #fff;
}

.question-count {
    background: #222;
    color: #888;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    min-width: 30px;
    text-align: center;
    font-weight: 500;
    border: 1px solid #333;
    white-space: nowrap;
}

.bot-stats{
    padding: 0;
    margin: 0;
    color: none;
    
}
.chatbot-item:hover .question-count {
    background: #333;
    color: #aaa;
    border-color: #444;
}

.chatbot-categories-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: poppins, sans-serif;
    font-size: 13px;
}

.chatbot-category {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
}

.category-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    background: #262626;
    margin: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.category-toggle {
    width: 12px;
    height: 12px;
    position: relative;
    transition: transform 0.3s ease;
    margin-left: 10px;
}

.category-toggle::before,
.category-toggle::after {
    content: '';
    position: absolute;
    background: #fff;
    transition: all 0.3s ease;
}

.category-toggle::before {
    width: 1px;
    height: 8px;
    top: 2px;
    left: 5px;
}

.category-toggle::after {
    width: 8px;
    height: 1px;
    top: 5px;
    left: 2px;
}

.chatbot-category.active .category-toggle::before {
    transform: scaleY(0);
}

.category-content {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease-out;
}

.chatbot-category.active .category-content {
    height: auto;
}

.chatbot-category .chatbot-list {
    padding: 10px 0px 0px 15px !important;
    background: none;
    box-shadow: none;
    border-radius: 0;
    max-height: none;
}

.chatbot-categories-wrapper {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #333 #1a1a1a;
}

.chatbot-categories-wrapper::-webkit-scrollbar {
    width: 6px;
}

.chatbot-categories-wrapper::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.chatbot-categories-wrapper::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.chatbot-categories-wrapper::-webkit-scrollbar-thumb:hover {
    background: #444;
}

@media screen and (max-width: 480px) {
    .chatbot-list {
        max-height: 300px;
        padding: 10px;
    }

    .chatbot-link {
        padding: 8px 10px;
    }

    .bot-name {
        font-size: 0.9em;
        max-width: 150px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .bot-icon {
        width: 20px;
        height: 20px;
        min-width: 20px;
    }

    .bot-icon-emoji {
        font-size: 16px;
    }

    .question-count {
        font-size: 0.7em;
        min-width: 45px;
        padding: 2px 4px;
    }

    .chatbot-item.active, 
    .chatbot-item:hover {
        padding-left: 10px;
    }

    .chatbot-categories-list {
        gap: 10px;
        margin: 0 5px 5px 5px;
    }

    .category-title {
        padding: 10px 12px;
        font-size: 0.9em;
    }
}

@media screen and (min-width: 481px) and (max-width: 768px) {
    .chatbot-list {
        max-height: 350px;
    }

    .bot-name {
        font-size: 0.95em;
        max-width: 200px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media screen and (max-width: 768px) {
    .chatbot-item {
        width: 100%;
        margin: 0;
    }

    .chatbot-link {
        margin: 0;
        width: 100%;
    }
}

@media only screen and (max-width: 480px) {
    .chatbot-list {
        max-height: 300px;
        padding: 8px;
        width: 100%;
    }

    .chatbot-link {
        padding: 8px;
        width: 100%;
        box-sizing: border-box;
    }

    .chatbot-item {
        width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    .bot-name {
        font-size: 0.9em;
        max-width: calc(100% - 80px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .bot-icon {
        width: 20px;
        height: 20px;
        min-width: 20px;
        margin-right: 8px;
    }

    .question-count {
        font-size: 0.7em;
        min-width: 40px;
        padding: 2px 4px;
        margin-left: 4px;
    }

    .chatbot-item.active, 
    .chatbot-item:hover {
        padding-left: 8px;
    }

    .chatbot-categories-list {
        gap: 8px;
        padding: 0 4px;
    }

    .category-title {
        padding: 8px 10px;
        font-size: 0.9em;
    }
}

@media only screen and (min-width: 481px) and (max-width: 1024px) {
    .chatbot-list {
        max-height: 450px;
        width: 100%;
        padding: 12px;
    }

    .chatbot-item {
        padding: 8px 0;
        margin: 0;
    }

    .chatbot-link {
        padding: 10px 12px;
        margin: 0;
    }

    .bot-icon {
        width: 28px;
        height: 28px;
        min-width: 28px;
        margin-right: 12px;
    }

    .bot-icon-emoji {
        font-size: 18px;
    }

    .bot-name {
        font-size: 1em;
        max-width: calc(100% - 120px);
        font-weight: 500;
    }

    .question-count {
        min-width: 30px;
        font-size: 0.85em;
        padding: 3px 8px;
    }

    .chatbot-categories-list {
        gap: 10px;
        padding: 0 8px;
    }

    .category-title {
        padding: 12px 15px;
        font-size: 1em;
    }

    .chatbot-category .chatbot-list {
        padding: 10px;
    }

    .chatbot-item.active, 
    .chatbot-item:hover {
        padding-left: 15px;
    }
}

.chatbot-list,
.chatbot-item,
.chatbot-link,
.chatbot-categories-list {
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: hidden;
}

.chatbot-list,
.chatbot-item,
.chatbot-link,
chatbot-categories-list {
    box-sizing: border-box;
    max-width: 98%;
    overflow-x: hidden;
}

.chatbot-popular-background {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    padding: 20px;
    border-radius: 8px 8px 0 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.chatbot-popular-background img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid #4a9eff;
    box-shadow: 0 2px 10px rgba(74, 158, 255, 0.2);
    transition: transform 0.3s ease;
}

.chatbot-popular-background img:hover {
    transform: scale(1.1);
}

@media screen and (max-width: 480px) {
    .chatbot-popular-background {
        padding: 15px;
    }
    
    .chatbot-popular-background img {
        width: 48px;
        height: 48px;
    }
}