#chatbot-launcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: transparent;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    background-image: url('modules/mod_chatbotlive/images/chatBotRobot.png');
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: bounceIn 0.6s ease forwards;
    //animation-delay: 2s;
}


#chatbot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 250px;
    max-height: 350px;
    /* maksimalna visina čitavog chat prozora */
    //border: 2px solid #0078D4;
    border-radius: 15px;
    background: #f3f2f1;
    font-family: Manrope, sans-serif;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

#chatbot.hidden {
    display: none;
}

#chatbot-header {
    padding: 8px 10px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 11px;
    border-top-right-radius: 11px;
}

#chatbot-header-content {
    display: flex;
    align-items: center;
    gap: 8px;
    /* razmak između slike i teksta */
}

.chatbot-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #ffffff;
    /* beli krug iza slike */
    padding: 4px;
    /* margina između slike i ivice kruga */
    object-fit: cover;
    /* da slika lepo popuni krug */
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
    /* blaga senka za lepši efekat */
}

#chatbot-controls button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    margin-left: 5px;
}

#chatbot-messages {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* podrazumevano poruke idu levo, user ide desno zasebno */
    gap: 6px;
    height: 300px;
    /* visina chat prozora za poruke */
    overflow-y: auto;
    /* omogući scroll */
    padding: 10px;
    border-bottom: 1px solid #ddd;
    background-color: #fff;
    color: #000;
}

#chatbot-input-area {
    display: flex;
    border-top: 1px solid #ddd;

}

#chatbot-input {
    flex: 1;
    padding: 8px;
    border: none;
    outline: none;
    background-color: #fff;
    border-bottom-left-radius: 15px;
}

#chatbot-send {
    width: 50px;
    border: none;
    background: #fff;
    color: #0078D4;
    cursor: pointer;
    font-size: 16px;
    border-bottom-right-radius: 15px;
}

/* Stilizacija poruka u chat prozoru */
.chat-message {
    display: inline-block;
    /* širina prema tekstu */
    max-width: 80%;
    /* ograničenje širine */
    padding: 6px 8px;
    margin-bottom: 5px;
    border-radius: 5px;
    background-color: #fff;
    color: #201f1e;
    align-self: flex-end;
    /* desno */
    border-top-left-radius: 15px;
    border-top-right-radius: 0;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    font-size: 13px;
    font-family: Manrope, sans-serif;
    line-height: 1.4;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    /* tekst se prelama */
}

.bot-message {
    background-color: #fff;
    color: #0066b3;
    align-self: flex-start;
    /* levo */
    border-top-left-radius: 0;
    border-top-right-radius: 15px;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.message-header {
    font-size: 10px;
    color: #777;
    margin-bottom: 3px;
}

.message-body {
    font-size: 13px;
    line-height: 1.4;
    word-wrap: break-word;
}


/* greeting poruka baloncic */

#chatbot-greeting {
    position: fixed;
    bottom: 70px;
    right: 75px;
    background: rgb(255, 255, 255);
    border: 1px solid rgba(204, 204, 204, 0.6);
    border-radius: 12px 12px 0 12px;
    padding: 10px 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    max-width: 240px;
    text-align: left;
    display: none;
    animation: fadeIn 0.6s ease forwards;
}

#one {
    font-size: 10px;
    font-family: Manrope, sans-serif;
    line-height: 1.7;
    color: #7a7979 !important;
    text-align: left;
    margin: 0px;
}

#two {
    font-size: 13px;
    font-family: Manrope, sans-serif;
    line-height: 1.5;
    color: #201F1E;
    text-align: left;
    margin: 0px;
}

/* === X dugme u posebnom kontejneru === */
#chatbot-greeting .close-container {
    cursor: pointer;
    position: absolute;
    right: -8px;
    /* pomeranje X iznad ivice */
    top: -10px;
    width: 28px;
    height: 28px;
    //padding: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 4px 10px;
    background-color: #ffffff;
    color: #20201E;
    transition: all 0.25s ease;
    z-index: 2100;
    /* da bude iznad svega */
}

/* Sam znak X */
#chatbot-greeting .close-container span {
    font-size: 20px;
    line-height: 1;
    font-weight: bold;
}

/* Hover efekat */
#chatbot-greeting .close-container:hover {
    // transform: scale(1.1);
    background-color: #201F1E;
    color: #fff;
}

/* Container za Da/Ne dugmad */
.chatbot-yesno-container {
    display: flex;
    gap: 10px;
    margin: 5px 0;
}

/* Stil dugmadi Da/Ne */
.chatbot-yesno-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 12px;
    background-color: #0078D4;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s;
}

.chatbot-yesno-btn:hover {
    background-color: #005ea6;
}


/* Animacija za bounceIn (loptica) */
@keyframes bounceIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    60% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Animacija za pojavljivanje */
@keyframes fadeInGreeting {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}