#smart-home-ai-chat{
    max-width:700px;
    margin:30px auto;
    border:1px solid #ddd;
    border-radius:12px;
    background:#fff;
    overflow:hidden;
    font-family:tahoma,sans-serif;
}

#smart-home-ai-messages{
    height:450px;
    overflow-y:auto;
    padding:20px;
    background:#f8f8f8;
}

.ai-message{
    background:#ffffff;
    padding:12px 16px;
    border-radius:10px;
    margin-bottom:10px;
    display:inline-block;
    max-width:85%;
    box-shadow:0 1px 4px rgba(0,0,0,.08);
}

.user-message{
    background:#dff4ff;
    padding:12px 16px;
    border-radius:10px;
    margin-bottom:10px;
    margin-right:auto;
    text-align:right;
    max-width:85%;
}

.smart-home-ai-input{
    display:flex;
    gap:10px;
    padding:15px;
    border-top:1px solid #eee;
}

#smart-home-ai-text{
    flex:1;
    padding:12px;
    border:1px solid #ccc;
    border-radius:8px;
    font-size:15px;
}

#smart-home-ai-send{
    padding:12px 24px;
    border:none;
    border-radius:8px;
    cursor:pointer;
    background:#0d6efd;
    color:#fff;
}
.ai-message{
    color:#222 !important;
}

.user-message{
    color:#222 !important;
}

#smart-home-ai-text{
    color:#222 !important;
}

#smart-home-ai-text::placeholder{
    color:#999;
}