.aipg-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.aipg-header {
    text-align: center;
    margin-bottom: 40px;
}

.aipg-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.aipg-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.aipg-quick-suggestions {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.aipg-suggestions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.aipg-suggestions-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.aipg-refresh-btn {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #667eea;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aipg-refresh-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: rotate(180deg);
}

.aipg-suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.aipg-suggestion-btn {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-weight: 500;
}

.aipg-suggestion-btn:hover {
    background: #667eea;
    color: #ffffff;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.aipg-main-form {
    margin-bottom: 30px;
}

.aipg-framework-selector {
    margin-bottom: 24px;
}

.aipg-framework-selector label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.aipg-select {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #ffffff;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23333' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 45px;
}

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

.aipg-input-group {
    margin-bottom: 24px;
}

.aipg-input-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.aipg-textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    resize: vertical;
    font-family: inherit;
    transition: all 0.3s ease;
    line-height: 1.6;
}

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

.aipg-generate-btn {
    width: 100%;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.aipg-generate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.aipg-generate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.aipg-generate-btn.loading .aipg-btn-text {
    opacity: 0;
}

.aipg-generate-btn.loading .aipg-btn-loader {
    opacity: 1;
}

.aipg-btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: aipg-spin 0.8s linear infinite;
    opacity: 0;
}

@keyframes aipg-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.aipg-result-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    border: 2px solid #e9ecef;
    animation: aipg-fadeIn 0.4s ease;
}

.aipg-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.aipg-result-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.aipg-copy-btn {
    background: #667eea;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.aipg-copy-btn:hover {
    background: #5568d3;
    transform: translateY(-1px);
}

.aipg-copy-btn svg {
    width: 16px;
    height: 16px;
}

.aipg-result-text {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: 1px solid #e0e0e0;
}

.aipg-error-container {
    background: #fff5f5;
    border: 2px solid #fc8181;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    animation: aipg-fadeIn 0.4s ease;
}

.aipg-error-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #c53030;
    font-size: 15px;
}

.aipg-error-content svg {
    flex-shrink: 0;
}

@keyframes aipg-fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.aipg-footer-credit {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    margin-top: 30px;
}

.aipg-footer-credit p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.aipg-footer-credit strong {
    color: #667eea;
}

@media (max-width: 768px) {
    .aipg-container {
        padding: 20px;
        margin: 20px;
    }
    
    .aipg-title {
        font-size: 24px;
    }
    
    .aipg-suggestions-grid {
        grid-template-columns: 1fr;
    }
    
    .aipg-result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
