.widermart-ai-generator {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.widermart-ai-form h3 {
    margin-bottom: 20px;
    color: #333;
}

#ai-prompt {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 15px;
    resize: vertical;
}

.provider-select {
    margin-bottom: 20px;
}

.provider-select label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.provider-select select {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
}

.widermart-generate-btn {
    background: #0073aa;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
}

.widermart-generate-btn:hover {
    background: #005a87;
}

.widermart-generate-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#loading-spinner {
    text-align: center;
    padding: 20px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#generated-image-container {
    margin-top: 30px;
    text-align: center;
}

#generated-image {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.image-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.widermart-btn, .widermart-btn-primary {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.widermart-btn {
    background: #f0f0f0;
    color: #333;
}

.widermart-btn-primary {
    background: #28a745;
    color: white;
}

.widermart-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
}