/* Chat conversation UI loaded with the chatbot logic. */
.chat-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    overflow-y: auto;
}

.bot-msg {
    align-self: flex-start;
    background: #f1f5f9;
    color: #222;
    padding: 10px 14px;
    border-radius: 14px 14px 14px 4px;
    max-width: 75%;
    font-size: 14px;
    animation: fadeInUp 0.3s ease;
}

.user-msg {
    align-self: flex-end;
    background: linear-gradient(135deg, #0066ff, #00c6ff);
    color: #fff;
    padding: 10px 14px;
    border-radius: 14px 14px 4px 14px;
    max-width: 75%;
    font-size: 14px;
    animation: fadeInUp 0.3s ease;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0 12px auto;
    max-width: 242px;
    animation: fadeInUp 0.4s ease;
}

.option-btn {
    background: #fff;
    border: 1px solid #e6e6e6;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.option-btn:hover {
    background: linear-gradient(135deg, #0066ff, #00c6ff);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 102, 255, 0.25);
}

.option-btn:active {
    transform: scale(0.97);
}

.option-btn::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: width 0.4s ease, height 0.4s ease;
}

.option-btn:active::after {
    width: 200px;
    height: 200px;
}

.typing-indicator .wave {
    display: flex;
    gap: 4px;
}

.typing-indicator .wave span {
    width: 6px;
    height: 6px;
    background: #999;
    border-radius: 50%;
    animation: wave 1.2s infinite ease-in-out;
}

.typing-indicator .wave span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator .wave span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes wave {
    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
