 /* Floating chat button */
.chat-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #4a6bff;
    color: white;
    border-radius: 50%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    cursor: pointer;
    -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.chat-btn:hover {
    background: #3a56d4;
    -webkit-transform: scale(1.05);
            transform: scale(1.05);
}

/* Chat container */
.chat-container {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 350px;
    height: 450px;
    background: white;
    border-radius: 15px;
    -webkit-box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: none;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    z-index: 999;
    overflow: hidden;
    border: 1px solid #eee;
}

.chat-header {
    padding: 15px;
    background: #4a6bff;
    color: white;
    font-weight: bold;
    font-size: 16px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

.chat-messages {
    padding: 15px;
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    overflow-y: auto;
    background: #f9f9f9;
}

.message {
    margin-bottom: 15px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.user-message {
    -webkit-box-pack: end;
        -ms-flex-pack: end;
            justify-content: flex-end;
}

.ai-message {
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
}

.message-bubble {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    line-height: 1.4;
}

.user-message .message-bubble {
    background: #4a6bff;
    color: white;
    border-bottom-right-radius: 5px;
}

.ai-message .message-bubble {
    background: white;
    color: #333;
    border: 1px solid #ddd;
    border-bottom-left-radius: 5px;
}

.chat-input-area {
    padding: 15px;
    background: white;
    border-top: 1px solid #eee;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.chat-input {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
}

.send-btn {
    margin-left: 10px;
    background: #4a6bff;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0 15px;
    cursor: pointer;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

/* Typing indicator */
.typing-indicator {
    display: inline-block;
    padding: 10px;
}

.typing-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    margin-right: 3px;
    -webkit-animation: typingAnimation 1.4s infinite both;
            animation: typingAnimation 1.4s infinite both;
}

.typing-dot:nth-child(1) {
    -webkit-animation-delay: 0s;
            animation-delay: 0s;
}

.typing-dot:nth-child(2) {
    -webkit-animation-delay: 0.2s;
            animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    -webkit-animation-delay: 0.4s;
            animation-delay: 0.4s;
    margin-right: 0;
}

@-webkit-keyframes typingAnimation {
    0% {
        -webkit-transform: translateY(0);
                transform: translateY(0);
    }

    28% {
        -webkit-transform: translateY(-5px);
                transform: translateY(-5px);
    }

    44% {
        -webkit-transform: translateY(0);
                transform: translateY(0);
    }
}

@keyframes typingAnimation {
    0% {
        -webkit-transform: translateY(0);
                transform: translateY(0);
    }

    28% {
        -webkit-transform: translateY(-5px);
                transform: translateY(-5px);
    }

    44% {
        -webkit-transform: translateY(0);
                transform: translateY(0);
    }
}