#ai-widget-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0066ff;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    font-size: 24px;
    z-index: 9999;
}

#ai-widget-box {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 320px;
    height: 420px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
}

#ai-widget-box.open {
    display: flex;
}

.ai-header {
    background: #0066ff;
    color: white;
    padding: 12px;
    font-weight: bold;
}

#ai-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
}

.ai-msg {
    padding: 8px 12px;
    margin-bottom: 10px;
    border-radius: 10px;
    max-width: 80%;
}

.ai-msg.user {
    background: #e5e5e5;
    align-self: flex-end;
}

.ai-msg.ia {
    background: #0066ff;
    color: white;
    align-self: flex-start;
}

.ai-footer {
    padding: 10px;
    display: flex;
    gap: 5px;
}

#ai-input {
    flex: 1;
    padding: 8px;
}
