#frame {
    background: var(--primary-dark);
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
}

#page {
    width: 100%;
    height: calc(100% - 60px);
    padding: 4px;
    position: relative;
}

#page > .content {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background-color: white;
    overflow: hidden;
}

#page > .content > iframe {
    width: 100%;
    height: 100%;
}

#navbar {
    background: var(--primary-dark);
    height: 60px;
    width: 100%;
    overflow: hidden;
    transition: height 0.35s ease;
}

#navbar.open {
    height: 280px;
}

#navbar > .header {
    height: 60px;
    padding: 22px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#navbar > .header .logo {
    height: 35px;
    width: auto;
}

#navbar > .header .menu {
    height: 24px;
    width: 24px;
    color: white;
    cursor: pointer;
}

#navbar .linha {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 16px;
}

#navbar .item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 16px;
    width: 100px;
    height: 75px;
    cursor: pointer;
    font-size: 16px;
    color: var(--primary-contrast);
}

#navbar .item img {
    height: 45px;
    width: auto;
}

#navbar .item:hover, #navbar .item.active {
    background-color: var(--primary-medium);
}

#sidebar {
    background: var(--primary-dark);
    position: relative;
    height: 100%;
    min-width: 200px;
    max-width: 200px;
    margin-left: -200px;
    transition: margin-left 0.35s ease;
}

#sidebar.open {
    margin-left: 0px;
}

#sidebar > .side-button {
    position: absolute;
    top: 45px;
    right: -30px;
    width: 30px;
    height: 30px;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 50%;
    border-top-right-radius: 50%;
    background: var(--primary-pure);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
}

#sidebar > .side-button.change {
    right: -15px;
    border-radius: 50%;
    transform: rotate(180deg);
}

#sidebar > .header {
    padding: 16px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#sidebar > .header > .logo {
    height: 35px;
    width: auto;
    max-width: 100%;
}

#sidebar > .content {
    overflow: auto;
    height: calc(100% - 70px);
}

#sidebar .linha {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 16px;
}

#sidebar .item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 16px;
    width: 100px;
    height: 75px;
    cursor: pointer;
    font-size: 16px;
    color: var(--primary-contrast);
}

#sidebar .item img {
    height: 45px;
    width: auto;
}

#sidebar .item:hover, #sidebar .item.active {
    background-color: var(--primary-medium);
}

@media (max-width: 767px) {
    #sidebar {
        display: none;
        position: absolute;
    }

    #page.blocked {
        opacity: 0.3;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
}

@media (min-width: 768px) {
    #frame {
        display: flex;
    }

    #navbar {
        display: none !important;
    }

    #page {
        height: 100%;
    }
}
