/**
 * Accessibility styles for tree view
 */

/* Focus indicator for tree items */
[role="treeitem"]:focus {
    outline: 2px solid #4165a3;
    outline-offset: 2px;
    background-color: #f0f2f5;
}

/* Remove default focus styles that might conflict */
[role="treeitem"]:focus {
    outline-style: solid;
}

/* Ensure keyboard focus is visible */
[role="treeitem"] {
    position: relative;
}

/* Additional focus styles for high contrast mode */
@media (prefers-contrast: high) {
    [role="treeitem"]:focus {
        outline-width: 3px;
    }
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
