@use '@lucas-labs/lui-micro/var' as var;
@use '@lucas-labs/lui-micro/color' as color;

@mixin apply-styles {
    .secondary-nav {
        display: flex;
        flex-direction: column;
        margin-bottom: var.get('measure/1x');

        .ui.container {
            margin: 0 0 0 0 !important;
            max-width: unset !important;
            width: 100% !important;
            padding: 0 var.get('measure/1x');
        }

        .repo-header {
            margin: 0 0 var.get('measure/1x') 0;
        }

        .ui.tabs.divider {
            margin-bottom: 0;
        }

        overflow-menu {
            .item {
                --item-margin-bottom: #{var.get('measure/.5x')} !important;
                margin: 0 var.get('measure/.5x') var(--item-margin-bottom) !important;
                border-radius: var.get('measure/.25x') !important;
                padding: var.get('measure/.5x') var.get('measure/.5x') !important;
                color: var(--color-text) !important;
                border: none !important;
                position: relative; // Make the parent element positioned

                svg {
                    color: var(--color-text-light-3) !important;
                    margin-right: var.get('measure/.5x') !important;
                }

                &:hover {
                    background-color: color.get('elevation/4') !important;
                }

                &.active {
                    background-color: transparent !important;
                    color: var(--color-text) !important;
                    border-radius: 0 !important;
                    // font-weight: normal !important;
                    border-bottom: calc(var(--item-margin-bottom) - 1px) solid var(--color-secondary-nav-bg) !important;
                    margin-bottom: 1px !important;
                    box-shadow: 0px 2px 0px 0px color.get('primary/base') !important;
                }

                .small.label {
                    background-color: color.get('elevation/7');
                    border: 1px solid color.get('elevation/7');
                    border-radius: var.get('measure/2x');
                    color: var(--color-text);
                    font-weight: var(--base-text-weight-medium, 500);
                    min-width: calc(var.get('measure/1.25x') + 6px);
                    padding: 6px;
                    text-align: center;
                    align-items: center;
                    justify-content: center;
                }
            }
        }
    }
}
