/**
 * This file provides the styles for the page tools as a sticky status bar
 * at the bottom of the page (TurboVision-style).
 *
 * @author luxick <git@luxick.de>
 */

/*
 * Status bar styling (inspired by TuiCSS turbo-vision example)
 * The page tools are displayed as a sticky bar at the bottom of the viewport
 */

#dokuwiki__pagetools {
    /* Fixed positioning at bottom of viewport */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;

    /* Visual styling - status bar appearance */
    background-color: @ini_background;
    border-top: 1px solid @ini_border;
    padding: 0 0.5em;

    /* Hide accessibility heading */
    h3.a11y {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        border: 0;
    }

    .tools ul {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 0.25em;

        li {
            display: inline-block;
            margin: 0;
            padding: 0;

            a {
                display: inline-flex;
                align-items: center;
                padding: 0.35em 0.5em;
                text-decoration: none;
                color: @ini_text;
                white-space: nowrap;
                border-radius: 2px;

                &:active {
                    background-color: @ini_background_neu;
                }

                /* Label text */
                .label {
                    font-size: 0.9em;
                }

                /* Accesskey badge - prominent display like F1, F2 shortcuts */
                .accesskey {
                    display: inline-block;
                    color: @ini_theme_color;
                    font-weight: bold;
                    font-size: 0.85em;
                    margin-right: 0.4em;
                    min-width: 1.2em;
                    text-align: center;
                    text-transform: uppercase;
                }

                /* Hide SVG icons - we use text-only status bar style */
                svg {
                    display: none;
                }
            }
        }
    }

    /* RTL support */
    [dir=rtl] & {
        .tools ul li a {
            .accesskey {
                margin-right: 0;
                margin-left: 0.4em;
            }
        }
    }
}
