/* AI Image Editor Styles */
.ai-editing-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 20px;
    margin: 15px 0;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.ai-editing-section h3 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.ai-editing-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    backdrop-filter: blur(10px);
}

.ai-command-input-group {
    margin-bottom: 15px;
}

.ai-command-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 14px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.ai-command-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.ai-target-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.ai-target-btn {
    padding: 8px 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ai-target-btn:hover,
.ai-target-btn.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

.ai-action-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

.ai-execute-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.ai-execute-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(76, 175, 80, 0.4);
}

.ai-execute-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ai-undo-btn {
    padding: 12px 16px;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ai-undo-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

.ai-status {
    padding: 10px 15px;
    border-radius: 6px;
    margin: 10px 0;
    font-weight: 500;
    text-align: center;
    font-size: 13px;
}

.ai-status.processing {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.5);
    color: #ffc107;
}

.ai-status.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: #4CAF50;
}

.ai-status.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.5);
    color: #f44336;
}

.ai-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 10px 0;
}

.ai-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.ai-samples {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.ai-samples h4 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    text-align: center;
    opacity: 0.9;
}

.ai-sample-commands {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
}

.ai-sample-command {
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.ai-sample-command:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.02);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ai-target-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .ai-action-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .ai-sample-commands {
        grid-template-columns: 1fr 1fr;
    }
}

/* Loading animation */
@keyframes aiPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.ai-execute-btn.processing {
    animation: aiPulse 1.5s infinite;
}
