/* Floating AI button */
#tool-ai-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 14px 20px;
    background: #000;
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    z-index: 999999; /* very high so mobile shows it */
    font-size: 16px;
}

/* Chat box container */
#tool-ai-box {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 90%;
    max-width: 350px;
    height: 460px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    display: none;
    flex-direction: column;
    z-index: 999999;
}

/* Mobile responsive adjustments */
@media only screen and (max-width: 600px) {
    #tool-ai-box {
        right: 5%;           /* not sticking to edge */
        left: 5%;            /* center panel */
        width: 90%;          /* smaller width */
        height: 60vh;        /* slightly shorter height */
        bottom: 20px;        /* slightly above bottom */
    }

    #tool-ai-messages {
        font-size: 13px;     /* smaller font for mobile */
        padding: 8px;
        
    }

    .tool-ai-input {
        padding: 8px;
    }

    #tool-user-input {
        font-size: 14px;
        padding: 6px;
    }

    #tool-send-btn {
        padding: 6px 10px;
        font-size: 14px;
    }
}


/* Header */
.tool-ai-header {
    padding: 12px;
    background: #000;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

/* Messages area */
#tool-ai-messages {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    font-size: 14px;
    color: black;
}

/* Messages */
.user-msg,
.bot-msg {
    padding: 8px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 14px;
    color: black;
}

.user-msg {
    background: #eee;
    text-align: right;
}

.bot-msg {
    background: #d8f3ff;
    text-align: left;
}

/* Input row */
.tool-ai-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
}

#tool-user-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #bbb;
    border-radius: 6px;
    color: black !important;
}

#tool-send-btn {
    padding: 10px 14px;
    margin-left: 10px;
    background: #000;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
}


