/* google font poppinse */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --main-color: #DD2F6E;
    --color-dark: #1D2231;
    --text-gray: #8390A2;
}

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style-type: none;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

/* sidebar section ============================
============================================ */
.sidebar{
    width: 345px;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    height: 100%;
    transition: width 300ms;
    background: var(--main-color);
}
/* sidebar - hide */
.sidebar.hide{
   margin-left: -345px;
}
.sidebar-brand{
    height: 90px;
    padding: 1rem 0rem 1rem 2rem;
    color: #fff;
}
.sidebar-brand span{
    display: inline-block;
    padding-right: 1rem;
}
.sidebar-menu{
    margin-top: 1rem;
}
.sidebar-menu li{
    width: 100%;
    margin-bottom: 1.7rem;
    padding-left: 2rem;
}
.sidebar-menu a{
    padding-left: 1rem;
    display: block;
    color: #fff;
    font-size: 1rem;
    transition: 0.3s ease-in-out;
}
.sidebar-menu a:hover,
.sidebar-menu a.active{
    background: #ffff;
    padding-block: 1rem;
    color: var(--main-color);
    border-radius: 30px 0 0 30px;

}
.sidebar-menu a span:first-child{
    font-size: 1.5rem;
    padding-right: 1rem;
}


#nav-toggle:checked + .sidebar .sidebar-brand,
#nav-toggle:checked + .sidebar li{
    padding-left: 1rem;
    text-align: center;
}

#nav-toggle:checked + .sidebar li a{
    padding-left: 0rem;
}

#nav-toggle:checked + .sidebar li a span{
    padding-right: 1rem;
}

#nav-toggle:checked + .sidebar{
    width: 70px;
}

#nav-toggle:checked ~ .main-content header{
    width: calc(100% - 70px);
    left: 70px;
}

#nav-toggle:checked + .sidebar .sidebar-brand h2 span:last-child,
#nav-toggle:checked + .sidebar li a span:last-child{
    display: none !important;
}


/* main content section =======================
=========================================== */
.main-content{
    margin-left: 345px;
    transition: margin-left 300ms;
}

#nav-toggle:checked ~ .main-content{
    margin-left: 70px;
}

header{
    background: #fff;
    position: fixed;
    left: 345px;
    top: 0;
    z-index: 100;
    width: calc(100% - 345px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    transition: left 300ms;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}
#nav-toggle{
    display: none;
}

header h2{
    color: #222;
}
header label span{
    font-size: 1.7rem;
    padding-right: 1rem;
}

.search-wrapper{
    border: 1px solid #ccc;
    border-radius: 30px;
    height: 50px;
    display: flex;
    align-items: center;
    overflow-x: hidden;
}
.search-wrapper span{
    display: inline-block;
    padding: 0rem 1rem;
    font-size: 1.6rem;
}
.search-wrapper input{
    height: 100%;
    padding: .5rem;
    border: none;
    outline: none;
}
.user-wrapper{
    display: flex;
    align-items: center;
}
.user-wrapper img{
    border-radius: 50%;
    margin-right: 1rem;
}
.user-wrapper small{
    display: inline-block;
    color: var(--text-gray);
}


/* main section ====================================
============================================== */
main{
    margin-top: 85px;
    padding: 2rem 1.5rem;
    background: #f1f5f9;
    min-height: calc(100vh - 90px);
}
.cards{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.card-single {
    display: flex;
    justify-content: space-between;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
}
.card-single div:last-child span{
    font-size: 3rem;
    color: var(--main-color);
}
.card-single div:first-child span{
    color: var(--text-gray);
}
.card-single:last-child{
    background: var(--main-color);
}
.card-single:last-child h1,
.card-single:last-child div:first-child span,
.card-single:last-child div:last-child span{
   color: #fff;
}


/* table section =================================
============================================== */
.recent-grid{
    margin-top: 3.5rem;
    display: grid;
    gap: 2rem;
    grid-template-columns: 67% auto;
}
.card{
    background: #fff;
    border-radius: 6px;
}
.card-header,
.card-body{
    padding: 1rem;
}
.card-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #d8d7d7;
}
.card-header button{
    background: var(--main-color);
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-size: .8rem;
    padding: .5rem 1rem;
    border: 1px solid var(--main-color);
}
table{
    border-collapse: collapse;
}
.table-responsive{
    width: 100%;
    overflow-x: auto;
}
thead tr{
    /* border-top: 1px solid #d8d7d7; */
    border-bottom: 2px solid #d8d7d7;
}
thead td{
    font-weight: 700;
}
td{
    padding: .5rem 1rem;
    font-size: .9rem;
    color: #222;
}
td:last-child{
    display: flex;
    align-items: center;
}
td .status{
    display: inline-block !important;
    height: 10px;
    width: 10px;
    margin-right: 1rem;
    border-radius: 50%;
}
.status.purple{
    background: rebeccapurple;
}
.status.pink{
    background: deeppink;
}
.status.orange{
    background: orangered;
}


/* customer section ==================================
================================================= */
.customer{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem .7rem;
}
.info{
    display: flex;
    align-items: center;
}
.info img{
    border-radius: 50%;
    margin-right: 1rem;
}
.info h4{
    font-weight: 700;
    font-size: .8rem;
    color: #222;
}
.info small{
    font-weight: 600;
    color: var(--text-gray);
}
.contact span{
    font-size: 1.2rem;
    display: inline-block;
    margin-left: .5rem;
    color: var(--main-color);
}



/* media query 1200 ===============================
============================================ */
@media only screen and (max-width: 1200px){
       .sidebar{
           width: 70px;
       }

       .sidebar .sidebar-brand,
       .sidebar li{
           padding-left: 1rem;
           text-align: center;
       }
       
       .sidebar li a{
           padding-left: 0rem;
       }

         .sidebar .sidebar-brand h2 span:last-child,
       .sidebar li a span:last-child {
        display: none;
       }
       
       .sidebar li a span{
           padding-right: 1rem;
       }
       
       .main-content header{
           width: calc(100% - 70px);
           left: 70px;
       }

       .main-content {
        margin-left: 70px;
       }


        .sidebar:hover{
           width: 345px;
           z-index: 200;
       }

       .sidebar:hover .sidebar-brand,
       .sidebar:hover li{
           padding-left: 2rem;
           text-align: left;
       }
       
       .sidebar:hover li a{
           padding-left: 1rem;
       }

       .sidebar:hover .sidebar-brand h2 span:last-child,
       .sidebar:hover li a span:last-child {
        display: inline;
       }
     

       

}



/* media query 960px ===============================
============================================ */
@media only screen and (max-width: 960px){
       .cards {
        grid-template-columns: repeat(3, 1fr);
       }

       .recent-grid {
        grid-template-columns: 60% 40%;
       }
}



/* media query 768px ===============================
============================================ */
@media only screen and (max-width: 768px){
       .cards {
        grid-template-columns: repeat(2, 1fr);
       }

       .recent-grid {
        grid-template-columns: 100%;
       }

       .search-wrapper {
        display: none;
       }

       .sidebar{
        left: -100%;
       }

       header h2 label{
        display: inline-block;
        background: var(--main-color);
        margin-right: 1rem;
        padding-right: 0rem;
        height: 40px;
        width: 40px;
        border-radius: 50%;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
       }

       header h2{
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem !important;
       }

       header h2 span{
        text-align: center;
        padding-right: 0rem;
       }

       .main-content{
        width: 100%;
        margin-left: 0rem;
       }

       header{
        width: 100% !important;
        left: 0 !important;
       }

       #nav-toggle:checked + .sidebar {
        left: 0 !important;
        z-index: 100;
        width: 345px;
       }

       #nav-toggle:checked + .sidebar .sidebar-brand,
       #nav-toggle:checked + .sidebar li{
        padding-left: 2rem;
        text-align: left;
       }

       #nav-toggle:checked + .sidebar li a{
        padding-left: 1rem;
       }

       #nav-toggle:checked + .sidebar .sidebar-brand h2 span:last-child,
       #nav-toggle:checked + .sidebar li a span:last-child {
        display: inline-block !important;
       }

       #nav-toggle:checked ~ .main-content{
        margin-left: 0rem;
       }


}


/* media query 768px ===============================
============================================ */
@media only screen and (max-width: 568px){
       .cards {
        grid-template-columns: repeat(1, 1fr);
       }
}









