/* Script Code Card Styling */
.script-code-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.script-code-card:nth-child(1) { animation-delay: 0.1s; }
.script-code-card:nth-child(2) { animation-delay: 0.2s; }
.script-code-card:nth-child(3) { animation-delay: 0.3s; }
.script-code-card:nth-child(4) { animation-delay: 0.4s; }
.script-code-card:nth-child(5) { animation-delay: 0.5s; }
.script-code-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .script-code-card {
        animation-delay: 0s !important;
    }
}

/* Code Text Scrollbar Styling */
.script-code-text::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.script-code-text::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.script-code-text::-webkit-scrollbar-thumb {
    background: #22c55e;
    border-radius: 4px;
}

.script-code-text::-webkit-scrollbar-thumb:hover {
    background: #4ade80;
}

/* Copy Button Styling */
.copy-script-btn {
    position: relative;
    overflow: hidden;
}

.copy-script-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.copy-script-btn:active::before {
    width: 300px;
    height: 300px;
}

.copy-script-btn.copied {
    background: linear-gradient(to-r, #10b981, #059669) !important;
    animation: pulse-success 0.6s ease;
}

@keyframes pulse-success {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

