﻿/* ================================
   CHATBOT BUTTON
================================ */

.chatbot-button {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: #111827;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.20);
    z-index: 9999;
    transition: all 0.25s ease;
}

    .chatbot-button:hover {
        transform: translateY(-3px);
    }

    .chatbot-button.hide {
        transform: scale(0);
        opacity: 0;
    }


/* Notification */

.chatbot-notification {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #dc2626;
    color: white;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ================================
   CHAT WINDOW
================================ */

.chatbot-window {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 380px;
    height: 550px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.20);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

    .chatbot-window.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }


/* ================================
   HEADER
================================ */

.chatbot-header {
    height: 75px;
    background: #111827;
    color: white;
    padding: 15px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}


.chatbot-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: white;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}


.chatbot-header h6 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}


.chatbot-header-info span {
    font-size: 12px;
    opacity: 0.8;
}


.online-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    margin-right: 4px;
}


/* Header buttons */

.chatbot-header-actions {
    display: flex;
    gap: 4px;
}


    .chatbot-header-actions button {
        border: none;
        background: transparent;
        color: white;
        width: 32px;
        height: 32px;
        border-radius: 6px;
        cursor: pointer;
    }


        .chatbot-header-actions button:hover {
            background: rgba(255,255,255,0.12);
        }


/* ================================
   MESSAGES
================================ */

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8fafc;
}


.chat-message {
    display: flex;
    margin-bottom: 15px;
}


.bot-message {
    justify-content: flex-start;
}


.user-message {
    justify-content: flex-end;
}


.message-bubble {
    max-width: 78%;
    padding: 11px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
}


.bot-message .message-bubble {
    background: white;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 4px;
}


.user-message .message-bubble {
    background: #111827;
    color: white;
    border-bottom-right-radius: 4px;
}


/* ================================
   TYPING INDICATOR
================================ */

.typing-bubble {
    display: flex;
    gap: 4px;
    padding: 13px 15px;
}


    .typing-bubble span {
        width: 6px;
        height: 6px;
        background: #9ca3af;
        border-radius: 50%;
        animation: typing 1.2s infinite;
    }


        .typing-bubble span:nth-child(2) {
            animation-delay: 0.2s;
        }


        .typing-bubble span:nth-child(3) {
            animation-delay: 0.4s;
        }


@keyframes typing {

    0%, 60%, 100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-5px);
    }
}


/* ================================
   INPUT
================================ */

.chatbot-input-area {
    padding: 12px 15px;
    background: white;
    border-top: 1px solid #e5e7eb;
}


.chatbot-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 5px 6px 5px 12px;
}


    .chatbot-input-wrapper textarea {
        flex: 1;
        border: none;
        outline: none;
        resize: none;
        font-size: 14px;
        max-height: 80px;
        padding: 7px 0;
    }


    .chatbot-input-wrapper button {
        width: 38px;
        height: 38px;
        border: none;
        border-radius: 9px;
        background: #111827;
        color: white;
        cursor: pointer;
    }


.chatbot-input-area small {
    display: block;
    text-align: center;
    margin-top: 7px;
    font-size: 10px;
    color: #9ca3af;
}


/* ================================
   MOBILE
================================ */

@media (max-width: 576px) {

    .chatbot-window {
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .chatbot-button {
        right: 18px;
        bottom: 18px;
    }
}body {
}
