/**
 * AI Mockup Generator - Frontend Styles
 */

#aimg-generator {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

#aimg-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#aimg-form input[type="text"],
#aimg-form select {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.3s;
}

#aimg-form input[type="text"]:focus,
#aimg-form select:focus {
    outline: none;
    border-color: #6366f1;
}

#aimg-form button[type="submit"] {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff !important;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

#aimg-form button[type="submit"] span {
    color: #ffffff;
    display: inline-block;
}

#aimg-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4);
}

#aimg-form button[type="submit"]:active {
    transform: translateY(0);
}

#aimg-loading {
    margin-top: 30px;
    padding: 30px;
    text-align: center;
    background: #fff9e6;
    border: 2px solid #fbbf24;
    border-radius: 8px;
}

#aimg-loading p {
    font-size: 18px;
    color: #92400e;
    margin: 0 0 10px 0;
    font-weight: 600;
}

#aimg-loading small {
    font-size: 14px;
    color: #92400e;
    opacity: 0.8;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

#aimg-result {
    margin-top: 30px;
}

.aimg-frame {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
}

.aimg-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.aimg-info {
    margin-top: 15px;
    padding: 12px;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    text-align: center;
}

.aimg-error {
    padding: 20px;
    background: #fee;
    border: 2px solid #fcc;
    border-radius: 8px;
    color: #c00;
    text-align: center;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    #aimg-generator {
        margin: 20px;
        padding: 20px;
    }
    
    #aimg-form input[type="text"],
    #aimg-form select,
    #aimg-form button[type="submit"] {
        font-size: 14px;
    }
}