/* Styles for Alfresco Viewer Script */
/* All rules prefixed with alscript- to avoid conflicts */

.alscript-tree, .alscript-children {
    list-style-type: none;
    margin: 0;
    padding: 0;
    padding-left: 20px; 
}

.alscript-entry {
    margin: 2px 0;
}

.alscript-folder-wrapper {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
}

.alscript-file {
    padding-left: 20px; /* Indent files to align with folder labels */
}

/* Icons/Toggles - using CSS content to keep HTML clean and minimal assets */
.alscript-toggle {
    display: inline-block;
    width: 20px;
    text-align: center;
    margin-right: 5px;
}

.alscript-toggle::before {
    content: '▼'; /* Open state */
    font-size: 0.8em;
    opacity: 0.7;
}

.alscript-folder.alscript-collapsed > .alscript-folder-wrapper > .alscript-toggle::before {
    content: '▶'; /* Closed state */
}

.alscript-folder.alscript-empty > .alscript-folder-wrapper > .alscript-toggle::before {
    content: ' '; /* No children */
}

/* Folder Icon (optional, if we want strict minimal, maybe distinct from toggle) */
.alscript-folder-label::before {
    content: '📂 ';
    margin-right: 5px;
}

/* File Icon */
.alscript-link::before {
    content: '📄 ';
    margin-right: 5px;
    text-decoration: none;
    display: inline-block;
}

.alscript-link {
    text-decoration: none;
    color: inherit; /* Inherit color from host */
}

.alscript-link:hover {
    text-decoration: underline;
}

/* Visibility toggling */
.alscript-folder.alscript-collapsed > .alscript-children {
    display: none;
}

.alscript-error {
    color: red;
    font-weight: bold;
    padding: 10px;
}
