/* Custom Scrollbar to match terminal aesthetic */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(5, 13, 26, 0.6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(98, 71, 170, 0.4);
    border-radius: 4px;
    border: 1px solid rgba(5, 13, 26, 0.6);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(160, 108, 213, 0.6);
}

/* Animations & Effects */
@keyframes shine {
    0% {
        transform: translateX(-100%) skewX(-15deg);
    }

    100% {
        transform: translateX(200%) skewX(-15deg);
    }
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(160, 108, 213, 0.2) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: translateX(-100%) skewX(-15deg);
    animation: shine 4s infinite;
}

/* Utilities for JS injected classes */
.task-completed {
    color: rgba(226, 207, 234, 0.4);
    /* term-text faded */
    text-decoration: line-through;
    text-decoration-color: rgba(160, 108, 213, 0.8);
    /* term-secondary */
    text-decoration-thickness: 2px;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-down {
    animation: slideDown 0.3s ease-out forwards;
}