﻿
.chat-popup {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 350px;
    height: 500px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0px 4px 20px rgba(0,0,0,0.2);
    z-index: 2000;
    display: flex;
    flex-direction: column; /* IMPORTANT */
}


@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.chat-header {
    padding: 12px;
    background: #3d3d98;
    color: #fff;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-body {
    flex: 1; /* Take all remaining height */
    overflow-y: auto;
    padding: 10px;
}


.chat-footer {
    padding: 10px;
    display: flex;
    border-top: 1px solid #ddd;
    background: #fff;
}


    .chat-footer input {
        flex: 1;
        padding: 8px;
        border-radius: 6px;
        border: 1px solid #ccc;
    }

.send-btn {
    margin-left: 8px;
    padding: 8px 12px;
    background: #007bff;
    color: white;
    border-radius: 6px;
    border: none;
}
.close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 22px; /* Bigger X */
    width: 32px; /* Make clickable area larger */
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%; /* Optional: round shape */
    cursor: pointer;
}

    .close-btn:hover {
        background: #52C1BE;
    }




.chat-container {
    max-height: 80vh;
    height: 100%;
}

.bike-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .bike-card .card-body {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 18px;
    width: fit-content;
}

.bike-card p {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* only two lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background-color: #6c757d;
    border-radius: 50%;
    margin: 0 2px;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

    .typing-dot:nth-child(1) {
        animation-delay: 0s;
    }

    .typing-dot:nth-child(2) {
        animation-delay: 0.2s;
    }

    .typing-dot:nth-child(3) {
        animation-delay: 0.4s;
    }

@keyframes typingAnimation {
    0%, 60%, 100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-5px);
    }
}

.trending-list-wrapper {
    height: 530px;
    overflow: hidden;
    position: relative;
}

.trending-list {
    display: inline-block;
    animation: scroll-list 20s linear infinite;
}

@keyframes scroll-list {
    0% {
        transform: translateY(0%);
    }

    100% {
        transform: translateY(-50%);
    }
}

.list-group-loop {
    display: flex;
    flex-direction: column;
}

.bg-primary {
    background-color: #3d3997 !important;
}
