#aiChat {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    height: 520px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    flex-direction: column;
    overflow: hidden;
    z-index: 10000;
}

.ai-header {
    background: #4f46e5;
    color: white;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

#aiMessages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #f8fafc;
}

.ai-message {
    margin-bottom: 12px;
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 85%;
    line-height: 1.4;
}

.ai-message.user {
    background: #6366f1;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.ai-message.bot {
    background: white;
    border: 1px solid #e2e8f0;
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

.ai-input {
    display: flex;
    padding: 12px;
    background: white;
    border-top: 1px solid #e2e8f0;
}

#aiInput {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    outline: none;
}

#aiInput:focus {
    border-color: #6366f1;
}

#aiSend {
    margin-left: 8px;
    width: 44px;
    height: 44px;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.ai-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.4);
    z-index: 10001;
    cursor: pointer;
}
.ai-newchat{
    width:100%;
    padding:10px;
    margin-top:10px;
    border-radius:10px;
    border:1px dashed #4f46e5;
    background:transparent;
    color:#4f46e5;
    cursor:pointer;
    transition:.2s;
}

.ai-newchat:hover{
    background:#eef2ff;
}