#aiig-wrapper {
    max-width: 700px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f9f9f9;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

#aiig-wrapper h2 {
    margin-top: 0;
    color: #1a1a2e;
    font-size: 1.6em;
}

.aiig-field {
    margin-bottom: 18px;
}

.aiig-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

#aiig-prompt {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

#aiig-prompt:focus {
    border-color: #6c63ff;
    outline: none;
}

#aiig-char-count {
    color: #888;
    font-size: 12px;
}

.aiig-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.aiig-options .aiig-field {
    flex: 1;
    min-width: 180px;
}

.aiig-options select {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

#aiig-generate-btn {
    background: linear-gradient(135deg, #6c63ff, #4facfe);
    color: white;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
    transition: opacity 0.2s, transform 0.1s;
    margin-top: 10px;
}

#aiig-generate-btn:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
}

#aiig-generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#aiig-status {
    margin-top: 20px;
    padding: 14px;
    border-radius: 8px;
    font-weight: 500;
}

.aiig-loading {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

.aiig-success {
    background: #d1edff;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.aiig-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#aiig-result {
    margin-top: 25px;
    text-align: center;
}

#aiig-output-img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: block;
    margin: 0 auto 15px;
}

#aiig-download-btn {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

#aiig-download-btn:hover {
    background: #218838;
    color: white;
}