/* ============================================
   KLC Admin Panel — Wireframe Styles
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2B7BCA;
  --primary-dark: #1E5A96;
  --primary-light: #E8F1FA;
  --accent: #E8723A;
  --accent-light: #FEF0E8;
  --bg: #F4F6F9;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --danger: #EF4444;
  --danger-light: #FEE2E2;
  --success: #10B981;
  --success-light: #D1FAE5;
  --warning: #F59E0B;
  --warning-light: #FEF3C7;
  --sidebar-width: 250px;
  --header-height: 64px;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--gray-800);
  font-size: 14px;
  line-height: 1.5;
}

/* ---- Sidebar ---- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: linear-gradient(180deg, #FFFFFF 0%, #F7FAFF 100%);
  color: var(--gray-800);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  border-right: 1px solid var(--gray-200);
  box-shadow: 0 10px 30px rgba(31, 41, 55, 0.08);
}

.sidebar-logo {
  padding: 10px 20px 17px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: white;
  flex-shrink: 0;
}

.sidebar-logo span {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
}

.sidebar-nav {
  padding: 12px 0;
  flex: 1;
}

.nav-section-label {
  padding: 16px 20px 6px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--gray-500);
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  color: var(--gray-700);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
  border-radius: 10px;
  margin: 4px 12px;
}

.sidebar-nav a:hover {
  background: rgba(43, 123, 202, 0.10);
  color: var(--primary-dark);
}

.sidebar-nav a.active {
  background: rgba(43, 123, 202, 0.16);
  color: var(--primary-dark);
  border-left-color: var(--primary);
  box-shadow: 0 6px 16px rgba(43, 123, 202, 0.10);
}

.sidebar-nav a .nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* ---- Main Content ---- */
.main {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

.topbar {
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-left h1 {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-800);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-right .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.user-menu {
  position: relative;
}

.user-dropdown {
  position: absolute;
  top: 42px;
  right: 0;
  min-width: 160px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  padding: 8px;
  z-index: 200;
}

.user-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--gray-700);
  font-size: 13px;
  cursor: pointer;
  text-align: left;
}

.user-dropdown-item:hover {
  background: var(--gray-50);
}

.topbar-right .notification-bell {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  position: relative;
}

.notification-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  top: 6px;
  right: 7px;
}

.content {
  padding: 28px 32px;
}

/* ---- Auth (Login) ---- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(600px 280px at 20% 10%, rgba(43, 123, 202, 0.18), transparent 60%),
    radial-gradient(520px 260px at 90% 30%, rgba(232, 114, 58, 0.16), transparent 60%),
    var(--bg);
}

.auth-card {
  width: 440px;
  max-width: 100%;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 16px 50px rgba(0,0,0,0.12);
  padding: 26px;
  border: 1px solid var(--gray-200);
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 10px;
  margin-bottom: 18px;
}

.auth-brand-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.auth-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.auth-title {
  font-size: 18px;
  font-weight: 400;
  color: var(--gray-800);
  margin: 0;
}

.auth-subtitle {
  margin-top: 0;
  font-size: 13px;
  color: var(--gray-500);
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 18px;
}

.auth-remember {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--gray-600);
}

.auth-submit {
  width: 100%;
  justify-content: center;
  padding: 10px 16px;
}

.auth-error {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--danger-light);
  color: #991B1B;
  font-size: 13px;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.auth-footnote {
  margin-top: 14px;
  font-size: 12px;
  color: var(--gray-500);
  text-align: center;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--gray-500);
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--gray-400);
}

/* ---- Cards ---- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-header h2 {
  font-size: 16px;
  font-weight: 600;
}

/* ---- KPI Cards ---- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.kpi-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.kpi-icon.blue { background: var(--primary-light); }
.kpi-icon.orange { background: var(--accent-light); }
.kpi-icon.green { background: var(--success-light); }
.kpi-icon.red { background: var(--danger-light); }

.kpi-info h3 {
  font-size: 26px;
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.1;
}

.kpi-info p {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 4px;
}

.kpi-info .kpi-change {
  font-size: 12px;
  margin-top: 6px;
  font-weight: 500;
}

.kpi-change.up { color: var(--success); }
.kpi-change.down { color: var(--danger); }

/* ---- Tables ---- */
.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table thead th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 13.5px;
  color: var(--gray-700);
  vertical-align: middle;
}

table tbody tr:hover {
  background: var(--gray-50);
}

table tbody tr:last-child td {
  border-bottom: none;
}

/* ---- Badges / Status ---- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.badge-success { background: var(--success-light); color: #065F46; }
.badge-warning { background: var(--warning-light); color: #92400E; }
.badge-danger { background: var(--danger-light); color: #991B1B; }
.badge-info { background: var(--primary-light); color: var(--primary-dark); }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-accent {
  background: var(--accent);
  color: var(--white);
}
.btn-accent:hover { background: #D4612E; }

.btn-outline {
  background: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}
.btn-outline:hover { background: var(--gray-50); }

.btn-danger {
  background: var(--danger);
  color: var(--white);
}
.btn-danger:hover { background: #DC2626; }

.btn-success {
  background: var(--success);
  color: var(--white);
}

.btn-sm {
  padding: 5px 12px;
  font-size: 12px;
}

.btn-icon {
  padding: 6px 10px;
}

/* ---- Action Links ---- */
.action-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.action-link:hover { text-decoration: underline; }

.actions-cell {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ---- Forms ---- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color 0.15s;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43, 123, 202, 0.12);
}

select.form-control {
  appearance: auto;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}

/* ---- Search & Filters ---- */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.search-box {
  position: relative;
  width: 300px;
}

.search-box input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43, 123, 202, 0.12);
}

.search-box::before {
  content: "\1F50D";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
}

.filter-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.filter-btn {
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.15s;
}

.filter-btn:hover {
  background: var(--gray-50);
}

.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ---- Pagination ---- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
  font-size: 13px;
  color: var(--gray-500);
}

.pagination-pages {
  display: flex;
  gap: 4px;
}

.pagination-pages button {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-pages button.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ---- Grids ---- */
.grid-2 {
  display: grid;
  /* 8/4 column split (left wider) */
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ---- Upload area ---- */
.upload-area {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  color: var(--gray-400);
  cursor: pointer;
  transition: all 0.15s;
}

.upload-area:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

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

.upload-area p {
  font-size: 13px;
}

/* ---- Rich Text Placeholder ---- */
.richtext-placeholder {
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  overflow: hidden;
}

.richtext-toolbar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-300);
  padding: 8px 12px;
  display: flex;
  gap: 6px;
}

.richtext-toolbar button {
  width: 30px;
  height: 28px;
  border: 1px solid var(--gray-200);
  background: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
}

.richtext-body {
  padding: 16px;
  min-height: 200px;
  font-size: 13.5px;
  color: var(--gray-400);
  line-height: 1.7;
}

/* ---- Week Cards ---- */
.week-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  transition: box-shadow 0.15s;
}

.week-card:hover {
  box-shadow: var(--shadow-md);
}

.week-card .drag-handle {
  color: var(--gray-400);
  cursor: grab;
  font-size: 18px;
}

.week-card .week-number {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.week-card .week-info {
  flex: 1;
}

.week-card .week-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
}

.week-card .week-info p {
  font-size: 12.5px;
  color: var(--gray-500);
  margin-top: 2px;
}

.week-card .week-meta {
  display: flex;
  gap: 16px;
  align-items: center;
}

.week-card .week-meta .meta-item {
  text-align: center;
}

.week-card .week-meta .meta-item span {
  display: block;
  font-size: 11px;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.week-card .week-meta .meta-item strong {
  font-size: 15px;
  color: var(--gray-700);
}

/* ---- Video Item ---- */
.video-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--radius);
  margin-bottom: 12px;
  border: 1px solid var(--gray-200);
}

.video-thumb {
  width: 120px;
  height: 68px;
  background: var(--gray-300);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 24px;
  flex-shrink: 0;
}

.video-info {
  flex: 1;
}

.video-info h4 {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-800);
}

.video-info p {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}

/* ---- Profile Section ---- */
.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 600;
  flex-shrink: 0;
}

.profile-info h2 {
  font-size: 20px;
  font-weight: 600;
}

.profile-info p {
  font-size: 13px;
  color: var(--gray-500);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.info-item label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.info-item p {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-800);
}

/* ---- Tabs ---- */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 24px;
}

.tab {
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
}

.tab:hover { color: var(--gray-700); }

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ---- Settings Sections ---- */
.settings-section {
  margin-bottom: 32px;
}

.settings-section h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-200);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}

.toggle-row:last-child {
  border-bottom: none;
}

.toggle-row .toggle-label h4 {
  font-size: 13.5px;
  font-weight: 500;
}

.toggle-row .toggle-label p {
  font-size: 12px;
  color: var(--gray-500);
}

.toggle-switch {
  width: 42px;
  height: 24px;
  background: var(--gray-300);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
}

.toggle-switch.on {
  background: var(--primary);
}

.toggle-switch::after {
  content: "";
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
}

.toggle-switch.on::after {
  transform: translateX(18px);
}

/* ---- Misc ---- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-400);
}

.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.divider {
  border-top: 1px solid var(--gray-200);
  margin: 24px 0;
}

.text-muted { color: var(--gray-500); }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }

.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

/* ---- Chart Placeholder ---- */
.chart-placeholder {
  background: var(--gray-50);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius);
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 14px;
}

/* Quick Actions */
.quick-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}

/* Section label within content */
.section-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gray-400);
  margin-bottom: 12px;
  font-weight: 600;
}

/* ---- Section Headings ---- */
.section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

.page-title {
  font-size: 18px;
  font-weight: 600;
}

/* ---- Help / Description Text ---- */
.help-text {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.small-text {
  font-size: 12px;
  color: var(--gray-500);
}

.tiny-text {
  font-size: 11px;
  color: var(--gray-400);
}

.small-label {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 4px;
}

/* ---- Banners / Alerts ---- */
.banner {
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.banner-info {
  background: var(--primary-light);
  border: 1px solid #B8D4EE;
}

.banner-info .banner-text {
  font-size: 13px;
  color: var(--primary-dark);
}

.banner-warning {
  background: var(--accent-light);
  border: 1px solid #F0C8A8;
}

.banner-warning .banner-text {
  font-size: 13px;
  color: #92400E;
}

.banner-success {
  background: var(--success-light);
  border: 1px solid #A7F3D0;
}

.banner-success .banner-text {
  font-size: 13px;
  color: #065F46;
}

.banner-icon {
  font-size: 18px;
  flex-shrink: 0;
}

/* ---- Stat Cards ---- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  padding: 16px;
  text-align: center;
}

.stat-card .stat-number {
  font-size: 24px;
  font-weight: 700;
}

.stat-card .stat-number.primary { color: var(--primary); }
.stat-card .stat-number.accent { color: var(--accent); }
.stat-card .stat-number.danger { color: var(--danger); }
.stat-card .stat-number.dark { color: var(--gray-800); }

.stat-card .stat-label {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}

/* ---- Avatar (small / inline) ---- */
.avatar-sm {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

.avatar-sm.blue { background: var(--primary-light); color: var(--primary); }
.avatar-sm.orange { background: var(--accent-light); color: var(--accent); }
.avatar-sm.green { background: var(--success-light); color: #065F46; }
.avatar-sm.red { background: var(--danger-light); color: var(--danger); }
.avatar-sm.yellow { background: var(--warning-light); color: #92400E; }

/* ---- User Avatar (profile / upload) ---- */
.avatar-upload {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 32px;
  color: var(--gray-400);
}

/* ---- Logo Display ---- */
.logo-display {
  width: 80px;
  height: 80px;
  background: var(--primary-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

/* ---- Text Truncate ---- */
.text-truncate {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- Page Banner (course/week header) ---- */
.page-banner {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

.page-banner-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-banner-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.page-banner-icon.blue { background: var(--primary-light); }
.page-banner-icon.orange { background: var(--accent-light); }

.page-banner-text h2 {
  font-size: 18px;
  font-weight: 600;
}

.page-banner-text p {
  font-size: 13px;
  color: var(--gray-500);
}

/* ---- Course Row Icon ---- */
.course-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.course-icon.blue { background: var(--primary-light); }
.course-icon.orange { background: var(--accent-light); }
.course-icon.green { background: var(--success-light); }
.course-icon.yellow { background: var(--warning-light); }
.course-icon.gray { background: var(--gray-100); }

/* ---- Content Box (onboarding, child, settings docs) ---- */
.content-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

/* ---- Dashed Placeholder ---- */
.dashed-placeholder {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  color: var(--gray-400);
}

/* ---- Drag Handle ---- */
.drag-handle-icon {
  color: var(--gray-400);
  cursor: grab;
  font-size: 18px;
}

/* ---- Progress Bar ---- */
.progress-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-bar-track {
  width: 120px;
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 4px;
}

.progress-bar-fill.primary { background: var(--primary); }
.progress-bar-fill.accent { background: var(--accent); }

.progress-bar-label {
  font-size: 12px;
  color: var(--gray-500);
}

/* ---- Color Picker ---- */
.color-picker {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 2px solid var(--gray-200);
}

.color-picker .form-control {
  width: 120px;
}

/* ---- Summary / Meta List ---- */
.summary-list {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.8;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

.summary-row:first-child {
  margin-top: 0;
}

/* ---- Assigned Course Badge ---- */
.assigned-course {
  background: var(--success-light);
  border: 1px solid #A7F3D0;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.assigned-course strong {
  font-size: 13px;
  color: #065F46;
}

.assigned-course p {
  font-size: 12px;
  color: #065F46;
  opacity: 0.7;
}

/* ---- Checkbox Row ---- */
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.checkbox-row label {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 0;
}

/* ---- Rich Text Extended ---- */
.richtext-body.tall { min-height: 250px; }
.richtext-body.medium { min-height: 180px; }

.richtext-body h3 {
  color: var(--gray-800);
  font-size: 16px;
  margin-bottom: 8px;
}

.richtext-body h4 {
  color: var(--gray-800);
  font-size: 14px;
  margin-bottom: 6px;
}

.richtext-body p {
  color: var(--gray-600);
}

/* ---- Week Card States ---- */
.week-card.empty {
  opacity: 0.6;
  border-style: dashed;
}

.week-card.empty .week-number {
  background: var(--gray-100);
  color: var(--gray-400);
}

.week-card.empty .week-info h4 {
  color: var(--gray-400);
}

/* ---- Badge Sizes ---- */
.badge-sm {
  font-size: 9px;
}

/* ---- Additional Utilities ---- */
.w-130 { width: 130px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.p-sm { padding: 24px; }
.text-center { text-align: center; }
.flex-1 { flex: 1; }
.v-middle { vertical-align: middle; }

/* ---- Course Form Utilities ---- */
.text-13 {
  font-size: 13px;
}

.summary-meta {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 2;
}

.font-sm { font-size: 12px; }

/* ---- Modal / Popup ---- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

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

.modal {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  width: 560px;
  max-width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  animation: modalSlideIn 0.2s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.modal-header h3 {
  font-size: 16px;
  font-weight: 600;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  background: var(--gray-100);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--gray-500);
  transition: all 0.15s;
}

.modal-close:hover {
  background: var(--gray-200);
  color: var(--gray-700);
}

.modal-body {
  padding: 24px;
}

.modal-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--gray-500);
}

.modal-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.journal-content {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-700);
}

/* Audio Player Placeholder */
.audio-player {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.audio-waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 48px;
  margin-bottom: 12px;
}

.audio-waveform span {
  width: 4px;
  background: var(--primary);
  border-radius: 2px;
  opacity: 0.6;
}

.audio-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.audio-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.audio-time {
  font-size: 13px;
  color: var(--gray-500);
}

/* ---- Notification Time Settings ---- */
.time-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.time-setting-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.time-setting-card .time-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.time-setting-card h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 4px;
}

.time-setting-card .time-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}

.time-setting-card .time-label {
  font-size: 11px;
  color: var(--gray-400);
}

/* ---- Editable Time Setting Card ---- */
.time-setting-card-edit {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.time-setting-card-edit .time-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.time-setting-card-edit h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 10px;
}

.time-setting-card-edit .time-input {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  padding: 8px 12px;
}

.time-setting-card-edit .time-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43, 123, 202, 0.12);
}

/* ---- Saved Items ---- */
.saved-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}

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

.saved-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.saved-item-info {
  flex: 1;
}

.saved-item-info h4 {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-800);
}

.saved-item-info p {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}

.saved-item-date {
  font-size: 12px;
  color: var(--gray-400);
}

/* ---- Clickable Table Row ---- */
tr.clickable-row {
  cursor: pointer;
}

tr.clickable-row:hover {
  background: var(--primary-light) !important;
}

/* ---- Week Section Navigation ---- */
.section-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.section-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 5px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  color: inherit;
}

.section-nav-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.section-nav-item.active {
  border-color: var(--primary);
  background: var(--primary-light);
}

.section-nav-item .nav-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.section-nav-item.active .nav-num {
  background: var(--primary);
  color: var(--white);
}

.section-nav-item .nav-label {
  flex: 1;
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.section-nav-item .nav-audience {
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 500;
}

.section-nav-item .nav-status {
  margin-left: auto;
}

/* ---- Section Content Card ---- */
.section-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  overflow: hidden;
}

.section-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.section-card-header .section-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.section-card-header .section-num.blue { background: var(--primary-light); color: var(--primary); }
.section-card-header .section-num.orange { background: var(--accent-light); color: var(--accent); }
.section-card-header .section-num.green { background: var(--success-light); color: #065F46; }

.section-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-card-title h3 {
  font-size: 15px;
  font-weight: 600;
}

.section-card-body {
  padding: 24px;
}

/* ---- Video Grid (2x2) ---- */
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.video-grid-item {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}

.video-grid-thumb {
  width: 100%;
  height: 120px;
  background: var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 28px;
  position: relative;
}

.video-grid-thumb.video-grid-thumb-lg {
  height: 160px;
}

.video-grid-thumb .video-duration {
  position: absolute;
  bottom: 6px;
  left: 8px;
  background: rgba(0,0,0,0.65);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.video-grid-info {
  padding: 12px;
}

.video-grid-info h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.video-grid-info p {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 4px;
}

.video-grid-info .video-grid-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

/* ---- Resource List Item ---- */
.resource-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
}

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

.resource-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-600);
  flex-shrink: 0;
}

.resource-info {
  flex: 1;
}

.resource-info h4 {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-800);
}

.resource-info p {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}

/* ---- Single Video Display ---- */
.single-video {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}

.single-video-thumb {
  width: 100%;
  height: 220px;
  background: var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--gray-500);
  position: relative;
}

.single-video-thumb .video-duration {
  position: absolute;
  bottom: 10px;
  left: 12px;
  background: rgba(0,0,0,0.65);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.single-video-info {
  padding: 16px;
}

.single-video-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
}

.single-video-info p {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 4px;
  line-height: 1.5;
}

/* ---- Content Section Grid ---- */
.content-section-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

/* ---- Sticky Side Nav ---- */
.sticky-nav {
  position: sticky;
  top: 88px;
}

/* ---- Video Preview Modal ---- */
.modal.modal-lg {
  width: 720px;
  max-width: 92%;
}

.video-preview-container {
  background: #000;
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.video-preview-container .play-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 3px solid rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
}

.video-preview-container .play-circle:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.1);
}

.video-preview-info {
  padding: 16px 0 0;
}

.video-preview-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
}

.video-preview-info p {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 4px;
}

.video-preview-info .meta-row {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--gray-400);
}

/* ---- Form Modal ---- */
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.modal .form-group {
  margin-bottom: 16px;
}

.modal .form-group:last-child {
  margin-bottom: 0;
}

.modal .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ---- Upload Zone (inside modal) ---- */
.upload-zone {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  color: var(--gray-400);
  cursor: pointer;
  transition: all 0.15s;
  background: var(--gray-50);
}

.upload-zone:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.upload-zone .upload-zone-icon {
  font-size: 28px;
  margin-bottom: 6px;
}

.upload-zone p {
  font-size: 12px;
}

.upload-zone .upload-zone-hint {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 4px;
}

/* ---- Delete Confirmation Modal ---- */
.modal.modal-sm {
  width: 420px;
}

.delete-confirm-body {
  text-align: center;
  padding: 8px 0;
}

.delete-confirm-body .delete-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.delete-confirm-body h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--gray-800);
}

.delete-confirm-body p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
}

.modal-footer.center {
  justify-content: center;
}

/* ---- Video Thumb Clickable ---- */
.video-grid-thumb.clickable,
.single-video-thumb.clickable,
.video-thumb.clickable {
  cursor: pointer;
  transition: all 0.15s;
}

.video-grid-thumb.clickable:hover,
.single-video-thumb.clickable:hover,
.video-thumb.clickable:hover {
  opacity: 0.85;
}

/* ---- Toast Notification ---- */
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  background: #e5e7eb; /* gray-200 */
  color: #22C55E; /* green text */
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 14px 35px rgba(0,0,0,0.22);
  border: 1px solid rgba(0,0,0,0.06);
  min-width: 220px;
  max-width: min(420px, calc(100vw - 48px));
  z-index: 2000;
  animation: toastSlideInTop 0.32s ease, toastFadeOut 0.3s ease 2.7s forwards;
}

.toast.success {
  background: #e5e7eb;
  border-color: rgba(34, 197, 94, 0.35);
  color: #22C55E;
}

.toast.danger {
  background: #e5e7eb;
  border-color: rgba(34, 197, 94, 0.35);
  color: #22C55E;
}

@keyframes toastSlideInTop {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toastFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* ---- Full-page Loading Overlay ---- */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2600; /* above header/sidebar */
}

.loading-spinner {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 3px solid rgba(43, 123, 202, 0.22);
  border-top-color: var(--primary);
  animation: loadingSpin 0.9s linear infinite;
}

@keyframes loadingSpin {
  to { transform: rotate(360deg); }
}

/* ---- CKEditor fixed heights ---- */
.ckeditor-height-200 .ck-editor__editable {
  height: 200px !important;
  min-height: 200px !important;
}

.ckeditor-height-400 .ck-editor__editable {
  height: 400px !important;
  min-height: 400px !important;
}

.ckeditor-height-200 textarea.ck-html-source {
  height: 200px !important;
  min-height: 200px !important;
}

.ckeditor-height-400 textarea.ck-html-source {
  height: 400px !important;
  min-height: 400px !important;
}


