/* Chatbot Floating Widget Styles */

:root {
    --chatbot-primary: #f06c00;
    --chatbot-primary-gradient: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
    --chatbot-bg: #ffffff;
    --chatbot-text: #333333;
    --chatbot-bot-msg: #f1f0f0;
    --chatbot-user-msg: #f06c00;
    --chatbot-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    --chatbot-radius: 12px;
}

#chatbot-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Floating Button */
#chatbot-trigger {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--chatbot-primary-gradient);
    box-shadow: var(--chatbot-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

#chatbot-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

#chatbot-trigger span {
    font-size: 30px;
}

/* Chat Window */
#chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: var(--chatbot-bg);
    border-radius: var(--chatbot-radius);
    box-shadow: var(--chatbot-shadow);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: chatbot-slide-up 0.3s ease-out;
}

@keyframes chatbot-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
#chatbot-header {
    background: var(--chatbot-primary-gradient);
    padding: 15px 20px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-header-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chatbot-status {
    display: flex;
    align-items: center;
    font-size: 12px;
    opacity: 0.9;
    margin-top: 4px;
}

.chatbot-status-dot {
    width: 8px;
    height: 8px;
    background: #44b700;
    border-radius: 50%;
    margin-right: 6px;
    position: relative;
}

.chatbot-status-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #44b700;
    border-radius: 50%;
    animation: chatbot-pulse 2s infinite;
}

@keyframes chatbot-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    70% {
        transform: scale(2.5);
        opacity: 0;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

#chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

/* Messages Area */
#chatbot-messages {
    height: 420px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fdfdfd;
    scroll-behavior: smooth;
}

.chatbot-msg {
    max-width: 85%;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.chatbot-msg-bot {
    align-self: flex-start;
    background: var(--chatbot-bot-msg);
    color: var(--chatbot-text);
    border-radius: 0 12px 12px 12px;
}

.chatbot-msg-user {
    align-self: flex-end;
    background: var(--chatbot-user-msg);
    color: white;
    border-radius: 12px 12px 0 12px;
}

/* Buttons Container */
.chatbot-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 5px;
}

.chatbot-btn {
    background: #fff;
    border: 1px solid var(--chatbot-primary);
    color: var(--chatbot-primary);
    padding: 6px 12px;
    border-radius: 18px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chatbot-btn:hover {
    background: var(--chatbot-primary);
    color: #fff;
}

/* Footer/Input */
#chatbot-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    background: #fff;
    display: flex;
    gap: 10px;
}

#chatbot-input {
    flex: 1;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

#chatbot-input:focus {
    border-color: var(--chatbot-primary);
}

#chatbot-send {
    background: var(--chatbot-primary-gradient);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
}

#chatbot-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Scrollbar Customization */
#chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

#chatbot-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#chatbot-messages::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

#chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}