/* Animated Gradient Border Generator Styles */
.preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    transition: background-color 0.3s ease;
}

.preview-container.dark-mode {
    background-color: #1a1a1a;
}

.preview-box {
    position: relative;
    padding: 4px; /* Initial border width */
    border-radius: 12px; /* Initial border radius */
    background: linear-gradient(90deg, #ff9a9e, #fad0c4, #ff9a9e);
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
    transition: all 0.3s ease;
}

.preview-content {
    background: white;
    padding: 40px 20px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.dark-mode .preview-content {
    background: #2d2d2d;
    color: white;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Color stop controls */
.color-stop {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.color-picker {
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.color-position {
    width: 60px;
}

.remove-color {
    color: #dc3545;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Preset gradients */
.preset-gradient {
    transition: transform 0.2s ease;
}

.preset-gradient:hover {
    transform: scale(1.1);
}

/* Code output styling */
#cssOutput {
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .preview-container {
        min-height: 250px;
    }
    
    .color-stop {
        flex-direction: column;
        align-items: flex-start;
    }
}