/*General Selectors*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --light-blue: #008dda;
  --grey-bg: #bbbbbb6b;
  --gold: #ffc94a;
  --grey-txt: #707070ef;
}

body {
  font-size: 18px;
  font-family: "Roboto", sans-serif;
  display: grid;
  grid-template-columns: 1fr 4fr 1fr;
  grid-template-rows: 170px 1fr;
  width: 100%;
  height: 100vh;
}

img,
button {
  cursor: pointer;
}

/*Header Selectors*/

.header {
  grid-column: 2 / 4;
  display: flex;
  flex-direction: column;
  margin: 1rem 3rem;
}

input {
  width: 65%;
  height: 25px;
  margin-left: 1rem;
  border-radius: 10px;
  background-color: var(--grey-bg);
  border: none;
}

.header img {
  width: 18px;
  height: 18px;
}

.header .profile-pic {
  width: 46px;
  height: 46px;
}

.header-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.header-top-left,
.header-top-right,
.header-bottom-left,
.header-bottom-right {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.header-top-left {
  width: 60%;
  justify-content: flex-start;
}

.header-top-right {
  width: 40%;
  justify-content: center;
}

.header-top-right > * {
  padding-left: 1.25rem;
}

.bars-icon,
.btn-icon {
  display: none;
}

.header-bottom {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.header .bg-profile-pic {
  width: 64px;
  height: 64px;
  margin-right: 1.25rem;
}

.header-bottom-left h4 {
  margin-bottom: 3px;
}

.header-bottom-left h3 {
  display: inline-block;
}

.inline-h3 {
  margin-left: 4px;
}

.header-bottom-right {
  width: 50%;
  justify-content: center;
}

button {
  width: 100px;
  height: 35px;
  border-radius: 20px;
  background-color: var(--light-blue);
  color: #fff;
  border: none;
  margin-left: 2rem;
  font-weight: 800;
}

/*Sidebar Selectors*/

.sidebar {
  grid-row: 1 / -1;
  background-color: var(--light-blue);
  color: #fff;
  padding: 1rem;
  height: 100%;
}

.dashboard-item {
  margin-bottom: 2rem;
}

.sidebar-item:nth-child(6) {
  margin-bottom: 2rem;
}

.sidebar-item {
  display: flex;
  gap: 15px;
}

.sidebar-icon {
  width: auto;
  margin: 0 auto 0.75rem;
}

h2.sidebar-item-name {
  padding-left: 0;
  padding-top: 15px;
}

.sidebar-item-name {
  width: 80%;
}

.sidebar-icon > img {
  width: 20px;
  height: 20px;
  margin-left: 0;
}

.sidebar-icon .dashboard-icon {
  width: 45px;
  height: 45px;
}

/*Main-container selectors*/
.main-container {
  padding: 2rem 1rem;
  background-color: var(--grey-bg);
  box-shadow: inset 0 3px rgba(129, 129, 129, 0.356);
}

.projects-container {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.project-box {
  padding: 1.25rem 1rem;
  border-radius: 10px;
  background: linear-gradient(
    to right,
    var(--gold) 10px,
    #fff 10px,
    #fff calc(100% - 10px)
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 2px 2px 2px rgb(129, 129, 129);
}

.project-content {
  padding-left: 0.75rem;
  font-size: 0.85rem;
}

.project-title {
  padding-left: 0.75rem;
}

.project-content,
.announcement-content,
.trending-project {
  color: var(--grey-txt);
  font-size: 0.85rem;
}

.project-icons-bar {
  display: flex;
  justify-content: flex-end;
  margin-right: 1rem;
  margin-top: 1rem;
}

.project-icons-bar img {
  width: 24px;
  height: 24px;
  margin-left: 1.25rem;
}

/*Right-container selectors*/

.right-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: inset 0 3px rgba(129, 129, 129, 0.356);
  background-color: var(--grey-bg);
}

.announcements-container {
  padding-top: 2rem;
}

.announcement-items-box {
  background-color: #fff;
  padding: 1rem;
  padding-bottom: 0.5rem;
  border-radius: 10px;
  margin-top: 1.25rem;
  margin-right: 1.5rem;
  box-shadow: 2px 2px 2px rgb(129, 129, 129);
}

.announcement-item {
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  box-shadow: 0 2px rgba(129, 129, 129, 0.356);
}

.announcement-item:nth-child(3) {
  box-shadow: none;
}

.announcement-content .profile-pic {
  width: 46px;
  height: 46px;
}

.trending-container {
  margin-top: 1.25rem;
  margin-right: 1.5rem;
}

.trending-items-box {
  background-color: #fff;
  border-radius: 10px;
  margin: 0.75rem 0;
  padding: 1rem;
  padding-bottom: 0.5rem;
  box-shadow: 2px 2px 2px rgb(129, 129, 129);
}

.trending-item {
  display: flex;
  margin-bottom: 0.5rem;
}

.profile-pic {
  width: 46px;
  height: 46px;
  margin-right: 1rem;
}

.profile-tag {
  font-size: 1rem;
}

/* Media queries */

@media (max-width: 1200px) {
  body {
    grid-template-columns: 1fr 5fr;
    grid-template-rows: auto auto auto;
  }

  .main-container {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }

  .right-container {
    grid-column: 2/3;
    grid-row: 3 / 4;
    flex-direction: row;
    justify-content: space-between;
    padding-left: 1rem;
  }

  .announcements-container {
    padding-top: 1rem;
  }
}

@media (max-width: 881px) {
  body {
    display: block;
  }

  .sidebar {
    display: none;
  }
  .header {
    width: 90%;
    margin: 1rem 1.5rem;
  }

  .header-top-right {
    justify-content: flex-end;
  }

  .header-top-right h5 {
    display: none;
  }

  .header-top {
    margin-bottom: 0.75rem;
  }

  .bars-icon {
    display: inline-block;
  }

  .header-bottom {
    flex-direction: column;
    justify-content: space-between;
  }

  .header-bottom-left {
    margin-bottom: 1rem;
  }

  .header-bottom-right {
    width: 100%;
    justify-content: space-evenly;
  }

  .announcement-items-box {
    margin: 1rem 0 1rem 0;
  }

  .right-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-box,
  .main-container h3,
  .announcements-container,
  .trending-container {
    width: 90%;
    margin: 0 auto;
  }

  .trending-item {
    margin-bottom: 0.5rem;
    padding-top: 0.5rem;
    box-shadow: 0 2px rgba(129, 129, 129, 0.356);
  }

  .trending-item:last-child {
    box-shadow: none;
  }
}

@media (max-width: 400px) {
    .header {
        margin: 1rem .5rem;
    }

    .main-container {
        padding: 1rem .5rem;
    }
    
    .project-box {
        max-width: 95%;
        padding: 1rem .5rem;
    }

  .header-top-right .profile-pic,
  .greeting h3,
  button p {
    display: none;
  }

  .greeting .inline-h3,
  .btn-icon {
    display: inline-block;
  }
}
