
.floating-brain-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.chat-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    height: 700px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: fixed;
    right: 25px;
    z-index: -1;
    bottom: 80px;
    opacity: 0;
}

.chat-header {
    background: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
}

.assistant-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3399FF, #66B2FF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
}

.assistant-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 5px;
}

.close-btn:hover {
    color: #666;
}

.chat-body {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #f8f9fa;
}

.message {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.message-bubble {
    background: #e9ecef;
    padding: 15px 18px;
    border-radius: 20px;
    border-top-left-radius: 8px;
    max-width: 80%;
    font-size: 16px;
    line-height: 1.4;
    color: #333;
    white-space: pre-line;
}

.message.send {
    align-items: flex-end;
}

.message.send .message-bubble {
    border-radius: 20px;
    border-top-right-radius: 8px;
}

.message-time {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
    margin-left: 5px;
}

.quick-replies {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.quick-reply-btn {
    background: linear-gradient(135deg, #007BFF, #339EFF);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.quick-reply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.3);
}

.quick-reply-btn:active {
    transform: translateY(0);
}

.chat-input-container {
    padding: 20px;
    background: white;
    border-top: 1px solid #f0f0f0;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 25px;
    padding: 5px;
    gap: 10px;
}

.message-input {
    flex: 1;
    border: none;
    background: none;
    padding: 12px 15px;
    font-size: 16px;
    outline: none;
    color: #333;
}

.message-input::placeholder {
    color: #aaa;
}

.send-btn {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #007BFF, #339EFF);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.send-btn:hover {
    transform: scale(1.05);
}

.send-btn:active {
    transform: scale(0.95);
}

.typing-indicator {
    display: inline-block;
    padding: 8px 12px;
    background: #e9ecef;
    border-radius: 12px;
    font-size: 14px;
    max-width: 70%;
}

.typing-dots {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 4px;
    background: #6c757d;
    border-radius: 50%;
    animation: typing 1s infinite ease-in-out;
}

.typing-dots:nth-child(2) {
    animation-delay: 0.2s;
}
.typing-dots:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 80%, 100% { opacity: 0.4; }
    40% { opacity: 1; }
}
