﻿/* Componentes da Barra de Navegação */

.nav {
    height: max-content;
    background-image: linear-gradient(90deg, #5383b1, #1f3d59);
    padding-inline: 30px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.navbar-nav {
    place-content: center;
}

    .navbar-nav .nav-link {
        text-align: center;
    }

    .navbar-nav ul {
        margin-bottom: 0px !important;
    }

    .navbar-nav a {
        text-decoration: none !important;
    }

.logged-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: center;
}

.fa-user-circle {
    color: white;
    font-size: 24px;
}

.text-header {
    color: white;
    font-size: 12px;
}

.navbar-nav li {
    display: flex;
    flex-direction: column;
    text-align: center;
    font-size: 14px;
    width: 120px;
    border-radius: 5px;
    margin: 0px;
    color: white;
    transition: 0.5s;
}

    .navbar-nav li:hover {
        background-color: #5383b1;
        color: white;
        transition: 0.5s;
    }

    .navbar-nav li > a, li > a:hover {
        color: white;
        font-size: 15px;
        text-decoration: none;
    }

    .navbar-nav li > p {
        padding-block: 5px 0px;
        font-size: 12px;
        font-family: Arial, Helvetica, sans-serif;
        margin: 0px;
    }

.navbar-nav .nav-item {
    padding-block: 19px;
}

.text-header {
    font-family: Arial, Helvetica, sans-serif;
}

nav > a, nav > a:hover {
    text-decoration: none;
}

.icon-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    width: 25px;
    height: 25px;
    border: 1px solid white;
    border-radius: 100px;
    color: white;
}

.nav-bar-menu {
    position: absolute;
    right: 4%;
    text-decoration: none;
}

/*Barra de navegação - Desktop*/

@media screen and (min-width: 851px) {
    .nav-bar-menu:hover {
        text-decoration: none;
    }

    .nav-bar-menu > i {
        font-size: x-large;
        color: white;
        display: none;
    }

    .navbar-nav .nav-item {
        text-align: center;
    }
}

/*Barra de navegação - Mobile*/

@media screen and (max-width: 850px) {
    ul {
        display: none;
    }

    nav > .logged-user {
        display: none;
    }

    .nav-bar-menu > i {
        font-size: x-large;
        color: white;
        display: flex;
    }

    .navbar-nav li {
        display: table-row;
        text-align: left;
    }

    .navbar-light .navbar-toggler {
        color: white;
        border-color: white;
        background-color: white;
    }

    .navbar-nav .nav-item {
        padding-block: 1px;
        text-align: center;
    }

    .navbar-nav {
        text-align-last: center;
    }

        .navbar-nav .nav-link {
            margin-bottom: 10px;
        }

    .offcanvas-body {
        background-image: linear-gradient(90deg, #5383b1, #1f3d59);
    }
}

.navbar-nav li span {
    color: black;
}

/* Barra lateral */

.sidenav {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    right: 0;
    background-color: #5383b1;
    overflow-x: hidden;
    padding-top: 100px;
    transition: 0.5s;
    box-shadow: 0 0 0.5em rgb(0, 0, 0);
}

    .sidenav .text-icon {
        display: flex;
        text-align: center;
        align-items: center;
        justify-content: center;
        width: 205px;
        padding-block: 8px;
        text-decoration: none;
        font-size: 16px;
        color: #c2ccd6;
    }

    .sidenav a:hover {
        background-color: white;
        color: #1f3d59;
        transition-duration: 0.75s;
    }

    .sidenav .closebtn {
        position: absolute;
        top: 0px;
        font-size: 36px;
        color: white;
    }

        .sidenav .closebtn:hover {
            background-color: transparent;
            color: #1f3d59
        }

.text-icon {
    display: flex;
    margin: 0px;
    font-size: 12px;
    text-decoration: none;
    text-align: center;
    align-self: center;
    border: 1px solid white;
    margin-bottom: 20px;
    border-radius: 10px;
    width: max-content;
}

.icon-login {
    display: flex;
    flex-direction: row-reverse;
}

.text-icon:hover {
    color: #1f3d59;
}

.text-menu {
    margin: 2px 0px 0px 10px;
    align-items: center;
}

@media screen and (max-height: 450px) {
    .sidenav {
        padding-top: 15px;
    }

        .sidenav a {
            font-size: 18px;
        }
}

.text-header {
    margin: 0px 10px 0px 0px;
}

/*ul > a {
    height: 200px;
}*/

footer {
    width: 100%;
    margin: 0px;
}

.footer-text {
    font-size: 12px;
    text-align: center;
    padding: 15px;
    user-select: none;
    color: black;
}

/* Modal e Snackbar para notificação de carregamentos e buscas */

.modal-content {
    text-align: center;
}

    .modal-content div {
        text-align: center;
        margin-top: 8px;
    }

#snackbar {
    visibility: hidden;
    color: white;
    border-radius: 10px;
    padding: 10px 60px;
    width: max-content;
    position: fixed;
    bottom: 30px;
    left: 40%;
    font-size: 15px;
    font-family: Arial, Helvetica, sans-serif;
    z-index: 5;
}

.show {
    visibility: visible !important;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    -moz-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    -o-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    display: none;
    background-color: rgba(0,0,0,.5);
}

    #loading .loader {
        position: relative;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
    }

#load {
    position: absolute;
    width: 600px;
    height: 36px;
    left: 50%;
    top: 40%;
    margin-left: -300px;
    overflow: visible;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
}

    #load div {
        position: absolute;
        width: 20px;
        height: 36px;
        opacity: 0;
        font-size: 30px;
        font-family: Helvetica, Arial, sans-serif;
        animation: move 2s linear infinite;
        -o-animation: move 2s linear infinite;
        -moz-animation: move 2s linear infinite;
        -webkit-animation: move 2s linear infinite;
        transform: rotate(180deg);
        -o-transform: rotate(180deg);
        -moz-transform: rotate(180deg);
        -webkit-transform: rotate(180deg);
        color: #35C4F0;
    }

        #load div:nth-child(2) {
            animation-delay: 0.2s;
            -o-animation-delay: 0.2s;
            -moz-animation-delay: 0.2s;
            -webkit-animation-delay: 0.2s;
        }

        #load div:nth-child(3) {
            animation-delay: 0.4s;
            -o-animation-delay: 0.4s;
            -webkit-animation-delay: 0.4s;
            -webkit-animation-delay: 0.4s;
        }

        #load div:nth-child(4) {
            animation-delay: 0.6s;
            -o-animation-delay: 0.6s;
            -moz-animation-delay: 0.6s;
            -webkit-animation-delay: 0.6s;
        }

        #load div:nth-child(5) {
            animation-delay: 0.8s;
            -o-animation-delay: 0.8s;
            -moz-animation-delay: 0.8s;
            -webkit-animation-delay: 0.8s;
        }

        #load div:nth-child(6) {
            animation-delay: 1s;
            -o-animation-delay: 1s;
            -moz-animation-delay: 1s;
            -webkit-animation-delay: 1s;
        }

        #load div:nth-child(7) {
            animation-delay: 1.2s;
            -o-animation-delay: 1.2s;
            -moz-animation-delay: 1.2s;
            -webkit-animation-delay: 1.2s;
        }

@keyframes move {
    0% {
        left: 0;
        opacity: 0;
    }

    35% {
        left: 41%;
        -moz-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
        opacity: 1;
    }

    65% {
        left: 59%;
        -moz-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
        opacity: 1;
    }

    100% {
        left: 100%;
        -moz-transform: rotate(-180deg);
        -webkit-transform: rotate(-180deg);
        -o-transform: rotate(-180deg);
        transform: rotate(-180deg);
        opacity: 0;
    }
}

@-moz-keyframes move {
    0% {
        left: 0;
        opacity: 0;
    }

    35% {
        left: 41%;
        -moz-transform: rotate(0deg);
        transform: rotate(0deg);
        opacity: 1;
    }

    65% {
        left: 59%;
        -moz-transform: rotate(0deg);
        transform: rotate(0deg);
        opacity: 1;
    }

    100% {
        left: 100%;
        -moz-transform: rotate(-180deg);
        transform: rotate(-180deg);
        opacity: 0;
    }
}

@-webkit-keyframes move {
    0% {
        left: 0;
        opacity: 0;
    }

    35% {
        left: 41%;
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
        opacity: 1;
    }

    65% {
        left: 59%;
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
        opacity: 1;
    }

    100% {
        left: 100%;
        -webkit-transform: rotate(-180deg);
        transform: rotate(-180deg);
        opacity: 0;
    }
}

@-o-keyframes move {
    0% {
        left: 0;
        opacity: 0;
    }

    35% {
        left: 41%;
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
        opacity: 1;
    }

    65% {
        left: 59%;
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
        opacity: 1;
    }

    100% {
        left: 100%;
        -o-transform: rotate(-180deg);
        transform: rotate(-180deg);
        opacity: 0;
    }
}


/* Loading */

.swal-title {
    font-size: 2.5rem !important;
}

.swal-text {
    font-size: 2rem !important;
    text-align: center;
}

html::-webkit-scrollbar {
    width: 1rem;
}

html::-webkit-scrollbar-track {
    background: transparent;
}

html::-webkit-scrollbar-thumb {
    background: #e2e1e1;
}

.loader {
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    width: 120px;
    height: 120px;
    -webkit-animation: spin 2s linear infinite; /* Safari */
    animation: spin 2s linear infinite;
}

/* Safari */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
