/**
 * Copyright (c) Enalean, 2019-Present. All Rights Reserved.
 *
 * This file is a part of Tuleap.
 *
 * Tuleap is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Tuleap is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Tuleap. If not, see <http://www.gnu.org/licenses/>.
 */

@use "pkg:@tuleap/list-picker";
@use "../global-variables";

.project-admin-services-icon {
    margin: 0 5px 0 0;
}

.project-admin-services-modal-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 110px;
    padding: 0 var(--tlp-medium-spacing);
    border-bottom: 1px solid var(--tlp-neutral-normal-color);
    background: var(--tlp-background-color);
}

.project-admin-services-modal-preview-sidebar {
    display: flex;
    align-items: center;
    justify-content: stretch;
    width: global-variables.$sidebar-expanded-width;
    height: 70px;
    border-radius: var(--tlp-large-radius);
    background: var(--tlp-dark-color);

    > .project-sidebar-nav-item {
        display: flex;
        flex: 1 1 auto;
        align-items: center;
        height: global-variables.$sidebar-item-height;
        margin: 0 var(--tlp-small-spacing) 5px;
        padding: 0 var(--tlp-small-spacing);
        border-radius: var(--tlp-large-radius);

        &.active {
            background-color: var(--tlp-dark-color);
            // stylelint-disable-next-line function-linear-gradient-no-nonstandard-direction
            background-image: linear-gradient(
                0,
                var(--tlp-sidebar-action-background),
                var(--tlp-sidebar-action-background)
            );
            background-blend-mode: overlay;
            color: var(--tlp-white-color);
        }

        > .project-sidebar-nav-item-icon {
            margin: 0 7px 0 0;
        }

        > .project-admin-services-modal-preview-label {
            display: initial;
        }
    }

    .project-sidebar-nav-item-new-tab {
        position: relative;
        top: -7px;
        left: 3px;
        transform: rotate(-45deg);
        transition:
            transform ease-in-out 100ms,
            opacity ease-in-out 100ms;
        opacity: 0.5;
        font-size: 10px;
    }
}

.project-admin-services-modal-icon-item {
    margin: 0 5px 0 0;
    font-size: 18px;
}
