body {
    background-color: #FAF8F4;
    color: #111111;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: #EAEAEA;
    color: #111111;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content {
    animation: fadeIn 0.3s ease-out forwards;
}

/* Custom styled range input */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: #EAEAEA;
    height: 4px;
    border-radius: 2px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #111111;
    cursor: pointer;
    transition: transform 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Hide scrollbar on the code editor textarea */
#eve-seed-textarea::-webkit-scrollbar {
    display: none;
}

#eve-seed-textarea {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Flow pulse dash animation for EVE graph connections */
@keyframes flowPulse {
    to {
        stroke-dashoffset: -20;
    }
}

.flow-line {
    stroke-dasharray: 6, 4;
    animation: flowPulse 1.2s linear infinite;
}

/* --- CUSTOM SCROLLBAR STYLING --- */
/* For Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #D4D1C7; /* Muted paper-grey */
    border-radius: 9999px;
    border: 2px solid transparent; /* Gives it padding inside transparent track */
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #888888;
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #D4D1C7 transparent;
}