/* Dashboard Styles */

.dashboard__header {
  margin-bottom: 2rem;
}

.dashboard__title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--gray-900);
}

.dashboard__subtitle {
  font-size: var(--font-size-lg);
  margin: 0;
}

.dashboard__stats {
  margin-bottom: 2rem;
}

/* Stat Cards */
.stat-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.stat-card__icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: var(--border-radius);
}

.stat-card__value {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1;
}

.stat-card__label {
  font-size: var(--font-size-sm);
  color: var(--gray-600);
  margin-top: 0.25rem;
}

/* Course List */
.course-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.course-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  transition: border-color 0.2s;
}

.course-item:hover {
  border-color: var(--primary-color);
}

.course-item__info {
  flex: 1;
}

.course-item__title {
  font-size: var(--font-size-base);
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  color: var(--gray-900);
}

.course-item__language {
  margin: 0;
  font-size: var(--font-size-sm);
}

.course-item__progress {
  flex: 1;
  max-width: 200px;
}

/* Progress Bar */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-text {
  display: block;
  text-align: right;
}

/* Progress Chart */
.progress-chart {
  height: 200px;
  padding: 1rem 0;
}

.progress-chart__bars {
  display: flex;
  align-items: end;
  justify-content: space-between;
  height: 100%;
  gap: 0.5rem;
}

.progress-chart__bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.progress-chart__bar-fill {
  width: 100%;
  background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: height 0.3s ease;
}

.progress-chart__bar-label {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--gray-600);
  margin-top: 0.5rem;
}

.progress-chart__bar-value {
  font-size: var(--font-size-sm);
  color: var(--gray-500);
  margin-top: 0.25rem;
}

/* Activity List */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.activity-item__icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: var(--border-radius);
  font-size: 1rem;
  flex-shrink: 0;
}

.activity-item__content {
  flex: 1;
}

.activity-item__title {
  font-weight: 500;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.activity-item__meta {
  line-height: 1.4;
}

/* Achievement List */
.achievement-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.achievement-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--gray-50);
  border-radius: var(--border-radius);
}

.achievement-item__badge {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: var(--border-radius);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.achievement-item__content {
  flex: 1;
}

.achievement-item__name {
  margin-bottom: 0.25rem;
}

.achievement-item__points {
  flex-shrink: 0;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 2rem;
}

.empty-state--sm {
  padding: 1rem;
}

.empty-state__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-state__title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--gray-700);
}

.empty-state__text {
  color: var(--gray-500);
  margin: 0 0 1.5rem 0;
}

/* Quick Actions */
.quick-actions__title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: var(--gray-900);
}

.quick-actions__buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
  .course-item {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  
  .course-item__progress {
    max-width: none;
  }
  
  .progress-text {
    text-align: left;
  }
  
  .quick-actions__buttons {
    flex-direction: column;
  }
  
  .quick-actions__buttons .btn {
    justify-content: flex-start;
  }
}
/* Dark Mode Purple Theme for Dashboard Stats */
.dark .dashboard__stats {
  /* Add purple gradient background for stats section */
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.1), 
    rgba(124, 58, 237, 0.05));
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.dark .stat-card {
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.15), 
    rgba(124, 58, 237, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 
    0 4px 6px -1px rgba(139, 92, 246, 0.1),
    0 2px 4px -1px rgba(124, 58, 237, 0.05);
}

.dark .stat-card:hover {
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.2), 
    rgba(124, 58, 237, 0.15));
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 
    0 10px 15px -3px rgba(139, 92, 246, 0.2),
    0 4px 6px -2px rgba(124, 58, 237, 0.1);
  transform: translateY(-3px);
}

.dark .stat-card__icon {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
  box-shadow: 
    0 4px 8px rgba(139, 92, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.dark .stat-card__value {
  color: #a78bfa;
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
  font-weight: 800;
}

.dark .stat-card__label {
  color: #c4b5fd;
}

/* Purple theme for progress elements in dark mode */
.dark .progress-bar__fill {
  background: linear-gradient(90deg, #8b5cf6, #a78bfa);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

.dark .progress-chart__bar-fill {
  background: linear-gradient(180deg, #8b5cf6, #7c3aed);
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
}

.dark .activity-item__icon {
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.2), 
    rgba(124, 58, 237, 0.15));
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #a78bfa;
}

/* Enhanced glow effects for dashboard stats */
.dark .dashboard__stats::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, 
    transparent, 
    rgba(139, 92, 246, 0.1), 
    transparent, 
    rgba(124, 58, 237, 0.1), 
    transparent);
  border-radius: var(--border-radius-lg);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dark .dashboard__stats:hover::before {
  opacity: 1;
}

/* Animated gradient border for stat cards */
.dark .stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    rgba(139, 92, 246, 0.3), 
    rgba(124, 58, 237, 0.2), 
    rgba(139, 92, 246, 0.3));
  border-radius: var(--border-radius-lg);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.dark .stat-card:hover::before {
  opacity: 1;
}

/* Purple accent for dashboard title in dark mode */
.dark .dashboard__title {
  background: linear-gradient(135deg, #a78bfa, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtle purple tint for course items in dark mode */
.dark .course-item {
  border-color: rgba(139, 92, 246, 0.2);
  background: rgba(139, 92, 246, 0.05);
}

.dark .course-item:hover {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.1);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

/* Purple theme for activity items */
.dark .activity-item__title {
  color: #c4b5fd;
}

/* Ensure proper positioning for pseudo-elements */
.dark .dashboard__stats,
.dark .stat-card {
  position: relative;
}

/* Additional purple accents */
.dark .dashboard__subtitle {
  color: #a78bfa;
}

/* Purple scrollbar for dashboard in dark mode */
.dark .dashboard::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #8b5cf6, #7c3aed);
}

.dark .dashboard::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #a78bfa, #8b5cf6);
}