@font-face {
  font-family: "Roboto";
  src: url("fonts/Roboto-Regular.woff2") format("woff2"),
    url("fonts/Roboto-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("fonts/Roboto-Bold.woff2") format("woff2"),
    url("fonts/Roboto-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

:root {
  line-height: 1.5;
  box-sizing: border-box;
  --main-background-color: #1992D4;
  --secondary-background-color: #E1E7EF;
  --shadow: 0 3px 7px rgba(76, 74, 74, 0.415);
}

body,
h1,
h2,
h3,
h4,
h5,
figure,
p,
ol,
ul {
  margin: 0;
}

ol,
ul {
  list-style: none;
  padding: 0;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-inline-size: 100%;
}

body {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 4fr;
  grid-template-rows: min-content 1fr;
  font-family: Roboto, system-ui;
}

.sidebar {
  background-color: var(--main-background-color);
  grid-area: 1 / 1 / 3 / 1;
  padding: 1rem;
  color: white;
}

.sidebar a {
  color: white;
  font-weight: bold;
}

.sidebar-nav {
  display: grid;
  grid-template-rows: auto 1fr 1fr;
  gap: 50px;
}

.sidebar-title h1 {
  display: inline-block;
}

.sidebar-title img {
  width: 4rem;
  padding-right: 1rem;
  display: inline-block;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.5rem;
}

.sidebar-title,
.sidebar-links > li > a {
  display: flex;
  align-items: center;
}

.sidebar-links img {
  width: 2rem;
  padding-left: 1rem;
  padding-right: 2rem;
  display: inline-block;
}

.header {
  grid-column: 2 / 3;
  display: grid;
  grid-template-columns: 3fr 1fr;
  grid-template-rows: 1fr 1fr;
  align-items: center;
  gap: 25px;
  padding: 1.5rem 4rem;
  position: relative;
  box-shadow: var(--shadow);
}

.searchbar-container {
  display: flex;
  gap: 15px;
}

.searchbar-container img {
  width: 2rem;
  margin: auto;
}

.searchbar-container button {
  background: transparent;
  padding: 0;
  margin: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  cursor: pointer;
}

.searchbar-container button:hover {
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 8%);
  outline: 1px solid black;
} 

.searchbar-container input {
  flex: 1;
  border: none;
  border-radius: 30px;
  background-color: var(--secondary-background-color);
  padding-left: 30px;
  font-size: 1.5rem;
}

.user-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.user-notifications {
  width: 2rem;
}

.user-avatar {
  width: 4rem;
  border-radius: 50%;
}

.user-name {
  font-weight: bold;
  font-size: 1.5rem;
}

.user-greeting {
  display: flex;
  align-items: center;
  gap: 30px;
}

.user-greeting .user-avatar {
  width: 6rem;
}

.user-greeting div p{
  font-weight: bold;
}

.user-greeting div p:last-of-type {
  font-size: 2rem;
}

.header-buttons ul {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.header-buttons ul button {
  background-color: var(--main-background-color);
  color: white;
  border: none;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 15px 50px;
  border-radius: 50px;
}

.header-buttons ul button:hover { 
  background-color: #1782bc;
  cursor: pointer;
}

.main-content {
  background-color: var(--secondary-background-color);
  display: grid;
  grid-template: 1fr 1fr / 4fr 1fr;
  gap: 3rem;
  padding: 3rem;
}

.projects {
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
}

.projects-container {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;;
}

.project-item {
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  border-left: 10px solid #F0B429;
  border-radius: 10px;
  background-color: white;
}

.project-item > h3 {
  font-size: 1.25rem;
}

.project-item-action-list {
  flex: 1;
  align-items: flex-end;
  display: flex;
  justify-content: flex-end;
  gap: 30px;
}

.project-item-action-list img {
  width: 2rem;
}

.announcements {
  display: flex;
  flex-direction: column;
}

.announcements-container {
  flex: 1;
  background-color: white;
  border-radius: 15px;
  padding: 1rem 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem
}

.announcement-item {
  border-bottom: 1px solid black;
  padding-bottom: 1rem;
}

.announcement-item:last-child {
  border: none
}

.announcement-text {
  font-size: 0.9rem;
}

.trending {
  display: flex;
  flex-direction: column;
}

.trending-container {
  background-color: white;
  flex: 1;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.trending-item {
  display: flex;
  align-items: center;
}

.trending-item > img {
  margin-right: 1.5rem;
}
