/* ==========================================================
   Learnify Design System
   Font: Inter | Primary: #1f3a6b | Background: #f4f7fb
   Based on LMSAdmin.html mockup design
   ========================================================== */

/* ---- Reset for Learnify pages ---- */
body {
  font-family: 'Inter', sans-serif !important;
  background: #f4f7fb;
  color: #1c2d45;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========== HEADER ========== */
.lfy-header {
  background: #ffffff;
  padding: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  border-bottom: 1px solid #e9edf2;
  position: sticky;
  top: 0;
  z-index: 100;
}
.lfy-header-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.lfy-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.lfy-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Logo */
.lfy-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none !important;
}
.lfy-logo:hover {
  text-decoration: none !important;
}
.lfy-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #243856, #1f324b);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.lfy-logo-text {
  font-weight: 600;
  font-size: 1.25rem;
  color: #1f2f44;
}

/* Admin badge next to logo */
.lfy-badge-admin {
  background: #edf2f9;
  padding: 0.35rem 1rem;
  border-radius: 40px;
  font-size: 0.82rem;
  color: #2b405c;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Header nav links */
.lfy-header-link {
  color: #4a6080;
  text-decoration: none !important;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: 10px;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.lfy-header-link:hover {
  background: #f0f4fa;
  color: #1f3a6b;
  text-decoration: none !important;
}
.lfy-header-link.active {
  background: #edf2f9;
  color: #1f3a6b;
  font-weight: 600;
}

/* User avatar */
.lfy-header-user {
  margin-left: 0.25rem;
}
.lfy-header-user .dropdown-toggle::after {
  display: none;
}
.lfy-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #243856, #1f3a6b);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  flex-shrink: 0;
}

/* ========== MAIN CONTAINER ========== */
.lfy-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem;
  flex: 1;
  width: 100%;
}

/* ========== FOOTER ========== */
.lfy-footer {
  background: #0f1a29;
  color: #b0c0d4;
  padding: 1.5rem 2rem 1rem;
  margin-top: auto;
}
.lfy-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #8fadcc;
}
.lfy-footer a {
  color: #cfddee;
  text-decoration: none;
  font-size: 0.88rem;
}
.lfy-footer a:hover {
  color: #ffffff;
}

/* ========== BUTTONS ========== */
/* All button variants are self-contained — no need for .lfy-btn base class */

.lfy-btn-primary {
  background: #1f3a6b !important;
  color: #ffffff !important;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 40px;
  font-weight: 500;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: 'Inter', sans-serif;
  text-decoration: none !important;
  line-height: 1.4;
  box-shadow: 0 4px 14px -4px rgba(20, 50, 100, 0.3);
}
.lfy-btn-primary:hover {
  background: #162d54 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -4px rgba(20, 50, 100, 0.35);
}

.lfy-btn-secondary {
  background: #eef3f9;
  color: #1f3a6b;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 40px;
  font-weight: 500;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: 'Inter', sans-serif;
  text-decoration: none !important;
  line-height: 1.4;
}
.lfy-btn-secondary:hover {
  background: #dce5f0;
  color: #1f3a6b;
  text-decoration: none !important;
}

.lfy-btn-ghost {
  background: transparent;
  color: #4a6080;
  border: 1.5px solid #d0ddef;
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  font-weight: 500;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: 'Inter', sans-serif;
  text-decoration: none !important;
  line-height: 1.4;
}
.lfy-btn-ghost:hover {
  background: #f0f4fa;
  color: #1f3a6b;
  border-color: #b8c9de;
  text-decoration: none !important;
}

.lfy-btn-danger {
  background: #fef2f2;
  color: #dc2626;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 40px;
  font-weight: 500;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: 'Inter', sans-serif;
  text-decoration: none !important;
  line-height: 1.4;
}
.lfy-btn-danger:hover {
  background: #fee2e2;
}

/* Small button modifier */
.lfy-btn-sm {
  padding: 0.35rem 0.85rem !important;
  font-size: 0.8rem !important;
}

/* ========== CARDS ========== */
.lfy-card {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 8px 30px -8px rgba(0, 20, 40, 0.08);
  border: 1px solid #eef2f6;
  padding: 1.5rem;
}
.lfy-card-header {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid #eef2f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafcff;
  margin: -1.5rem -1.5rem 1.5rem;
  border-radius: 24px 24px 0 0;
}
.lfy-card-header h2 {
  font-size: 1.15rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: #1c2d45;
}
.lfy-card-body {
  /* use when card-header is used */
}

/* ========== FORM ELEMENTS ========== */
.lfy-label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: #3a4e6b;
  margin-bottom: 0.4rem;
}
.lfy-input,
.lfy-select,
.lfy-textarea {
  width: 100%;
  padding: 0.6rem 1rem;
  border: 1.5px solid #d0ddef;
  border-radius: 12px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: #1c2d45;
  background: #ffffff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  box-sizing: border-box;
}
.lfy-input:focus,
.lfy-select:focus,
.lfy-textarea:focus {
  border-color: #1f3a6b;
  box-shadow: 0 0 0 3px rgba(31, 58, 107, 0.1);
}
.lfy-textarea {
  resize: vertical;
  min-height: 100px;
}

/* ========== FILTER PILLS ========== */
.lfy-filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  border-radius: 40px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #4a6080;
  text-decoration: none !important;
  border: 1.5px solid #d0ddef;
  background: #ffffff;
  transition: all 0.15s ease;
  cursor: pointer;
}
.lfy-filter-pill:hover {
  background: #f0f4fa;
  color: #1f3a6b;
  text-decoration: none !important;
  border-color: #b8c9de;
}
.lfy-filter-pill.active {
  background: #1f3a6b;
  color: #ffffff;
  border-color: #1f3a6b;
}
.lfy-filter-pill.active:hover {
  background: #162d54;
  color: #ffffff;
}

/* ========== COURSE GRID ========== */
.lfy-course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.lfy-course-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #eef2f6;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px -6px rgba(0, 20, 40, 0.06);
}
.lfy-course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -10px rgba(0, 20, 40, 0.14);
  border-color: #cbd6e6;
}
.lfy-course-thumb {
  height: 170px;
  background: linear-gradient(145deg, #edf3fd, #dce5f0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.lfy-course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lfy-course-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 2.5rem;
  color: #94a3b8;
}
.lfy-course-card-body {
  padding: 1.2rem 1.4rem 0.5rem;
}
.lfy-course-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1c2d45;
  margin: 0 0 0.4rem;
  line-height: 1.35;
}
.lfy-course-meta {
  font-size: 0.78rem;
  color: #687e9c;
  display: flex;
  gap: 1rem;
  margin-bottom: 0.4rem;
}
.lfy-course-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.lfy-course-desc {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}
.lfy-course-card-footer {
  padding: 0.85rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
}

/* Status badges */
.lfy-status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 0.2rem 0.7rem;
  border-radius: 40px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.lfy-status-draft {
  background: #fef3c7;
  color: #92400e;
}
.lfy-status-published {
  background: #d1fae5;
  color: #065f46;
}
.lfy-status-archived {
  background: #e5e7eb;
  color: #374151;
}

/* ========== BADGES ========== */
.lfy-badge {
  background: #dce5f0;
  padding: 0.2rem 0.8rem;
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #2b405c;
  display: inline-flex;
  align-items: center;
}

/* ========== BUILDER LAYOUT ========== */
.lfy-builder {
  display: flex;
  gap: 0;
  min-height: calc(100vh - 140px);
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #eef2f6;
  overflow: hidden;
}
.lfy-builder-sidebar {
  width: 340px;
  min-width: 340px;
  background: #fafcff;
  border-right: 1px solid #eef2f6;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.lfy-builder-main {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
}
.lfy-builder-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: #ffffff;
  border-bottom: 1px solid #eef2f6;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ========== OUTLINE TREE ========== */
.lfy-outline {
  padding: 1rem;
  flex: 1;
}
.lfy-module {
  margin-bottom: 0.5rem;
}
.lfy-module-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.1s;
  font-weight: 600;
  font-size: 0.9rem;
  color: #1c2d45;
}
.lfy-module-header:hover {
  background: #edf2f9;
}
.lfy-module-header.active {
  background: #e5f0ff;
}
.lfy-module-header .drag-handle {
  color: #9aabbe;
  cursor: grab;
  font-size: 0.9rem;
}
.lfy-module-header .chevron {
  transition: transform 0.2s;
  color: #9aabbe;
  font-size: 0.75rem;
}
.lfy-module-header .chevron.collapsed {
  transform: rotate(-90deg);
}
.lfy-module-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lfy-module-count {
  font-size: 0.7rem;
  background: #edf2f9;
  padding: 0.1rem 0.5rem;
  border-radius: 20px;
  color: #687e9c;
  font-weight: 500;
}
.lfy-lesson-list {
  padding-left: 1.2rem;
  margin: 0;
}
.lfy-lesson-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.1s;
  font-size: 0.85rem;
  color: #3a4e6b;
  margin-bottom: 2px;
}
.lfy-lesson-item:hover {
  background: #f0f5fb;
}
.lfy-lesson-item.active {
  background: #e5f0ff;
  color: #1f3a6b;
  font-weight: 500;
}
.lfy-topic-list {
  padding-left: 1.2rem;
  margin: 0;
}
.lfy-topic-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.1s;
  font-size: 0.8rem;
  color: #4f658d;
  margin-bottom: 1px;
}
.lfy-topic-item:hover {
  background: #f0f5fb;
}
.lfy-topic-item.active {
  background: #e5f0ff;
  color: #1f3a6b;
  font-weight: 500;
}

/* Type icons */
.lfy-type-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}
.lfy-type-video { background: #dbeafe; color: #1d4ed8; }
.lfy-type-audio { background: #ede9fe; color: #6d28d9; }
.lfy-type-pdf { background: #fee2e2; color: #dc2626; }
.lfy-type-exam { background: #d1fae5; color: #059669; }
.lfy-type-feedback { background: #fef3c7; color: #d97706; }
.lfy-type-survey { background: #e0e7ff; color: #4338ca; }

/* Add buttons (dashed) */
.lfy-add-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  border: 1.5px dashed #cbd6e6;
  background: transparent;
  color: #687e9c;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Inter', sans-serif;
  margin-top: 0.3rem;
  width: 100%;
}
.lfy-add-btn:hover {
  background: #f0f5fb;
  border-color: #1f3a6b;
  color: #1f3a6b;
}

/* ========== CONTENT EDITOR ========== */
.lfy-editor-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 400px;
  color: #9aabbe;
  text-align: center;
}
.lfy-editor-empty i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}
.lfy-editor-empty p {
  font-size: 1rem;
  max-width: 300px;
}

/* ========== CONTENT TYPE PICKER ========== */
.lfy-type-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  padding: 1rem;
}
.lfy-type-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.2rem 0.8rem;
  border-radius: 16px;
  border: 2px solid #eef2f6;
  cursor: pointer;
  transition: all 0.15s;
  background: #fafcff;
  text-align: center;
}
.lfy-type-option:hover {
  border-color: #1f3a6b;
  background: #f0f5fb;
  transform: translateY(-2px);
}
.lfy-type-option.selected {
  border-color: #1f3a6b;
  background: #e5f0ff;
}
.lfy-type-option-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.lfy-type-option-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: #1c2d45;
}

/* ========== AI GENERATOR PANEL ========== */
.lfy-ai-panel {
  background: #f2f8ff;
  border-radius: 20px;
  padding: 1.2rem 1.5rem;
  margin-top: 1.5rem;
  border: 1px solid #d9e3f0;
}
.lfy-ai-panel h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #1c2d45;
}

/* ========== LOCK TOGGLE ========== */
.lfy-lock-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #687e9c;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}
.lfy-lock-toggle:hover {
  background: #f0f5fb;
}

/* ========== SOURCE TAGS ========== */
.lfy-source-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 40px;
}
.lfy-source-manual {
  background: #e0e9ff;
  color: #1e3a8a;
}
.lfy-source-ai {
  background: #efe6ff;
  color: #5f3dc4;
}

/* ========== MODALS ========== */
.lfy-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 20, 40, 0.4);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}
.lfy-modal-backdrop.show {
  display: flex;
}
.lfy-modal {
  background: white;
  border-radius: 24px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.lfy-modal-header {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid #eef2f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lfy-modal-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}
.lfy-modal-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #9aabbe;
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 8px;
}
.lfy-modal-close:hover {
  background: #f0f4fa;
  color: #1c2d45;
}
.lfy-modal-body {
  padding: 1.5rem;
}
.lfy-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #eef2f6;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* ========== ALERTS ========== */
.lfy-alert {
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.lfy-alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.lfy-alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.lfy-alert:empty {
  display: none;
}

/* ========== WIZARD STEPS ========== */
.lfy-wizard-steps .nav-pills {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e5e9f0;
  padding-bottom: 0;
}
.lfy-wizard-steps .nav-item {
  flex: 1;
}
.lfy-wizard-steps .nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 8px;
  border-radius: 0;
  background: none;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.lfy-wizard-steps .nav-link:hover {
  color: #1f3a6b;
  background: none;
}
.lfy-wizard-steps .nav-link.active {
  color: #1f3a6b;
  background: none;
  border-bottom-color: #1f3a6b;
  font-weight: 600;
}
.lfy-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e5e9f0;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.lfy-wizard-steps .nav-link.active .lfy-step-num {
  background: #1f3a6b;
  color: #fff;
}

/* ========== EMPTY STATE ========== */
.lfy-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}
.lfy-empty-state i {
  font-size: 3rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
}
.lfy-empty-state h4 {
  color: #475569;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.lfy-empty-state p {
  color: #94a3b8;
  max-width: 360px;
  margin: 0 auto 1rem;
}

/* ========== DROPDOWN MENUS ========== */
.lfy-course-card-footer .dropdown-toggle::after {
  display: none;
}
.lfy-course-card-footer .dropdown-menu {
  border-radius: 12px;
  border: 1px solid #eef2f6;
  box-shadow: 0 12px 28px -6px rgba(0, 20, 40, 0.12);
  padding: 0.4rem;
}
.lfy-course-card-footer .dropdown-item {
  border-radius: 8px;
  font-size: 0.85rem;
  padding: 0.5rem 0.8rem;
}
.lfy-course-card-footer .dropdown-item:hover {
  background: #f0f5fb;
}

/* ========== PAGE HEADER ========== */
.lfy-page-header {
  margin-bottom: 1.5rem;
}
.lfy-page-header h2 {
  font-weight: 700;
  color: #1f3a6b;
  font-size: 1.5rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.lfy-page-header h2 i {
  opacity: 0.6;
}
.lfy-page-header p {
  color: #687e9c;
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
}

/* ========== DATA TABLE ========== */
.lfy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.lfy-table thead th {
  background: #f8fafc;
  color: #3a4e6b;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid #e2e8f0;
  text-align: left;
}
.lfy-table tbody td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: #1c2d45;
  vertical-align: middle;
}
.lfy-table tbody tr:hover {
  background: #f8fafc;
}
.lfy-table a.edit {
  color: #1f3a6b;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
}
.lfy-table a.edit:hover {
  color: #162d54;
  text-decoration: underline;
}
.lfy-table a.delete {
  color: #dc2626;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
}
.lfy-table a.delete:hover {
  color: #b91c1c;
  text-decoration: underline;
}

/* ========== FORM FIELD & ACTIONS ========== */
.lfy-field {
  /* Marker class for JS .parents('.lfy-field') targeting */
}
.lfy-form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eef2f6;
}

/* ========== BREADCRUMB ========== */
.lfy-breadcrumb {
  display: flex;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.85rem;
}
.lfy-breadcrumb li + li::before {
  content: "/";
  margin-right: 0.4rem;
  color: #94a3b8;
}
.lfy-breadcrumb a {
  color: #4a6080;
  text-decoration: none;
}
.lfy-breadcrumb a:hover { color: #1f3a6b; }
.lfy-breadcrumb .active { color: #1c2d45; font-weight: 500; }

/* ========== RADIO / CHECKBOX GROUPS ========== */
.lfy-radio-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.lfy-radio-group label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: #3a4e6b;
  cursor: pointer;
}

/* ========== INPUT GROUP (addon) ========== */
.lfy-input-group {
  display: flex;
  align-items: center;
}
.lfy-input-group .lfy-input-addon {
  background: #f1f5f9;
  border: 1.5px solid #d0ddef;
  border-right: none;
  border-radius: 12px 0 0 12px;
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
  color: #64748b;
  white-space: nowrap;
}
.lfy-input-group .lfy-input {
  border-radius: 0 12px 12px 0;
}

/* ========== NAV DROPDOWN MENUS ========== */
.lfy-dropdown {
  border-radius: 12px !important;
  border: 1px solid #eef2f6 !important;
  box-shadow: 0 12px 28px -6px rgba(0,20,40,0.12) !important;
  padding: 0.4rem !important;
  min-width: 210px;
}
.lfy-dropdown .dropdown-item {
  border-radius: 8px;
  font-size: 0.85rem;
  padding: 0.5rem 0.8rem;
  color: #3a4e6b;
}
.lfy-dropdown .dropdown-item:hover {
  background: #f0f5fb;
  color: #1f3a6b;
}
.lfy-dropdown .dropdown-item.active-item {
  background: #edf2f9;
  color: #1f3a6b;
  font-weight: 600;
}
.lfy-dropdown .dropdown-header {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.4rem 0.8rem 0.2rem;
}
.lfy-dropdown .dropdown-divider {
  margin: 0.3rem 0;
  border-color: #eef2f6;
}

/* Nav dropdown arrow */
.lfy-dd-arrow {
  font-size: 0.55rem !important;
  opacity: 0.6;
  margin-left: 0.1rem;
}
.lfy-header-right .dropdown .dropdown-toggle::after {
  display: none;
}

/* Wide main content variant */
.lfy-main.lfy-main--wide {
  max-width: 1400px;
}

/* ========== DATATABLES OVERRIDES ========== */
.dataTables_wrapper .dataTables_filter input {
  border: 1px solid #d1d9e6;
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 0.85rem;
  outline: none;
  margin-left: 6px;
}
.dataTables_wrapper .dataTables_filter input:focus {
  border-color: #1f3a6b;
  box-shadow: 0 0 0 2px rgba(31,58,107,.1);
}
.dataTables_wrapper .dataTables_length select {
  border: 1px solid #d1d9e6;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.85rem;
}
.dataTables_wrapper .dataTables_info {
  font-size: 0.8rem;
  color: #64748b;
  padding-top: 10px;
}
.dataTables_wrapper .dataTables_paginate {
  padding-top: 10px;
  text-align: right;
}
.dataTables_wrapper .dataTables_paginate ul,
.dataTables_wrapper .dataTables_paginate .pagination {
  list-style: none !important;
  display: inline-flex !important;
  gap: 4px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.dataTables_wrapper .dataTables_paginate ul li,
.dataTables_wrapper .dataTables_paginate .pagination li {
  list-style: none !important;
}
.dataTables_wrapper .dataTables_paginate ul li a,
.dataTables_wrapper .dataTables_paginate .pagination li a,
.dataTables_wrapper .dataTables_paginate .paginate_button {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid #d1d9e6 !important;
  background: #fff !important;
  color: #1f3a6b !important;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: none;
}
.dataTables_wrapper .dataTables_paginate ul li.active a,
.dataTables_wrapper .dataTables_paginate .pagination li.active a,
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: #1f3a6b !important;
  color: #fff !important;
  border-color: #1f3a6b !important;
}
.dataTables_wrapper .dataTables_paginate ul li a:hover,
.dataTables_wrapper .dataTables_paginate .pagination li a:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #e8eef6 !important;
  color: #1f3a6b !important;
}
.dataTables_wrapper .dataTables_paginate ul li.disabled a,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
  .lfy-nav-text {
    display: none;
  }
  .lfy-dd-arrow {
    display: none !important;
  }
  .lfy-header-link {
    padding: 0.4rem 0.6rem;
  }
}
@media (max-width: 900px) {
  .lfy-header-inner {
    padding: 0.6rem 1rem;
  }
  .lfy-header-link {
    padding: 0.35rem 0.5rem;
  }
  .lfy-header-link i:first-child {
    font-size: 1rem;
  }
  .lfy-main {
    padding: 1rem;
  }
  .lfy-course-grid {
    grid-template-columns: 1fr;
  }
  .lfy-builder {
    flex-direction: column;
  }
  .lfy-builder-sidebar {
    width: 100%;
    min-width: 100%;
    max-height: 300px;
    border-right: none;
    border-bottom: 1px solid #eef2f6;
  }
  .lfy-type-picker {
    grid-template-columns: repeat(2, 1fr);
  }
}
