.my-courses-page {
  display: flex;
  flex-direction: column;
  padding-bottom: 80px;
}

.page-header {
  padding: 20px 20px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.5px;
}

.create-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: var(--primary-fg);
  border: none;
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 16px 0 8px;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}

.status-dot.published {
  background: #1abc9c;
}

.delete-course-btn {
  background: none;
  border: none;
  color: #ff4d4f;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.delete-course-btn:hover {
  opacity: 1;
}

.page-content {
  padding: 0 20px;
}

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

.enrollment-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.enrollment-card:active {
  transform: scale(0.98);
}

.enrollment-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.course-icon-wrap {
  width: 44px;
  height: 44px;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text);
  flex-shrink: 0;
}

.enrollment-info {
  flex: 1;
  min-width: 0;
}

.enrollment-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.enrollment-date {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.chevron {
  font-size: 14px;
  color: var(--text-muted);
}

.progress-section {
  margin-top: 12px;
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.progress-label {
  font-size: 12px;
  color: var(--text-muted);
}

.progress-percent {
  font-size: 12px;
  font-weight: 700;
  color: #1abc9c;
}

/* Skeleton loading */
.loading-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-card {
  height: 100px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.empty-icon {
  font-size: 48px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.empty-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
}

.empty-hint {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}
