@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Roboto, sans-serif;
}

:root {
    --main-color: #14b8a6;
    --card-color: orange;
    --white: #f8fafc;
    --slate: #e2e8f0;
    --light-red: #f87171;
    --dark-gray: #4b5563;
    --light-gray: #9ca3af;
}

html, body {
    height: 100%;
}

body, .sidebar, .nav1, .nav2, .dashboard, .header,
.search-bar, .quick-actions, .user-profile, .content-actions,
.main-content, .cards, .card, .text, .accounts, .user {
    display: grid;
}

body {
    grid-template-columns: 1fr 3.5fr;
    grid-template-rows: 1.5fr 4.5fr;
}

.sidebar {
    background-color: var(--main-color);
    grid-row: 1 / -1;
    color: var(--white);
    grid-template-rows: 1fr 6fr 3fr 7fr;
    row-gap: 48px;
}

.header {
    background-color: var(--white);
    height: 100%;
}

.main-content {
    background-color: var(--slate);
    height: 100%;
    box-shadow: inset 6px 10px 10px -10px var(--light-gray);
    grid-template-columns: 2.5fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.dashboard, .nav1, .nav2 {
    grid-template-columns: 2fr 4fr;
    align-items: center;
}

.dashboard {
    margin-top: 24px;
}

.nav1, .nav2 {
    font-weight: bold;
}

.nav1 {
    grid-template-rows: repeat(6, 1fr);
}

.nav2 {
    grid-template-rows: repeat(3, 1fr);
}

.sidebar p {
    font-size: 1.25rem;
}

.sidebar h1 {
    font-size: 1.5rem;
}

.dashboard svg {
    width: 2.75rem;
}

svg {
    width: 1.5rem;
}

img {
    width: 4rem;
    padding: 4px;
    background-color: var(--light-red);
    border-radius: 50%;
}

.small-icons {
    width: 3rem;
}

.sidebar svg {
    fill: white;
    justify-self: center;
}

ul {
    list-style-type: none;
}

.header {
    grid-template-rows: repeat(2, 1fr);
    grid-template-columns: 2fr 1fr;
    align-items: center;
    justify-items: left;
}

.search-bar {
    grid-template-columns: 1fr 32fr;
    column-gap: 24px;
    margin: 0 40px;
    align-items: center;
}

input[type="search"] {
    height: 28px;
    border: none;
    background-color: var(--slate);
    border-radius: 16px;
    padding: 16px;
}

.quick-actions {
    grid-template-columns: 1fr 2fr 4fr;
    justify-self: center;
    align-items: center;
    column-gap: 32px;
}

.user-profile {
    grid-template-columns: 1fr 6fr;
    grid-template-rows: 1fr 2fr;
    align-items: center;
    column-gap: 16px;
    margin: 0 40px 20px;
}

.user-profile img {
    grid-row: 1 / -1;
}

.user-profile h5 {
    align-self: end;
}

.content-actions {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 24px;
}

button {
    border: none;
    background-color: var(--main-color);
    width: 6rem;
    height: 2rem;
    border-radius: 16px;
    color: var(--white);
    font-weight: bold;
    font-size: 1rem;
}

.projects {
    grid-row: 1 / -1;
    padding: 24px 18px;
}

.projects p {
    color: var(--dark-gray);
}

.cards {
    grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
    height: 95%;
    column-gap: 24px;
    row-gap: 28px;
    grid-auto-rows: 235px;
}

.projects > h3, .announcements h3, .trending h3{
    margin-bottom: 8px;
}

.card, .accounts {
    background-color: var(--white);
    box-shadow: 5px 5px 8px -5px var(--light-gray);
}

.content {
    background-color: var(--white);
    padding: 16px 32px;
    box-shadow: 1px 1px 5px -1px var(--light-gray);
}

.accounts {
    height: 81.61%;
    border-radius: 8px;
}

.content {
    height: 92.5%;
    border-radius: 8px;
}

.card {
    border-radius: 8px;
    border-left: 8px solid var(--light-red);
    padding: 32px 32px 32px 24px;
    grid-template-rows: 1fr 4fr 1fr;
}

.interactions {
    justify-self: right;
}

.interactions svg {
    margin-left: 24px;
}

.trending, .announcements {
    padding: 24px 32px 0 8px;
}

.trending {
    margin-top: 23px;
}

.text {
    background-color: var(--light-gray);
    height: 100%;
    border-radius: 8px;
    grid-template-rows: repeat(3, 1fr);
}

.news {
    background-color: var(--white);
    padding: 16px 8px;
}

.news:nth-child(1), .news:nth-child(2) {  
    border-bottom: solid 1px var(--light-gray);
}

.news h4 {
    margin-bottom: 4px;
}

.news p {
    color: var(--dark-gray);
}

.user:nth-child(1) img {
    background-color: #9ab1ae;
}

.user:nth-child(3) img {
    background-color: #dfb885;
}

.user:nth-child(4) img {
    background-color: #e3bfb9;
}

.accounts {
    grid-template-rows: repeat(4, 1fr);
}

.user {
    grid-template-columns: 1fr 2fr;
    grid-template-rows: repeat(2, 1fr);
}

.user img {
    grid-row: 1 / -1;
    align-self: center;
    justify-self: center;
}

.user h5 {
    align-self: end;
    font-weight: normal;
    font-size: 1rem;
}

.user p {
    color: var(--dark-gray);
}
