/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(156, 163, 175, 0.4);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(107, 114, 128, 0.6);
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Transitions */
.list-item-enter {
    animation: slideIn 0.3s ease-out forwards;
}

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

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

/* Name Card Active State */
.name-card {
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.name-card.active {
    background: rgba(217, 70, 239, 0.05);
    /* primary-50 */
    border-color: rgba(217, 70, 239, 0.2);
    box-shadow: inset 3px 0 0 0 #d946ef;
}

:is(.dark) .name-card.active {
    background: rgba(217, 70, 239, 0.1);
    border-color: rgba(217, 70, 239, 0.3);
}

/* Trend Chart Bars */
.trend-bar {
    width: 100%;
    border-radius: 4px 4px 0 0;
    transition: height 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: bottom;
}

.trend-bar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    position: relative;
    group-hover: opacity-100;
}

/* Tooltip for chart */
.chart-tooltip {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.trend-bar-wrapper:hover .chart-tooltip {
    opacity: 1;
}

/* Toast */
.toast-visible {
    opacity: 1 !important;
    transform: translate(-50%, -10px) !important;
}