/* ===========================
   SE AI MODAL
=========================== */

.se-ai-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    backdrop-filter:blur(6px);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:999999;

    /* за тестирање */
    /* display:none; */
}

.se-ai-modal{

    width:min(900px,92vw);
    height:min(760px,88vh);

    background:#fff;

    border-radius:18px;

    display:flex;
    flex-direction:column;

    overflow:hidden;

    box-shadow:
        0 20px 80px rgba(0,0,0,.25);
}


/* ===========================
   HEADER
=========================== */

.se-ai-header{

    height:78px;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:0 32px;

    border-bottom:1px solid #ECECEC;

}

.se-ai-title{

    display:flex;
    align-items:center;
    gap:16px;

}

.se-ai-title img{

    width:42px;
    height:42px;

}

.se-ai-title h2{

    margin:0;
    font-size:30px;
    font-weight:700;

}

.se-ai-close{

    font-size:42px;
    cursor:pointer;
    color:#555;
    transition:.25s;

}

.se-ai-close:hover{

    transform:rotate(90deg);

}


/* ===========================
   CHAT AREA
=========================== */

.se-ai-chat{

    flex:1;

    overflow-y:auto;

    padding:30px;

    background:#fafafa;

}



/* message */

.se-message{

    display:flex;
    margin-bottom:26px;

}

.se-message.user{

    justify-content:flex-end;

}

.se-message.bot{

    justify-content:flex-start;

}

.se-bubble{

    max-width:70%;

    padding:18px 22px;

    border-radius:18px;

    font-size:17px;

    line-height:1.7;

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

}

.se-message.bot .se-bubble{

    background:#fff;

}

.se-message.user .se-bubble{

    background:#DDF7F4;

}



/* ===========================
   FOOTER
=========================== */

.se-ai-footer{

    padding:22px;

    border-top:1px solid #ECECEC;

    background:#fff;

}

.se-input-wrap{

    display:flex;

    align-items:center;

    gap:15px;

}

.se-input{

    flex:1;

    height:60px;
    min-height:60px;
    max-height:60px;

    margin:0;

    padding:18px;

    resize:none;

    border:1px solid #DDD;

    border-radius:16px;

    font-size:17px;

    line-height:24px;

    box-sizing:border-box;

    outline:none;

}

.se-input:focus{

    border-color:#1BA1A8;

    box-shadow:0 0 0 4px rgba(27,161,168,.12);

}

.se-send{

    width:60px;
    height:60px;

    flex-shrink:0;

    display:flex;
    align-items:center;
    justify-content:center;

    border:none;

    border-radius:16px;

    background:#1BA1A8;

    cursor:pointer;

}

.se-send:hover{

    transform:translateY(-2px);

    background:#14858B;

}


/* ===========================
   SCROLLBAR
=========================== */

.se-ai-chat::-webkit-scrollbar{

    width:8px;

}

.se-ai-chat::-webkit-scrollbar-thumb{

    background:#CCC;

    border-radius:20px;

}


/* ===========================
   MOBILE
=========================== */

@media(max-width:768px){

    .se-ai-modal{

        width:100%;
        height:100%;
        border-radius:0;

    }

    .se-ai-title h2{

        font-size:22px;

    }

    .se-bubble{

        max-width:90%;

    }

}