/* Two-Column Grid Layout */
#RecentActivityHeader {
  margin-top: 0px;
}

.dashboard-left-column {
  margin-bottom: 40px;
}

.dashboard-right-column {
  margin-bottom: 40px;
}

.footer {
  text-align: center;
}

/* Dashboard Header */
.dashboard-header {
  background: linear-gradient(135deg, #6a4d8a 0%, #4a3570 100%);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(106, 77, 138, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.dashboard-welcome h1 {
  color: white;
  font-size: 32px;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  flex: 1;
}

.dashboard-welcome p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.progress-percent {
  font-size: 48px;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  min-width: 80px;
  text-align: right;
}

/* Section Styles */
.section {
  margin-bottom: 30px;
}

.section h2 {
  color: #6a4d8a;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #6a4d8a;
  display: inline-block;
}

.section-right h2 {
  margin-top: 40px;
}

/* Course Cards */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.dashboard-course-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
}

.dashboard-course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(106, 77, 138, 0.15);
}

.course-image {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}

.course-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.dashboard-course-card:hover .course-thumb {
  transform: scale(1.05);
}

.course-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-header h3 {
  margin: 0 0 12px 0;
  color: #6a4d8a;
  font-size: 20px;
}

.course-content p {
  margin: 0 0 16px 0;
  color: #555;
  line-height: 1.6;
  font-size: 14px;
}

.progress-section {
  margin: 0 0 16px 0;
}

/* Progress Bar Override for Dashboard */
.dashboard-course-card .progress-fill {
  height: 8px;
  border-radius: 4px;
  font-size: 10px;
  padding: 0 6px;
}

.course-action {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.dashboard-course-card a {
  display: block;
  padding: 12px 20px;
  background: #6a4d8a;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  transition: all 0.3s ease;
}

.dashboard-course-card a:hover {
  background: #4a3570;
  transform: translateY(-2px);
}

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

.dashboard-activity-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  transition: all 0.3s ease;
  border-left: 4px solid #ddd;
  text-decoration: none;
  color: inherit;
}

.dashboard-activity-item:hover {
  background-color: #f5f5f5;
  transform: translateX(4px);
  border-left-color: #f1d204;
}

.activity-icon {
  font-size: 28px;
  margin-right: 15px;
  min-width: 36px;
  text-align: center;
}

.activity-content {
  flex: 1;
}

.activity-details {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.activity-lesson {
  font-weight: 500;
  color: #333;
  font-size: 15px;
}

.activity-course {
  color: #666;
  font-size: 14px;
}

.activity-date {
  font-size: 12px;
  color: #999;
}

.activity-icon.small {
  font-size: 14px;
}

.activity-action {
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.activity-link {
  color: #f1d204;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.activity-link:hover {
  color: #6a4d8a;
}

.no-activity {
  padding: 40px;
  text-align: center;
  color: #666;
  background: #f9f9f9;
  border-radius: 12px;
  border: 2px dashed #ddd;
}

/* Quick Links */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.quick-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #dee2e6;
}

.quick-link-item:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #6a4d8a 0%, #4a3570 100%);
  border-color: #6a4d8a;
}

.quick-link-item:hover .quick-link-icon,
.quick-link-item:hover .quick-link-text {
  color: white;
}

.quick-link-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quick-link-icon {
  font-size: 24px;
  color: #6a4d8a;
}

.quick-link-text {
  font-weight: 600;
  color: #6a4d8a;
}

.quick-link-right {
  font-size: 24px;
  color: #6a4d8a;
  transition: color 0.3s ease;
}

.quick-link-item:hover .quick-link-right {
  color: white;
}

/* Responsive */
@media (max-width: 991px) {
  .container-fluid {
    padding-left: 0;
    padding-right: 0;
  }

  .dashboard-left-column,
  .dashboard-right-column {
    margin-bottom: 30px;
  }

  .dashboard-header {
    flex-direction: column;
    padding: 25px;
    text-align: center;
    gap: 20px;
  }

  .dashboard-header > div:first-child {
    width: 100%;
  }

  .progress-percent {
    margin-top: 15px;
    font-size: 42px;
  }

  .section h2 {
    font-size: 18px;
  }

  .section.right h2 {
    margin-top: 30px;
  }

  .courses-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .quick-links {
    grid-template-columns: 1fr;
  }

  .activity-action {
    margin-left: 0;
    margin-top: 15px;
  }

  .activity-icon {
    font-size: 24px;
    margin-right: 12px;
  }

  .activity-lesson {
    font-size: 14px;
  }

  .quick-link-left {
    font-size: 14px;
  }
}

@media (max-width: 575px) {
  .dashboard-left-column,
  .dashboard-right-column {
    padding: 0 10px;
  }

  .dashboard-header {
    padding: 20px;
  }

  .progress-percent {
    font-size: 36px;
  }

  .section {
    margin-bottom: 20px;
  }

  .section h2 {
    font-size: 16px;
    margin-bottom: 15px;
    padding-left: 10px;
  }

  /* Extra spacing for mobile-specific sections */
  .section + .section {
    margin-top: 30px;
  }

  .quick-link-item {
    padding: 15px;
  }

  .activity-item {
    padding: 12px 15px;
  }
}

@media (max-width: 575px) {
  .dashboard-header {
    padding: 20px;
  }

  .progress-percent {
    font-size: 36px;
  }

  .section {
    margin-bottom: 20px;
  }

  .section h2 {
    font-size: 16px;
    margin-bottom: 15px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard-container > * {
  animation: fadeInUp 0.6s ease-out forwards;
}
