.cgpg-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cgpg-prompt-box {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cgpg-heading {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
}

.cgpg-textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    resize: vertical;
    font-family: inherit;
    transition: all 0.3s ease;
    line-height: 1.5;
    min-height: 80px;
    margin-bottom: 20px;
}

.cgpg-textarea:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.cgpg-generate-btn {
    width: 100%;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: #000000;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cgpg-generate-btn:hover:not(:disabled) {
    background: #333;
}

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

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

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

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

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

.cgpg-result-container {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
    animation: cgpg-fadeIn 0.4s ease;
    position: relative;
}

.cgpg-result-text {
    background: #ffffff;
    padding: 24px;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.cgpg-copy-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: #c41e3a;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cgpg-copy-btn:hover {
    background: #a01829;
}

.cgpg-copy-btn.copied {
    background: #28a745;
}

.cgpg-error-container {
    background: #fff5f5;
    border: 1px solid #fc8181;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 20px;
    color: #c53030;
    font-size: 15px;
    animation: cgpg-fadeIn 0.4s ease;
}

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

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

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

.cgpg-footer-credit strong {
    color: #333;
}

@media (max-width: 768px) {
    .cgpg-container {
        padding: 0 15px;
        margin: 20px auto;
    }
    
    .cgpg-prompt-box {
        padding: 25px 20px;
    }
    
    .cgpg-result-container {
        padding: 20px;
    }
    
    .cgpg-result-text {
        padding: 18px;
        font-size: 14px;
    }
}
