@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root{
    --color-primary: #49ea8c;
    --color-danger: #ff7782;
    --color-success: #41f1b6;
    --color-warning: #ffbb55;
    --color-white: #fff;
    --color-info-light: #dce1eb;
    --color-info-dark: #7d8da1;
    --color-dark: #363949;
    --color-light: rgba(132, 139, 200, 0.18);
    --color-light-button: rgba(120, 159, 106, 0.119);
    --color-primary-variant: #118847;
    --color-dark-variant: #677483;
    --color-background: #f6f6f9;

    --card-border-radius: 2rem;
    --border-radius-1: 0.4rem;
    --border-radius-2: 0.8rem;
    --border-radius-3: 1.2rem;
    
    --card-padding: 1.8rem;
    --padding-1: 1.2rem;

    --box-shadow: 0.2rem 1.3rem var(--color-light);
}
/* Dark theme variables */
.dark-theme-variables{
    --color-background: #181a1e;
    --color-white: #202528;
    --color-dark: #edeffd;
    --color-dark-variant: #a3bdcc;
    --color-light: rgba(0,0,0,0.4);
    --box-shadow: 0 2rem 3rem var(--color-light);
}

* {
    margin:0;
    padding: 0;
    outline: 0;
    appearance: none;
    border: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}

html {
    font-size: 14px;
}

body{
    width: 100vw;
    height: 100%;
    font-family: poppins, sans-serif;
    font-size: 0.88rem;
    background: var(--color-background);
    user-select: none;
    overflow-x: hidden;
}

a {
    color: var(--color-dark);
    text-decoration: none;
}

img {
    display: block;
    width: 100%;
}

h1 {
    font-weight: 800;
    font-size: 1.8rem;
}
h2 {
    font-size: 1.4rem;
}
h3 {
    font-size: 0.87rem;
}
h4 {
    font-size: 0.8rem;
}
h5 {
    font-size: 0.77rem;
}
small {
    font-size: 0.75rem;
}
.profile-photo {
    width: 3.8rem;
    height: 2.8rem;
    border-radius: 50%;
    overflow: hidden;
}

.text-muted {
    color: var(--color-info-dark);
}
p {
    color: var(--color-dark-variant);
}
b {
    color: var(--color-dark);
}
.primary{
    color: var(--color-primary);
}
.danger{
    color: var(--color-danger);
}
.warning{
    color: var(--color-warning);
}
.success{
    color: var(--color-success);
}
.normal-text{
    color: var(--color-dark-variant);
}
.center-text{
    text-align: center;
}
.container {
    display: grid;
    width: 96%;
    margin: 0 auto;
    margin-left: 0;
    gap: 1.8rem;
    grid-template-columns: 14rem auto 23rem ;
}
/* Sidebar */
aside {
    display: block;
    height: 100vh;
}

aside .top{
    /*background: white;*/
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.4rem;
}
aside .logo {
    display: flex;
    gap: 0.8rem;
}
aside .logo img{
    width: 2rem;
    height: 2rem;
}
aside .close{
    display: none;
}
aside .sidebar{
    background: var(--color-white);
    display: flex;
    flex-direction: column;
    height: 82.8vh;
    position: relative;
    top: 3rem;
}
aside h3{
    font-weight: 500;
}
aside .sidebar a{
    display: flex;
    color: var(--color-info-dark);
    margin-left: 2rem;
    gap: 1rem;
    align-items: center;
    position: relative;
    height: 3.7rem;
    transition: all 300ms ease;
}
aside .sidebar a span{
    font-size: 1.6rem;
    transition: all 300ms ease;
}
aside .sidebar a:last-child{
    position: absolute;
    bottom: 2rem;
    width: 100%;
}
aside .sidebar a.active{
    background: var(--color-light-button);
    color: var(--color-primary);
    margin-left: 0;
}
aside .sidebar a.active:before{
    content: ' ';
    width: 6px;
    height: 100%;
    background: var(--color-primary);
}
aside .sidebar a.active span{
    color: var(--color-primary);
    margin-left: calc(1rem - 6px);/*1rem - 6px*/
}
aside .sidebar a:hover{
    color: var(--color-primary);
}
aside .sidebar a:hover span{
    margin-left: 1rem;
}
aside .sidebar .message-count{
    background: var(--color-danger);
    color: var(--color-white);
    padding: 2px 10px;
    font-size: 11px;
    border-radius: var(--border-radius-1);
}
/* Main */
main{
    margin-top: 1.4rem;
}
main .date{
    display: inline-block;
    background: var(--color-light);
    border-radius: var(--border-radius-1);
    margin-top: 1rem;
    padding: 0.5rem 1.6rem;
}
main .date input[type='date']{
    background: transparent;
    color: var(--color-dark);
}
main .insights{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
}
main .insights > div{
    background: var(--color-white);
    padding: var(--card-padding);
    border-radius: var(--card-border-radius);
    margin-top: 1rem;
    box-shadow: none;
    transition: all 300ms ease;
}

main .insights > div:hover{
    box-shadow: var(--box-shadow);
}
main .insights > div span{
    background: var(--color-primary);
    padding: 0.5rem;
    border-radius: 50%;
    color: var(--color-white);
    font-size: 2rem;
}
main .insights > div.expenses span {
    background: var(--color-danger);
}
main .insights > div.income span{
    background: var(--color-success);
}
main .insights > div .middle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
main .insights h3 {
    margin: 1rem 0 0.6rem;
    font-size: 1rem;
}
main .insights .progress{
    position: relative;
    width: 92px;
    height: 92px;
    border-radius: 50%;
}
main .insights svg {
    width: 7rem;
    height: 7rem;
}
main .insights svg circle {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 14;
    stroke-linecap: round;
    transform: translate(5px, 5px);
    stroke-dasharray: 110;
    stroke-dashoffset: 92;
}
main .insights .sales svg circle {
    stroke-dashoffset: -30;
    stroke-dasharray: 200;
}
main .insights .expenses svg circle {
    stroke-dashoffset: 20;
    stroke-dasharray: 80;
}
main .insights .incoming svg circle {
    stroke-dashoffset: 110;
    stroke-dasharray: 80;
}
main .insights .progress .number {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
main .insights small{
    margin-top: 1.6rem;
    display: block;
}
/* Table */
main .recent-orders {
    margin-top: 2rem;
}
main .recent-orders h2{
    margin-bottom: 0.8rem;
}
main .recent-orders table{
    background: var(--color-white);
    width: 100%;
    /*border-radius: var(--card-border-radius);*/
    padding: var(--card-padding);
    text-align: center;
    /*box-shadow: none;*/
    transition: all 300ms ease;
}
/*
main .recent-orders table:hover{
    box-shadow: var(--box-shadow);
}
*/
main table tbody td{
    height: 2.8rem;
    border-bottom: 1px solid var(--color-light);
    color: var(--color-dark-variant);
}
main table tbody tr:last-child {
    border: none;
}
main .recent-orders a {
    text-align: center;
    display: block;
    margin: 1rem auto;
    color: var(--color-primary);
}
.dropdown-empresas {
    position: relative;
    display: inline-block;
}
  
.dropdown-conteudo {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    padding: 12px 16px;
    z-index: 1;
}
  
.dropdown-empresas:hover .dropdown-conteudo {
    display: block;
}

/* Conteúdo */
main .conteudo {
    margin-top: 2rem;
    min-width: 50%;
}
main .conteudo h2{
    margin-bottom: 0.8rem;
}
main .conteudo > div{
    background: var(--color-white);
    /*width: 100%;*/
    width: 143%;
    padding: var(--card-padding);
    border-radius: var(--card-border-radius);
    margin-top: 1rem;
    box-shadow: none;
    transition: all 300ms ease;
    height: 87vh;
}

main .conteudo > div:hover{
    box-shadow: var(--box-shadow);
}
main .conteudo  > div span{
    padding: 0.5rem;
    /*color: var(--color-dark-variant);*/
    color: var(--color-white);
    font-size: 2rem;
}
main .conteudo div form div input[type='text']{
    width: 30%;
    height: 1.6rem;
    padding-left: 1rem;
    border-radius: var(--border-radius-1);
    color: var(--color-info-light);
    background: var(--color-dark-variant);
}
main .conteudo div form div input[type='submit']{
    width: 20%;
    height: 1.8rem;
    border-radius: var(--border-radius-1);
    color: var(--color-white);
    background: var(--color-dark);
}

/* Right */
.right{
    margin-top: 1.4rem;
}
.right .top{
    display: flex;
    justify-content: end;
    gap: 2rem;
}
.right .top button{
    display: none;
}
.right .theme-toggler{
    background: var(--color-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 1.6rem;
    width: 4.2rem;
    cursor: pointer;
    border-radius: var(--border-radius-1);
}
.right .theme-toggler span {
    font-size: 1.2rem;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.right .theme-toggler span.active{
    background: var(--color-primary);
    color: white;
    border-radius: var(--border-radius-1);
}
.right .top .profile{
    display: flex;
    gap: 2rem;
    text-align: right;
}
/* Login */
.bg {
    position: fixed;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    width: 200%;
    height: 200vh;
    background: transparent url('http://assets.iceable.com/img/noise-transparent.png') repeat 0 0;
    background-repeat: repeat;
    animation: bg-animation .2s infinite;
    opacity: .9;
    visibility: visible;
    z-index: -1;
  }
  
  @keyframes bg-animation {
      0% { transform: translate(0,0) }
      10% { transform: translate(-5%,-5%) }
      20% { transform: translate(-10%,5%) }
      30% { transform: translate(5%,-10%) }
      40% { transform: translate(-5%,15%) }
      50% { transform: translate(-10%,5%) }
      60% { transform: translate(15%,0) }
      70% { transform: translate(0,10%) }
      80% { transform: translate(-15%,0) }
      90% { transform: translate(10%,5%) }
      100% { transform: translate(5%,0) }
}
.login-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: 2rem;
    width: 100%;
    height: 100%;
    z-index: 4;
}
.login-container > form{
    width: 320px;
    text-align: center;
    background:  rgb(198, 198, 198);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.85rem;
    border-radius: 2.7px;
    height: 350px;
    margin-top: 10%;
    box-shadow: 3.5px 3px rgba(172, 174, 172, 0.414);
    z-index: 6;
}

.login-container form > div{
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 5.5px;
    margin-right: 5.5px;
}

.login-container .conteudo h2{
    margin-bottom: 0.8rem;
}
.login-container > div{
    background: var(--color-white);
    width: 100%;
    padding: var(--card-padding);
    border-radius: var(--card-border-radius);
    margin-top: 1rem;
    box-shadow: none;
    transition: all 300ms ease;
}

.login-container > div:hover{
    box-shadow: var(--box-shadow);
}
.login-container  > div span{
    padding: 0.5rem;
    color: var(--color-dark-variant);
    font-size: 2rem;
}
.login-container form div input[type='text']{
    width: 100%;
    height: 1.6rem;
    /*adding-left: 1rem;*/
    border-radius: var(--border-radius-1);
    color: var(--color-info-light);
    background: var(--color-dark-variant);
    text-align: center;
}
.login-container form div input[type='password']{
    width: 100%;
    height: 1.6rem;
    /*padding-left: 1rem;*/
    border-radius: var(--border-radius-1);
    color: var(--color-info-light);
    background: var(--color-dark-variant);
    text-align: center;
}

.login-container form div input[type='text']:focus, 
.login-container form div input[type='password']:focus{
    height: 1.86rem;
    border: 2px #a3bdcc;
}


.login-container form div button[type='submit']{
    height: 1.8rem;
    border-radius: var(--border-radius-1);
    color: var(--color-white);
    background: var(--color-dark);
}

/* Media Queries */

@media screen and (max-width: 1200px){
    .profile-photo {
        width: 2.8rem;
    }
    .container{
        width: 94%;
        grid-template-columns: 7rem auto 23rem;
    }
    aside {
        display: block;
    }
    aside .logo h2{
        display: none;
    }
    aside .sidebar h3{
        display: none;
    }
    aside .sidebar a{
        width: 5.6rem;
    }
    aside .sidebar a:last-child{
        position: relative;
        margin-top: 1.8rem;
    }
    main .insights {
        grid-template-columns: 1fr;
        gap: 0;
    }
    main .recent-orders{
        width: 94%;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 2rem 0 0 8.8rem;
    }
    main .recent-orders table{
        width: 83vw;
    }
    main table thead tr th:last-child, 
    main table thead tr th:first-child{
        display: none;
    }
    main table tbody td td:last-child, 
    main table tbody td td:first-child{
        display: none;
    }
    main .conteudo {
        width: 94%;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 2rem 0 0 8.8rem;
    }
    main .conteudo div form div input[type='text']{
        width: 40%;
        height: 1.6rem;
        padding-left: 0.6rem;
    }
    main .conteudo div form div input[type='submit']{
        width: 40%;
        height: 2.2rem;
    }
}

@media screen and (max-width: 768px){
    .profile-photo {
        width: 2.8rem;
    }
    .container{
        width: 100%;
        grid-template-columns: 1fr;
    }
    aside{
        position: fixed;
        left: -100%;
        background: var(--color-white);
        width: 18rem;
        z-index: 3;
        box-shadow: 1rem 3rem 4rem var(--color-light);
        height: 100vh;
        padding-right: var(--card-padding);
        display: none;
        animation: showMenu 400ms ease forwards;
    }

    @keyframes showMenu {
        to{
            left: 0;
        }
    }

    aside .logo{
        margin-left: 1rem;
    }
    aside .logo h2{
        display: inline;
    }
    aside .sidebar h3{
        display: inline;
    }
    aside .sidebar a{
        width: 100%;
        height: 3.4rem;
    }
    aside .sidebar a:last-child{
        position: absolute;
        bottom: 5rem;
    }
    aside .close{
        display: inline-block;
        cursor: pointer;
    }
    main{
        margin-top: 8rem;
        padding: 0 1rem;
    }
    main .recent-orders{
        position: relative;
        margin: 3rem 0 0 0;
        width: 100%;
    }
    main .recent-orders table{
        width: 100%;
        margin: 0;
    }
    main .conteudo {
        position: relative;
        margin: 3rem 0 0 0;
        width: 100%;
    }
    main .conteudo div form div input[type='text']{
        width: 100%;
        height: 2.1rem;
        padding-left: 0.6rem;
    }
    main .conteudo div form div input[type='submit']{
        width: 80%;
        height: 2.4rem;
        margin-left: 10%;
    }
    .right{
        width: 94%;
        margin: 0 auto 4rem;
    }
    .right .top{
        position: fixed;
        justify-content: end;
        top: 0;
        left: 0;
        align-items: center;
        padding: 0 0.8rem;
        height: 4.6rem;
        background: var(--color-white);
        width: 100%;
        margin: 0;
        z-index: 2;
        box-shadow: 0 1rem 1rem var(--color-light);
    }
    .right .top .theme-toggler{
        width: 4.4rem;
        position: absolute;
        left: 66%;
    }
    .right .profile .info{
        display: none;
    }
    .right .top button{
        display: inline-block;
        background: transparent;
        cursor: pointer;
        color: var(--color-dark);
        position: absolute;
        left: 1rem;
    }
    .right .top button span{
        font-size: 2rem;
    }

}


.normal-main-container{
    display: flex;
    height: 100%;
    width:  100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
    background-color: #57b04e40;
    border-radius: 8px;
}

.normal-container{
    display:flex;
    flex-direction: column;
    align-content: center;
    /*background-color: #6c886941*/;
    width: 50%;
    height: 400px;
    text-align: center;
    /*border: 2px solid #d7fbc847;*/
    border-radius: 10px;
}
.normal-form-container{
    margin-top: 4.5%;
    height: 100%;
}
.normal-form{
    display: flex;
    flex-direction: column;
    padding: 50px;
    margin: 12px;
    height: 90%;
    gap: 12px;
}
.normal-form > input {
    /*background-color: #adffad6a;*/
    width: 100%;
    height: 40px;
    border: 2.5px solid #8080805f;
    padding-left: 23px;
}
.normal-form > label {
    text-align: center;
    background-color: #0069233e;
    border-radius: 18px;
    padding: 4px;
    width: 40%;
    color: var(--color-dark-variant);
}
.normal-form > button {
    background-color: #0adf006a;
    height: 38px;
    color: #f8f4f4;
}
.normal-form > a {
    background-color: #0adf006a;
    height: 38px;
    color: #f8f4f4;
    width: 100%;
    padding-top: 8px;
}