/**
 * Student layout: sidebar + main (zelfde stijl als admin/Leermiddelen Generator)
 */
.app-student {
  display: flex;
  min-height: 100vh;
  background: var(--color-neutral-50, #f8fafc);
}

.app-student__sidebar {
  --sidebar-bg: #1e293b;
  --sidebar-width: 260px;
  --sidebar-text: rgba(255, 255, 255, 0.9);
  --sidebar-text-muted: rgba(255, 255, 255, 0.6);
  --sidebar-accent: #3b82f6;
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: var(--z-fixed, 1030);
  transition: transform 0.2s ease, width 0.2s ease;
}

.app-student__sidebar-brand {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.app-student__sidebar-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sidebar-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}

.app-student__sidebar-brand-text {
  font-weight: 700;
  font-size: 1rem;
  color: white;
}

.app-student__sidebar-user {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.875rem;
}

.app-student__sidebar-user-name {
  font-weight: 600;
  color: white;
}

.app-student__sidebar-user-role {
  color: var(--sidebar-text-muted);
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

.app-student__sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0;
}

.app-student__sidebar-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.app-student__sidebar-nav-item {
  margin: 0;
}

.app-student__sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.5rem;
  color: var(--sidebar-text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: background 0.15s ease, color 0.15s ease;
  border-left: 3px solid transparent;
}

.app-student__sidebar-nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--sidebar-text);
}

.app-student__sidebar-nav-link.active {
  background: rgba(59, 130, 246, 0.15);
  color: white;
  border-left-color: var(--sidebar-accent);
}

.app-student__sidebar-nav-link i {
  font-size: 1.15rem;
  opacity: 0.9;
  width: 1.35rem;
  text-align: center;
}

.app-student__sidebar-footer {
  padding: 0.75rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.app-student__sidebar-footer .app-student__sidebar-nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.app-student__main {
  flex: 1;
  margin-left: var(--sidebar-width, 260px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-student__content {
  flex: 1;
  padding: 1.5rem 2rem 2rem;
}

.app-student__sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1029;
}

.app-student__sidebar-toggle {
  display: none;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 1040;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary-600, #4f46e5);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

@media (max-width: 991.98px) {
  .app-student__sidebar {
    transform: translateX(-100%);
  }

  .app-student__sidebar.open {
    transform: translateX(0);
  }

  .app-student__main {
    margin-left: 0;
  }

  .app-student__sidebar-toggle {
    display: flex;
  }

  .app-student__sidebar-overlay.show {
    display: block;
  }
}

/* Student dashboard: welkomsttekst + action cards */
.student-dashboard__title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.student-dashboard__intro {
  font-size: 1rem;
  color: var(--color-neutral-600, #475569);
}

.student-action-card {
  display: block;
  background: #fff;
  border-radius: var(--radius-lg, 0.75rem);
  padding: 1.5rem;
  height: 100%;
  border: 1px solid var(--color-neutral-200, #e2e8f0);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.student-action-card:hover {
  box-shadow: var(--shadow-lg, 0 10px 15px -3px rgb(0 0 0 / 0.1));
  transform: translateY(-2px);
  color: inherit;
}

.student-action-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.student-action-card--blue .student-action-card__icon { background: rgba(59, 130, 246, 0.15); color: #2563eb; }
.student-action-card--green .student-action-card__icon { background: rgba(34, 197, 94, 0.15); color: #16a34a; }
.student-action-card--purple .student-action-card__icon { background: rgba(139, 92, 246, 0.15); color: #6d28d9; }
.student-action-card--orange .student-action-card__icon { background: rgba(249, 115, 22, 0.15); color: #ea580c; }

.student-action-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-neutral-900, #0f172a);
}

.student-action-card__desc {
  font-size: 0.9375rem;
  color: var(--color-neutral-500, #64748b);
  margin-bottom: 0;
  line-height: 1.5;
}

/* Mijn Cursussen: cursuskaarten in studentenstijl */
.student-course-card {
  background: #fff;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  height: 100%;
  transition: box-shadow 0.2s ease;
}

.student-course-card:hover {
  box-shadow: var(--shadow-md);
}

.student-course-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.student-course-card__meta {
  font-size: 0.875rem;
  color: var(--color-neutral-500);
  margin-bottom: 0.75rem;
}

.student-course-card__progress-wrap {
  margin-bottom: 1rem;
}

.student-course-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-neutral-100);
}

body[data-theme="dark"] .student-action-card,
body[data-theme="dark"] .student-course-card {
  background: var(--color-neutral-800, #1e293b);
  border-color: var(--color-neutral-700, #334155);
}

body[data-theme="dark"] .student-action-card__title,
body[data-theme="dark"] .student-course-card__title {
  color: #e2e8f0;
}

body[data-theme="dark"] .student-action-card__desc,
body[data-theme="dark"] .student-course-card__meta {
  color: var(--color-neutral-400, #94a3b8);
}
