.dashboard-top-link{
  font-weight: 700!important;
  color:rgba(0, 0, 0, 0.55)!important;
  font-size: 13.328px;
}


.apple-style-section {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  padding: 2rem;
  min-height: calc(100vh - 60px);
  background: #f5f5f7;
}

.section-header {
  max-width: 1440px;
  margin: 0 auto 2rem;
  padding: 0 20px;
}

.section-title {
  font-size: 32px;
  font-weight: 600;
  color: #1d1d1f;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.add-course-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 14px;
  color: #1d1d1f;
  background: white;
  border: 1px solid #d2d2d7;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.add-course-button:hover {
  background: #f5f5f7;
  border-color: #1d1d1f;
}

.courses-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

.empty-state {
  background: white;
  border-radius: 18px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.empty-state-content {
  max-width: 500px;
  margin: 0 auto;
}

.icon-wrapper {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-icon {
  color: #6e6e73;
  width: 100%;
  height: 100%;
}

.empty-title {
  font-size: 24px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 1rem;
}

.empty-description {
  font-size: 17px;
  line-height: 1.5;
  color: #6e6e73;
  margin-bottom: 2rem;
}

.browse-courses-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #0066cc;
  text-decoration: none;
  font-size: 17px;
  font-weight: 400;
}

.browse-courses-button:hover {
  text-decoration: underline;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1440px;
  margin: 0 auto;
  padding: 1rem 0;
}

.course-card {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

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

.card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.card-icon {
  margin-bottom: 1.5rem;
}

.card-icon i {
  width: 48px;
  height: 48px;
  color: #6e6e73;
}

.card-title {
  font-size: 24px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.card-description {
  font-size: 15px;
  line-height: 1.5;
  color: #6e6e73;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 180px;
}

.view-course-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #0066cc;
  text-decoration: none;
  font-size: 17px;
  font-weight: 400;
  margin-top: auto;
  padding-top: 1rem;
}

.view-course-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .apple-style-section {
    padding: 1rem;
  }

  .section-header {
    margin: 0 0 1rem;
    padding: 0 10px;
  }

  .courses-container {
    padding: 0 10px;
  }

  .course-card {
    min-height: 350px;
  }

  .card-content {
    padding: 1.25rem;
  }

  .card-icon {
    margin-bottom: 1rem;
  }

  .card-title {
    font-size: 20px;
    margin-bottom: 0.75rem;
  }

  .card-description {
    font-size: 14px;
    margin-bottom: 1rem;
    height: 160px;
  }

  .view-course-link {
    padding-top: 0.75rem;
    font-size: 15px;
  }

  .empty-state {
    padding: 1.5rem;
    margin: 0.5rem;
  }

  .empty-state-content {
    padding: 0;
  }

  .icon-wrapper {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
  }

  .empty-title {
    font-size: 20px;
    margin-bottom: 0.75rem;
  }

  .empty-description {
    font-size: 15px;
    margin-bottom: 1.5rem;
  }

  .browse-courses-button {
    font-size: 15px;
  }

  .section-title {
    font-size: 28px;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

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

/* Small mobile devices */
@media (max-width: 375px) {
  .apple-style-section {
    padding: 0.75rem;
  }

  .card-content {
    padding: 1rem;
  }

  .card-title {
    font-size: 18px;
  }

  .card-description {
    font-size: 13px;
    height: 150px;
  }
}

/* Modal Styles */
.modal-content {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  border-radius: 12px;
  border: none;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  background: #ffffff;
}

.modal-header {
  padding: 1.5rem 1.5rem 1rem;
  border: none;
}

.modal-title {
  font-size: 24px;
  font-weight: 600;
  color: #1d1d1f;
}

.modal-close {
  background: none;
  border: none;
  padding: 0.5rem;
  color: #6e6e73;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #1d1d1f;
}

.modal-body {
  padding: 1rem 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1f;
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 16px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  background: #fff;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

.form-input::placeholder {
  color: #86868b;
}

.modal-footer {
  padding: 1rem 1.5rem 1.5rem;
  border: none;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.modal-button-primary,
.modal-button-secondary {
  padding: 0.75rem 1.5rem;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  border: none;
  transition: all 0.2s ease;
}

.modal-button-primary {
  background: #0066cc;
  color: white;
}

.modal-button-primary:hover {
  background: #0077ed;
}

.modal-button-secondary {
  background: #e5e5e7;
  color: #1d1d1f;
}

.modal-button-secondary:hover {
  background: #d5d5d7;
}

@media (max-width: 768px) {
  .modal-content {
    margin: 1rem;
  }

  .modal-title {
    font-size: 21px;
  }

  .form-input {
    font-size: 15px;
  }
}

.card-x {
  position: relative;
  display: flex;
  /* width: 350px; */
  border: 1px solid #a6a6a6;
  padding: 10px;
  border-radius: 6px;
  gap: 0.5rem;
  height: max-content;
  cursor: pointer !important;
}
.card-x:hover .bar {
  margin-right: 5px;
}
.card_form {
  position: relative;
  min-width: 5em;
  min-height: 5em;
  border-radius: 4px;
  background: rgb(0, 50, 167);
  background: radial-gradient(circle, rgba(0, 50, 167, 0.7917542016806722) 27%, rgba(194, 194, 194, 1) 100%);
  transition: 0.2s ease-in-out;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-x:hover .card_form {
  animation: rotate-border 2s linear infinite;
  background: linear-gradient(90deg, rgba(0, 50, 167, 0.8) 0%, rgba(194, 194, 194, 1) 50%, rgba(0, 50, 167, 0.8) 100%);
  background-size: 200% 100%;
}

@keyframes rotate-border {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}


/* Lesson Content Card Styles */
.lesson-content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 0.5rem 0;
}

.lesson-content-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: none;
}

.lesson-content-card:hover {
  /* transform: translateY(-4px); */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.lesson-content-wrapper {
  display: flex;
  align-items: center;
  padding: 1.25rem;
  gap: 1rem;
  cursor: pointer;
}

.lesson-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0066cc, #0044aa);
  flex-shrink: 0;
}

.lesson-icon-wrapper i {
  color: white;
  width: 24px;
  height: 24px;
}

.lesson-content-info {
  flex: 1;
}

.lesson-content-title {
  font-size: 16px;
  font-weight: 500;
  color: #1d1d1f;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.lesson-content-type {
  font-size: 11px;
  color: #6e6e73;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lesson-content-type span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.lesson-actions {
  position: relative;
  /* z-index: 1; */
  right: -10px;
}

.lesson-action-button {
  background: none;
  border: none;
  padding: 0.5rem;
  color: #6e6e73;
  transition: color 0.2s ease;
}

.lesson-action-button:hover {
  color: #1d1d1f;
}

/* Video specific styles */
.lesson-content-card[data-type="video"] .lesson-icon-wrapper {
  background: linear-gradient(135deg, #ff3b30, #ff6961);
}

/* Image specific styles */
.lesson-content-card[data-type="image"] .lesson-icon-wrapper {
  background: linear-gradient(135deg, #34c759, #30d158);
}

/* File specific styles */
.lesson-content-card[data-type="file"] .lesson-icon-wrapper {
  background: linear-gradient(135deg, #5856d6, #7a79e0);
}

/* Accordion customization for lesson content */
.accordion-body-style {
  background: #f5f5f75f;
  border-radius: 0 0 12px 12px;
}

.accordion-header {
  display: flex;
  align-items: center;
  padding-right: 0.5rem;
}

.accordion-button {
  background: white !important;
  box-shadow: none !important;
}

.accordion-button::after {
  display: none !important;
}

.accordion-button:not(.collapsed) {
  color: inherit;
}

.accordion-button:focus {
  box-shadow: none !important;
  border-color: rgba(0,0,0,.125) !important;
}

/* Kebab menu styling */
.lesson-actions {
  display: flex;
  align-items: center;
  height: 100%;
}

.lesson-actions .btn-icon {
  padding: 0.25rem;
  color: #6e6e73;
  height: 32px;
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lesson-actions .btn-icon:hover {
  color: #1d1d1f;
}

.lesson-actions .dropdown-menu {
  min-width: 200px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  border: none;
  border-radius: 8px;
}

.lesson-actions .dropdown-item {
  padding: 0.5rem 1rem;
  font-size: 14px;
}

.lesson-actions .dropdown-item:hover {
  background: #f5f5f7;
}

/* Accordion body styling */
.accordion-body {
  padding: 1rem 0.75rem;
}

@media (max-width: 768px) {
  .lesson-content-grid {
    grid-template-columns: 1fr;
  }
  
  .lesson-content-wrapper {
    padding: 1rem;
  }
  
  .lesson-content-title {
    font-size: 15px;
  }
}

/* Player Modal Styles - Highest z-index */
#playerModal {
  background: rgba(0, 0, 0, 0.85);
  z-index: 1999; /* Increased to be higher than all other elements */
}

#playerModal .modal-dialog {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 60px);
  margin: 30px auto;
}

#playerModal .modal-content {
  background: transparent;
  border: none;
  box-shadow: none;
}

#playerModal .modal-body {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#playerModal img,
#playerModal video,
#playerModal iframe {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 4px;
}

#playerModal .btn-close {
  position: absolute;
  top: -30px;
  right: -30px;
  color: white;
  opacity: 0.8;
  text-shadow: none;
  z-index: 9999;
}

#playerModal .btn-close:hover {
  opacity: 1;
}

/* Regular Modal z-index */
.modal {
  z-index: 1055;
}

.modal-backdrop {
  z-index: 1054;
}


/* Lesson actions should be lowest */
.lesson-actions {
  position: relative;
}

.clickable{
  cursor: pointer;
}

/* Common Kebab Menu Styling */
.btn-icon {
  padding: 0.25rem;
  color: #6e6e73;
  height: 32px;
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  transition: color 0.2s ease;
}

.btn-icon:hover {
  color: #1d1d1f;
}

.btn-icon.text-danger {
  color: #dc3545;
}

.btn-icon.text-danger:hover {
  color: #bb2d3b;
}

/* Specific positioning for lesson actions */
.lesson-actions {
  display: flex;
  align-items: center;
  height: 100%;
  position: relative;
}

/* Dropdown menu styling */
.dropdown-menu { 
  min-width: 200px;
  padding: 0.5rem 0;
  border: none;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  border-radius: 8px;
}

.dropdown-item {
  padding: 0.5rem 1rem;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background: #f5f5f7;
}

/* Ensure accordion content doesn't overlap */
.accordion-collapse {
  position: relative;
  z-index: 1;
}

/* Section title with border and meatball menu styling */
.df-example {
  position: relative;
  margin-bottom: 1rem;
}

.df-example::before {
  content: attr(data-label);
  position: absolute;
  left: 20px;
  background: white;
  padding: 0 0.5rem;
  color: #1d1d1f;
  z-index: 1;
}

.df-example::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* border: 1px solid #d2d2d7; */
  border-radius: 8px;
  pointer-events: none;
}

/* Section header actions container */
.section-header-actions {
  position: absolute;
  top: -12px;
  right: 20px;
  background: white;
  padding: 0 0.5rem;
  z-index: 1;
}

.section-header-actions .btn-icon {
  padding: 0;
  width: 24px;
  height: 24px;
  color: #6e6e73;
}

.section-header-actions .dropdown-menu {
  margin-top: 0.5rem;
  min-width: 160px;
}

/* Logo Styles */
.dashboard-logo {
  height: 40px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.auth-logo {
  height: 80px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
  filter: brightness(0) invert(1); /* Makes logo white for dark background */
}

/* Dashboard Top Menu Mobile Padding */
@media (max-width: 768px) {
  .navbar-header {
    height: 72.9px !important;
  }

  .navbar-header .container.px-5 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  .dashboard-logo {
    height: 35px;
    max-width: 180px;
  }
}

