.fdm-directory {
    border: 1px solid #ddd;
    padding: 15px;
}

.fdm-file {
    margin-bottom: 8px;
}

/* ROOT TREE */
.fdm-tree,
.fdm-tree ul {
    list-style: none;
    margin: 0;
    padding-left: 18px;
    position: relative;
}

/* Vertical line */
.fdm-tree ul::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    border-left: 1px dashed #d0d0d0;
}

/* Folder / File row */
.fdm-tree li {
    position: relative;
    padding: 6px 0 6px 22px;
    cursor: default;
}

/* Horizontal connector */
.fdm-tree li::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 16px;
    width: 10px;
    border-top: 1px dashed #d0d0d0;
}

/* Toggle (+ / -) */
.fdm-toggle {
    position: absolute;
    left: -2px;
    top: 15px;
    width: 14px;
    height: 14px;
    border: 1px solid #999;
    text-align: center;
    font-size: 11px;
    line-height: 12px;
    background: #fff;
    cursor: pointer;
}

.fdm-toggle::after {
    content: '+';
    font-size: 13px;
}

.fdm-folder.open>.fdm-toggle::after {
    content: '-';
    font-size: 15px;
}

/* Icons */
.fdm-icon {
    margin-right: 6px;
    width: 15px;
}

.fdm-icon.folder::before {
    content: "📁";
    font-size: 15px;
}

.fdm-icon.file::before {
    content: "📄";
}

/* Folder name */
.fdm-name {
    font-weight: 600;
    color: #222;
    font-size: 16px;
}

/* Nested */
.fdm-nested {
    display: none;
    min-height: 40px;
    transition: all 200ms ease;

}

.fdm-folder:not(.open)>.fdm-nested {
    transform: translateY(-4px);
}

.fdm-folder.open>.fdm-nested {
    transform: translateY(-4);
}

/* Hover actions */
.fdm-folder:hover .fdm-actions,
.fdm-file:hover .fdm-actions {
    opacity: 1;
}

.fdm-actions {
    margin-left: 10px;
}

.fdm-actions button {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
}

.fdm-file {
    display: flex;
    align-items: center;
}

#fdm-loader {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fdm-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ddd;
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.fdm-sort-placeholder {
    height: 34px;
    background: #e5f1ff;
    border: 2px dashed #2271b1;
    margin: 4px 0;
}

.fdm-download {
    font-size: 13px;
    margin-left: 10px;
    color: blue;
}