/**
 * Copyright (c) Enalean, 2020 - 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 "./includes/keys-tokens";
@use "./includes/appearance";
@use "./includes/security";
@use "./includes/account-information";

.user-preferences-frame {
    max-width: 1000px;
    margin: 0 auto;
}

.user-preferences-frame.user-preferences-frame-wide {
    max-width: 1400px;
}

.user-preferences-container {
    display: flex;
    align-items: flex-start;
}

.user-preferences-title {
    margin: 0 0 var(--tlp-medium-spacing);
}

.user-preferences-nav {
    min-width: 250px;
    max-width: 250px;
}

.user-preferences-section {
    width: 100%;
    margin: 0 0 0 var(--tlp-medium-spacing);
}

.user-preferences-section-submit {
    justify-content: flex-start;

    > .tlp-button-primary {
        margin: 0;
    }
}

.user-preferences-copy-secret {
    cursor: pointer;
}

.user-preferences-copy-secrets-hide {
    display: none;
}

/* stylelint-disable selector-no-qualifying-type */
input.user-preferences-language-radio {
    vertical-align: middle;
}

.user-preferences-language-beta {
    margin: 0 0 0 var(--tlp-small-spacing);
}

@media screen and (max-width: calc(1000px + var(--tlp-medium-spacing))) {
    .user-preferences-frame {
        max-width: none;
        margin: 0;
    }

    .user-preferences {
        width: 100%;
    }

    .user-preferences-container {
        flex-direction: column;
    }

    .user-preferences-nav {
        width: calc(100% + var(--tlp-medium-spacing) * 2);
        min-width: auto;
        max-width: none;
        margin: 0 calc(-1 * var(--tlp-medium-spacing)) var(--tlp-medium-spacing);
    }

    .user-preferences-section {
        margin: 0;
    }
}

.user-preferences-hidden {
    display: none;
}
