/* VEELEARN PROFESSIONAL REDESIGN */
/* Based on Lumina Academy, EduFlow, EduMaster */

:root {
  --primary: #667eea;
  --primary-dark: #5568d3;
  --secondary: #ec4899;
  --success: #4ade80;
  --warning: #facc15;
  --danger: #ef4444;
  --bg-dark: #0f172a;
  --bg-darker: #0a0e27;
  --bg-card: #1a1f3a;
  --text-light: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #334155;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* COURSE EDITOR LAYOUT - Lumina Academy Style */
.course-editor-layout {
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  gap: 20px;
  min-height: 100vh;
  padding: 20px;
  background: var(--bg-dark);
}

/* LEFT SIDEBAR */
.editor-sidebar {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border);
  overflow-y: auto;
  max-height: 100vh;
}

.editor-sidebar h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  margin-top: 20px;
}

.editor-sidebar h3:first-child {
  margin-top: 0;
}

.editor-sidebar input,
.editor-sidebar select,
.editor-sidebar textarea {
  width: 100%;
  padding: 10px 12px;
  background: #0f172a;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-light);
  margin-bottom: 12px;
  font-family: inherit;
}

.editor-sidebar input:focus,
.editor-sidebar select:focus,
.editor-sidebar textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #1a1f3a;
}

.target-audience {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.target-audience label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.target-audience label:hover {
  background: rgba(102, 126, 234, 0.1);
}

.target-audience input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.target-audience label.selected {
  background: rgba(102, 126, 234, 0.2);
  border: 1px solid var(--primary);
  border-radius: 8px;
}

.nav-map {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-map li {
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
}

.nav-map li:hover {
  background: rgba(102, 126, 234, 0.1);
  color: var(--text-light);
}

.nav-map li.active {
  background: var(--primary);
  color: white;
}

/* CENTER EDITOR */
.editor-main {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 32px;
  border: 1px solid var(--border);
  overflow-y: auto;
  max-height: 100vh;
}

.editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.editor-header h1 {
  margin: 0;
  font-size: 24px;
}

.editor-actions {
  display: flex;
  gap: 10px;
}

.editor-actions button {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.editor-actions .btn-save {
  background: #475569;
  color: white;
}

.editor-actions .btn-save:hover {
  background: #64748b;
}

.editor-actions .btn-publish {
  background: var(--primary);
  color: white;
}

.editor-actions .btn-publish:hover {
  background: var(--primary-dark);
}

.editor-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  padding: 12px;
  background: #0f172a;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.editor-toolbar button {
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 12px;
}

.editor-toolbar button:hover {
  border-color: var(--primary);
  background: rgba(102, 126, 234, 0.1);
}

.editor-content {
  background: #0f172a;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  min-height: 400px;
  color: var(--text-light);
  line-height: 1.6;
}

.editor-content:focus {
  outline: none;
  border-color: var(--primary);
}

/* RIGHT SIDEBAR - Component Inspector */
.editor-inspector {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border);
  overflow-y: auto;
  max-height: 100vh;
}

.inspector-section {
  margin-bottom: 24px;
}

.inspector-section h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.inspector-item {
  padding: 12px;
  background: #0f172a;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.inspector-item:hover {
  border-color: var(--primary);
  background: rgba(102, 126, 234, 0.05);
}

.inspector-item small {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 4px;
}

/* DASHBOARD LAYOUT - EduFlow Style */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.dashboard-header h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
}

.dashboard-header .subtext {
  color: var(--text-muted);
  margin-top: 8px;
  font-size: 14px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.action-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.action-card:hover {
  border-color: var(--primary);
  background: rgba(102, 126, 234, 0.05);
  transform: translateY(-2px);
}

.action-card .icon {
  font-size: 32px;
  width: 48px;
  height: 48px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.action-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.courses-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.enrolled-courses {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
}

.course-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(102, 126, 234, 0.1);
}

.course-card-image {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.course-card-content {
  padding: 20px;
}

.course-card-title {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 15px;
}

.course-card-status {
  display: inline-block;
  padding: 4px 8px;
  background: rgba(74, 222, 128, 0.1);
  color: var(--success);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 12px;
}

.course-progress {
  margin-bottom: 12px;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  transition: width 0.3s;
}

.progress-text {
  font-size: 12px;
  color: var(--text-muted);
}

.course-card button {
  width: 100%;
  padding: 10px;
  background: var(--primary);
  border: none;
  border-radius: 6px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.course-card button:hover {
  background: var(--primary-dark);
}

.activity-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  max-height: 400px;
  overflow-y: auto;
}

.activity-section h3 {
  margin-top: 0;
}

.activity-item {
  display: flex;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
}

.activity-content p {
  margin: 0 0 4px 0;
  font-size: 13px;
}

.activity-content small {
  color: var(--text-muted);
  font-size: 12px;
}

/* COURSE VIEWER - EduMaster Style */
.viewer-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.viewer-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}

.viewer-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.viewer-header .grade-badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.viewer-header h1 {
  margin: 0 0 16px 0;
  font-size: 32px;
  font-weight: 700;
}

.viewer-header .description {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}

.viewer-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

.creator-info {
  display: flex;
  gap: 12px;
  align-items: center;
}

.creator-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.creator-details h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.creator-details p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.viewer-actions {
  display: flex;
  gap: 10px;
}

.viewer-actions button {
  padding: 10px 16px;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 6px;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.viewer-actions button:hover {
  border-color: var(--primary);
  background: rgba(102, 126, 234, 0.05);
}

.viewer-actions .btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.viewer-actions .btn-primary:hover {
  background: var(--primary-dark);
}

.content-body {
  margin-bottom: 40px;
  line-height: 1.8;
}

.content-body h2 {
  font-size: 24px;
  margin: 32px 0 16px 0;
}

.content-body p {
  margin: 0 0 16px 0;
  color: var(--text-light);
}

.equation-block {
  background: #0f172a;
  border-left: 4px solid var(--primary);
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  text-align: center;
  overflow-x: auto;
}

.note-block {
  background: rgba(102, 126, 234, 0.1);
  border-left: 4px solid var(--primary);
  padding: 16px;
  border-radius: 8px;
  margin: 20px 0;
}

.note-block strong {
  color: var(--primary);
}

.viewer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.pagination-buttons {
  display: flex;
  gap: 10px;
}

.pagination-buttons button {
  padding: 10px 20px;
  background: var(--primary);
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.pagination-buttons button:hover {
  background: var(--primary-dark);
}

.pagination-buttons button:disabled {
  background: var(--border);
  cursor: not-allowed;
}

.like-counter {
  display: flex;
  gap: 10px;
  align-items: center;
}

.like-counter button {
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
}

.like-counter button.liked {
  background: rgba(236, 72, 153, 0.1);
  border-color: var(--secondary);
  color: var(--secondary);
}

/* SIDEBAR - Related Courses */
.related-courses {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  height: fit-content;
  max-height: 100vh;
  overflow-y: auto;
}

.related-courses h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 16px;
}

.related-item {
  padding: 16px;
  background: #0f172a;
  border-radius: 8px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.related-item:hover {
  border: 1px solid var(--primary);
  background: rgba(102, 126, 234, 0.05);
}

.related-item h4 {
  margin: 0 0 4px 0;
  font-size: 13px;
  font-weight: 600;
}

.related-item p {
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
}

/* FILE UPLOAD */
.file-upload-area {
  border: 2px dashed var(--primary);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(102, 126, 234, 0.05);
}

.file-upload-area:hover {
  border-color: var(--primary-dark);
  background: rgba(102, 126, 234, 0.1);
}

.file-upload-area .icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.file-upload-area p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.file-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.file-item .icon {
  margin-right: 10px;
  font-size: 20px;
}

.file-item button {
  background: transparent;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 16px;
}

/* EQUATION EDITOR MODAL */
.equation-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.equation-modal.active {
  display: flex;
}

.equation-modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  overflow: auto;
  padding: 32px;
}

.equation-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.equation-modal-header h2 {
  margin: 0;
}

.equation-modal-header .close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
}

.equation-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.equation-tabs button {
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.equation-tabs button.active {
  border-bottom-color: var(--primary);
  color: var(--primary);
}

.equation-editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.equation-input,
.equation-preview {
  background: #0f172a;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
}

.equation-input textarea {
  width: 100%;
  height: 200px;
  background: transparent;
  border: none;
  color: #667eea;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 14px;
  resize: none;
}

.equation-input textarea:focus {
  outline: none;
}

.equation-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.equation-symbols {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}

.equation-symbols button {
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.equation-symbols button:hover {
  border-color: var(--primary);
  background: rgba(102, 126, 234, 0.1);
}

.equation-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.equation-modal-actions button {
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
}

.equation-modal-actions .cancel {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-light);
}

.equation-modal-actions .insert {
  background: var(--primary);
  color: white;
}

.equation-modal-actions .insert:hover {
  background: var(--primary-dark);
}

/* ENHANCED STITCH DESIGN - LUMINA ACADEMY, EDUFLOW, EDUMASTER */

/* Professional dashboard cards with better spacing */
.dashboard-card {
  background: linear-gradient(135deg, #1a1f3a 0%, #242d4a 100%);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.dashboard-card:hover {
  border-color: rgba(102, 126, 234, 0.4);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.15);
  transform: translateY(-2px);
}

/* Professional button styles */
.btn-primary,
.btn-action {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover,
.btn-action:hover {
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  border: 1px solid #667eea;
  padding: 10px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(102, 126, 234, 0.2);
}

/* Course cards in listing */
.course-item {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  border: 1px solid rgba(102, 126, 234, 0.15);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}

.course-item:hover {
  border-color: rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  box-shadow: 0 8px 16px rgba(102, 126, 234, 0.15);
}

/* Progress indicators with modern style */
.progress-bar {
  background: rgba(52, 62, 120, 0.5);
  border-radius: 8px;
  height: 8px;
  overflow: hidden;
  margin: 12px 0;
}

.progress-bar-fill {
  background: linear-gradient(90deg, #667eea, #764ba2);
  height: 100%;
  border-radius: 8px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(102, 126, 234, 0.6);
}

/* Section headers with gradient underline */
.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 24px;
  padding-bottom: 12px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 2px;
}

/* Badge and tag styles */
.badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(102, 126, 234, 0.15);
  color: #667eea;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(102, 126, 234, 0.3);
}

.badge.success {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.3);
}

.badge.warning {
  background: rgba(250, 204, 21, 0.15);
  color: #facc15;
  border-color: rgba(250, 204, 21, 0.3);
}

.badge.danger {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

/* Stats cards */
.stat-card {
  background: linear-gradient(135deg, #1a1f3a 0%, #242d4a 100%);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.stat-card .stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #667eea;
  margin: 8px 0;
}

.stat-card .stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.editor-sidebar input,
.editor-sidebar select,
.editor-sidebar textarea {
  width: 100%;
  padding: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-light);
  margin-bottom: 12px;
  font-size: 14px;
}

.editor-sidebar input:focus,
.editor-sidebar select:focus,
.editor-sidebar textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* Smooth transitions for all interactive elements */
*:not(script) {
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

button,
a,
input,
select,
textarea {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive */
@media (max-width: 1200px) {
  .course-editor-layout {
    grid-template-columns: 1fr;
  }

  .editor-sidebar {
    max-height: 200px;
    overflow-x: auto;
    display: flex;
    gap: 20px;
    flex-direction: row;
  }

  .viewer-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .courses-section {
    grid-template-columns: 1fr;
  }

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

  .equation-editor {
    grid-template-columns: 1fr;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 20px;
  }

  .dashboard-card {
    padding: 16px;
  }
}

/* APPLY REDESIGN TO EXISTING VEELEARN LISTS */
#my-courses-list-user,
#my-courses-list-admin,
#my-courses-list-superadmin,
#available-courses-list-user,
#available-courses-list-admin,
#available-courses-list-superadmin,
#assignments-list,
#enrolled-courses-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin-top: 20px;
}