@charset "UTF-8";
/* CSS AutoBot Document
Name: Ana M Cardenes
Last Updated: June 29th, 2025
AM Designs AI Auto Bot Styles Sheet 
*/


/*---imported-----*/
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&display=swap');

:root {
    /*---- Auto Chat Bubble -----*/
    --app-size: 120px;
    --app-radius: 30px;
    --chat-size: 60px;
    --eye-size: 40px;
    --eye-mini: 18px;
    --pupil-size: 12px;
    --pupil-mini: 7px;
    --shadow-width: 40px;
    --shadow-height: 80px;
    --shadow-bottom: -55px;

    /*---- Hover Auto Chat Bubble -----*/
    --ai-blue: #00f0ff;
    --ai-purple: #a86eff;
    --ai-cyan: #00ffe5;
    --ai-glow: #7df9ff;
    --ai-pink: #ff6ec7;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}


/*-------------------------------- The Potato Chat floating Bubble style --------------------------------------------------*/
#chatbot-ui {}


#chatbot-ui #moving-app {
    position: relative;
    width: calc(var(--app-size)+5px);
    height: 225px;
    margin: 0 auto;
    text-align: center;
    z-index: 800;
}

#chatbot-ui #app {
    border: none;
}

#chatbot-ui .app {
    position: relative;
    display: inline-block;
    width: var(--app-size);
    height: var(--app-size);
    border-radius: var(--app-radius);
    text-align: center;
    animation: float 3s ease-in-out infinite;
    z-index: 800;
}

#chatbot-ui .app-figure {
    width: var(--app-size);
    height: var(--app-size);
    margin: 0 auto;
    position: relative;
    border-radius: var(--app-radius);
    background: radial-gradient(circle, var(--color-lightblue) 40%, var(--color-offwhite) 90%, rgba(0, 0, 0, 0.075) 100%);
    border: white solid 1px;
    z-index: 700;
    transition: all 0.3s ease;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-25px)
    }
}


#chatbot-ui .shadow {
    position: absolute;
    bottom: var(--shadow-bottom);
    display: block;
    width: var(--shadow-width);
    height: var(--shadow-height);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    left: 10px;
    animation: shadow-scale 3s ease-in-out infinite;
    z-index: 500;
}

@keyframes shadow-scale {

    0%,
    100% {
        transform: scale(1) rotateX(100deg)
    }

    50% {
        transform: scale(0.7) rotateX(100deg)
    }
}

#chatbot-ui .eyeContainer {
    display: flex;
    justify-content: center;
    padding: 20px;
    width: 100%;
    border: 2px solid transparent
}

#chatbot-ui .eyeLid,
#chatbot-ui .eyes {
    display: flex;
    width: var(--eye-size);
    height: var(--eye-size);
    z-index: 400;
}

#chatbot-ui .eyeLid {
    margin: 5px;
    background-color: var(--color-offwhite);
    border-radius: 50% 50% 46% 55%/59% 60% 36% 46%;
    box-shadow: inset -15px -10px 12px rgba(0, 0, 0, 0.144);
    animation: blink 15s ease-in-out infinite
}

#chatbot-ui .eye {
    position: relative;
    display: inline-block;
    width: 90%;
    height: 75%;
    margin: 2px auto auto 2px;
    border-radius: 50%;
    background-color: var(--color-lightblue);
    z-index: 500
}

#chatbot-ui .pupol {
    position: relative;
    display: inline-block;
    width: 40%;
    height: 45%;
    margin: 1px auto auto 9px;
    border-radius: 50%;
    background-color: #000;
    z-index: 600
}

#chatbot-ui .eye::after {
    content: "";
    position: absolute;
    top: 0px;
    left: 4px;
    width: 40%;
    height: 45%;
    background: #fff;
    border-radius: 50%
}

@keyframes blink {

    0%,
    10%,
    11%,
    40%,
    41%,
    70%,
    71%,
    100% {
        transform: scaleX(1) scaleY(1)
    }

    10.5%,
    40.5%,
    70.5% {
        transform: scaleX(1.3) scaleY(0.1)
    }
}

#chatbot-ui .app:hover .app-figure {
    animation: crystalGlow 1.5s ease-in-out infinite, shake 0.15s ease-in-out infinite;
}

@keyframes crystalGlow {
    0% {
        box-shadow:
            0 0 2px 1px var(--ai-blue),
            0 0 4px 2px var(--ai-cyan);
    }

    50% {
        box-shadow:
            0 0 4px 2px var(--ai-purple),
            0 0 6px 3px var(--ai-pink);
    }

    100% {
        box-shadow:
            0 0 2px 1px var(--ai-blue),
            0 0 4px 2px var(--ai-cyan);
    }
}



@keyframes shake {

    0%,
    100% {
        transform: rotateZ(2deg);
    }

    50% {
        transform: rotateZ(-2deg);
    }
}



#chatbot-ui #chat-bubble-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: var(--chat-size);
    height: var(--chat-size);
    text-align: center;
}

#chatbot-ui #chat-bubble {
    width: var(--chat-size);
    height: var(--chat-size);
    border: none;
    border-radius: 50%;
    background: none;
    padding: 0;
    margin: 0;
}

#chatbot-ui #chat-bubble .app-figure {
    width: var(--chat-size);
    height: var(--chat-size);
    border-radius: 50%;
}

#chatbot-ui #chat-bubble .eyeContainer {
    padding: 5px;
}

#chatbot-ui #chat-bubble .eyeLid,
#chatbot-ui #chat-bubble .eyes {
    width: var(--eye-mini);
    height: var(--eye-mini);
}

#chatbot-ui #chat-bubble .eye {
    width: var(--pupil-size);
    height: var(--pupil-size);
    margin-left: 3px;
    ;
    margin-top: 3px;
}

#chatbot-ui #chat-bubble .pupol {
    width: var(--pupil-mini);
    height: var(--pupil-mini);
    margin-left: -5px;
    margin-bottom: 3px;
}

/*------------------------------------------- Chatting Box Container -------------------------------------------*/
#chatbot-ui #chat-box {
    position: fixed;
    bottom: 110px;
    right: 20px;
    width: 300px;
    max-width: calc(100vw - 40px);
    max-height: 400px;
    display: none;
    flex-direction: column;
    border-radius: 9px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 950;
    font-family: 'Arial', 'Helvetica', sans-serif;
    box-sizing: border-box;
}

/*----------------- Potato Chat Header -------------------*/
#chatbot-ui .chat-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 15px;
    font-weight: bold;
    color: var(--color-offwhite);
    background: linear-gradient(to left, var(--color-offwhite), var(--color-lightblue), var(--color-lightblue));
}

#chatbot-ui .chat-header #close-chat {
    margin-left: auto;
    font-size: 1.2rem;
    color: #000;
}

/* Potato Avatar */
#chatbot-ui .Potato {
    display: inline-block;
    width: 30px;
    height: 30px;
    margin-right: 10px;
    border-radius: 50%;
    background: url('/icons/potato.png') center/cover no-repeat;
    position: relative;
}

/* Active Status Dot */
#chatbot-ui .Potato::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background-color: #00FF00;
    border: 2px solid #fff;
    border-radius: 50%;
}

/*----------- Chat Body (Message Display Area)------------- */
#chatbot-ui .chat-body {
    flex: 1;
    padding: 15px;
    font-size: 0.9rem;
    background: var(--color-white);
    max-height: 250px;
    overflow-y: auto;
}

/*-------- Chat Input & Send Button ------------*/
#chatbot-ui .chat-input-group {
    display: flex;
    padding: 10px;
    background: #fff;
    border-top: 1px solid #eee;
}

#chatbot-ui .chat-input {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    margin-right: 8px;
}

#chatbot-ui .send-chat-btn {
    padding: 6px;
    background-color: var(--color-gold);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
}

#chatbot-ui .send-chat-btn svg {
    width: 16px;
    height: 16px;
    fill: white;
}

#chatbot-ui .send-chat-btn i {
    font-size: 14px;
}

/*--------- Both Message bubbles styles -------------*/
#chatbot-ui .user-msg {
    text-align: right;
    background: var(--color-offwhite);
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 15px 15px 0 15px;
    max-width: 80%;
    margin-left: auto;
}

#chatbot-ui .bot-msg {
    text-align: left;
    background: linear-gradient(to left, var(--color-offwhite), var(--color-lightblue), var(--color-lightblue));
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 15px 15px 15px 0;
    max-width: 80%;
    margin-right: auto;
}


/*----------------------- Default two bottom buttons ---------------------------*/
#chatbot-ui .chat-controls {
    text-align: center;
    padding: 8px;
    border-top: 1px solid #ccc;
    background: #f9f9f9;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

/*----------- Clear Chat Button ------------------*/
#chatbot-ui .clear-chat-btn {
    background-color: #eee;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    transition: background-color 0.2s;
}

#chatbot-ui .clear-chat-btn:hover {
    background-color: #ddd;
}

/*----------- Person Button ------------------*/
#chatbot-ui .person-btn {
    background-color: #eee;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    text-decoration: none;
    color: #333;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background-color 0.2s;
}

#chatbot-ui .person-btn:hover {
    background-color: #ddd;
}

#chatbot-ui .person-btn i {
    font-size: 0.85rem;
}


/*----------- Typing animation ------------------*/
#chatbot-ui .typing {
    font-style: italic;
    opacity: 0.7;
    animation: typing-blink 1s infinite;
}

@keyframes typing-blink {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.7;
    }
}


/*------------- Quick responce buttons inside Bot Messages ----------------*/
#chatbot-ui .quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 0;
    border-top: 1px solid #ccc;
}

#chatbot-ui .quick-reply-btn {
    padding: 6px 14px;
    border: none;
    background-color: #e0e0e0;
    /* Light grey */
    color: #333;
    border-radius: 20px;
    /* Pill shape */
    cursor: pointer;
    font-size: 0.85em;
    transition: background 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

#chatbot-ui .quick-reply-btn:hover {
    background-color: #d0d0d0;
}


/*------------- Chat Pointer Responce ----------------*/
#chatbot-ui #chat-pointer {
    position: absolute;
    background: red;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    z-index: 1000;
    animation: pointer-bounce 1s infinite;
    pointer-events: none;
}


@keyframes pointer-bounce {

    0%,
    100% {
        transform: translateY(-5px);
    }

    50% {
        transform: translateY(5px);
    }
}

#chatbot-ui #highlight-point {
    position: relative;
}

#chatbot-ui #highlight-point::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 120%;
    height: 120%;
    border: 2px solid #ff6f61;
    border-radius: 8px;
    animation: pointer-pulse 1s infinite;
}



@keyframes pointer-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.4;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}