/* Custom scrollbar for dark mode */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Chart Tool Button Styles */
.chart-tool-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    /* w-8 */
    height: 2rem;
    /* h-8 */
    border-radius: 0.25rem;
    /* rounded */
    color: #94a3b8;
    /* text-slate-400 */
    cursor: pointer;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    /* transition-colors */
}

.chart-tool-btn:hover {
    background-color: #334155;
    /* hover:bg-slate-700 */
    color: #ffffff;
    /* hover:text-white */
}

.chart-tool-btn.active {
    background-color: #2563eb;
    /* bg-blue-600 */
    color: #ffffff;
    /* text-white */
}

/* Hide TradingView Logo */
#tv-chart a[href^="https://www.tradingview.com/"] {
    display: none !important;
}

/* Indicator Modal Styles */
#indicator-modal {
    transition: opacity 0.3s ease;
}

/* Utility: Hide Scrollbar but allow scrolling */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Utility: Mask Gradient for scrolling content */
/* Utility: Mask Gradient for scrolling content */
.mask-gradient-right {
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
}

@keyframes bounce-horizontal {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(25%);
    }
}

.animate-bounce-horizontal {
    animation: bounce-horizontal 1s infinite;
}