/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* custom css  */

:root {
    --aside-color: #f9fafb;
    --padding: 2rem 1rem;
    scroll-behavior: smooth;
}

.dashboard {
    display: flex;
}


/* asider  */


.sidebar {
    background-color: hsl(210, 19%, 98%);
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* width: 20%;  */
    width: 250px;
    transition: all 0.5s;
    overflow: hidden;
    /* position: fixed; */
}



.Logo {
    font-size: 1.5rem;
    font-weight: bolder;
    border-bottom: 1px solid hsl(0, 0%, 90%);
    padding: var(--padding);
}


/* nav */
nav {
    height: 60%;
}

nav ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
    padding-top: 1.5rem;
}

nav ul li {
    /* width: 90%; */
    display: flex;
    overflow: hidden;
}

nav ul li i {
    margin: 0 1rem;
}

nav ul li a {
    color: gray;
    text-decoration: none;
    font: bolder;
    transition: all .5s;
    width: 100%;
    border-radius: .5rem;
    padding: 1rem 0rem;
    /* display: inline-block; */
}

nav ul li a:hover,
.collapse-btn button:hover {
    color: blue;
    background: hsl(0, 0%, 95%);
}

.nav-links.active {
    color: blue;
}

/* collapse btn  */

.collapse-btn {
    border-top: 1px solid hsl(0, 0%, 90%);
    padding: var(--padding);
}

.collapse-btn button {
    border-radius: .5rem;
    background: none;
    font: 1.2rem bolder;
    text-align: center;
    width: 95%;
    transition: all 0.5s;
    padding: 1rem 0;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}


.collapsed {
    width: 90px;
}

.text{
    transition:all 0.5s;
}
.collapsed .text {
    
    display: none;
}


/* media for Aside  */

@media (max-width: 1024px) {
    .sidebar {
        position: fixed;
        /* width: 900px; */
    }
/* 
    .collapsed {
        width: 200px;
    } */
}
/* 
@media (max-width: 365px) {
    .sidebar {
        width: 900px;
    }

    .collapsed {
        width: 100px;
    }
}  */

/* Main Section   */

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

.container{ 
    padding: 2rem;
}

.main-content h2{
    font-size:2rem  ;
    font-weight: bolder;
    padding-bottom: 2rem;
}

.dashboard-content{
    background-color: var(--aside-color);
    border-radius: 10px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    /* width: 80vw; */
}



.content-header{
    text-align: center;
}

.content-header i {
    color: blue;
    font-size: 1.5rem;
}

.content-header h3{
    font-weight: bold;
    font-size: 1.5rem;
    margin-top: 2rem;
}

.content-header p {
    margin-top: 1rem;
    
    font-size: 1.2rem;
    color: hsl(0, 0%, 30%);
}

.cards{
    width: 95%;
    display: grid;
    grid-template-columns: auto auto auto;
    margin-top: 2rem;
    gap: 1rem;
}

@media (max-width:425px) {
    .container{ 
    padding: 1rem;
}
.dashboard-content{
    padding: 1rem 0.5rem ;
}

}

@media (max-width:1024px) {
 .cards{
    grid-template-columns: auto  auto;   
}   
}
@media (max-width:766px) {
 .cards{
    grid-template-columns: auto  ;   
    width: 100%;
}   
}

.card{
display: flex;
flex-direction: column;
gap: .5rem;
align-items: center;
background: white;
padding: 2rem 1rem;
border-radius: .5rem;
border: 1px solid hsl(0, 0%, 80%);
}

.card div {
    padding: 1rem;
    font-size: 1.2rem;
    border-radius: .5rem;
}

.blue{
    background:    hsl(214,94%,92%);
    color: blue;
}
.green{
    background:    hsl(114, 95%, 92%);
    color: green;
}
.purple{
    
    background:    hsl(286, 95%, 92%);
    color: purple;
}

.card h4{
    font-weight: bold;
    margin-top: 1rem;
    font-size: 1.2rem;

}

