.card {
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-dark);
  padding: 0;
}

[data-bs-theme="light"] .card {
  border: 1px solid var(--border-light);
}

.card-body {
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  border-radius: 0 0 12px 12px !important;
}

.course-image {
  position: relative;
  overflow: hidden;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.course-card {
  height: 100%;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-header {
  background-color: var(--secondary);
  color: var(--white);
  padding: 2rem 0;
}

.profile-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-edit-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: var(--white);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  border: 2px solid var(--white);
  cursor: pointer;
}

.stats-card {
  background-color: var(--card-bg);
  color: var(--white);
  border: none;
}

.stats-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.stats-value {
  font-size: 2rem;
  font-weight: 700;
}

.course-progress {
  height: 8px;
  border-radius: 4px;
}

.progress-bar {
  background-color: var(--primary);
}

.nav-pills .nav-link.active {
  background-color: var(--primary);
  color: var(--white) !important;
}

.nav-pills .nav-link {
  color: var(--white);
}

[data-bs-theme="light"] .nav-pills .nav-link {
  color: var(--black);
}

.achievement-card {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  text-align: center;
  padding: 20px;
}

.achievement-icon {
  font-size: 3rem;
  color: var(--warning-color);
  margin-bottom: 15px;
}

.locked-achievement {
  opacity: 0.5;
}

.activity-item {
  border-left: 3px solid var(--primary);
  padding-left: 20px;
  margin-bottom: 20px;
  position: relative;
}

.activity-item::before {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: var(--primary);
  left: -9px;
  top: 0;
}

.streak-day {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin: 0 5px;
}

.streak-active {
  background-color: var(--primary);
  color: var(--white);
}

.streak-inactive {
  background-color: var(--gray);
  color: var(--secondary);
}

footer {
  background-color: var(--secondary);
  color: var(--text-muted);
  padding: 40px 0;
}

footer h5 {
  color: var(--white);
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--white);
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  transition: background-color 0.3s ease;
}

.social-icon:hover {
  background-color: var(--primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .image-container {
    margin-bottom: 2rem;
    justify-content: start !important;
  }
}

.stat-card {
  background-color: var(--card-bg);
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--white);
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  transition: transform 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card .stat-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-card .stat-label {
  font-size: 0.95rem;
  opacity: 0.9;
}

