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

:root {
    --color-primary: #6C9BCF;
    --color-danger: #FF0060;
    --color-success: #1B9C85;
    --color-warning: #F7D060;
    --color-white: #fff;
    --color-info-dark: #7d8da1;
    --color-dark: #363949;
    --color-light: rgba(132, 139, 200, 0.18);
    --color-dark-variant: #677483;
    --color-background: #f6f6f9;

    --card-border-radius: 2rem;
    --border-radius-1: 0.4rem;
    --border-radius-2: 1.2rem;

    --card-padding: 1.8rem;
    --padding-1: 1.2rem;

    --box-shadow: 0 2rem 3rem var(--color-light);
}

.dark-mode-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;
    box-sizing: border-box;
    text-decoration: none;
    padding: 0;

}

html {
    font-size: 14px;
}

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

a{ 
    color: var(--color-dark);
}

img {
    width: 100%;
    display: block;
    object-fit: cover;
    margin-left: 10px;
}

h1 {
    font-weight: 800;
    font-size: 1.8rem;
}
h2 {
    font-weight: 600;
    font-size: 1.4rem;
}
h3 {
    font-weight: 500;
    font-size: 0.87rem;
}

small {
    font-size: 0.76rem;
}

p {
    color: var(--color-dark-variant);
}
b{
    color: var(--color-dark);
}

.text-muted{
    color: var(--color-info-dark);
}

.primary {
    color: var(--color-primary);
}

.danger {
    color: var(--color-danger);
}

.success {
    color: var(--color-success);
}

.warning {
    color: var(--color-warning);
}

.conteiner {
    display: grid;
    width: 96%;
    gap: 1.8rem;
    grid-template-columns: 12rem auto 23rem;
}

/* Resposivo */

@media screen and (max-width: 1200px) {
    .conteiner {
        width: 95%;
        grid-template-columns: 7rem auto 27rem;
    }

    aside .toggle h2 {
        display: none;
    }
    aside .sidebar {
        height: auto;
    }

    aside .sidebar h3 {
        display: none;
    }

    aside .sidebar a {
        width: 5.6rem;
    }

    aside .sidebar a:last-child {
        position: relative;
        margin-top: 1.8rem;
    }

    main .analyse {
        grid-template-columns: 1fr;
        gap: 0;
    }

    main .new-users .list-users .user {
        flex-basis: 40%;
    }

    main .recents-orders {
        width: 90%;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 2rem 0 0 0.8rem;

    }

    main .recents-orders table {
        width: 83vw;
    }

    main table thead tr th:last-child,
    main table thead tr th:first-child {
        display: none;
    }

    main table tbody tr td:last-child,
    main table tbody tr td:first-child {
        display: none;
    }

}

@media screen and (max-width:768px) {
    .conteiner {
        width: 100%;
        grid-template-columns: 1fr;
        padding: 0 var(--padding-1);
    }

    aside {
        position: fixed;
        background-color: var(--color-white);
        width: 15rem;
        box-shadow: 1rem 3rem 4rem var(--box-shadow);
        z-index: 3;
        height: 100vh;
        left: -50%;
        display: none;
        animation: showMenu 0.4s ease forwards;

    }

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

    .logo {
        margin-left: 0.3rem;
    }
    aside .sidebar {
        height: 100%;
    }

    aside .toggle h2 {
        display: block;
    }

    aside .sidebar h3 {
        display: block;
    }

    aside .sidebar a {
        width: 100%;
        height: 3.4rem;
    }

    aside .sidebar a:last-child {
        position: absolute;
    }

    main {
        margin-top: 8rem;
        padding: 0 1rem;
    }

    main .new-users .list-users .user {
        flex-basis: 35%;
    }

    main .recents-orders {
        position: relative;
        width: 100%;
        margin: 3rem 0 0 0;
    }

    main .recents-orders table {
        width: 100%;
    }

    .right-section {
        width: 94%;
        margin: 0 auto 4rem;
    }

    .right-section .nav {
        position: fixed;
        top: 0;
        left: 0;
        align-items: center;
        background-color: var(--color-white);
        padding: 0 var(--padding-1);
        height: 4.6rem;
        width: 100%;
        z-index: 2;
        box-shadow: 0 1rem 1rem var(--color-light);
        margin: 0;
    }

    .right-section .nav .dark-mode {
        width: 4.4rem;
        position: absolute;
        left: 60%;
    }

    .right-section .profile .info {
        display: none;
    }

    .right-section .nav button {
        display: inline-block;
        background-color: transparent;
        border: none;
        color: var(--color-dark);
        cursor: pointer;
        position: absolute;
        left: 1rem;
    }

    .right-section .nav button span {
        font-size: 2rem;
    }

}


