.directory-tree-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Disable text selection throughout the entire component */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.search-box {
    padding: 10px 5px;
    border-bottom: 1px solid #eaeded;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-container > div:first-child {
    flex-grow: 1;
}

.directory-tree {
    padding: 5px;
    overflow: auto;
    /* Disable text selection */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.search-results {
    padding: 5px;
    overflow: auto;
    /* Disable text selection */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 4px;
    /* Disable text selection */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.search-result-item:hover {
    background-color: #f2f8fd;
}

.search-result-item.selected {
    background-color: #e6f2ff;
}

/* Multi-selection styles for search results */
.search-result-item.multi-selected {
    background-color: #d4edda;
    border-left: 3px solid #28a745;
}

.search-result-item.multi-selected:hover {
    background-color: #c3e6cb;
}

.search-result-icon {
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
}

.search-result-name {
    font-weight: bold;
    margin-right: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Disable text selection */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.search-result-path {
    color: #5f6b7a;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Disable text selection */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.tree-item {
    margin: 2px 0;
    /* Disable text selection */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.tree-item-content {
    display: flex;
    align-items: center;
    padding: 6px 4px;
    border-radius: 4px;
    cursor: pointer;
    /* Disable text selection */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.tree-item-content:hover {
    background-color: #f2f8fd;
}

.tree-item-content.selected {
    background-color: #e6f2ff;
}

.tree-item-caret {
    margin-right: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.tree-item-icon {
    margin-right: 6px;
    display: inline-flex;
    align-items: center;
}

.tree-item-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Disable text selection */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.folder-count {
    margin-left: 5px;
    font-size: 0.85em;
    color: #666;
}

.tree-item-children {
    /* Disable text selection */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Multi-selection styles */
.tree-item-content.multi-selected {
    background-color: #d4edda;
    border-left: 3px solid #28a745;
}

.tree-item-content.multi-selected:hover {
    background-color: #c3e6cb;
}

.selection-controls {
    padding: 8px 10px;
    border-top: 1px solid #eaeded;
    background-color: #f8f9fa;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.selection-note {
    font-size: 11px;
    color: #6c757d;
    text-align: center;
}

.toggle-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toggle-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 16px;
}

.archived-toggle,
.non-included-toggle {
    display: flex;
    margin-top: 4px;
}

.archived-label {
    margin-left: 6px;
    font-size: 10px;
    background-color: #d13212;
    color: #ffffff;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: bold;
    display: inline-block;
    vertical-align: middle;
}

.archived-icon {
    margin-left: 4px;
    color: #d13212;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    font-size: 14px;
}

.not-included-icon {
    margin-left: 4px;
    color: #ffc107;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    font-size: 14px;
}
