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

body {
  font-family: "Roboto", sans-serif;
  min-height: 100vh;
  background-color: #f0f0f0;
}

.container {
  display: grid;
  grid-template-columns: 250px 1fr;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  grid-row: 1 / -1;
  background-color: #1992d4;
  color: white;
  padding: 20px;
}

.branding {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}

.dashboard-icon {
  width: 40px;
  height: 40px;
  fill: white;
}

.branding h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-list {
  list-style: none;
  margin-bottom: 40px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 0;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s;
}

.nav-item:hover {
  transform: translateX(5px);
}

.nav-icon {
  width: 20px;
  height: 20px;
  fill: white;
}

/* Header */
.header {
  grid-column: 2;
  background-color: white;
  padding: 20px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-icon {
  width: 50px;
  height: 50px;
}

.search-bar input {
  flex: 1;
  padding: 8px 15px;
  border: none;
  border-radius: 20px;
  background-color: #e2e8f0;
  font-size: 1rem;
}

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

.notification-icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.avatar-small {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f0b429;
  fill: white;
}

.username {
  font-weight: 700;
}

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

.avatar-large {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #f0b429;
  fill: white;
}

.greeting-text h2 {
  font-size: 1.2rem;
  font-weight: 700;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.btn {
  padding: 10px 25px;
  border: none;
  border-radius: 20px;
  background-color: #1992d4;
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #147bb3;
}

/* Main Content */
.main-content {
  grid-column: 2;
  padding: 30px;
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 30px;
  background-color: #e2e8f0;
}

.projects h3,
.announcements h3,
.trending h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.project-card {
  background-color: white;
  border-left: 5px solid #f0b429;
  border-radius: 8px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  min-height: 200px;
}

.card-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
}

.card-content p {
  color: #666;
  line-height: 1.5;
  font-size: 0.9rem;
}

.card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 20px;
}

.action-icon {
  width: 20px;
  height: 20px;
  cursor: pointer;
  fill: #666;
  transition: fill 0.3s;
}

.action-icon:hover {
  fill: #1992d4;
}

/* Right Sidebar */
.right-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.announcements-container,
.trending-container {
  background-color: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.announcement-item {
  padding: 15px 0;
}

.announcement-item:not(:last-child) {
  border-bottom: 1px solid #e2e8f0;
}

.announcement-item h5 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: #333;
}

.announcement-item p {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.4;
}

.trending-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
}

.trending-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f0b429;
  fill: white;
}

.trending-info .username {
  font-weight: 700;
  color: #333;
  font-size: 0.9rem;
}

.trending-info .project {
  color: #666;
  font-size: 0.8rem;
}

/* SVG */
svg {
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .main-content {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
  }

  .sidebar {
    grid-row: 1;
  }

  .header {
    grid-column: 1;
    grid-template-columns: 1fr;
    padding: 15px;
  }

  .main-content {
    grid-column: 1;
  }
}
