body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #e1e3e6;
    color: #6a6a6a;
    font-family: "Nunito", sans-serif;
}

.material-icons-outlined {
    vertical-align: middle;
}


.text-orange {
    color: #f6841d;
}

.font-weight-bold {
    font-weight: 600;
}

.grid-container {
    display: grid;
    grid-template-columns: 250px 1fr 1fr 1fr;
    grid-template-rows: 0.2fr 3fr;
    grid-template-areas:
        "sidebar header header header"
        "sidebar main main main";
    height: 100vh;
}


/* ---------- HEADER ---------- */

.header {
    grid-area: header;
    height: 70px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px 0 15px;
    box-shadow: 3px 4px 4px 0px rgba(0, 0, 0, 0.25);
    z-index: 1 !important;
}


.menu-icon {
    display: none;
    cursor: pointer;
}

.btn {
    padding: 10px 20px;
    background-color: #ff6900;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 3px 4px 4px 0px rgba(0, 0, 0, 0.25);

}

.btn:hover {
    background-color: #cf5702;
}


/* ---------- SIDEBAR ---------- */

#sidebar {
    grid-area: sidebar;
    height: 100%;
    background-color: #21232d;
    color: #9799ab;
    overflow-y: auto;
    transition: all 0.5s;
    -webkit-transition: all 0.5s;
}

#pfLogo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    margin-bottom: 50px;
    margin-top: -20px;
}

.sidebar-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 20px 20px;
    margin-bottom: 30px;
}

.sidebar-title>span {
    display: none;
    cursor: pointer;
}

.sidebar-brand {
    margin-top: 15px;
    font-size: 20px;
    font-weight: 700;
}

.sidebar-list {
    padding: 0;
    margin-top: 15px;
    list-style-type: none;
}

.sidebar-list-item {
    padding: 20px 20px 20px 20px;
}

.sidebar-list-item:hover {
    background-color: rgba(243, 243, 243, 0.2);
    cursor: pointer;
}

.sidebar-list>a {
    text-decoration: none;
    color: #9799ab;
}

.sidebar-responsive {
    display: inline !important;
    position: absolute;
    z-index: 1 !important;
}


/* ---------- MAIN ---------- */

.main-container {
    grid-area: main;
    overflow-y: auto;
    padding: 15px 15px;
}

.main-title {
    display: flex;
    justify-content: space-between;
}

.main-title>p {
    font-size: 20px;
}

.main-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 15px;
    margin: 15px 0;
}

.vert-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.cards-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 15px 0;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 25px;
    background-color: #ffffff;
    box-sizing: border-box;
    border-radius: 5px;
    box-shadow: 3px 4px 4px 0px rgba(0, 0, 0, 0.25);
}


.card>span {
    font-size: 20px;
    font-weight: 600;
}

.card-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-inner>p {
    font-size: 18px;
}

.card-inner>span {
    font-size: 35px;
}

.cards-charts {
    display: flex;
    flex-direction: column;
    gap: 15px;


}

.charts {
    display: flex;
    grid-template-columns: 1fr 1fr;
    gap: 15px;

}

#marketing-gender {
    display: flex;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;

}


.charts-card {
    background-color: #ffffff;
    margin-bottom: 15px;
    padding: 20px;
    -webkit-column-break-inside: avoid;
    border-radius: 5px;
    box-sizing: border-box;
    box-shadow: 3px 4px 4px 0px rgba(0, 0, 0, 0.25);
    position: relative;
    width: 100%;
}

.chart-title {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 600;
}

.charts-card>canvas {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
}

.data-table {
    border: 1px solid #cecece;
    border-collapse: collapse;
}

.data-table thead {
    background-color: #eee;
}
.data-table th {
    padding: 10px 20px;
    text-align: left;
    border-bottom: 1px solid #cecece;
}
.data-table tr {
    border-bottom: #E5E5E5;
}
.data-table tr:nth-child(2n) td {
    background-color: #f8f8f8;
}
.data-table tr:last-child td {
    border-bottom: none;
}
.data-table td {
    padding: 7px 20px;
    border-bottom: 1px solid #ececec;
}
.data-table td:last-child, .data-table th:last-child {
    padding-right: 40px;
}
.data-table td:first-child, .data-table th:first-child {
    padding-left: 40px;
}

/* ---------- SCROLLBARS ---------- */

::-webkit-scrollbar {
    width: 7px;
    height: 6px;
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px #a5aaad;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: #ff6900;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #0693e3;
}


/* ---------- MEDIA QUERIES ---------- */


/* Medium <= 992px */
@media screen and (max-width: 992px) {
    .grid-container {
        grid-template-columns: 1fr;
        grid-template-rows: 0.2fr 3fr;
        grid-template-areas:
            "header"
            "main";
    }

    #sidebar {
        display: none;
    }

    .menu-icon {
        display: inline;
    }

    .sidebar-title>span {
        display: inline;
    }

    .charts {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
    }

    .cards-two-columns {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;

    }
}

/* Small <= 768px */
@media screen and (max-width: 768px) {
    .main-cards {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 0;
    }

    .charts {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
    }
}

/* Extra Small <= 576px */
@media screen and (max-width: 576px) {
    .header-left {
        display: none;
    }

    .main-cards {
        grid-template-columns: 1fr;
        margin-top: 30px;
    }

    .charts {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
}


.login-box {
    padding: 50px 100px;
    background-color: #ffffff;
    border: 1px solid #d2d2d3;
    border-radius: 5px;
    box-shadow: 3px 4px 4px 0px rgba(0, 0, 0, 0.25);
    max-width: 350px;
    min-height: 550px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;



}

.pfLogoPages {
    width: 110px;
    height: 110px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 30px;
    align-items: center;
    justify-content: center;
    text-align: center;
    display: flex;
}

.login-box>h2 {
    margin-bottom: 50px;
}

.login-box>a {
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 20px 0;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    border: solid 1px #d2d2d3;
    box-shadow: 3px 4px 4px 0px rgba(0, 0, 0, 0.25);
    font-size: 15px;
    color: #6a6a6a;
    text-decoration: none;
    padding: 15px;
    position: relative;

}

.login-box a img {
    width: 30px;
    margin-right: 15px;
}

.login-box p {
    margin-bottom: 50px;
}

.login-box span {
    color: #ff6900;
}
