/* Intelligent Chatbot Styles */
.chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #007bff, #6f42c1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
    transition: all 0.3s ease;
    position: relative;
    border: none;
}

.chatbot-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,123,255,0.4);
}

.chatbot-toggle i {
    font-size: 24px;
}

.chatbot-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #28a745;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 500px;
    background: #212529;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: none;
    flex-direction: column;
    border: 1px solid #495057;
}

.chatbot-window.show {
    display: flex;
}

.chatbot-header {
    padding: 15px;
    background: linear-gradient(135deg, #007bff, #6f42c1);
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.chatbot-avatar {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    max-height: 380px;
}

.chatbot-message {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.chatbot-message-user {
    flex-direction: row-reverse;
}

.chatbot-message-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.chatbot-message-bot .chatbot-message-avatar {
    background: #007bff;
    color: white;
}

.chatbot-message-user .chatbot-message-avatar {
    background: #28a745;
    color: white;
}

.chatbot-message-content {
    margin: 0 10px;
    padding: 10px 12px;
    border-radius: 12px;
    max-width: 280px;
    word-wrap: break-word;
}

.chatbot-message-bot .chatbot-message-content {
    background: #343a40;
    color: #e9ecef;
}

.chatbot-message-user .chatbot-message-content {
    background: #007bff;
    color: white;
}

.chatbot-input {
    padding: 15px;
    border-top: 1px solid #495057;
}

.quick-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.suggestion-btn {
    background: rgba(0,123,255,0.1);
    border: 1px solid rgba(0,123,255,0.3);
    color: #007bff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.suggestion-btn:hover {
    background: #007bff;
    color: white;
}

.chatbot-typing {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-style: italic;
}

.typing-indicator {
    display: inline-flex;
    align-items: center;
    margin-left: 5px;
}

.typing-dot {
    width: 4px;
    height: 4px;
    background: #6c757d;
    border-radius: 50%;
    margin: 0 1px;
    animation: typing 1.4s infinite ease-in-out;
}

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

@keyframes typing {
    0%, 60%, 100% { opacity: 0.3; }
    30% { opacity: 1; }
}

.agents-consulted {
    font-size: 10px;
    color: #6c757d;
    margin-top: 5px;
}

.voice-option {
    margin-top: 8px;
}

.voice-btn {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
    transition: all 0.2s;
}

.voice-btn:hover {
    transform: scale(1.02);
}

.voice-offer {
    animation: slideIn 0.3s ease-out;
    border: 1px solid rgba(0,123,255,0.2);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .chatbot-window {
        width: calc(100vw - 40px);
        height: 70vh;
        bottom: 80px;
        right: -10px;
    }
    
    .chatbot-toggle {
        width: 50px;
        height: 50px;
    }
    
    .chatbot-toggle i {
        font-size: 20px;
    }
}