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

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Roboto', sans-serif;
  background-color: #e2e8f0;
  color: #333;
  overflow: hidden;
}

/* Dashboard container */
.dashboard-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar styles */
.sidebar {
  background-color: #1992d4;
  color: white;
  display: flex;
  flex-direction: column;
  padding: 20px;
  flex: 0 0 250px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}

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

.sidebar-logo {
  width: 40px;
  height: 40px;
  filter: invert(1);
}

.brand-text {
  font-size: 1.5rem;
  font-weight: 700;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sidebar-nav li {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  padding: 8px 5px;
  border-radius: 5px;
}

.sidebar-nav li:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

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

/* Main content styles */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 30px;
  overflow-y: auto;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  margin-bottom: 20px;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 50;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 600px;
  background-color: #e2e8f0;
  border-radius: 20px;
  padding: 5px 15px;
}

.search-bar input {
  width: 100%;
  padding: 8px 0;
  border: none;
  background: transparent;
  font-size: 1rem;
  outline: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 25px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-right: 20px;
}

.user-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

.user-name {
  font-weight: 700;
  font-size: 1.1rem;
  margin-right: 10px;
}

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

.notification-icon {
  position: relative;
}

/* Dashboard greeting */
.dashboard-greeting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

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

.user-avatar-large {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
}

.greeting-text p {
  font-size: 0.9rem;
  margin-bottom: 5px;
  color: #666;
}

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

.username {
  font-size: 1.2rem;
  font-weight: 500;
}

.header-buttons {
  display: flex;
  gap: 20px;
}

.btn {
  background-color: #1992d4;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn:hover {
  background-color: #1280c0;
}

/* Dashboard sections */
.dashboard-sections {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 25px;
  width: 100%;
}

.section-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #1e293b;
}

/* Projects section */
.projects-section {
  grid-column: 1;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  overflow-y: auto;
  max-height: 60vh;
  padding-right: 10px;
}

/* Scrollbar styling for projects */
.projects-grid::-webkit-scrollbar {
  width: 8px;
}

.projects-grid::-webkit-scrollbar-track {
  background: #e2e8f0;
  border-radius: 4px;
}

.projects-grid::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.projects-grid::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.project-card {
  background-color: white;
  border-radius: 10px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  height: 250px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-left: 8px solid #f0b429;
}

.card-content h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #1e293b;
}

.card-content p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 10px;
}

.project-icons {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  margin-top: auto;
}

/* Right column */
.right-column {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  overflow-y: auto;
  max-height: 60vh;
  padding-right: 10px;
  margin-top: 38px;
}

/* Scrollbar styling for right column */
.right-column::-webkit-scrollbar {
  width: 8px;
}

.right-column::-webkit-scrollbar-track {
  background: #e2e8f0;
  border-radius: 4px;
}

.right-column::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.right-column::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.announcements-section,
.trending-section {
  background-color: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.announcements-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.announcement {
  padding-bottom: 15px;
  border-bottom: 1px solid #e2e8f0;
}

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

.announcement h4 {
  font-size: 0.95rem;
  margin-bottom: 5px;
  color: #1e293b;
}

.announcement p {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.4;
}

.trending-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.trending-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

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

.trending-username {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1e293b;
  margin-bottom: 2px;
}

.trending-description {
  font-size: 0.9rem;
  color: #64748b;
}

/* Responsive design */
@media (max-width: 1024px) {
  .dashboard-container {
    flex-direction: column;
  }
  
  .sidebar {
    position: relative;
    height: auto;
    width: 100%;
  }
  
  .dashboard-sections {
    grid-template-columns: 1fr;
  }
   
  .right-column {
    grid-column: 1;
    flex-direction: row;
    flex-wrap: wrap;
  }
   
  .announcements-section,
  .trending-section {
    flex: 1;
    min-width: 300px;
  }

  .projects-grid {
    max-height: 50vh;
  }
   
  .right-column {
    max-height: 50vh;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 15px 20px;
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .dashboard-greeting {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .header-buttons {
    width: 100%;
    justify-content: center;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    max-height: 55vh;
  }
  
  .right-column {
    flex-direction: column;
    max-height: 50vh;
  }
  
  .user-info {
    margin-right: 0;
  }
}