﻿
/* =========================================
   JACKIE AI CHAT WIDGET
   ========================================= */
#jackie-widget {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 9999;
    font-family: inherit;
}

/* Floating Jackie Button */
#jackie-button {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: linear-gradient(135deg, #ff7a18, #ff4d00);
    color: #fff;
    font-size: 27px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.20);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    #jackie-button:hover {
        transform: scale(1.08);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    }

/* Chat Window */
.jackie-chat {
    position: absolute;
    right: 0;
    bottom: 75px;
    width: 360px;
    height: 500px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.97);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

    /* Open state */
    .jackie-chat.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

/* Header */
.jackie-header {
    min-height: 65px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #ff7a18, #ff4d00);
    color: #ffffff;
}

    .jackie-header strong {
        display: block;
        font-size: 17px;
    }

    .jackie-header span {
        display: block;
        margin-top: 2px;
        font-size: 12px;
        opacity: 0.85;
    }

#jackie-close {
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 27px;
    cursor: pointer;
    border-radius: 50%;
}

    #jackie-close:hover {
        background: rgba(255, 255, 255, 0.15);
    }

/* Messages */
.jackie-messages {
    flex: 1;
    padding: 18px;
    overflow-y: auto;
    background: #f8f9fb;
}

/* Bot message */
.jackie-message {
    max-width: 85%;
    padding: 11px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.jackie-bot {
    background: #ffffff;
    color: #333333;
    border: 1px solid #eeeeee;
    border-bottom-left-radius: 4px;
}

/* User message - will be used by JS */
.jackie-user {
    margin-left: auto;
    background: #ff6b00;
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

/* Input area */
.jackie-input-area {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #ffffff;
    border-top: 1px solid #eeeeee;
}

#jackie-input {
    flex: 1;
    height: 42px;
    padding: 0 13px;
    border: 1px solid #dddddd;
    border-radius: 21px;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

    #jackie-input:focus {
        border-color: #ff6b00;
    }

#jackie-send {
    width: 42px;
    height: 42px;
    margin-left: 8px;
    border: none;
    border-radius: 50%;
    background: #ff6b00;
    color: #ffffff;
    cursor: pointer;
    font-size: 17px;
}

    #jackie-send:hover {
        background: #e85d00;
    }

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 600px) {

    #jackie-widget {
        right: 15px;
        bottom: 15px;
    }

    #jackie-button {
        width: 56px;
        height: 56px;
        font-size: 25px;
    }

    .jackie-chat {
        right: 0;
        bottom: 68px;
        width: calc(100vw - 30px);
        max-width: 360px;
        height: min(500px, calc(100vh - 100px));
        border-radius: 16px;
    }
}
