/* Individual Lesson View Styles */

.lesson-view {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.lesson-header {
  margin-bottom: 30px;
}

.lesson-info {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-top: 15px;
}

.lesson-info h1 {
  margin: 0 0 10px 0;
  color: #1f2937;
}

.lesson-info p {
  color: #6b7280;
  margin-bottom: 15px;
}

.lesson-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.lesson-meta > div {
  background: #f3f4f6;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
  color: #374151;
}

/* Activity Progress */
.activity-progress {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 🆕 NEW: Enhanced Progress Indicators (ADDITIVE) */
.enhanced-progress-info {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e5e7eb;
}

.completion-indicators {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.activity-indicator {
  display: inline-block;
  width: 24px;
  height: 24px;
  text-align: center;
  line-height: 24px;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.activity-indicator.completed {
  background-color: #10b981;
  color: white;
}

.activity-indicator.current {
  background-color: #3b82f6;
  color: white;
  animation: pulse 2s infinite;
}

.activity-indicator:not(.completed):not(.current) {
  background-color: #e5e7eb;
  color: #6b7280;
}

.activity-indicator:hover {
  transform: scale(1.1);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.time-info {
  font-size: 12px;
  color: #6b7280;
  text-align: center;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
  transition: width 0.3s ease;
}

.progress-text {
  text-align: center;
  color: #6b7280;
  font-size: 14px;
}

/* Activity Container */
.activity-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  min-height: 400px;
}

/* Activity Selection */
.activity-selection {
  padding: 30px;
  text-align: center;
}

.activity-selection h3 {
  margin-bottom: 30px;
  color: #1f2937;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.activity-card {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.activity-card:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.activity-card.active {
  border-color: #3b82f6;
  background: #eff6ff;
}

.activity-icon {
  font-size: 24px;
  margin-bottom: 10px;
}

.activity-info h4 {
  margin: 0 0 8px 0;
  color: #1f2937;
}

.activity-info p {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 10px;
}

.activity-meta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.activity-meta .points {
  background: #fef3c7;
  color: #92400e;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
}

.activity-meta .required {
  background: #fee2e2;
  color: #dc2626;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
}

.activity-meta .optional {
  background: #e0f2fe;
  color: #0277bd;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
}

/* Lesson Navigation */
.lesson-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.prev-btn {
  background: #f3f4f6;
  color: #374151;
}

.prev-btn:hover {
  background: #e5e7eb;
}

.next-btn {
  background: #3b82f6;
  color: white;
}

.next-btn:hover {
  background: #2563eb;
}

.complete-btn {
  background: #10b981;
  color: white;
}

.complete-btn:hover {
  background: #059669;
}

/* No Activities */
.no-activities {
  padding: 60px 30px;
  text-align: center;
  color: #6b7280;
}

.no-activities h3 {
  color: #374151;
  margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .lesson-view {
    padding: 15px;
  }
  
  .lesson-meta {
    flex-direction: column;
    gap: 10px;
  }
  
  .activities-grid {
    grid-template-columns: 1fr;
  }
  
  .lesson-navigation {
    flex-direction: column;
    gap: 15px;
  }
  
  .nav-btn {
    width: 100%;
  }
}