/* CSS Animation Tool Styles */
.css-animation-tool .animation-preview {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #dee2e6;
    margin-bottom: 1rem;
}

.css-animation-tool .animated-element {
    padding: 1rem 2rem;
    background-color: #3498db;
    color: white;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
}

.css-animation-tool .color-stop,
.css-animation-tool .keyframe {
    transition: all 0.2s ease;
}

.css-animation-tool .color-stop:hover,
.css-animation-tool .keyframe:hover {
    transform: translateX(3px);
}

.css-animation-tool #generatedCSS {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 0;
}

.css-animation-tool .preset-animation {
    text-align: left;
}

/* Gradient animation preview */
.gradient-animation {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Pulse animation preview */
.pulse-animation {
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Rainbow animation preview */
.rainbow-animation {
    animation: rainbow 5s linear infinite;
}

@keyframes rainbow {
    0% { background-color: #ff0000; }
    16% { background-color: #ff8000; }
    33% { background-color: #ffff00; }
    50% { background-color: #00ff00; }
    66% { background-color: #0000ff; }
    83% { background-color: #8000ff; }
    100% { background-color: #ff0000; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .css-animation-tool .animation-preview {
        height: 150px;
    }
    
    .css-animation-tool .animated-element {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}