@import (reference) 'common.less';

.nav_tabs {
    &.narrow {
        .btn_tab {
            height: 30px;
            .title {
                top: 3px;
            }
        }
    }
    display: flex;
    .btn_tab {
        flex-grow: 1;
        height: 55px;
        margin: 0 3px;
        background-color: var(--nav-tab-bg);
        border: solid 1px @cp_border_dark;
        border-radius: 4px;
        cursor: pointer;
        text-align: center;
        position: relative;
        .icon {
            width: 24px;
            height: 24px;
            opacity: var(--nav-tab-icon-opacity);
            margin: auto;
            position: relative;
            top: 5px;
            background-size: contain;
        }
        .title {
            position: absolute;
            top: 29px;
            left: 0;
            right: 0;
            opacity: var(--nav-tab-title-opacity);
            font-size: 13px;
        }
        .icon.logs {
            background-image: url(/img/logs.svg);
        }
        .icon.target {
            background-image: url(/img/target.svg);
        }
        .icon.rules {
            background-image: url(/img/rules.svg);
        }
        .icon.rotation, .icon.rotating {
            background-image: url(/img/rotation.svg);
        }
        .icon.headers {
            background-image: url(/img/request_headers.svg);
        }
        .icon.general {
            background-image: url(/img/general.svg);
        }
        .icon.proxy_ext {
            background-image: url(/img/proxy_ext.svg);
        }
        .icon.proxy_lum {
            background-image: url(/img/proxy_lum.svg);
        }
        .icon.code, .icon.unblocker {
            background-image: url(/img/ic_code.svg);
        }
        .icon.browser, .icon.session_long {
            background-image: url(/img/ic_browser.svg);
        }
        .icon.proxy_tester {
            background-image: url('img/tester.svg');
        }
        .icon.sessions {
            background-image: url(/img/sessions.svg);
        }
        .icon.har {
            background-image: url(/img/har_viewer.svg);
        }
        .icon.banned_ips {
            background-image: url(/img/banned_ips.svg);
        }
        &:first-child {
            margin-left: 0;
        }
        &:last-child {
            margin-right: 0;
        }
        &.active, &:hover {
            border-color: @first_color;
            background-color: var(--nav-tab-bg);
        }
        &.active {
            cursor: default;
            .icon {
                opacity: var(--nav-tab-icon-opacity-active);
            }
            .title {
                opacity: var(--nav-tab-title-opacity-active);
                font-weight: bold;
            }
            .arrow {
                border-left: 7px solid var(--color-transparent);
                border-right: 7px solid var(--color-transparent);
                border-top: 6px solid @first_color;
                position: absolute;
                bottom: -7px;
                left: 0;
                right: 0;
                width: 0;
                margin: auto;
            }
        }
        &.disabled {
            cursor: default;
            color: @black;
            .icon {
                filter: grayscale(100%);
            }
            &:hover {
                border-color: @grey_border;
            }
        }
    }
}
