:root {
  --primary-color: #7c4dff;
  --secondary-color: #888;
  --background-color: #f5f5ff;
  --text-color: #333;
  --white: #fff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--background-color);
  padding-bottom: 70px; /* Space for bottom nav */
}

.container {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 80px; /* Increased padding to prevent overlap with bottom nav */
}

/* Header Styles */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-color);
}

/* Search Bar */
.search-bar {
  display: flex;
  align-items: center;
  background-color: var(--white);
  border-radius: 10px;
  padding: 8px;
  box-shadow: var(--shadow);
  margin: 15px 0;
}

.search-bar input {
  border: none;
  outline: none;
  flex: 1;
  padding: 8px;
  font-size: 16px;
}

.search-bar button {
  background-color: var(--primary-color);
  border: none;
  color: var(--white);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}

/* Course Grid */
.course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 20px;
  padding: 0 10px;
}

.course-card {
  background-color: var(--white);
  border-radius: 20px;
  padding: 15px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  height: 250px;
  display: flex;
  flex-direction: column;
  padding-bottom: 70px; /* Space for button */
}

.course-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 8px;
}

.course-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 5px 0;
}

.course-card p {
  font-size: 12px;
  color: var(--secondary-color);
  margin-bottom: 8px;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-card .btn {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  width: calc(100% - 30px);
}

.course-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
  font-size: 12px;
}

.course-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .course-card h3 {
    font-size: 18px;
  }

  .course-card p {
    font-size: 14px;
  }

  .course-meta {
    flex-direction: row;
    gap: 15px;
    font-size: 14px;
  }

  .course-image {
    height: 180px;
  }
}

.image-preview {
  margin-top: 10px;
  max-width: 300px;
}

.image-preview img {
  width: 100%;
  border-radius: 8px;
}

.form-group input[type="file"] {
  padding: 10px 0;
}

/* Bottom Navigation */
.bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: var(--white);
  padding: 8px 0;
  position: fixed;
  bottom: 0;
  width: 100%;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  height: 60px; /* Fixed height */
}

.bottom-nav a {
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 20px; /* Slightly smaller icons */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 8px;
  width: 33.33%; /* Equal width distribution */
  justify-content: center;
}

.bottom-nav a.active {
  color: var(--primary-color);
}

.bottom-nav a span {
  font-size: 11px;
  margin-top: 4px;
}

/* Form Styles */
.form-container {
  background-color: var(--white);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
  margin: 15px;
  max-width: 500px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 16px;
}

.btn {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 120px;
  width: auto;
  margin: 0;
}

.btn i {
  font-size: 18px;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--secondary-color);
}

.btn-danger {
  background-color: #f44336;
}

/* Course card buttons */
.course-card .btn {
  width: 100%;
  margin: 15px 0;
  padding: 12px;
}

/* Course actions buttons */
.course-actions {
  display: flex;
  gap: 15px;
  padding: 15px;
  border-top: 1px solid #eee;
  background: rgba(124, 77, 255, 0.05);
}

.course-actions .btn {
  flex: 1;
  margin: 0;
}

/* Admin dashboard buttons */
.course-item-actions {
  display: flex;
  gap: 10px;
}

.course-item-actions .btn {
  min-width: 44px;
  width: 44px;
  padding: 10px;
}

/* Header buttons */
.header .btn {
  padding: 8px 16px;
  min-width: auto;
}

/* Enroll button */
.enroll-btn {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  margin: 0;
}

.enroll-btn.enrolled {
  background-color: #4caf50;
  cursor: not-allowed;
}

/* View all button */
.view-all-section .btn {
  padding: 12px 30px;
  margin: 0;
}

/* Form buttons */
.form-buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.form-buttons .btn {
  flex: 1;
  margin: 0;
}

/* Add these styles to your existing style.css */

/* Admin Dashboard Specific */
.course-list {
  margin-top: 20px;
}

.course-item {
  background-color: var(--white);
  border-radius: 15px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.course-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.course-item-title {
  font-size: 18px;
  font-weight: 600;
}

.course-item-actions {
  display: flex;
  gap: 8px;
}

.course-item-actions .btn {
  padding: 8px 12px;
}

.course-item-meta {
  font-size: 14px;
  color: var(--secondary-color);
}

/* Profile Page Specific */
.profile-header {
  background-color: var(--white);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
  text-align: center;
}

.profile-image-container {
  width: 150px;
  height: 150px;
  margin: 0 auto 20px;
  position: relative;
}

.profile-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid var(--primary-color);
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.profile-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  padding: 8px;
  opacity: 0;
  transition: opacity 0.3s;
}

.profile-image:hover .profile-image-overlay {
  opacity: 1;
}

.change-photo-btn {
  color: white;
  cursor: pointer;
  font-size: 20px;
}

.student-info {
  text-align: center;
}

.student-info h2 {
  color: var(--primary-color);
  font-size: 24px;
  margin-bottom: 8px;
}

.student-info p {
  color: var(--secondary-color);
  margin-bottom: 20px;
}

/* Enrolled Courses Section */
.enrolled-courses {
  padding: 20px 0;
}

.enrolled-courses h2 {
  color: var(--primary-color);
  font-size: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.enrolled-courses h2 i {
  margin-right: 10px;
}

/* Enrolled Course Cards */
#enrolledCoursesList {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

#enrolledCoursesList .course-card {
  background: var(--white);
  border-radius: 15px;
  box-shadow: var(--shadow);
  overflow: hidden;
  height: 400px;
  position: relative;
  padding: 15px;
}

#enrolledCoursesList .course-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

#enrolledCoursesList h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-color);
}

#enrolledCoursesList p {
  font-size: 14px;
  color: var(--secondary-color);
  line-height: 1.5;
  margin-bottom: 15px;
}

#enrolledCoursesList .course-meta {
  display: flex;
  gap: 15px;
  color: var(--secondary-color);
  font-size: 13px;
  margin-bottom: 15px;
}

/* Course Action Buttons */
#enrolledCoursesList .course-actions {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  display: flex;
  gap: 10px;
}

#enrolledCoursesList .course-actions .btn {
  flex: 1;
  padding: 12px;
  font-size: 14px;
}

/* Button Colors */
#enrolledCoursesList .btn-primary {
  background-color: var(--primary-color);
}

#enrolledCoursesList .btn-secondary {
  background-color: var(--secondary-color);
}

#enrolledCoursesList .btn-danger {
  background-color: #f44336;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.modal-content {
  background-color: var(--white);
  margin: 10% auto;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-content h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: center;
}

.close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  cursor: pointer;
  color: var(--secondary-color);
  transition: color 0.3s;
}

.close:hover {
  color: var(--primary-color);
}

/* Course card improvements for profile page */
.course-card {
  transition: transform 0.3s ease;
}

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

.course-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.course-actions .btn {
  flex: 1;
  padding: 12px;
}

/* Empty state improvements */
.empty-state {
  padding: 40px 20px;
  text-align: center;
}

.empty-state i {
  font-size: 60px;
  color: var(--primary-color);
  opacity: 0.5;
  margin-bottom: 20px;
}

.empty-state h3 {
  color: var(--primary-color);
  font-size: 20px;
  margin-bottom: 10px;
}

.empty-state p {
  color: var(--secondary-color);
  margin-bottom: 25px;
}

.empty-state .btn {
  padding: 12px 30px;
  font-size: 16px;
}

/* Message Styles */
.message {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 25px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1000;
  animation: slideDown 0.3s ease-out;
}

.message.success {
  background-color: #4caf50;
  color: white;
}

.message.error {
  background-color: #f44336;
  color: white;
}

@keyframes slideDown {
  from {
    transform: translate(-50%, -100%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

/* Add these styles to your existing CSS */

.view-all-section {
  text-align: center;
  margin: 30px 0;
}

.page-header {
  margin-bottom: 20px;
}

.page-header h1 {
  color: var(--primary-color);
  margin-bottom: 5px;
}

.page-header p {
  color: var(--secondary-color);
}

/* Update bottom nav for 3 items */
.bottom-nav a {
  width: 33.33%;
}

.form-footer {
  margin-top: 20px;
  text-align: center;
}

.form-footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.form-footer a:hover {
  text-decoration: underline;
}

.error-message {
  background-color: #f44336;
  color: white;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 15px;
  display: none;
}

/* Add these styles for the logout button */
.header .btn-secondary {
  padding: 8px 16px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header .btn-secondary i {
  font-size: 16px;
}

.header .btn-secondary:hover {
  background-color: #f44336;
}

/* Update the Course Grid styles */
/* Default grid (for index.html - 2 columns) */
.course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns for index page */
  gap: 15px;
  margin-top: 20px;
  padding: 0 10px;
}

/* Single column grid for courses.html */
#allCourseGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-top: 20px;
  padding: 0 10px;
}

#allCourseGrid .course-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 400px;
  position: relative;
  overflow: hidden;
}

#allCourseGrid .course-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

#allCourseGrid .course-content {
  padding: 10px;
  flex: 1;
}

#allCourseGrid h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-color);
}

#allCourseGrid p {
  font-size: 14px;
  color: var(--secondary-color);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  max-height: 80px;
  margin-bottom: 10px;
}

#allCourseGrid .course-meta {
  padding: 5px 10px;
  font-size: 11px;
  color: var(--secondary-color);
  display: flex;
  gap: 8px;
}

#allCourseGrid .btn {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  width: calc(100% - 20px);
  padding: 6px;
  font-size: 12px;
}

/* Add these styles for admin dashboard course images */
.course-item {
  background-color: var(--white);
  border-radius: 15px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.course-item-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 10px;
}

.course-list {
  max-width: 800px;
  margin: 0 auto;
}

.admin-courses h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.course-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.course-item-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
}

.course-item-meta {
  display: flex;
  gap: 15px;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.course-item-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.course-item-actions {
  display: flex;
  gap: 8px;
}

.course-item-actions .btn {
  padding: 8px 12px;
  min-width: 40px;
  justify-content: center;
}

/* Add these styles for profile page course grid */
.enrolled-courses .course-grid {
  display: grid;
  grid-template-columns: 1fr; /* Single column for enrolled courses */
  gap: 20px;
  margin-top: 20px;
  padding: 0 10px;
}

.enrolled-courses .course-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.enrolled-courses .course-image {
  height: 200px; /* Larger images for single column */
  object-fit: cover;
}

.enrolled-courses .course-meta {
  flex-direction: row;
  gap: 20px;
  margin: 15px 0;
}

.enrolled-courses h3 {
  font-size: 20px;
}

.enrolled-courses p {
  font-size: 15px;
}

.enrolled-courses .course-actions {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.enrolled-courses .course-actions .btn {
  flex: 1;
  padding: 12px;
}

/* Add these styles for home page courses */
.greeting {
  text-align: center;
  margin: 20px 0 30px;
}

.greeting h1 {
  color: var(--primary-color);
  font-size: 28px;
  margin-bottom: 8px;
}

.greeting p {
  color: var(--secondary-color);
  font-size: 16px;
}

/* Home page specific course grid */
#courseGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 20px;
}

#courseGrid .home-course-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 250px; /* Adjusted for fixed image height */
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
  text-decoration: none;
}

#courseGrid .course-image-container {
  width: 100%;
  height: 140px; /* Fixed height for images */
  overflow: hidden;
  background: #f0f0f0; /* Background for images that don't load */
}

#courseGrid .course-image-container img {
  width: 100%;
  height: 140px; /* Same as container */
  object-fit: cover;
  object-position: center;
}

#courseGrid .course-content {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#courseGrid h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#courseGrid .course-meta {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--secondary-color);
}

#courseGrid .course-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

#courseGrid .course-meta i {
  color: var(--primary-color);
  width: 16px;
  text-align: center;
}

/* Course Detail Page Styles */
.course-detail {
  background: var(--white);
  border-radius: 15px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.course-detail img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}

.course-detail h2 {
  color: var(--primary-color);
  font-size: 24px;
  margin-bottom: 15px;
}

.course-detail .course-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  color: var(--secondary-color);
  font-size: 14px;
}

.course-detail p {
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
  margin-bottom: 20px;
}

.course-detail .btn {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  margin-top: 20px;
}

/* Profile page enrolled courses */
.enrolled-courses .course-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 20px;
  padding: 0 10px;
}

.enrolled-courses .course-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 400px; /* Increased to match courses.html */
  position: relative;
  overflow: hidden;
  padding: 15px;
  padding-bottom: 70px; /* Increased space for buttons */
}

.enrolled-courses .course-image {
  width: 100%;
  height: 200px; /* Increased to match courses.html */
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.enrolled-courses h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.enrolled-courses p {
  font-size: 14px;
  line-height: 1.4;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.enrolled-courses .course-meta {
  display: flex;
  gap: 15px;
  color: var(--secondary-color);
  font-size: 12px;
  margin-bottom: 15px;
}

.enrolled-courses .btn {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  width: calc(100% - 30px);
  padding: 12px;
}

/* Reset any absolute positioning for regular buttons */
.enrolled-courses .course-card .btn {
  position: static;
  width: 100%;
  margin-bottom: 10px;
}

/* Style for the action buttons container */
.enrolled-courses .course-actions {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0;
  background: none;
}

/* Style for individual action buttons */
.enrolled-courses .course-actions .btn {
  position: static;
  flex: 1;
  padding: 12px;
  margin: 0;
  width: auto;
}

/* Remove any conflicting styles */
.enrolled-courses .btn-secondary {
  background-color: var(--secondary-color);
}

.enrolled-courses .btn-danger {
  background-color: #f44336;
}

/* Base card styles - remove all duplicates */
.course-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding: 15px;
  padding-bottom: 70px;
}

/* Home page specific (#courseGrid) */
#courseGrid .home-course-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 250px; /* Adjusted for fixed image height */
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
  text-decoration: none;
}

#courseGrid .course-image-container {
  width: 100%;
  height: 140px; /* Fixed height for images */
  overflow: hidden;
  background: #f0f0f0; /* Background for images that don't load */
}

#courseGrid .course-image-container img {
  width: 100%;
  height: 140px; /* Same as container */
  object-fit: cover;
  object-position: center;
}

#courseGrid .course-content {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#courseGrid h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#courseGrid p {
  display: none;
}

#courseGrid .course-meta {
  padding: 5px 10px;
  font-size: 11px;
  color: var(--secondary-color);
  display: flex;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Profile page styles only */
.enrolled-course-card {
  background: var(--white);
  border-radius: 15px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 400px;
  position: relative;
  padding: 20px;
  margin-bottom: 20px;
}

.enrolled-course-card .course-image-container {
  width: 100%;
  height: 200px;
  margin-bottom: 15px;
}

.enrolled-course-card .course-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.enrolled-course-card .course-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.enrolled-course-card .course-header h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-color);
}

.enrolled-course-card .course-meta {
  display: flex;
  gap: 15px;
  color: var(--secondary-color);
  font-size: 13px;
  margin-bottom: 15px;
}

.enrolled-course-card .course-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.enrolled-course-card .course-meta i {
  color: var(--primary-color);
}

.enrolled-course-card .course-actions {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
}

.enrolled-course-card .course-actions .btn {
  flex: 1;
  padding: 12px;
  font-size: 14px;
}

/* Remove any conflicting styles */
#enrolledCoursesList {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 20px;
}

/* Custom Alert Styles */
.custom-alert {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.alert-content {
  background: var(--white);
  border-radius: 15px;
  padding: 25px;
  width: 90%;
  max-width: 400px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.alert-content h3 {
  color: var(--primary-color);
  font-size: 20px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-content h3 i {
  color: #f44336;
}

.alert-content p {
  color: var(--text-color);
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.4;
}

.alert-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.alert-buttons .btn {
  padding: 10px 20px;
  min-width: 100px;
}

/* Profile Image Upload Modal */
.upload-container {
  text-align: center;
  padding: 20px 0;
}

.preview-container {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-color);
}

.preview-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 200px;
  margin: 0 auto;
}

.upload-actions .btn {
  width: 100%;
  padding: 12px;
}

.upload-actions .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#uploadImageModal .modal-content {
  max-width: 350px;
}

#uploadImageModal h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Profile page hover effects */
.profile-image {
  position: relative;
  transition: transform 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.02);
}

.profile-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  padding: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.profile-image:hover .profile-image-overlay {
  opacity: 1;
}

.change-photo-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 24px;
  padding: 8px;
  transition: transform 0.3s ease;
}

.change-photo-btn:hover {
  transform: scale(1.1);
}

/* Enrolled course card hover effects */
.enrolled-course-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.enrolled-course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.enrolled-course-card .btn {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.enrolled-course-card .btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.enrolled-course-card .btn-view:hover {
  background-color: #6b42e0;
}

.enrolled-course-card .btn-danger:hover {
  background-color: #d32f2f;
}

/* Edit profile button hover */
.student-info .btn {
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.student-info .btn:hover {
  transform: translateY(-2px);
  background-color: #6b42e0;
}

/* Modal buttons hover */
.modal .btn {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.modal .btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* Close button hover */
.close {
  transition: color 0.3s ease, transform 0.3s ease;
}

.close:hover {
  color: #f44336;
  transform: rotate(90deg);
}

/* Allow text selection for input fields and text areas */
input,
textarea {
  -webkit-user-select: text;
  user-select: text;
}

/* Add these styles for the upload options */
.upload-options {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.option-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: var(--background-color);
  color: var(--secondary-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.tab-content {
  margin-bottom: 20px;
}

#imageUrlInput {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 15px;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: none;
}

/* Allow text selection for input fields and text areas */
input,
textarea {
  -webkit-user-select: text;
  user-select: text;
}

/* Prevent link preview on long press */
a {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
