/* tree.css — Tree node styles, expand/collapse, indentation, icons */

.tree-stats-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--color-surface-alt, #1e1e2e);
    border-bottom: 1px solid var(--color-border);
    font-size: 13px;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.tree-stats-bar strong {
    color: var(--color-text);
}

.stats-sep {
    opacity: 0.3;
}

.stats-assigned strong {
    color: var(--color-primary, #6c9fff);
}

.stats-unassigned strong {
    color: var(--color-success, #4ec970);
}

.reimport-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

.reimport-prompt p {
    margin: 0;
}

.reimport-btn {
    cursor: pointer;
    margin-top: 8px;
}

.reimport-progress {
    width: 260px;
    margin-top: 12px;
}

.reimport-progress .progress-bar {
    height: 6px;
    background: var(--color-surface-alt, #1e1e2e);
    border-radius: 3px;
    overflow: hidden;
}

.reimport-progress .progress-fill {
    height: 100%;
    background: var(--color-primary, #6c9fff);
    transition: width 0.2s;
    width: 0;
}

.reimport-progress .progress-text {
    font-size: 12px;
    margin-top: 4px;
}

.tree-scroll-container {
    position: relative;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.tree-sentinel {
    width: 1px;
    pointer-events: none;
}

.tree-viewport {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    pointer-events: auto;
}

.tree-row {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    font-size: 13px;
    cursor: default;
    user-select: none;
    padding-right: 12px;
    border-radius: 3px;
    transition: background 0.1s;
}

.tree-row:hover {
    background: rgba(108, 159, 255, 0.08);
}

.tree-row-assigned {
    opacity: 0.5;
}

.tree-row-assigned .tree-name {
    text-decoration: line-through;
    color: var(--color-text-muted);
}

.tree-row-dragging {
    opacity: 0.4;
}

.tree-chevron {
    flex-shrink: 0;
    width: 14px;
    font-size: 10px;
    text-align: center;
    color: var(--color-text-muted);
}

.tree-chevron-active {
    cursor: pointer;
}

.tree-chevron-active:hover {
    color: var(--color-primary);
}

.tree-icon {
    flex-shrink: 0;
    width: 18px;
    text-align: center;
    font-size: 14px;
}

.tree-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.tree-size {
    flex-shrink: 0;
    color: var(--color-text-muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    text-align: right;
    min-width: 70px;
}

.tree-assigned-badge {
    flex-shrink: 0;
    color: var(--color-primary);
    font-size: 10px;
    margin-left: 4px;
}

/* Empty list message in sidebar */
.empty-list-msg {
    padding: 12px 16px;
    color: var(--color-text-muted);
    font-size: 12px;
    font-style: italic;
}
