﻿/* Sticky footer styles
-------------------------------------------------- */
@import './variables.css';

html {
    position: relative;
    min-height: 100%;
}

.navbar-light {
    background: var(--c-primary-dark);
    box-shadow: 0px -10px 18px 10px gray
}

.waitForLoadPage {
    position: fixed;
    z-index: 999;
    width: 100%;
    height: 100%;
    background: #2C0834;
}

    .waitForLoadPage img {
        margin: auto;
        width: 200px;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%,-50%)
    }

body {
    /* Margin bottom by footer height */
    margin-bottom: 60px;
}

.top-banner-box {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 10px
}

.lyt-top-box {
    display: grid;
    grid-template-columns: 240px 1fr;
    align-items: center
}

.lyt-top-label {
    color: var(--c-primary-text);
    font-size: 22px;
    margin-top: 50px;
    min-width: 180px;
}

.lyt-top-line-box {
    position: relative;
}

    .lyt-top-line-box span {
        position: absolute;
        right: 20px;
        top: 20px;
    }

        .lyt-top-line-box span img {
            max-width: 60px;
        }

.lyt-top-line {
    height: 2px;
    width: 100%;
    margin-top: 86px;
    margin-bottom: 16px;
    background: var(--c-primary);
    box-shadow: 0px 3px 4px 0px rgba(0,0,0,0.2)
}

.header-left-side {
    display: flex;
    grid-gap: 10px;
    align-items: center;
}

.header-left-side-home {
    display: flex;
    grid-gap: 10px;
}

.header-signautire-box {
    position: relative;
    font-size: 18px;
    font-weight: 600
}

.header-article-box {
    font-size: 18px;
    font-weight: 600;
    color: var(--c-secondary-text)
}

.header-img-box img {
    max-height: 60px;
}

.header-signautire-box img {
    max-height: 30px;
    position: absolute;
    bottom: 0
}

.header-user-box span {
    color: var(--c-primary-text)
}

    .header-user-box span:active {
        color: var(--c-primary-text);
    }

    .header-user-box span:hover {
        color: var(--c-primary-text)
    }

.app-body {
    display: grid;
    grid-template-columns: 80px 1fr;
}

.left-menu {
    background: var(--c-primary);
    min-height: calc(100vh - 136px);
    display: flex;
    flex-direction: column;
    grid-gap: 16px;
    padding-top: 40px;
    text-align: center;
}

    .left-menu * img {
        max-width: 46px;
        cursor: pointer;
        transition: all 0.2s ease;
    }



.mnu-button {
    position: relative;
    transition: all 0.2s ease
}

    .mnu-button:hover {
        background-color: var(--c-primary-dark);
    }

.sub-mnu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 80px;
    width: 200px;
    text-align: left;
    font-size: 16px;
    z-index: 99;
    background-color: var(--c-primary);
    border-left: 4px solid var(--c-primary-text);
    /*transition: all 0.2s ease;*/
}

    .sub-mnu > a {
        color: var(--c-primary-text);
        text-decoration: none;
        display: inline-block;
        width: 100%;
        padding: 4px;
        transition: all 0.2s ease;
        font-weight: 600;
        font-size: 14px
    }

        .sub-mnu > a:hover {
            background-color: var(--c-primary-dark);
        }

#mnu-books:hover #sub-mnu-books {
    visibility: visible;
    opacity: 1;
}

#mnu-tables:hover #sub-mnu-tables {
    visibility: visible;
    opacity: 1;
}

#mnu-users:hover #sub-mnu-users {
    visibility: visible;
    opacity: 1;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
    background: var(--c-primary-dark);
    box-shadow: 0px 10px 18px 10px gray
}

.footer-content {
    display: flex;
    justify-content: space-between
}

.footer-left-side img {
    max-width: 60px
}

.footer-left-side span {
    font-size: 14px;
    color: var(--c-secondary-text);
    font-weight: 600 !important;
}

.footer-right-side {
    font-weight: 500;
    font-size: 14px;
    color: var(--c-secondary-text);
    display: flex;
    gap: 20px;
}

    .footer-right-side span {
        margin-right: 30px;
    }

    .footer-right-side img {
        width: 81px;
        height: 52px;
        margin-bottom: 4px;
        margin-top: 4px;
    }

.footer-left-side span {
    font-size: 14px;
    color: var(--c-secondary-text);
    font-weight: 600 !important;
}

.header-right-box {
    display: flex;
    gap: 30px;
    align-items:center
}

.accountName {
    color: var(--c-secondary-text) !important;
}

.language-section {
    display: flex;
    flex-direction: column;
    grid-gap: 8px;
}

    .language-section img {
        width: 22px;
        height: 22px;
        margin-right: 6px;
        border-radius: 8px;
    }

    .language-section a {
        color: #727283;
    }

.setting-container {
    height: auto !important;
    background-color: #fffaff !important
}

.accountName {
    font-weight: 500;
}

.bg-setting-transparent {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    left: 0;
    top: 0
}

.setting-container {
    box-shadow: 2px 2px 6px 2px rgba(0,0,0,0.3);
    height: 100px;
    position: absolute;
    padding: 20px;
    right: 20px;
    top: 80px;
    z-index: 9999;
    background: #fff;
    display: none;
}

.theme-box {
    display: flex;
    grid-gap: 10px;
    justify-content: center
}

    .theme-box > div {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        cursor: pointer;
    }

.orange-theme-btn {
    border: 4px solid #fa9f5f;
    background: #fff
}

.blue-theme-btn {
    border: 4px solid #4895EF;
    background: #fffaff
}

.green-theme-btn {
    border: 4px solid #BAD7A8;
    background: #fffaff
}

.purple-theme-btn {
    border: 4px solid #EFD3D7;
    background: #fffaff
}

.theme-section {
    text-align: center;
}


@media only screen and (max-width: 780px) {
    .footer {
        position: absolute;
        bottom: 0;
        width: 100%;
        white-space: nowrap;
        line-height: 60px;
        background: var(--c-primary-dark);
        box-shadow: 0px 10px 18px 10px gray
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .footer-left-side img {
        max-width: 60px
    }

    .footer-left-side span {
        color: var(--c-secondary-text);
        font-weight: 500;
        font-size: 12px
    }

    .footer-right-side {
        font-weight: 600;
        font-size: 14px;
        color: var(--c-secondary-text);
        text-align: left;
        direction: rtl;
        margin-left: 0
    }
}

@media only screen and (max-width: 1200px) {
    .header-article-box span {
        font-size: 16px;
    }
}

@media only screen and (max-width: 1100px) {
    .header-article-box span {
        font-size: 15px;
    }
}

@media only screen and (max-width: 1000px) {
    .header-article-box span {
        font-size: 13px;
    }
}

@media only screen and (max-width: 900px) {
    .header-article-box span {
        font-size: 12px;
        text-align: center;
    }

    .header-right-box {
        margin-left: 20px;
    }
}

@media only screen and (max-width: 710px) {
    .header-article-box span {
        font-size: 11px;
    }

    .header-right-box {
        flex-direction: column;
        grid-gap: 0 !important;
    }

    .top-banner-box {
        padding-right: 0 !important;
    }
}
