
/* SITH CHATBOT DESIGN */

#sith-chatbot {
    font-family: Arial, sans-serif;
    z-index: 99999;
}

/* Floating Button */

#sith-chat-toggle {
    position: fixed;
    right: 25px;
    bottom: 25px;
    background: linear-gradient(135deg, #0756c9, #063b91);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 15px 22px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,.25);
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-icon {
    font-size: 23px;
}

/* Chat Window */

#sith-chat-window {
    position: fixed;
    right: 25px;
    bottom: 95px;
    width: 360px;
    max-width: calc(100vw - 30px);
    height: 500px;
    max-height: calc(100vh - 120px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 35px rgba(0,0,0,.20);
    overflow: hidden;
    display: none;
    flex-direction: column;
}

/* Header */

.sith-chat-header {
    background: linear-gradient(135deg, #0756c9, #063b91);
    color: white;
    padding: 17px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sith-bot-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: white;
    color: #0756c9;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    font-weight: bold;
}

.sith-bot-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sith-bot-info strong {
    font-size: 16px;
}

.sith-bot-info small {
    font-size: 11px;
    color: #dbeafe;
}

#sith-chat-close {
    border: none;
    background: transparent;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

/* Messages */

#sith-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #f5f7fb;
}

.sith-message {
    display: flex;
    margin-bottom: 12px;
}

.sith-message.bot {
    justify-content: flex-start;
}

.sith-message.user {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 85%;
    padding: 11px 14px;
    border-radius: 13px;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.sith-message.bot .message-bubble {
    background: white;
    color: #222;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 3px;
}

.sith-message.user .message-bubble {
    background: #0756c9;
    color: white;
    border-bottom-right-radius: 3px;
}

/* Input Area */

.sith-chat-input-area {
    background: white;
    padding: 12px;
    border-top: 1px solid #eee;
}

#sith-chat-form {
    display: flex;
    gap: 8px;
}

#sith-chat-input {
    flex: 1;
    min-width: 0;
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 12px 15px;
    outline: none;
    font-size: 14px;
}

#sith-chat-input:focus {
    border-color: #0756c9;
}

#sith-chat-send {
    width: 43px;
    height: 43px;
    border: none;
    border-radius: 50%;
    background: #0756c9;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

#sith-chat-send:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.sith-chat-footer {
    text-align: center;
    color: #888;
    font-size: 10px;
    margin-top: 9px;
}

/* Mobile Responsive */

@media (max-width: 480px) {

    #sith-chat-toggle {
        right: 15px;
        bottom: 15px;
    }

    #sith-chat-window {
        right: 10px;
        bottom: 80px;
        width: calc(100vw - 20px);
        height: min(500px, calc(100vh - 100px));
    }
}
