/* Floating Chatbot - Simplified & Clean */

/* Floating Button */
.floating-chatbot-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 64px;
    height: 64px;
    background: #0ea5e9;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border: none;
    outline: none;
}

.floating-chatbot-button:hover {
    background: #0284c7;
}

.floating-chatbot-button svg {
    width: 36px;
    height: 36px;
    fill: white;
}

/* Button opened state */
.floating-chatbot-button.chatbot-opened {
    background: #0284c7;
}

/* Chat Container */
.floating-chatbot-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 360px;
    height: 500px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border: 1px solid #e2e8f0;
}

.floating-chatbot-container.active {
    display: flex;
}

/* Chat Header */
.floating-chatbot-header {
    background: #0ea5e9;
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.floating-chatbot-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.floating-chatbot-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
}

.floating-chatbot-status-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
}

.floating-chatbot-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    cursor: pointer;
    padding: 6px;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-chatbot-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Chat Messages */
.floating-chatbot-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #f8fafc;
}

.floating-chatbot-message {
    margin-bottom: 12px;
    max-width: 80%;
}

.floating-chatbot-message.user {
    margin-left: auto;
}

.floating-chatbot-message.bot {
    margin-right: auto;
}

.floating-chatbot-message-content {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.floating-chatbot-message.user .floating-chatbot-message-content {
    background: #0ea5e9;
    color: white;
    border-bottom-right-radius: 4px;
}

.floating-chatbot-message.bot .floating-chatbot-message-content {
    background: white;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 4px;
}

.floating-chatbot-message-time {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
    text-align: right;
}

.floating-chatbot-message.bot .floating-chatbot-message-time {
    text-align: left;
}

/* Chat Input */
.floating-chatbot-input-container {
    padding: 16px;
    background: white;
    border-top: 1px solid #e2e8f0;
}

.floating-chatbot-input-form {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.floating-chatbot-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    font-size: 14px;
    outline: none;
    resize: none;
    min-height: 20px;
    max-height: 80px;
    background: white;
}

.floating-chatbot-input:focus {
    border-color: #0ea5e9;
}

.floating-chatbot-input::placeholder {
    color: #94a3b8;
}

.floating-chatbot-send {
    background: #0ea5e9;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-chatbot-send:hover:not(:disabled) {
    background: #0284c7;
}

.floating-chatbot-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.floating-chatbot-send svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Loading Animation - Simple */
.floating-chatbot-loading {
    display: flex;
    gap: 4px;
    padding: 10px 14px;
    align-items: center;
}

.floating-chatbot-loading-dot {
    width: 6px;
    height: 6px;
    background: #0ea5e9;
    border-radius: 50%;
    animation: dot-bounce 1s infinite ease-in-out;
}

.floating-chatbot-loading-dot:nth-child(1) { animation-delay: -0.2s; }
.floating-chatbot-loading-dot:nth-child(2) { animation-delay: -0.1s; }
.floating-chatbot-loading-dot:nth-child(3) { animation-delay: 0s; }

@keyframes dot-bounce {
    0%, 80%, 100% {
        opacity: 0.4;
        transform: scale(0.8);
    }
    40% {
        opacity: 1;
        transform: scale(1);
    }
}

.typing-text {
    font-size: 11px;
    color: #64748b;
    margin-left: 6px;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 480px) {
    .floating-chatbot-container {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }
    
    .floating-chatbot-button {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
    
    .floating-chatbot-button svg {
        width: 24px;
        height: 24px;
    }
}

/* Accessibility */
.floating-chatbot-button:focus,
.floating-chatbot-send:focus,
.floating-chatbot-close:focus {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
}

/* Custom Scrollbar - Simple */
.floating-chatbot-messages::-webkit-scrollbar {
    width: 4px;
}

.floating-chatbot-messages::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.floating-chatbot-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.floating-chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
} 