.skeleton {
    display: inline-block;
    background: linear-gradient(90deg, #e0e0e0 25%, #f5f5f5 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.2s infinite;
    border-radius: 4px;
}

.skeleton-avatar {
    height: 48px;
    width: 48px;
    border-radius: 50%;
}

.skeleton-lg {
    height: 1.25em;
    width: 60px;
}

.skeleton-md {
    height: 1em;
    width: 80px;
}

.skeleton-sm {
    height: 0.75em;
    width: 40px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cursor-pointer {
    cursor: pointer;
}

.range-active {
    background-color: #dedede !important;
    border-radius: 0.375rem;
}

.range-inactive {
    cursor: pointer;
}

.range-inactive:hover {
    background-color: #dedede !important; /* slightly darker than base */
    border-radius: 0.375rem;
}

.range-disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.range-label {
    padding: 0.5rem 0;
}

.range-return {
    padding: 0.25rem 0.5rem;
}

#range_labels th:hover,
#range_returns td:hover {
    background-color: #dedede !important;
}

.rounded-top {
    border-top-left-radius: 0.375rem;  /* Bootstrap default = 6px */
    border-top-right-radius: 0.375rem;
}

.rounded-bottom {
    border-bottom-left-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

.font-price {
    font-size: 2rem;
    color: #000;
    line-height: normal;
}

.price-data {
    display: inline-block;
}

.currency-toggle {
    position: relative;
    width: 95px;
    height: 30px;
    background-color: #ccc;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    user-select: none;
}

.currency-label {
    color: #fff;
    z-index: 1;
}

.currency-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 48px;
    height: 26px;
    background-color: #494949;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: left 0.3s ease, background-color 0.3s ease;
    z-index: 2;
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
}

.currency-toggle.usd .currency-knob {
    left: 45px;
}

.currency-toggle-left {
    margin-left: .4rem;
}

.currency-toggle-right {
    margin-right: .3rem;
}





.metric-toggle {
    position: relative;
    width: 110px;
    height: 30px;
    background-color: #ccc;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    user-select: none;
}

.metric-label {
    color: #fff;
    z-index: 1;
}

.metric-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 52px;
    height: 26px;
    background-color: #494949;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: left 0.3s ease, background-color 0.3s ease;
    z-index: 2;
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
}

.metric-toggle.ytm .metric-knob {
    left: 56px;
}

.metric-toggle-left {
    margin-left: .4rem;
}

.metric-toggle-right {
    margin-right: .6rem;
}





.col-sort:hover {
    cursor: pointer;
}

.ticker-row {
    position: relative;
    background-color: transparent;
    transition: none;
    z-index: 0;
}

.ticker-row::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: transparent;
    transition: background-color 1s ease;
    pointer-events: none;
    z-index: -1;
    border-radius: inherit;
}

.ticker-row.price-up::before {
    background-color: rgba(0, 200, 0, 0.5);
}

.ticker-row.price-down::before {
    background-color: rgba(200, 0, 0, 0.5);
}

.ticker-row:hover {
    background-color: rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

.price-diff {
    font-weight: 600 !important;
}






.tab-wrapper {
    max-width: 100%;
    overflow-x: hidden;
}

.tab-bar {
    display: flex;
    align-items: stretch; /* Equal height for all tab-items */
}

.tab-item {
    flex: 1; /* Equal width */
    display: flex;
    align-items: center;        /* Horizontal center */
    justify-content: center;    /* Vertical center */
    text-align: center;         /* Center multiline text */
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 1.05rem;
    color: #495057;
    background-color: #f8f9fa;
    cursor: pointer;
    flex-direction: column;     /* Needed for multiline text centering */
}

.tab-item:hover {
    background-color: #e9ecef; /* slightly lighter */
}

.tab-item.active {
    background-color: #fff;
    color: #000;
    font-weight: 700;
    cursor: default;
}

/*
@media (max-width: 576px) {
    .tab-bar {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .tab-item {
        flex: 1 1 auto; /* allow wrapping but maintain equal width on row
    }
}*/



