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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f0f2f5;
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: linear-gradient(180deg, #1e88e5 0%, #1565c0 100%);
  color: #fff;
  padding: 24px 0;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.logo h1 {
  font-size: 24px;
  font-weight: 700;
}

.nav-menu {
  margin-top: 24px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.2s;
  font-size: 15px;
  font-weight: 500;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-left: 4px solid #fff;
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Main Content */
.main-content {
  margin-left: 260px;
  flex: 1;
  padding: 24px;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  gap: 20px;
}

.search-bar {
  flex: 1;
  max-width: 600px;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-bar input {
  width: 100%;
  padding: 12px 16px 12px 48px;
  border: none;
  border-radius: 12px;
  background: #e8edf2;
  font-size: 15px;
}

.search-bar input:focus {
  outline: none;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.notification-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: none;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

.notification-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px 6px 6px;
  background: #fff;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.2s;
}

.user-profile:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-profile img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #1e88e5;
}

.user-profile span {
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
}

/* Welcome Section */
.welcome-section {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.user-avatar img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid #ffd700;
}

.greeting {
  font-size: 16px;
  color: #666;
  margin-bottom: 4px;
}

.user-name {
  font-size: 28px;
  font-weight: 600;
  color: #1a1a1a;
}

.action-buttons {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: #1e88e5;
  color: #fff;
}

.btn-primary:hover {
  background: #1565c0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
}

.section {
  background: transparent;
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 20px;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  border-left: 4px solid #ffd700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.card h4 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
}

.badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.badge-green {
  background: #d4edda;
  color: #155724;
}

.badge-orange {
  background: #fff3cd;
  color: #856404;
}

.badge-blue {
  background: #d1ecf1;
  color: #0c5460;
}

.badge-purple {
  background: #e2d9f3;
  color: #6c3fb5;
}

.card-description {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 16px;
}

.card-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #666;
}

.card-actions {
  display: flex;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid #f0f2f5;
}

.icon-btn {
  padding: 8px 12px;
  border: none;
  background: #f0f2f5;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

.icon-btn:hover {
  background: #e0e4e8;
  transform: scale(1.1);
}

/* Sidebar Content */
.sidebar-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.announcements {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.announcement-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.announcement-item {
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
  border-left: 3px solid #1e88e5;
}

.announcement-item h5 {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.announcement-item p {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

/* Quick Stats */
.quick-stats {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stats-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.stat-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(30, 136, 229, 0.2);
}

.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e88e5;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
}

.stat-label {
  font-size: 13px;
  color: #666;
}

/* Trending */
.trending {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.trending-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trending-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.trending-item:hover {
  background: #f0f2f5;
  transform: translateX(4px);
}

.trending-item img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #ffd700;
}

.trending-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

.trending-desc {
  font-size: 13px;
  color: #666;
}

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

  .cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 80px;
  }

  .main-content {
    margin-left: 80px;
  }

  .logo h1,
  .nav-item span:not(.nav-icon) {
    display: none;
  }

  .nav-item {
    justify-content: center;
  }

  .welcome-section {
    flex-direction: column;
    gap: 20px;
  }

  .action-buttons {
    width: 100%;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .header {
    flex-direction: column;
  }

  .search-bar {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 16px;
  }

  .user-profile span {
    display: none;
  }

  .cards-grid {
    gap: 16px;
  }

  .card {
    padding: 16px;
  }
}