/* Category Tree Styles */
.category-tree {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.tree-node {
    margin: 5px 0;
    position: relative;
}

.tree-node.level-0 {
    font-weight: 600;
    font-size: 1.1em;
    color: #2c3e50;
    background: white;
    padding: 10px;
    border-radius: 5px;
    border-left: 4px solid #667eea;
    margin-bottom: 10px;
}

.tree-node.level-1 {
    margin-left: 30px;
    padding: 8px;
    background: #fff;
    border-left: 3px solid #764ba2;
    border-radius: 3px;
    margin-bottom: 5px;
}

.tree-node.level-2 {
    margin-left: 60px;
    padding: 6px;
    background: #fff;
    border-left: 2px solid #9775fa;
    border-radius: 3px;
    font-size: 0.95em;
}

.tree-node.level-3 {
    margin-left: 90px;
    padding: 5px;
    background: #f8f9fa;
    border-left: 2px dashed #c5b5fc;
    font-size: 0.9em;
}

.tree-node:hover {
    background: #e3f2fd;
    cursor: pointer;
}

.tree-connector {
    position: absolute;
    left: -15px;
    top: 50%;
    width: 15px;
    height: 1px;
    background: #ddd;
}

.category-stats {
    float: right;
    font-size: 0.85em;
}

.category-actions {
    float: right;
    margin-left: 10px;
}

.subcategory-count {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    margin-left: 5px;
}

.product-count {
    display: inline-block;
    background: #f3e5f5;
    color: #7b1fa2;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    margin-left: 5px;
}

.tree-expand-btn {
    cursor: pointer;
    margin-right: 5px;
    color: #666;
    transition: transform 0.2s;
}

.tree-expand-btn.collapsed {
    transform: rotate(-90deg);
}

.tree-children {
    transition: max-height 0.3s ease;
    overflow: hidden;
}

.tree-children.collapsed {
    max-height: 0;
}