.ai-window {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 400px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ai-header {
    background: #667eea;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

#ai-minimize {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
}

#ai-minimize:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ai-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ai-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8f9fa;
}

.ai-message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 8px;
    max-width: 80%;
}

.ai-message.user {
    background: #667eea;
    color: white;
    margin-left: auto;
}

.ai-message.ai {
    background: white;
    border: 1px solid #e9ecef;
}

.ai-input-area {
    padding: 15px;
    background: white;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 8px;
}

#ai-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
}

#ai-input:focus {
    border-color: #667eea;
}

#ai-send, #ai-save {
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

#ai-send {
    background: #667eea;
    color: white;
}

#ai-save {
    background: #28a745;
    color: white;
}

#ai-send:hover {
    background: #5a6fd8;
}

#ai-save:hover {
    background: #218838;
}
