@import url('../fonts/vazirmatn.css');

:root {
    --color-app-bg-one: #f5f5f5;
    --app-color-primary: #35c10f;
    --app-color-primary: #1e8d00;
    --app-color-primary-dark: #186d00;
}

* {
    font-family: Vazirmatn !important;
}

body {
    background-color: var(--color-app-bg-one);
    max-width: 1200px;
    margin: auto;
    color: #555;
    padding: 0 1rem 1rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    margin-bottom: 1rem;
    border-radius: 0 0 0.25rem 0.25rem;
    background-color: #fff;
    box-shadow: #0000003d 0px 3px 8px;
}

header .logo a {
    line-height: 0;
    text-decoration: none;
}

header .logo img {
    width: 45px;
}

header .header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--app-color-primary);
    font-size: 0.75rem;
    font-weight: 900;
    border: none;
    background-color: #fff;
}

header .header-btn i {
    display: block;
    font-size: 1.4rem;
    font-weight: 900;
}

.layout-secondary header {
    padding: 1.2rem 2rem;
}

#container {
    display: block;
}

#container nav {
    margin-bottom: 1rem;
    padding: 0 2rem;
    border-radius: 0.25rem;
    background-color: #fff;
    box-shadow: #0000003d 0px 3px 8px;
}

#container .nav-container {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
}

#container .nav-container a {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    font-style: normal;
    text-decoration: none;
    text-align: center;
    padding: 1rem;
    color: #777;
    background-color: #fff;
}

#container .nav-container a i {
    margin-left: 0.5rem;
    margin-top: -0.35rem;
}

#container .nav-container .item.active a {
    color: #fff;
    background-color: var(--app-color-primary);
}

#container #content {
    width: 100%;
    background-color: transparent;
}

@media screen and (max-width: 992px)
{
    body {
        padding: 0;
    }

    .layout-primary header {
        padding: 0.5rem 1rem;
        border-radius: 0;
    }

    .layout-secondary header {
        padding: 1.2rem 1rem;
        border-radius: 0;
    }

    #container {
        display: flex;
        justify-content: flex-start;
        align-items: stretch;
    }

    #container nav {
        box-shadow: none;
        min-height: calc(100vh - 90px);
        max-width: 95px;
        padding: 0;
        padding-right: 0.5rem;
        margin-bottom: 0;
        border-radius: 0;
        background-color: transparent;
    }

    #container .nav-container.sticky {
        display: block;
        position: sticky;
        top: 1rem;
    }

    #container .nav-container .item {
        margin-bottom: 0.5rem;
    }

    #container .nav-container a {
        flex-direction: column;
        min-height: 70px;
        font-size: 0.7rem;
        padding: 0.5rem 0.75rem;
        border-radius: 0.25rem;
        background-color: #fff;
        box-shadow: #0000003d 0px 3px 8px;
    }

    #container .nav-container a i {
        margin: 0 0 0.5rem;
        font-size: 1.1rem;
    }

    #container #content {
        padding: 0 0.75rem 1rem 0.75rem;
    }
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000aa;
    z-index: 14;
}

#sidebar {
    display: block;
    position: fixed;
    top: 0;
    left: -200%;
    z-index: 19;
    width: 360px;
    height: 100%;
    padding: 0.5rem;
    background-color: #fff;
    box-shadow: #0000003d 0px 3px 8px;
    transition: 0.5s;
}

#sidebar .stick-bottom {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: fit-content;
    padding: 0.5rem;
}

@media screen and (max-width: 576px)
{
    #sidebar {
        width: 100%;
    }
}

#sidebar.visible {
    left: 0;
}

.bottom-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00000099;
    opacity: 0.2s;
}

.bottom-panel .content {
    display: block;
    position: absolute;
    bottom: -200%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 576px;
    height: 45vh;
    background-color: #fff;
    padding: 0 1rem;
    overflow-y: auto;
    border-radius: 1.5rem 1.5rem 0 0;
    transition: 0.5s;
}

.bottom-panel.active {
    opacity: 1;
}

.bottom-panel.active .content {
    bottom: 0;
}


#install-prompt {
    display: block;
    position: fixed;
    left: 0;
    bottom: -200%;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 21;
    transition: 0.5s;
}

#install-prompt.active {
    bottom: 0;
}

#install-prompt .wrapper {
    display: block;
    max-width: 420px;
    margin: 0 auto;
    padding: 1rem;
}

#install-prompt img {
    display: block;
    width: 70px;
    margin: 0 auto 1.5rem;
}

#install-prompt .title {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

#install-prompt hr {
    display: block;
    width: 100px;
    border: none;
    border-top: 5px solid #349819;
    margin: 1rem auto 2.5rem;
    opacity: 1;
}

#install-prompt .step {
    color: #555;
    text-align: justify;
    font-size: 1rem;
}

#install-prompt .step:not(:last-child) {
    margin-bottom: 1.5rem;
}

#install-prompt .step-mark {
    padding: 0 0.5rem;
    border-radius: 0.25rem;
    background-color: #349819;
    color: #fff;
    white-space: nowrap;
}

#install-prompt button {
    display: block;
    width: 100%;
    margin-top: 2.5rem;
    padding: 0.5rem;
    border-radius: 0.25rem;
    border: none;
    background-color: #349819;
    color: #fff;
}

.print-container {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 999999 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background-color: #fff !important;
    overflow-y: auto !important;
    font-size: 90% !important;
}

.print-container .hide-in-print {
    display: none !important;
}
