#chatbot{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: scroll;
}

#chatbot-generate-trip{
    width: 100%;
    height: fit-content;
    padding: 20px;
    box-sizing: border-box;
}

#chatbot-generate-trip-container{
    width: 100%;
    height: fit-content;
    border-radius: 20px;
    background-color: #F2F3F3;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

#chatbot-generate-trip-decorative-lines-bottom-left{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35%;
}

#chatbot-generate-trip-decorative-lines-top-right{
    position: absolute;
    right: 0;
    top: 0;
    width: 40%;
}

#chatbot-generate-trip-decorative-route{
    position: absolute;
    right: 2%;
    top: 15%;
    width: 25%;
}



/* Chatbot generate trip header */
#chatbot-generate-trip-header{
    width: 100%;
    height: fit-content;
    margin-top: 4%;
}

#chatbot-generate-trip-header-inner{
    width: fit-content;
    height: fit-content;
    margin: auto;
    text-align: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

#chatbot-generate-trip-header-inner h1{
    font-size: 30px;
    color: var(--color-secondary);
}

#chatbot-generate-trip-header-inner p{
    font-size: 13px;
    color: var(--color-text-priority-3);
    margin-top: 10px;
}

#chatbot-generate-trip-header-inner img{
    width: 80px;
    position: absolute;
    left: -20%;
}




/* Chatbot generate trip body */
#chatbot-generate-trip-body{
    width: 100%;
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

#chatbot-generate-trip-body-inner{
    width: 100%;
    height: fit-content;
    max-width: 80%;
    background-color: white;
    border: 1px solid #FCE3D3;
    border-radius: 16px;
    z-index: 1;
    padding: 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.chatbot-generate-trip-body-row{
    width: 100%;
    height: fit-content;
    display: flex;
}

#chatbot-generate-trip-body-inner #chatbot-generate-trip-input{
    width: 100%;
    height: fit-content;
    border: 0;
    outline: none;
    font-size: 14px;
    padding-bottom: 30px;
    resize: none;
}

#chatbot-generate-trip-body-inner button{
    width: fit-content;
    height: fit-content;
    background-color: var(--color-primary);
    border: 1px solid var(--color-primary);
    transition: ease 0.3s all;
    border-radius: 100px;
    cursor: pointer;
    color: white;
    padding: 6px 15px;
    font-size: 14px;
    margin-left: auto;
}

#chatbot-generate-trip-body-inner button:disabled{
    background-color: #E5E7EB;
    border-color: #E5E7EB;
    color: #9CA3AF;
    cursor: not-allowed;
    opacity: 0.6;
}

#chatbot-generate-trip-body-inner button:disabled svg{
    display: none;
}

#chatbot-generate-trip-body-inner button:hover{
    background-color: transparent;
    color: var(--color-primary);
}

#chatbot-generate-trip-body-inner button:hover svg path{
    stroke: var(--color-primary);
}



/* Chatbot generate trip footer */
#chatbot-generate-trip-footer{
    width: 100%;
    height: fit-content;
    overflow: hidden;
    margin-bottom: 20px;
}

.chatbot-generate-trip-prompts-list{
    display: flex;
    list-style: none;
    padding: 0;
    margin: 10px 0;
    white-space: nowrap;
}

.chatbot-generate-trip-prompts-list li{
    flex-shrink: 0;
    margin-right: 15px;
    background-color: white;
    border: 1px solid #E5E7EB;
    border-radius: 15px;
    padding: 8px 16px;
    font-size: 12px;
    color: var(--color-text-priority-2);
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 250px;
    white-space: normal;
    text-align: left;
    word-wrap: break-word;
}

.chatbot-generate-trip-prompts-list li span{
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.chatbot-generate-trip-prompts-list li:hover{
    background-color: #F9FAFB;
    border-color: var(--color-primary);
    transform: scale(1.05);
}

/* Pause animation on hover */
.chatbot-generate-trip-prompts-list:hover{
    animation-play-state: paused;
}

/* Left to right animation */
.anim-ltr{
    animation: moveLeftToRight 40s linear infinite;
}

/* Right to left animation */
.anim-rtl{
    animation: moveRightToLeft 45s linear infinite;
}

@keyframes moveLeftToRight {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0%);
    }
}

@keyframes moveRightToLeft {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}



/* Recent trips */
#chatbot-recent-trips{
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: column;
}

#chatbot-recent-trips-header{
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: row;
    padding: 0 20px;
    align-items: center;
    font-size: 14px;
}

#chatbot-recent-trips-header h2{
    font-size: 16px;
    color: var(--color-text-priority-3);
    margin-left: 10px;
}

#chatbot-recent-trips-body{
    width: 100%;
    height: fit-content;
    margin-top: 10px;
}

#chatbot-recent-trips-list{
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: row;
    overflow-y: scroll;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

/* Trips state containers (error and empty states) */
.chatbot-trips-state-container{
    width: 100%;
    height: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    box-sizing: border-box;
}

.chatbot-trips-error-state,
.chatbot-trips-empty-state{
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #FAFAFA;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 32px 24px;
    box-sizing: border-box;
}

.chatbot-trips-state-icon{
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.chatbot-trips-state-content{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chatbot-trips-state-content h3{
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-priority-1);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.chatbot-trips-state-content p{
    font-size: 14px;
    color: var(--color-text-priority-3);
    margin: 0 0 24px 0;
    line-height: 1.5;
}

/* Error state specific styles */
.chatbot-trips-error-state{
    border-color: #FEE2E2;
    background-color: #FEF2F2;
}

.chatbot-trips-error-state h3{
    color: #DC2626;
}

/* Empty state specific styles */
.chatbot-trips-empty-state{
    border-color: #E5E7EB;
    background-color: #F9FAFB;
}

.chatbot-trips-empty-state h3{
    color: var(--color-text-priority-2);
}

/* Button styles for state actions */
.chatbot-trips-retry-btn,
.chatbot-trips-create-btn{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

.chatbot-trips-retry-btn{
    background-color: #EF4444;
    color: white;
    border: 1px solid #EF4444;
}

.chatbot-trips-retry-btn:hover{
    background-color: #DC2626;
    border-color: #DC2626;
    transform: translateY(-1px);
}

.chatbot-trips-retry-btn:active{
    transform: translateY(0);
}

.chatbot-trips-create-btn{
    background-color: var(--color-primary);
    color: white;
    border: 1px solid var(--color-primary);
}

.chatbot-trips-create-btn:hover{
    background-color: transparent;
    color: var(--color-primary);
    transform: translateY(-1px);
}

.chatbot-trips-create-btn:active{
    transform: translateY(0);
}

/* Responsive design for state containers */
@media only screen and (max-width: 600px){
    .chatbot-trips-state-container{
        padding: 30px 15px;
    }
    
    .chatbot-trips-error-state,
    .chatbot-trips-empty-state{
        padding: 24px 20px;
    }
    
    .chatbot-trips-state-content h3{
        font-size: 16px;
    }
    
    .chatbot-trips-state-content p{
        font-size: 13px;
    }
    
    .chatbot-trips-retry-btn,
    .chatbot-trips-create-btn{
        padding: 10px 16px;
        font-size: 13px;
    }
}




@media only screen and (max-width: 600px){
    #chatbot-recent-trips-list{
        overflow: hidden;
        flex-direction: column;
        padding: 0 15px;
    }

    .trip-horizontal-list-item{
        width: 100%;
        margin: 0 0 20px 0;
    }
}