#wallpaper-generator {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wg-container {
    width: 100%;
}

.wg-header {
    text-align: center;
    margin-bottom: 30px;
}

.wg-header h3 {
    font-size: 32px;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-weight: 700;
}

.wg-header p {
    color: #444;
    font-size: 18px;
    line-height: 1.4;
}

.wg-form {
    margin-bottom: 30px;
}

.wg-input-group {
    margin-bottom: 20px;
}

.wg-input-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a1a;
    font-size: 18px;
    line-height: 1.3;
}

.wg-input-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.wg-input-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #666;
    border-radius: 6px;
    font-size: 16px;
    line-height: 1.5;
    min-height: 48px;
    background: white;
    font-family: inherit;
    color: #333;
}

.wg-input-group textarea:focus,
.wg-input-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.wg-input-group small {
    display: block;
    margin-top: 5px;
    color: #444;
    font-size: 16px;
    line-height: 1.4;
}

#wg-generate-btn {
    width: 100%;
    padding: 16px 32px;
    background: #1976d2;
    color: white;
    border: 2px solid #1976d2;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 56px;
    line-height: 1.2;
}

#wg-generate-btn:hover:not(:disabled) {
    background: #1565c0;
    border-color: #1565c0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

#wg-generate-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.3);
}

#wg-generate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.wg-loading {
    display: none;
}

.wg-result-container {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.wg-preview {
    text-align: center;
    margin-bottom: 20px;
}

.wg-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.wg-controls {
    text-align: center;
    margin-bottom: 20px;
}

#wg-download-btn {
    padding: 14px 28px;
    background: #388e3c;
    color: white;
    border: 2px solid #388e3c;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-height: 48px;
}

#wg-download-btn:hover {
    background: #2e7d32;
    border-color: #2e7d32;
}

.wg-stats {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.wg-stats div {
    margin-bottom: 8px;
    font-size: 16px;
    color: #444;
    line-height: 1.4;
}

.wg-stats div:last-child {
    margin-bottom: 0;
}

.wg-stats span {
    font-weight: 700;
    color: #1a1a1a;
}

.wg-error {
    padding: 16px;
    background: #fff3cd;
    color: #664d03;
    border: 2px solid #ffcc02;
    border-radius: 6px;
    margin-top: 20px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.wg-tips {
    margin-top: 30px;
    padding: 20px;
    background: #e7f3ff;
    border-radius: 8px;
    border-left: 4px solid #007cba;
}

.wg-tips h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

.wg-tips ul {
    margin: 0;
    padding-left: 20px;
}

.wg-tips li {
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
}

.wg-tips li:last-child {
    margin-bottom: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    #wallpaper-generator {
        margin: 10px;
        padding: 15px;
    }
    
    .wg-header h3 {
        font-size: 24px;
    }
    
    .wg-header p {
        font-size: 14px;
    }
    
    #wg-generate-btn {
        padding: 12px;
        font-size: 14px;
    }
}

/* Loading animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.wg-loading::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}