.playground-container {
    --animation-duration: 0.5s;
}

.playground-interface {
    animation: fadeIn var(--animation-duration) ease-out;
}

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

.playground-result {
    transition: all 0.3s ease;
}

.playground-result pre {
    white-space: pre-wrap;
    word-break: break-word;
}

.playground-copy-button {
    transition: all 0.2s ease;
}

.playground-copy-button:hover {
    transform: scale(1.05);
}

.playground-generate-button {
    position: relative;
    overflow: hidden;
}

.playground-generate-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.6s ease;
}

.playground-generate-button:hover::after {
    left: 100%;
}

/* Type-specific styling */
.playground-text .playground-header {
    border-left: 4px solid #3b82f6;
}

.playground-image .playground-header {
    border-left: 4px solid #8b5cf6;
}

.playground-code .playground-header {
    border-left: 4px solid #10b981;
}

.playground-video .playground-header {
    border-left: 4px solid #ef4444;
}

.playground-audio .playground-header {
    border-left: 4px solid #f59e0b;
}

.playground-data .playground-header {
    border-left: 4px solid #0ea5e9;
}