/* =========================================================

   OZARI AI Assistant V1

   Jocoin Studios

   ========================================================= */



#ozari-assistant {

    position: fixed;

    right: 24px;

    bottom: 24px;

    z-index: 999999;

    font-family: Arial, Helvetica, sans-serif;

}





/* =========================================================

   LAUNCHER

   ========================================================= */



.ozari-launcher-wrapper {

    position: relative;



    display: flex;

    align-items: center;

    justify-content: center;



    width: 56px;

    height: 56px;

}



#ozari-launcher {

    display: flex;

    align-items: center;

    justify-content: center;



    width: 56px;

    height: 56px;



    margin: 0;

    padding: 0 !important;



    border: 1px solid rgba(160, 160, 160, 0.55);

    border-radius: 50%;



    background: #ffffff;

    color: #111111;



    cursor: pointer;



    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.24);



    transition:

        transform 0.2s ease,

        box-shadow 0.2s ease;

}



#ozari-launcher:hover {

    transform: translateY(-2px);



    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.30);

}



.ozari-robot {

    display: flex;

    align-items: center;

    justify-content: center;



    width: 100%;

    height: 100%;



    border-radius: 50%;



    background: #ffffff;



    font-size: 27px;

    line-height: 1;

}





/* =========================================================

   TOOLTIP

   ========================================================= */



#ozari-tooltip {

    position: absolute;



    right: 68px;

    top: 50%;



    z-index: 10;



    transform: translateY(-50%) translateX(8px);



    padding: 9px 14px;



    background: rgba(8, 8, 8, 0.90);

    color: #ffffff;



    border: 1px solid rgba(175, 175, 175, 0.70);

    border-radius: 7px;



    font-size: 13px;

    font-weight: 600;



    white-space: nowrap;



    opacity: 0;

    visibility: hidden;



    pointer-events: none;



    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);



    transition:

        opacity 0.2s ease,

        transform 0.2s ease,

        visibility 0.2s ease;

}



.ozari-launcher-wrapper:hover #ozari-tooltip {

    opacity: 1;

    visibility: visible;



    transform: translateY(-50%) translateX(0);

}



#ozari-tooltip::after {

    content: "";



    position: absolute;



    right: -5px;

    top: 50%;



    width: 9px;

    height: 9px;



    background: rgba(8, 8, 8, 0.90);



    border-top: 1px solid rgba(175, 175, 175, 0.70);

    border-right: 1px solid rgba(175, 175, 175, 0.70);



    transform: translateY(-50%) rotate(45deg);

}





/* =========================================================

   CHAT WINDOW

   ========================================================= */



#ozari-window {

    position: absolute;



    right: 0;

    bottom: 72px;



    display: flex;

    flex-direction: column;



    width: 380px;

    height: 560px;



    background: #ffffff;



    border: 1px solid rgba(0, 0, 0, 0.08);

    border-radius: 20px;



    overflow: hidden;



    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);

}



#ozari-window[hidden] {

    display: none !important;

}





/* =========================================================

   HEADER

   ========================================================= */



.ozari-header {

    flex: 0 0 74px;



    display: flex;

    align-items: center;

    justify-content: space-between;



    padding: 0 20px;



    background: #111111;

    color: #ffffff;

}



.ozari-header-identity {

    display: flex;

    flex-direction: column;



    gap: 3px;

}



.ozari-header-identity strong {

    font-size: 18px;

    font-weight: 700;

}



.ozari-header-identity span {

    font-size: 11px;

    opacity: 0.72;

}



#ozari-close {

    width: 36px;

    height: 36px;



    display: flex;

    align-items: center;

    justify-content: center;



    padding: 0;



    border: 0;

    border-radius: 50%;



    background: rgba(255, 255, 255, 0.10);

    color: #ffffff;



    font-size: 24px;



    cursor: pointer;

}





/* =========================================================

   BODY

   ========================================================= */



.ozari-body {

    flex: 1;



    padding: 22px;



    background: #f7f7f8;



    overflow-y: auto;

}





/* =========================================================

   MESSAGES

   ========================================================= */



.ozari-message {

    max-width: 88%;



    padding: 14px 17px;



    border-radius: 18px;



    font-size: 14px;

    line-height: 1.5;

}



.ozari-message-assistant {

    background: #ffffff;

    color: #222222;



    border-bottom-left-radius: 6px;



    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.06);

}



.ozari-message-user {

    margin-left: auto;



    background: #111111;

    color: #ffffff;



    border-bottom-right-radius: 6px;

}



.ozari-message strong {

    display: block;



    margin-bottom: 7px;



    font-size: 15px;

}



.ozari-message p {

    margin: 0;

}





/* =========================================================

   OPTIONS

   ========================================================= */



.ozari-language-options {

    display: flex;

    flex-direction: column;



    gap: 9px;



    margin-top: 16px;

}



.ozari-language-options button {

    width: 100%;



    padding: 12px 15px;



    border: 1px solid #dddddd;

    border-radius: 12px;



    background: #ffffff;

    color: #222222;



    font-size: 14px;

    font-weight: 600;



    text-align: left;



    cursor: pointer;

}



.ozari-language-options button:hover {

    border-color: #999999;

}





/* =========================================================

   TYPING

   ========================================================= */



.ozari-typing {

    flex: 0 0 auto;



    display: flex;

    align-items: center;



    gap: 4px;



    padding: 7px 18px;



    background: #f7f7f8;



    color: #777777;



    font-size: 11px;

}



.ozari-typing[hidden] {

    display: none !important;

}



.ozari-typing span {

    width: 5px;

    height: 5px;



    border-radius: 50%;



    background: #777777;



    animation: ozariTyping 1.2s infinite;

}



.ozari-typing span:nth-child(2) {

    animation-delay: 0.15s;

}



.ozari-typing span:nth-child(3) {

    animation-delay: 0.30s;

}



.ozari-typing em {

    margin-left: 4px;



    font-style: normal;

}



@keyframes ozariTyping {



    0%,

    60%,

    100% {

        opacity: 0.3;

    }



    30% {

        opacity: 1;

    }

}





/* =========================================================

   COMPOSER

   ========================================================= */



.ozari-composer {

    flex: 0 0 auto;



    display: flex;

    align-items: flex-end;



    gap: 9px;



    padding: 12px;



    background: #ffffff;



    border-top: 1px solid #e8e8e8;

}



.ozari-composer[hidden] {

    display: none !important;

}



#ozari-input {

    flex: 1;



    min-height: 42px;

    max-height: 110px;



    padding: 11px 13px;



    border: 1px solid #d8d8d8;

    border-radius: 13px;



    background: #ffffff;

    color: #222222;



    font-family: inherit;

    font-size: 14px;

    line-height: 1.4;



    resize: none;

    outline: none;

}



#ozari-input:focus {

    border-color: #777777;

}



#ozari-send {

    width: 42px;

    height: 42px;



    display: flex;

    align-items: center;

    justify-content: center;



    padding: 0;



    border: 0;

    border-radius: 50%;



    background: #111111;

    color: #ffffff;



    font-size: 19px;



    cursor: pointer;

}





/* =========================================================

   MOBILE

   ========================================================= */



@media (max-width: 600px) {



    #ozari-assistant {

        right: 14px;

        bottom: 14px;

    }



    #ozari-tooltip {

        display: none !important;

    }



    #ozari-window {

        position: fixed;



        left: 10px;

        right: 10px;

        bottom: 82px;



        width: auto;



        height: min(620px, calc(100vh - 105px));



        border-radius: 18px;

    }

}