.gapgpt-chat-container{
    width:100%;
    max-width:700px;
    margin:40px auto;
    border-radius:12px;
    box-shadow:0 5px 25px rgba(0,0,0,0.1);
    background:white;
    display:flex;
    flex-direction:column;
    height:600px;
    font-family:Tahoma;
}

.gapgpt-chat-header{
    padding:15px;
    background:#1e293b;
    color:white;
    font-size:18px;
    border-radius:12px 12px 0 0;
}

.gapgpt-messages{
    flex:1;
    overflow-y:auto;
    padding:20px;
    background:#f8fafc;
}

.gapgpt-msg{
    margin-bottom:15px;
    padding:12px 14px;
    border-radius:10px;
    max-width:75%;
    line-height:1.6;
    font-size:14px;
}

.gapgpt-msg.user{
    background:#2563eb;
    color:white;
    margin-left:auto;
}

.gapgpt-msg.ai{
    background:#e2e8f0;
    color:#111;
}

/* --- NEW: Typing indicator --- */
.gapgpt-typing{
    background:#e2e8f0;
    color:#555;
    width:60px;
    height:20px;
    padding:12px 14px;
    border-radius:10px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.gapgpt-typing span{
    width:6px;
    height:6px;
    margin:0 3px;
    background:#777;
    border-radius:50%;
    display:inline-block;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.gapgpt-typing span:nth-child(1){
    animation-delay:-0.32s;
}
.gapgpt-typing span:nth-child(2){
    animation-delay:-0.16s;
}

@keyframes typingBounce{
    0%, 80%, 100%{
        transform:scale(0);
    }
    40%{
        transform:scale(1);
    }
}

.gapgpt-input-area{
    display:flex;
    padding:10px;
    border-top:1px solid #eee;
    align-items:flex-end;
}

#gapgpt-input{
    flex:1 !important;
    resize:none !important;

    height:42px !important;
    max-height:42px !important;
    min-height:42px !important;

    overflow-y:auto !important;
    border:1px solid #ddd !important;
    border-radius:8px !important;

    padding:4px 8px !important;
    line-height:1.2 !important;
    font-size:14px !important;

    box-sizing:border-box !important;
    background:#fff !important;
}

#gapgpt-send{
    margin-left:10px;
    background:#2563eb;
    color:white;
    border:none;
    height:36px;
    padding:0 20px;
    border-radius:8px;
    cursor:pointer;
    font-size:14px;
    display:flex;
    justify-content:center;
    align-items:center;
}

#gapgpt-send:hover{
    background:#1d4ed8;
}
