/* PART CHAT */
/* PART CHAT */
/* PART CHAT */

.chat {
}

.chat_messages {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px - 70px);
    padding-bottom: 20px;
}

/* Bubble */
.chat_bubble {
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
    color: #1a1a1a;
}

.chat_bubble p {
    color: var(--default-color);
}

/* Previews */
.onboarding_preview {
    width: 100%;
    text-align: center;
}

.framed {
    width: fit-content;
}

@media (max-width:390px) {
    .framed {
        width: 100%;
    }
}

.onboarding_previews {
    margin-top: 20px;
}

.onboarding_tabs {
    margin-bottom: 10px;
}

.uk-tab::before {
    border: 0;
}

.onboarding_tabs li {
}

.onboarding_tabs li a {
    border-radius: 7px;
    border: 0;
}

.onboarding_tabs .uk-active a {
    background-color: var(--secondary-color);
    color: white;
}

.onboarding_preview .framed iframe {
    border: 1px solid #e0e0e0;
    height: 300px;
    width: 100%;
}


.onboarding_preview_btn {
    margin-top: 12px;
    padding: 10px 28px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.onboarding_preview_btn:hover {
    background: #333;
}

/* Input area */
.chat_input {
    height: 80px;
    display: flex;
    gap: 10px;
    align-items: center;
    background: #fff;
    position: fixed;
    bottom: 0;
    width: 100%;
    box-shadow: 0px 4px 16px rgba(32, 32, 32, 0.08);
    left: 0;
}

.chat_input input {
    width: calc(100% - 50px);
    flex: 1;
    padding: 12px 16px;
    border: dashed 1px var(--primary-color);
    border-radius: 24px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.chat_input input:focus {
    border-color: #999;
}

.chat_send {
    min-width: 40px;
    max-width: 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}
.chat_send i {
    color: inherit;
}
.chat_send:hover {
    background: #333;
}
.chat_message_assistant,
.chat_message_user {
    padding: 15px;
    border-radius: 7px;
    box-shadow: 0px 4px 16px rgba(32, 32, 32, 0.08);
    margin-top: 20px;
    background-color: white;
    
}
.chat_message_user {
    background-color: var(--btn-primary-250);
    width: fit-content;
    margin-left: auto;
}
.chat_message_user p {
    color: white;
}

/* Suggestions */
.chat_suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.chat_suggestion_btn {
    padding: 8px 18px;
    border: 1px solid #d9d9d9;
    border-radius: 20px;
    background: #fff;
    color: #1a1a1a;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.chat_suggestion_btn:hover {
    border-color: var(--secondary-color);
    background: var(--secondary-color);
    color: #fff;
}

/* Typing indicator */
.chat_typing {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.chat_typing span {
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    animation: chat_typing_bounce 1.4s infinite ease-in-out both;
}

.chat_typing span:nth-child(1) { animation-delay: -0.32s; }
.chat_typing span:nth-child(2) { animation-delay: -0.16s; }

@keyframes chat_typing_bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Disabled state */
.chat_input input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.chat_send:disabled {
    background: #ccc;
    cursor: not-allowed;
}
