
/******************************************************************************
Project          :  Engineering Calculator
Project          :  bot.css
Description      :  Style Sheet (embedded chat bot)
******************************************************************************
Author           :  Alexander Bell
Copyright        :  2011-2025 Alexander Bell
Date Created     :  01/20/2011
Last Modified    :  11/12/2025
******************************************************************************
DISCLAIMER: This Application is provide on AS IS basis without any warranty
******************************************************************************
TERMS OF USE     :  This module is copyrighted. You can use it provided that
                    :  you keep the original copyright note.
******************************************************************************/

/* --- Chat Button --- */
#chatButton {
    position: fixed;
    bottom: 20px;
    right: 20px;
    /*background: #0078D4 ;*/
    background: #6d5f5f;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    border: none;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    transition: all 0.5s ease-in-out;
}
#chatButton:hover {
    transform: scale(1.1);
    background: #00A6FF;
}

/* --- Chat Window --- */
#chatWindow {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 320px;
    height: 400px;
    background: #a0a0a0;
    border: 1px solid #444;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    overflow: hidden;
    flex-direction: column;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease-in-out;
}
#chatWindow.show {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

#chatHeader {
    color: white;
    padding: 10px;
    border-bottom: 1px solid #888;
}
#chatHeader select {
    margin-left: 10px;
    padding: 4px;
    border-radius: 6px;
    border: none;
    background: #333;
    color: antiquewhite;
    font-size:1.3em;
}
#chatHeader select option:checked { display: none;}

/* --- Messages --- */
#messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    color: #EAEAEA;
    font-size: 14px;
}
.message {
    margin: 6px 0;
    padding: 6px 10px;
    border-radius: 8px;
    max-width: 85%;
    word-wrap: break-word;
}
.user {
    background: #0078D4;
    color: white;
    align-self: flex-end;
}
.bot {
    background: #3A3A3A;
    color: #EAEAEA;
    align-self: flex-start;
}

/* --- Input area --- */
#inputArea {
    display: flex;
    border-top: 1px solid #444;
    background: #1E1E1E;
}
#userInput {
    flex: 1;
    border: none;
    background: transparent;
    color: #EAEAEA;
    padding: 8px;
    outline: none;
}
button.send {
    background: #D4C000;
    color: black;
    border: none;
    width: 80px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 1.2em;
}
button.send:hover { background: #E6D400; }

/* --- Mini Preview Bubble --- */
#chatPreview {
    position: fixed;
    bottom: 95px;
    right: 95px;
    background: #3A3A3A;
    color: #EAEAEA;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    max-width: 220px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease-in-out;
    pointer-events: none;
}
#chatPreview.show {
    opacity: 1;
    transform: translateY(0);
}
