* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  color: #111827;
}

.dashboard {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  grid-template-rows: 180px 1fr;
}

/* Sidebar */

.sidebar {
  grid-row: 1 / 3;
  background-color: #1992d4;
  color: white;
  padding: 24px;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: 48px;
}

.logo {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  filter: brightness(0) invert(1);
}

.logo h1 {
  font-size: 28px;
  margin: 0;
}

.nav-main,
.nav-secondary {
  display: grid;
  gap: 24px;
}

.sidebar a {
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 21px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 22px;
}

.nav-icon {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

/* Header */

.header {
  background-color: white;
  padding: 24px 48px;
  display: grid;
  grid-template-rows: auto auto;
  gap: 26px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  z-index: 1;
}

.header-top,
.header-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.search-bar {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
}

.header-icon {
  width: 24px;
  height: 24px;
}

.search-bar input {
  width: 75%;
  height: 34px;
  border: none;
  border-radius: 20px;
  background-color: #e2e8f0;
  padding: 8px 16px;
  font-size: 16px;
}

.user-info {
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 22px;
  font-size: 18px;
}

.greeting {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
}

.greeting p,
.greeting h2 {
  margin: 0;
}

.greeting p {
  font-size: 16px;
  font-weight: 500;
}

.greeting h2 {
  font-size: 26px;
}

.avatar {
  border-radius: 50%;
  object-fit: cover;
  background-color: #facc15;
}

.small-avatar {
  width: 48px;
  height: 48px;
}

.large-avatar {
  width: 72px;
  height: 72px;
}

.header-buttons {
  display: grid;
  grid-auto-flow: column;
  gap: 24px;
}

.header-buttons button {
  border: none;
  border-radius: 22px;
  background-color: #1992d4;
  color: white;
  font-weight: 700;
  padding: 11px 32px;
  cursor: pointer;
}

/* Main Content */

.main-content {
  background-color: #e2e8f0;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
}

.projects h3,
.announcements h3,
.trending h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 22px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 28px;
}

.project-card,
.side-card {
  background-color: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.project-card {
  min-height: 220px;
  border-left: 8px solid #facc15;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.project-card h4,
.side-card h4 {
  margin-top: 0;
  margin-bottom: 8px;
}

.project-card h4 {
  font-size: 18px;
}

.project-card p,
.side-card p {
  color: #636363;
}

.project-card p {
  font-size: 16px;
  line-height: 1.35;
}

.card-actions {
  display: grid;
  grid-auto-flow: column;
  justify-content: end;
  gap: 22px;
}

.card-actions img {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.side-content {
  display: grid;
  gap: 28px;
  align-content: start;
}

.side-card {
  display: grid;
  gap: 14px;
}

/* Announcements */

.announcement {
  border-bottom: 1px solid #d1d5db;
  padding-bottom: 16px;
}

.announcement:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.announcement h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.announcement p {
  font-size: 13px;
  line-height: 1.2;
  margin: 0;
}

/* Trending */

.trending-card {
  gap: 22px;
}

.trend {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
}

.trend-avatar {
  width: 50px;
  height: 50px;
}

.username,
.project-name {
  margin: 0;
  font-size: 15px;
}

.username {
  font-weight: 700;
  color: black;
}

.project-name {
  color: #636363;
}
.card-actions img:hover,
.sidebar a:hover,
.header-buttons button:hover {
  opacity: 0.8;
}
.header-buttons button {
  transition: opacity 0.2s ease;
}