@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #171717; /* neutral-900 */
    color: #d4d4d4; /* neutral-300 */
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

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

.bounce {
    animation: bounce 0.5s cubic-bezier(0.36, 0, 0.66, -0.56) infinite alternate;
}

@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-4px); }
}

/* Custom Scrollbar for the snippet area */
.snippet-scroll::-webkit-scrollbar {
    width: 8px;
}
.snippet-scroll::-webkit-scrollbar-track {
    background: #262626; 
}
.snippet-scroll::-webkit-scrollbar-thumb {
    background: #404040; 
    border-radius: 4px;
}
.snippet-scroll::-webkit-scrollbar-thumb:hover {
    background: #525252; 
}

.loader {
    border-top-color: #d4d4d4;
    -webkit-animation: spinner 1.5s linear infinite;
    animation: spinner 1.5s linear infinite;
}

@keyframes spinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.disabled-option {
    opacity: 0.3;
    pointer-events: none;
    filter: grayscale(100%);
}

/* Shake animation for Hardcore Timer */
.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}
