/* ===================================================================
   statusbar.css  –  Bottom status bar
   =================================================================== */

#statusbar {
    height: var(--statusbar-height);
    background: var(--bg-statusbar);
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 0;
    flex-shrink: 0;
    font-size: var(--fs-xs);
    font-family: var(--font-mono);
    color: var(--text-muted);
    user-select: none;
    overflow: hidden;
}

/* Each status segment */
.status-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 10px;
    border-right: 1px solid var(--border-color);
    height: 100%;
    white-space: nowrap;
    transition: color 0.15s;
}

.status-item:last-child {
    border-right: none;
}

.status-item:first-child {
    padding-left: 0;
}

.status-label {
    color: var(--text-muted);
    font-size: var(--fs-xs);
}

.status-value {
    color: var(--text-secondary);
    min-width: 60px;
}

/* Active states for toggle items (Snap, Grid, Ortho) */
.status-item.toggle {
    cursor: pointer;
}

.status-item.toggle:hover {
    color: var(--text-primary);
}

.status-item.toggle.on .status-value {
    color: var(--text-accent);
}

/* Coordinates get a wider slot and monospace numbers */
#status-coordinates .status-value {
    min-width: 140px;
    font-variant-numeric: tabular-nums;
}

/* Unit dropdown */
.status-select {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: var(--fs-xs);
    font-family: var(--font-mono);
    cursor: pointer;
    padding: 0 2px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.status-select:hover {
    color: var(--text-primary);
}

.status-select option {
    background: var(--bg-panel, #252526);
    color: var(--text-primary, #d4d4d4);
}

/* Right-aligned area for scale / layer info */
.status-spacer {
    flex: 1;
}

.status-right {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: auto;
}
