/**
 * Copyright (c) Enalean, 2021 - 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/>.
 */

%empty-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.empty-state-page {
    @extend %empty-container;

    margin: calc(4 * var(--tlp-large-spacing)) auto var(--tlp-medium-spacing);
}

.empty-state-pane {
    @extend %empty-container;

    margin: var(--tlp-large-spacing) auto;
}

.empty-state-pane-centered {
    justify-content: center;
}

.empty-state-title {
    margin: 0;
    color: var(--tlp-dark-color);
    font-size: 1.5rem;
    line-height: 1.875rem;
    text-align: center;

    + .empty-state-text {
        margin-top: var(--tlp-small-spacing);
    }
}

.empty-state-text {
    margin: 0 0 var(--tlp-small-spacing);
    color: var(--tlp-dimmed-color);
    font-size: 1rem;
    line-height: 1.5rem;
    text-align: center;

    &:last-child {
        margin-bottom: 0;
    }

    + .empty-state-action {
        margin-top: var(--tlp-large-spacing);
    }
}

.empty-state-text-smaller {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.empty-state-action {
    margin: var(--tlp-x-large-spacing) 0 0;
}

.empty-state-icon {
    margin: 0 0 var(--tlp-medium-spacing);
    color: var(--tlp-illustration-main-color);
    font-size: 3rem;
}

.empty-state-illustration {
    margin: 0 0 var(--tlp-x-large-spacing);
}
