//.layout.index.tsx
.layout-container {
    display: flex;
    flex-direction: row;
    width: 100vw;
    height: 100vh;
    transition: 0.3s;
}

//layout.content.case.index.tsx
.case-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: calc(100vh - 30px - 20px);
    padding: 10px;
    transition: 0.3s;
    overflow: hidden;
    position: relative;
    z-index: 1;

    .case-content {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
        position: relative;
    }
}

//layout.content.header.index.tsx
.header-container {
    :root {
        --header-height: 30px;
    }

    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
    width: calc(100% - 20px);
    height: calc(var(--header-height) - 20px);
    padding: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    z-index: 99999;

    .header-label {
        font-size: 9px;
        font-weight: bold;
        color: #111111;
        letter-spacing: 0.04em;
    }
}

//layout.content.loading.index.tsx
.loading-container {
    :root {
        --loading-height: 2px;
    }

    position: absolute;
    bottom: calc(0px - var(--loading-height));
    left: 0px;
    height: var(--loading-height);
    animation: gradientAnimation 3s ease infinite;
    background-image: linear-gradient(120deg, #fcc3f3 0%, rgba(64, 150, 255, 0.9) 100%);
    transition: 0.3s;
    background-size: 400% 400%;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

//layout.content.message.index.tsx
.message-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    padding: 0px 10px;
    height: 20px;
    border-radius: 20px;
    transition: 0.3s;
    background-color: #FFFFFF;
    width: fit-content;

    &.success {
        background-color: #52c41a;
    }

    &.error {
        background-color: #ff4d4f;
    }

    &.warning {
        background-color: #faad14;
    }

    &.primary {
        background-color: #1677ff;
    }

    .message-text {
        font-size: 8px;
        color: #FFFFFF;
        letter-spacing: 0.04em;
        font-weight: bold;
        flex-shrink: 0;
        overflow: hidden;
        white-space: nowrap;
        transition: 0.3s;
        width: 100%;
    }
}

//layout.content.index.tsx
.content-container {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: relative;
    height: 100vh;
    background-color: #FFFFFF;
    margin-left: 10px;
    transition: 0.3s;
    box-shadow: -10px 0px 10px rgba(0, 0, 0, 0.1);
    z-index: 0;

    .content-content {
        display: flex;
        flex-direction: column;
    }
}

//layout.menus.index.tsx
.menus-container {
    :root {
        --menus-width: 70px;
    }

    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: var(--menus-width);
    height: 100vh;
    background-color: #FFFFFF;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    z-index: 1;

    &.show-animation {
        animation: menus-show 0.3s;
    }

    &.close-animation {
        animation: menus-close 0.3s;
    }

    @keyframes menus-show {
        from {
            position: absolute;
            left: calc(0px - var(--menus-width));
        }

        to {
            position: absolute;
            left: 0px;
        }
    }

    @keyframes menus-close {
        from {
            position: absolute;
            left: 0px;
        }

        to {
            position: absolute;
            left: calc(0px - var(--menus-width));
        }
    }

    .menus-switch-button {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: -10px;
        bottom: 0px;
        width: 10px;
        height: 50px;
        background-color: #FFFFFF;
        border-radius: 0px 10px 10px 0px;
        box-shadow: 5px 0px 5px rgba(0, 0, 0, 0.1);
        transition: 0.3s;

        .arrow-left-icon {
            width: 12px;
            height: 12px;
            transition: 0.3s;
        }
    }

    .layout-info-box {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        position: absolute;
        z-index: 10;
        top: 0px;
        left: 0px;
        width: var(--menus-width);
        height: 30px;
        background: linear-gradient(#FFFFFF 80%, transparent);

        .layout-name {
            font-size: 10px;
            font-weight: bold;
            letter-spacing: 0.1em;
            color: #111111;
            opacity: 0.8;
        }
    }

    .menus-list-box {
        display: flex;
        flex-direction: column;
        position: relative;
        z-index: 0;
        width: var(--menus-width);
        height: 100vh;

        .menus-list-content {
            display: flex;
            flex-direction: column;
            width: var(--menus-width);
            height: fit-content;

            .menus-item {
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: center;
                position: relative;
                width: var(--menus-width);
                height: 30px;
                transition: 0.3s;

                &:first-child {
                    .bottom-limit {
                        opacity: 0;
                    }
                }

                &:last-child {
                    .bottom-limit {
                        opacity: 0;
                    }
                }

                &.checked {
                    background-color: #f9f9f9;

                    .menus-name {
                        font-weight: bold;
                        color: #000000;
                    }

                    .bottom-limit {
                        color: rgba(64, 150, 255, 0.1);
                    }
                }

                .menus-name {
                    font-size: 8px;
                    color: #111111;
                    font-weight: 400;
                    letter-spacing: 0.04em;
                }

                .bottom-limit {
                    position: absolute;
                    bottom: 0px;
                    height: 0px;
                    width: calc(var(--menus-width) * 0.7);
                    border: none;
                    border-bottom: 1px solid rgba(200, 200, 200, 0.1);
                }
            }

        }
    }
}