/* SIDEBAR - Stats, Movers, Charts, Sentiment */

/* Stats */
.stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-sm);
}

.stat:last-child {
    margin-bottom: 0;
}

.stat__label {
    color: var(--text-secondary);
    font-weight: 500;
}

.stat__value {
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.stat__bar {
    height: 3px;
    background: var(--bg-primary);
    border-radius: 2px;
    margin: var(--space-sm) 0;
    overflow: hidden;
}

.stat__fill {
    height: 100%;
    background: var(--accent-blue);
    transition: width var(--transition-slow);
}

/* Market Indices */
.market-index {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xs) 0;
    font-size: var(--font-size-sm);
    border-bottom: 1px solid var(--border-primary);
}

.market-index:last-child {
    border-bottom: none;
}

.market-index__symbol {
    font-weight: 700;
    color: var(--text-primary);
}

.market-index__price {
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.market-index__change {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.market-index__change--up {
    color: var(--accent-green);
}

.market-index__change--down {
    color: var(--accent-red);
}

/* Movers */
.mover {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xs) 0;
    font-size: var(--font-size-sm);
    border-bottom: 1px solid var(--border-primary);
}

.mover:last-child {
    border-bottom: none;
}

.mover__name {
    flex: 1;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: var(--space-sm);
}

.mover__change {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.mover__change--up {
    color: var(--accent-green);
}

.mover__change--down {
    color: var(--accent-red);
}

/* Dimension Chart */
.dimension-chart {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.dimension-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.dimension-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-sm);
}

.dimension-item__label {
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dimension-item__count {
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.dimension-item__bar {
    height: 4px;
    background: var(--bg-primary);
    border-radius: 2px;
    overflow: hidden;
}

.dimension-item__fill {
    height: 100%;
    transition: width var(--transition-slow);
}

.dimension-item__fill--macro {
    background: var(--accent-yellow);
}

.dimension-item__fill--equities {
    background: var(--accent-blue);
}

.dimension-item__fill--sector {
    background: var(--accent-cyan);
}

/* Sentiment Gauge */
.sentiment-gauge {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.gauge__bar {
    position: relative;
    height: 24px;
    background: linear-gradient(to right, var(--bear-primary), var(--neutral-primary), var(--bull-primary));
    border-radius: 2px;
    overflow: visible;
}

.gauge__indicator {
    position: absolute;
    top: -4px;
    bottom: -4px;
    width: 2px;
    background: var(--text-primary);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    transition: left var(--transition-slow);
}

.gauge__labels {
    display: flex;
    justify-content: space-between;
    font-size: var(--font-size-xs);
}

.gauge__label--bearish {
    color: var(--bear-primary);
}

.gauge__label--neutral {
    color: var(--neutral-primary);
}

.gauge__label--bullish {
    color: var(--bull-primary);
}

.sentiment-stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    font-size: var(--font-size-sm);
}

.sentiment-stat {
    display: flex;
    justify-content: space-between;
}

.sentiment-stat__label {
    color: var(--text-secondary);
}

.sentiment-stat__value {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Empty States */
.card__body--empty {
    color: var(--text-dim);
    font-size: var(--font-size-xs);
    text-align: center;
    padding: var(--space-lg);
}