.lms-dashboard {
  margin: 20px 0;
}

.lms-dashboard-nav {
  margin: 20px 0;
  border-bottom: 1px solid #ccd0d4;
}

.nav-tab {
  text-decoration: none;
  color: #0073aa;
  font-weight: 600;
  padding: 8px 12px;
}

.nav-tab-active {
  color: #000;
  border-bottom: 2px solid #0073aa;
}

.lms-tab-content {
  padding: 20px 0;
}

.lms-builder-container {
  display: flex;
  gap: 20px;
  min-height: 600px;
}

.lms-builder-sidebar {
  width: 300px;
  background: #f9f9f9;
  padding: 20px;
  border: 1px solid #ddd;
}

.lms-sidebar-section {
  margin-bottom: 30px;
}

.lms-sidebar-section h3 {
  margin: 0 0 15px 0;
  padding: 0 0 8px 0;
  border-bottom: 2px solid #0073aa;
  color: #23282d;
}

.lms-course-selector {
  width: 100%;
  padding: 8px;
}

.lms-add-buttons {
  margin-bottom: 15px;
}

.lms-add-buttons .button {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  text-align: center;
}

.lms-add-form {
  background: #fff;
  padding: 15px;
  border: 1px solid #ddd;
  margin-top: 10px;
}

.lms-add-form h4 {
  margin: 0 0 15px 0;
}

.lms-add-form label {
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
}

.lms-builder-main {
  flex: 1;
  background: #fff;
  border: 1px solid #ddd;
  padding: 20px;
}

.lms-builder-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #0073aa;
}

.lms-builder-header h2 {
  margin: 0;
  color: #23282d;
}

.lms-structure-stats span {
  background: #0073aa;
  color: white;
  padding: 4px 8px;
  margin-left: 8px;
  font-size: 12px;
  font-weight: 600;
}

.lms-course-structure {
  min-height: 400px;
}

.lms-empty-state,
.lms-empty-course {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.lms-lesson-item {
  background: #f9f9f9;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  user-select: none;
}

.lesson-header {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background: #fff;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
}

.lesson-handle,
.topic-handle {
  color: #666;
  margin-right: 10px;
  cursor: move;
  font-weight: bold;
}

.lesson-icon,
.topic-icon {
  margin-right: 8px;
  font-size: 16px;
}

.lesson-title,
.topic-title {
  flex: 1;
  font-weight: 600;
}

.lesson-actions,
.topic-actions {
  display: flex;
  gap: 5px;
}

.lesson-actions .button-link,
.topic-actions .button-link {
  padding: 4px;
  color: #666;
  text-decoration: none;
}

.lesson-actions .button-link:hover,
.topic-actions .button-link:hover {
  color: #0073aa;
}

.lesson-topics {
  padding: 10px 15px 10px 45px;
}

.lms-topic-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #ddd;
  margin-bottom: 5px;
  cursor: move;
}

.lesson-placeholder,
.topic-placeholder {
  height: 50px;
  background: #e1f5fe;
  border: 2px dashed #0073aa;
  margin-bottom: 10px;
}

.lms-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.lms-stat-card {
  background: #fff;
  padding: 20px;
  border: 1px solid #ddd;
  text-align: center;
}

.lms-stat-card h3 {
  margin: 0 0 10px 0;
  color: #23282d;
  font-size: 16px;
}

.stat-number {
  font-size: 32px;
  font-weight: bold;
  color: #0073aa;
}

.lms-recent-activity {
  background: #fff;
  padding: 20px;
  border: 1px solid #ddd;
}

.lms-activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lms-activity-list li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.activity-time {
  color: #666;
  font-size: 12px;
}

.button.saved {
  background: #46b450 !important;
  border-color: #46b450 !important;
}

/* Additional dashboard styles below */

/* Topics Manager Styles */
.lms-topics-manager {
  max-width: 1200px;
  margin: 0 auto;
}

.lms-topics-header {
  margin-bottom: 30px;
  padding: 20px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.lms-topics-header h3 {
  margin: 0 0 10px 0;
  color: #23282d;
}

.lms-topics-filters {
  background: #fff;
  padding: 20px;
  border: 1px solid #ddd;
  margin-bottom: 20px;
  border-radius: 4px;
}

.topics-filter-row {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.topics-filter-row label {
  font-weight: 600;
  margin: 0;
}

.topics-course-selector,
.topics-lesson-selector {
  min-width: 200px;
  padding: 8px;
}

.lms-topics-container {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.topics-stats {
  padding: 15px 20px;
  border-bottom: 1px solid #ddd;
  background: #f9f9f9;
  font-weight: 600;
  color: #555;
}

.lms-topics-list {
  min-height: 400px;
}

.topics-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.topics-empty-state .empty-state-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.topics-empty-state h3 {
  margin: 0 0 10px 0;
  color: #555;
}

.topics-sortable-list {
  padding: 20px;
}

.lms-topic-list-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 15px;
  transition: all 0.2s ease;
}

.lms-topic-list-item:hover {
  border-color: #0073aa;
  box-shadow: 0 2px 8px rgba(0, 115, 170, 0.1);
}

.topic-list-content {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  gap: 15px;
}

.topic-drag-handle {
  color: #666;
  cursor: move;
  font-weight: bold;
  font-size: 16px;
}

.topic-list-icon {
  font-size: 18px;
}

.topic-list-info {
  flex: 1;
}

.topic-list-title {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: #23282d;
}

.topic-list-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: #666;
}

.topic-list-meta span {
  display: flex;
  align-items: center;
}

.topic-list-actions {
  display: flex;
  gap: 10px;
}

.topic-list-actions .button-link {
  color: #666;
  text-decoration: none;
  padding: 8px;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.topic-list-actions .button-link:hover {
  background: #f0f0f0;
  color: #0073aa;
}

.topic-list-actions .delete-topic-btn:hover {
  background: #f8d7da;
  color: #dc3545;
}

.topic-sort-placeholder {
  background: #e0f2ff;
  border: 2px dashed #0073aa;
  height: 60px;
  margin-bottom: 15px;
  border-radius: 4px;
}

.ui-sortable-helper {
  opacity: 0.8;
  transform: rotate(2deg);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
