/* Dashboard-specific styles */

/* 5-column stats bar with reduced card height (~35% smaller) */
#statsBar {
    grid-template-columns: repeat(5, 1fr);
}
#statsBar .stat-card {
    padding: 10px 14px;
}
#statsBar .stat-value {
    font-size: 20px;
}
#statsBar .stat-label {
    margin-top: 2px;
    font-size: 11px;
}

.trade-question {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.amount-cell {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}

.price-cell {
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
}

.time-cell {
    color: var(--text-muted);
    font-size: 12px;
}

.new-row {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { background: rgba(88, 166, 255, 0.08); }
    to   { background: transparent; }
}

/* Expiry indicators */
.expiry-urgent { color: var(--red);    font-weight: 600; font-size: 12px; }
.expiry-soon   { color: var(--yellow); font-size: 12px; }
.expiry-ok     { color: var(--text-muted); font-size: 12px; }
.expired       { color: var(--text-muted); font-size: 12px; text-decoration: line-through; }

/* Binary toggle active state */
#btnBinary.btn-primary { background: var(--accent); color: #0d1117; border-color: var(--accent); font-weight: 600; }

/* Resolved trades detail line inside stat card */
.stat-detail {
    font-size: 12px;
    color: var(--text-muted);
    margin: 1px 0 2px;
    line-height: 1.3;
}

/* Dashboard tab bar (inside card) */
.dash-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    padding: 0 16px;
}
.dash-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: -1px;
    padding: 10px 16px;
    transition: color 0.15s, border-color 0.15s;
}
.dash-tab:hover { color: var(--text); }
.dash-tab.active { border-bottom-color: var(--accent); color: var(--accent); font-weight: 600; }

/* Tab panels */
.dash-tab-panel { display: none; }
.dash-tab-panel.active { display: block; }

/* Sortable column headers */
th.sortable {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}
th.sortable:hover { color: var(--text); }
th.sort-asc::after  { content: ' ↑'; opacity: 0.8; }
th.sort-desc::after { content: ' ↓'; opacity: 0.8; }
th.sort-none::after { content: ' ↕'; opacity: 0.25; }
