/*
Admin Dashbord Styleheets 
Author: Dimitris Papakonstantinou
Version 1.0
*/

@import url('https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700&amp;subset=devanagari,latin-ext');

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

html,body {
    width:100%;
    height:100%;
    background: #f1f5f9;
}

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

.loginContainer {
    margin:0 auto;
    width: 100%;
    max-width: 700px;
}

.sidebar {
    width:345px;
    position: fixed;
    left:0;
    top:0;
    height:100%;
    background-color: var(--main-color);
    z-index: 100;
    transition: width 300ms;
}

.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.3rem;
    padding-left:2rem;
}

.sidebar-menu a {
    display:block;
    color:#fff;
    font-size:1.1rem;
}

.sidebar-menu a.active,
.sidebar-menu a:focus {
    background-color: #fff;
    padding-top:1rem;
    padding-bottom:1rem;
    padding-left:1rem;
    color: var(--main-color);
    border-radius: 30px 0px 0px 30px;
}
.sidebar-menu a span:first-child {
    font-size:1.5rem;
    padding-right:1rem;
}

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

#nav-toggle:checked + .sidebar .sidebar-brand,
#nav-toggle:checked + .sidebar .sidebar-menu {
    padding-left: 0;
}

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

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

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

#nav-toggle:checked + .sidebar li a span {
    padding-right: 1rem;
}
#nav-toggle:checked ~ .main-content {
    margin-left: 70px;
}

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

#nav-toggle:checked + .sidebar h2  {
    display:none;
}

.main-content {
    transition: margin-left 300ms;
    margin-left:345px;
}

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

header h2 {
    color:#222;
}


header label span {
    font-size: 1.7rem;
    padding-right: 1rem;
    cursor: pointer;
}

.search-wrapper {
    border:1px solid #ccc;
    border-radius: 30px;
    height: 50px;
    display:flex;
    align-items: center;
    overflow-x:hidden;
}

.search-wrapper input {
    height: 100%;
    padding: .5rem;
    border:none;
    outline:none;
}

.search-wrapper span {
    display: inline-block;
    padding:0rem 1rem;
    font-size:1.5rem;
}

.user-wrapper {
    display:flex;
    align-items: center;
}

.user-wrapper img  {
    border-radius: 50%; 
    margin-right:.5rem;  
}

.user-wrapper h4 {
    margin-bottom: 0rem!important;
}

.user-wrapper small {
    display:inline-block;
    color: var(--text-grey);
    margin-top:-3px!important;
}

main {
    margin-top:87px;
    padding :2rem 1.5rem;
    background:#f1f5f9;
    min-height: calc(100vh - 90px);
}

.cards {
    display:grid;
    grid-template-columns:  repeat(4, 1fr);
    grid-gap: 2rem;
    margin-top:1rem;
}

.card-single {
    display: flex;
    justify-content: space-between;
    background: #fff;
    padding:2rem;
    border-radius: 2px;
}

.card-single div:last-child span {
    font-size: 3rem;
    color: var(--main-color);
}

.card-single div:first-child span {
    color:var(--text-grey);
}

.card-single:last-child {
    background: var(--main-color);
}

.card-single:last-child h2,
.card-single:last-child div:first-child span{
    color:#fff;
}

.recent-grid {
    margin-top: 3.5rem;
    display:grid;
    grid-gap:2rem;
    grid-template-columns: 65% auto;
}

.card {
    background:#fff;
    border-radius: 5px;
}

.card-header,
.card-body {
    padding:1rem;
}

.card-header {
    display:flex;
    justify-content: space-between;
    align-items:center;
    border-bottom: 1px solid #f0f0f0;
}

.card-header button {
    background:var(--main-color);
    border-radius: 10px;
    color:#fff;
    font-size:.8rem;
    padding: .5rem 1rem;
    border:1px solid var(--main-color);

}

table {
    border-collapse:  collapse;
}

thead tr {
    border-top:1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

thead td {
    font-weight: 700;
}

td {
    padding: .5rem 1rem;
    font-size:.9rem;
    color:#222;
}

td .status {
    height:20px;
    width:20px;
    border-radius: 50%;
    margin-right:1rem;
}


tr td:last-child {
    display: flex;
    align-items: center;
}

.status.purple {
    background-color: rebeccapurple;
}

.status.pink {
    background-color: deeppink;
}

.status.orange {
    background-color:orangered;
}

.status.green {
    background-color:green;
}

.status.red {
    background:red;
}

.table-responsive {
    width:100%;
    overflow-x:auto;
}

.table-responsive table {
    width:100%;
}
.customer {
    display:flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem 1rem;
}

.info {        
    display: flex;
    align-items:center;
}

.info img {
    border-radius: 50%;
    margin-right: 1rem;
}

.info h4 {
    font-size: .8rem;
    font-weight: 600;
    color:#333;
}

.contact span {
    font-size:1.2rem;
    display:inline-block;
    margin-left:.5rem;
    color: var(--main-color);
}

 @media only screen and (max-width: 1200px) {
    .sidebar {
        width:70px;
    }
    
   .sidebar .sidebar-brand,
   .sidebar li  {
        padding-left: 1rem;
        text-align: center;
    }
    
    .sidebar .sidebar-brand h2 span:last-child,
    .sidebar li a span:last-child {
        display:none;
    }
    
   .sidebar li a {
        padding-left: 0rem;
    }
   
    .main-content {
        margin-left: 70px;
    }
    
    .main-content header {
        width: calc(100% - 70px);
        left:70px;
    }
 }

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

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

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

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

    .search-wrapper {
        display:none;
    }


 }

 