/* Dashboard Page */
body { overflow-x: hidden; }

.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
  padding-top: 70px;
}

.dashboard-sidebar {
  width: 260px;
  background: rgba(255,255,255,0.03);
  border-right: 1px solid rgba(255,255,255,0.07);
  position: fixed;
  top: 70px;
  left: 0;
  height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.sidebar-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.sidebar-name { font-weight: 600; font-size: 0.95rem; }
.sidebar-email { color: var(--gray-400); font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }

.sidebar-nav {
  flex: 1;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  color: var(--gray-400);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.sidebar-link:hover,
.sidebar-link.active {
  color: var(--white);
  background: rgba(249,115,22,0.08);
  border-left-color: var(--orange);
}

/* Dashboard Main */
.dashboard-main {
  flex: 1;
  margin-left: 260px;
  padding: 40px;
  max-width: calc(100% - 260px);
}

.dash-header { margin-bottom: 32px; }
.dash-header h2 { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; margin-bottom: 6px; }
.dash-header p { color: var(--gray-400); }

.overview-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.overview-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.overview-card:hover { border-color: rgba(249,115,22,0.3); }
.ov-icon { font-size: 2rem; }
.ov-num { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: var(--orange); }
.ov-label { color: var(--gray-400); font-size: 0.85rem; }

.dash-section { margin-top: 32px; }
.dash-section h3 { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 20px; }

.empty-state {
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.empty-state span { font-size: 3rem; }
.empty-state p { color: var(--gray-400); }

.my-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.my-course-card { display: flex; flex-direction: column; gap: 10px; }
.my-course-card h4 { font-weight: 600; }
.my-course-card p { color: var(--gray-400); font-size: 0.85rem; }

.class-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.class-info h4 { font-weight: 600; margin-bottom: 6px; }
.class-info p { color: var(--gray-400); font-size: 0.85rem; }

.profile-card { max-width: 500px; }
.profile-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 24px;
  border: 3px solid rgba(249,115,22,0.3);
}

@media (max-width: 768px) {
  .dashboard-sidebar { position: static; width: 100%; height: auto; }
  .dashboard-wrapper { flex-direction: column; }
  .dashboard-main { margin-left: 0; max-width: 100%; padding: 20px; }
  .overview-cards { grid-template-columns: 1fr; }
}
