/* Conversations List */
.conversations-list {
    max-height: 600px;
    overflow-y: auto;
}

.conversation-item {
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.3s ease;
}

.conversation-item:hover {
    background-color: #f8f9fa;
}

.conversation-item.active {
    background-color: #e9ecef;
}

/* Chat Window */
.chat-window {
    display: flex;
    flex-direction: column;
    height: 600px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.message {
    display: flex;
    margin-bottom: 1rem;
}

.message.received {
    justify-content: flex-start;
}

.message.sent {
    justify-content: flex-end;
}

.message-content {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
}

.message.received .message-content {
    background-color: #f8f9fa;
}

.message.sent .message-content {
    background-color: #0d6efd;
    color: white;
}

.message.sent .message-content small {
    color: rgba(255, 255, 255, 0.8);
}

.chat-input {
    padding: 1rem;
    border-top: 1px solid #eee;
}

.quick-responses {
    display: flex;
    overflow-x: auto;
    padding: 0.5rem 0;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 1000;
}

.floating-whatsapp:hover {
    background-color: #128C7E;
    color: white;
    transform: scale(1.1);
}

/* AI Chat Bot */
.floating-ai-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.ai-chat-toggle {
    width: 60px;
    height: 60px;
    background-color: #0d6efd;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.ai-chat-toggle:hover {
    transform: scale(1.1);
}

.ai-chat-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    display: none;
}

.ai-chat-panel.active {
    display: block;
}

.ai-chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 1rem;
}

.ai-chat-input {
    padding: 1rem;
    border-top: 1px solid #eee;
}

.quick-questions {
    display: flex;
    overflow-x: auto;
    padding: 0.5rem 0;
}

/* Customer Info Modal */
.modal-body h6 {
    color: #0d6efd;
    margin-bottom: 1rem;
}

.modal-body .list-group {
    max-height: 200px;
    overflow-y: auto;
}
