/* CourseMine Platform - Minimal CSS (Tailwind handles most styling) */

/* Code blocks */
pre {
  background: #1e1e2e;
  color: #cdd6f4;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  overflow-x: auto;
}

/* Video iframe styling */
iframe {
  border-radius: 0.75rem;
}

/* Sortable drag-and-drop */
.sortable-item {
  position: relative;
  cursor: grab;
}

.chapter-drag-handle {
  display: none;
  width: 30px;
  cursor: grab;
  align-items: center;
  justify-content: center;
}

.chapter-drag-handle:hover {
  cursor: grabbing;
}

.edit-button,
.add-button {
  display: none;
}

/* DataTables overrides */
.dataTables_wrapper .dataTables_filter input {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid #e4e4e7;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.15s;
}

.dataTables_wrapper .dataTables_filter input:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.dataTables_wrapper .dataTables_length select {
  border-radius: 0.5rem;
  border: 1px solid #e4e4e7;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

table.dataTable thead th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #71717a;
  border-bottom: 1px solid #e4e4e7;
  padding: 0.75rem 1rem;
}

table.dataTable tbody td {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #3f3f46;
  border-bottom: 1px solid #f4f4f5;
}

table.dataTable tbody tr:hover {
  background-color: #fafafa;
}

/* Lesson page sidebar */
#course-sidebar::-webkit-scrollbar {
  width: 4px;
}
#course-sidebar::-webkit-scrollbar-thumb {
  background: #d4d4d8;
  border-radius: 2px;
}
#course-sidebar {
  scrollbar-width: thin;
  scrollbar-color: #d4d4d8 transparent;
}

/* Lesson page: hide footer to keep sidebar full-height */
.lesson-page footer {
  display: none;
}

/* Flatpickr input styling */
.flatpickr-input {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid #e4e4e7;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}
