/* Стили для древовидного меню Google Drive */
* { margin: 0; padding: 0; box-sizing: border-box; list-style: none; }
#driveFoldersList .tree-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 20px;
    max-width: 100%;
    margin: 10px 0;
}
#driveFoldersList .tree-title {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
}
#driveFoldersList .tree {
    list-style: none;
}
#driveFoldersList .tree ul {
    list-style: none;
}
#driveFoldersList .tree-item {
    position: relative;
    margin: 4px 0;
}
#driveFoldersList .tree-item::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 12px;
    width: 18px;
    height: 1px;
    background: #bdc3c7;
}
#driveFoldersList .tree-item::after {
    content: '';
    position: absolute;
    left: -15px;
    top: 0;
    width: 1px;
    height: 100%;
    background: #bdc3c7;
}
#driveFoldersList .tree-item.root::before,
#driveFoldersList .tree-item.root::after {
    display: none;
}
/* Уменьшенный отступ для вложенных узлов */
#driveFoldersList .tree-nested {
    margin-left: 10px;
}
.tree-content {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin-left: 10px;
}
.tree-content:hover {
    background: #f8f9fa;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.tree-content.selected {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.3);
}
.tree-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.folder-icon::before {
    content: "📁";
}
.tree-label {
    font-size: 14px;
    font-weight: 500;
    flex: 1;
}
.tree-badge {
    background: rgba(0,0,0,0.1);
    color: #666;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin-left: 8px;
}
