﻿@font-face {
    font-family: 'Roboto';
    font-weight: 100;
    font-style: normal;
    src: url('./fonts/Roboto-Thin.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    font-weight: 100;
    font-style: italic;
    src: url('./fonts/Roboto-ThinItalic.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    font-weight: 300;
    font-style: normal;
    src: url('./fonts/Roboto-Light.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    font-weight: 300;
    font-style: italic;
    src: url('./fonts/Roboto-LightItalic.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    font-weight: 400;
    font-style: normal;
    src: url('./fonts/Roboto-Regular.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    font-weight: 400;
    font-style: italic;
    src: url('./fonts/Roboto-Italic.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    font-weight: 500;
    font-style: normal;
    src: url('./fonts/Roboto-Medium.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    font-weight: 500;
    font-style: italic;
    src: url('./fonts/Roboto-MediumItalic.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    font-weight: 700;
    font-style: normal;
    src: url('./fonts/Roboto-Bold.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    font-weight: 700;
    font-style: italic;
    src: url('./fonts/Roboto-BoldItalic.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    font-weight: 900;
    font-style: normal;
    src: url('./fonts/Roboto-Black.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    font-weight: 900;
    font-style: italic;
    src: url('./fonts/Roboto-BlackItalic.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    font-weight: 900;
    font-style: italic;
    src: url('./fonts/Montserrat-Bold.ttf') format('truetype');
    font-display: swap;
}

body {
    display: flex;
    flex-direction: row;
    height: 100vh;
    width: 100vw;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-family: Roboto;
    overflow: hidden;
}

header {
    width: 100%;
    height: 10%;
    background-color: rgba(46,46,46,1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    z-index: 1000;
}

.finder {
    position: relative;
    display: flex;
    align-items: center;
    width: 20rem;
}

    .finder i {
        position: absolute;
        left: 10px;
        font-size: 1rem;
        color: #666;
    }

    .finder input {
        height: 40px;
        width: 95%;
        padding: 0.5rem 1rem;
        padding-left: 2.5rem;
        border: 1px solid #ccc;
        border-radius: 10px;
        font-size: 1rem;
    }

.main-window {
    margin-top: 8rem;
    flex: 0 0 95rem;
    max-width: 85rem;
    height: 90%;
    display: flex;
    flex-direction: row;
    position: fixed;
}

@media screen and (max-width: 1200px) {
    .main-window {
        flex: 0 0 100vw;
    }
}

@media(max-width: 1000px) {
    .finder {
        width: 30rem;
    }

        .finder input {
            height: 40px;
        }
}

#menu {
    flex: 0 0 20rem;
    border-right: 1px solid #ddd;
    font-size: 15px;
    height: 100%;
}

.unauthorized {
    font-size: 2rem;
    font-weight: 500;
    color: #888;
}

    .unauthorized:before {
        font-family: "Font Awesome 6 Free";
        content: "\f05e";
        font-weight: 900;
        font-size: 5rem;
        color: #dc4636;
        display: block;
        text-align: center;
        margin-bottom: 1rem;
    }

.logo {
    margin-left: 200px;
    background-image: url(./imgs/product_logo_c.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: .75rem;
    height: 2rem;
}

    .logo:after {
        content: "Easy Desk - Docs";
        font-family: Montserrat;
        font-weight: 900;
        display: inline-block;
        color: white;
        margin: .4rem 0 0 3.25rem;
    }

#menu ul {
    list-style-type: none;
    padding-inline-start: 1rem;
    overflow: auto;
    user-select: none;
    height: calc(100% - 5.3rem);
    margin: .25rem 0 0 0;
}

#menu > ul {
    margin: 1rem 0 0 0;
    scroll-behavior: smooth;
}

#menu li.collapsed > ul {
    height: 0;
    margin: 0;
}

#menu ul > li {
    padding: .5rem 0;
    pointer-events: none;
}

    #menu ul > li.error {
        font-size: .8rem;
        font-style: italic;
        color: #888;
    }

    #menu ul > li > * {
        vertical-align: top;
    }

    #menu ul > li:before {
        font-family: "Font Awesome 6 Free";
        content: "\f04b";
        font-weight: 900;
        font-size: .6rem;
        margin-top: .1rem;
        color: transparent;
        width: 1.1rem;
        height: .9rem;
        padding-top: .2rem;
        display: inline-block;
        text-align: center;
        overflow: hidden;
        pointer-events: all;
    }

    #menu ul > li.has-children:before {
        color: #A5A5A5;
        cursor: pointer;
        transition: transform .2s;
    }

    #menu ul > li:not(.collapsed):before {
        transform: rotate(90deg);
    }

    #menu ul > li > span {
        text-decoration: none;
        color: #2B2B2B;
        margin-left: .3rem;
        pointer-events: all;
        cursor: pointer;
    }

        #menu ul > li > span:hover, #menu ul > li > span:active {
            color: #48B044;
        }

    #menu ul > li.selected > span {
        font-weight: 500;
        text-decoration: underline;
        color: rgba(94,183,66,1);
        pointer-events: none;
    }


#content {
    width: 1000px;
    flex: 1;
    display: flex;
    flex-direction: column;
    height: calc(100% - 2rem);
}

#contentFrame {
    width: 1000px;
    height: 100%;
    border: none;
}

@media screen and (max-width: 1400px) {
    #contentFrame {
        width: 800px
    }

    #content {
        width: 800px
    }

    header {
        justify-content: space-between;
        margin-left: 3rem;
    }

    .logo {
        margin-left: 100px;
    }
    .circle-gradient {
        top: -130px;
        right: -230px;
    }
}

@media screen and (max-width: 1100px) {
    #contentFrame {
        width: 600px
    }

    #content {
        width: 600px
    }
}

#path {
    font-size: .8rem;
    margin: .5rem 3.6rem;
    color: #48B044;
}

    #path .fa-angles-right {
        font-size: .7rem;
        margin: 0 .5rem;
    }

    #path span[onclick] {
        color: #48B044;
        border-bottom: 1px solid #48B044;
        cursor: pointer;
    }

        #path span[onclick]:hover {
            color: #48B044;
            border-bottom: 1px solid #48B044;
        }

#title {
    font-size: 3rem;
    font-weight: 500;
    margin: 1rem 3.6rem .5rem 3.6rem;
    color: #464646;
}

#description {
    font-size: .9rem;
    margin: 0 3.6rem;
    color: #666;
}

#update {
    font-size: .8rem;
    margin: 1rem 3.6rem;
    color: #444;
}

.empty-topic-subitems {
    width: 100%;
    height: 100%;
    overflow: auto;
    margin: 0 .5rem;
}

.empty-topic-subitem {
    margin: .5rem 3.6rem;
    display: flex;
    flex-direction: column;
    font-size: .9rem;
    font-weight: 400;
    color: rgb(53 118 170);
    margin-top: 1rem;
    transition: color .3s;
}

    .empty-topic-subitem > span:nth-child(2) {
        font-size: .7rem;
        color: #999;
        font-weight: 300;
        margin-top: .3rem;
        margin-left: 1rem;
    }

    .empty-topic-subitem > span:nth-child(1) > span:hover {
        color: rgb(32 144 234);
        cursor: pointer;
    }

    .empty-topic-subitem > span:nth-child(1):before {
        font-family: "Font Awesome 6 Free";
        content: "\f02d";
        font-weight: 900;
        font-size: .7rem;
        margin-right: .3rem;
        color: #666;
    }


.search-results {
    position: absolute;
    top: 45px;
    min-width: 25vw;
    height: max-content;
    max-height: 50vh;
    border: .1rem solid #ddd;
    box-shadow: rgba(0,0,0,0.3) .1rem .1rem .4rem;
    border-radius: .5rem;
    background: #fff;
    opacity: 0;
    pointer-events: none;
    padding: 1rem;
    z-index: 2;
    overflow-y: auto;
}

    .search-results.visible {
        opacity: 1;
        pointer-events: all;
    }

    .search-results:empty {
        opacity: 0;
        pointer-events: none;
    }

    .search-results > ul {
        padding: 0 !important;
    }

        .search-results > ul > li:before {
            display: none !important;
        }

        .search-results > ul > li.invalid > span {
            font-size: .8rem;
            font-style: italic;
            color: #888 !important;
            pointer-events: none !important;
        }

    .search-results pre {
        display: block;
        font-family: Roboto;
        font-size: .7rem;
        margin: 0;
        padding: 0 0 0 .4rem;
        color: #999;
    }


.lang-icon {
    margin-right: 100px;
    position: relative;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    display: inline-block;
    font-size: 1rem;
}

.floating-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0.25rem;
    z-index: 1000;
}

.menu-options {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .menu-options li {
        padding: 0.5rem 1rem;
        cursor: pointer;
        display: flex;
        align-items: center;
    }

        .menu-options li:hover {
            background-color: #48B044;
        }

.manual-icon {
    width: 24px;
    height: 24px;
    background-size: cover;
    background-position: center;
    display: inline-block;
    margin-right: 0.5rem;
}

.menu-options li span[lang="header_lang_ptbr"],
.menu-options li span[lang="header_lang_enus"] {
    font-size: 0.85rem;
}


#curLang i {
    font-size: 0.5rem;
    color: white;
    margin-left: 2rem;
    transition: transform 0.3s ease;
    transform: rotate(90deg);
}


.rotate {
    transform: rotate(270deg);
}

.circle-gradient {
    position: absolute;
    top: -120px;
    right: -180px;
    width: 300px; /* Ajuste conforme necessário */
    height: 300px; /* Ajuste conforme necessário */
    z-index: -1; /* Certifique-se de que fique por trás do conteúdo */
    pointer-events: none; /* Para evitar que o círculo interfira nos cliques */
}

    .circle-gradient img {
        width: 200px; /* Ajuste conforme necessário */
        height: 200px;
    }

@media (max-width: 1200px) {
    .circle-gradient {
        display: none;
    }
}

.circle-gradient2 {
    position: absolute;
    bottom: -240px;
    left: -110px;
    width: 300px; /* Ajuste conforme necessário */
    height: 300px; /* Ajuste conforme necessário */
    z-index: -1; /* Certifique-se de que fique por trás do conteúdo */
    pointer-events: none; /* Para evitar que o círculo interfira nos cliques */
}

    .circle-gradient2 img {
        width: 200px; /* Ajuste conforme necessário */
        height: 200px;
    }

.content-time {
    margin-top: -20px;
    margin-bottom: -10px;
    display: grid;
    grid-template-columns: 70% 30%; /* Definir o layout com duas colunas */
    align-items: center;
    padding-bottom: 1rem;
}

#description {
    grid-column: 1; /* O texto ocupa a primeira coluna */
}

#update {
    grid-column: 2; /* A data ocupa a segunda coluna */
    text-align: right;
}

.divider {
    width: 90%;
    height: 1px;
    background-color: #ddd;
    margin-left: 3.5rem;
}

@media (max-height: 800px) {
    .circle-gradient {
        top: -140px;
        right: -200px;
    }

    circle-gradient2 {
        display: none;
    }

    .circle-gradient2 img {
        display: none;
    }
}
