/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: rgba(148, 163, 184, 0.4);
    border-radius: 4px;
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: rgba(71, 85, 105, 0.8);
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: rgba(100, 116, 139, 0.6);
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: rgba(100, 116, 139, 1);
}

/* Base tweaks */
textarea {
    box-shadow: none !important;
}

pre code.hljs {
    padding: 1rem;
    background: transparent;
}

/* Hide highlight.js background color to rely on container */
.hljs {
    background: transparent !important;
}

/* Animations overlay */
#error-overlay {
    transition: opacity 0.3s;
}

#error-overlay.hidden {
    display: none;
}