/* =====================================================
   VIU LMS — Premium Public Stylesheet
   Matches viuedu.com — Hello Elementor Theme
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --viu-primary:       #1B3A6B;
  --viu-primary-dark:  #122850;
  --viu-primary-light: #2554A0;
  --viu-teal:          #0E9F8E;
  --viu-teal-light:    #13BDA9;
  --viu-teal-dark:     #0B7D6F;
  --viu-gold:          #F5A623;
  --viu-success:       #22C55E;
  --viu-warning:       #F59E0B;
  --viu-danger:        #EF4444;
  --viu-white:         #FFFFFF;
  --viu-gray-50:       #F8FAFC;
  --viu-gray-100:      #F1F5F9;
  --viu-gray-200:      #E2E8F0;
  --viu-gray-300:      #CBD5E1;
  --viu-gray-400:      #94A3B8;
  --viu-gray-500:      #64748B;
  --viu-gray-600:      #475569;
  --viu-gray-700:      #334155;
  --viu-gray-800:      #1E293B;
  --viu-gray-900:      #0F172A;
  --viu-radius-sm:     6px;
  --viu-radius:        12px;
  --viu-radius-lg:     18px;
  --viu-radius-xl:     24px;
  --viu-shadow-sm:     0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --viu-shadow:        0 4px 16px rgba(27,58,107,0.10);
  --viu-shadow-lg:     0 10px 40px rgba(27,58,107,0.16);
  --viu-shadow-xl:     0 20px 60px rgba(27,58,107,0.20);
  --viu-gradient:      linear-gradient(135deg, #1B3A6B 0%, #0E9F8E 100%);
  --viu-gradient-r:    linear-gradient(135deg, #0E9F8E 0%, #1B3A6B 100%);
  --viu-font:          'Inter', 'Segoe UI', sans-serif;
  --viu-font-heading:  'Poppins', 'Segoe UI', sans-serif;
  --viu-transition:    all 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset & Base ─────────────────────────────────── */
.viu-lms-wrap *, .viu-lms-login-wrap * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.viu-lms-wrap {
  font-family: var(--viu-font);
  color: var(--viu-gray-800);
  line-height: 1.6;
  max-width: 1240px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* ══════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════ */
.viu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: var(--viu-radius-sm);
  font-family: var(--viu-font);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--viu-transition);
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.viu-btn-primary {
  background: var(--viu-gradient);
  color: #fff;
  box-shadow: 0 4px 14px rgba(14,159,142,0.35);
}
.viu-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14,159,142,0.45);
  color: #fff;
}
.viu-btn-outline {
  background: transparent;
  color: var(--viu-primary);
  border-color: var(--viu-primary);
}
.viu-btn-outline:hover {
  background: var(--viu-primary);
  color: #fff;
  transform: translateY(-2px);
}
.viu-btn-teal {
  background: var(--viu-teal);
  color: #fff;
  box-shadow: 0 4px 14px rgba(14,159,142,0.3);
}
.viu-btn-teal:hover { background: var(--viu-teal-dark); transform: translateY(-2px); color: #fff; }
.viu-btn-white {
  background: #fff;
  color: var(--viu-primary);
  border-color: var(--viu-gray-200);
}
.viu-btn-white:hover { background: var(--viu-gray-50); transform: translateY(-2px); }
.viu-btn-sm  { padding: 7px 16px; font-size: 13px; }
.viu-btn-lg  { padding: 14px 36px; font-size: 16px; border-radius: var(--viu-radius-sm); }
.viu-btn-full { width: 100%; }
.viu-btn-danger { background: var(--viu-danger); color: #fff; }
.viu-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none !important; }

/* ══════════════════════════════════════════════════
   FORM ELEMENTS
══════════════════════════════════════════════════ */
.viu-form-group { margin-bottom: 20px; }
.viu-form-group label {
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
  font-size: 13px;
  color: var(--viu-gray-600);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.viu-input,
.viu-lms-wrap input[type="text"],
.viu-lms-wrap input[type="email"],
.viu-lms-wrap input[type="password"],
.viu-lms-wrap input[type="number"],
.viu-lms-wrap select,
.viu-lms-wrap textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--viu-gray-200);
  border-radius: var(--viu-radius-sm);
  font-family: var(--viu-font);
  font-size: 14px;
  color: var(--viu-gray-800);
  background: #fff;
  transition: var(--viu-transition);
}
.viu-lms-wrap input:focus,
.viu-lms-wrap select:focus,
.viu-lms-wrap textarea:focus,
.viu-input:focus {
  outline: none;
  border-color: var(--viu-teal);
  box-shadow: 0 0 0 4px rgba(14,159,142,0.12);
}
.viu-form-row  { display: flex; gap: 16px; }
.viu-form-row .viu-form-group { flex: 1; }
.viu-input-sm  { padding: 7px 12px; font-size: 13px; width: auto; display: inline-block; border: 1.5px solid var(--viu-gray-200); border-radius: var(--viu-radius-sm); }
.viu-form-message {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: var(--viu-radius-sm);
  font-size: 14px;
  font-weight: 500;
  display: none;
}
.viu-form-message.error   { display: block; background: #FEE2E2; color: #991B1B; border-left: 4px solid var(--viu-danger); }
.viu-form-message.success { display: block; background: #DCFCE7; color: #166534; border-left: 4px solid var(--viu-success); }

/* ══════════════════════════════════════════════════
   LOGIN PAGE
══════════════════════════════════════════════════ */
.viu-lms-login-wrap {
  font-family: var(--viu-font);
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--viu-gray-50);
}
.viu-lms-login-card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: var(--viu-radius-xl);
  box-shadow: var(--viu-shadow-xl);
  overflow: hidden;
}
.viu-lms-login-header {
  background: var(--viu-gradient);
  padding: 40px 36px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.viu-lms-login-header::before {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  top: -60px; right: -40px;
}
.viu-lms-login-header::after {
  content: '';
  position: absolute;
  width: 120px; height: 120px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  bottom: -30px; left: -20px;
}
.viu-login-logo {
  width: 64px; height: 64px;
  background: rgba(255,255,255,0.15);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
  backdrop-filter: blur(10px);
  position: relative; z-index: 1;
}
.viu-lms-login-header h1 {
  color: #fff;
  font-family: var(--viu-font-heading);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
  position: relative; z-index: 1;
}
.viu-lms-login-header p {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  position: relative; z-index: 1;
}
.viu-lms-tabs {
  display: flex;
  border-bottom: 1px solid var(--viu-gray-100);
  background: #fff;
}
.viu-tab {
  flex: 1;
  padding: 16px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--viu-gray-400);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: var(--viu-transition);
  font-family: var(--viu-font);
}
.viu-tab:hover { color: var(--viu-primary); }
.viu-tab.active { color: var(--viu-teal); border-bottom-color: var(--viu-teal); }
.viu-tab-content { padding: 32px 36px; display: none; }
.viu-tab-content.active { display: block; }

/* ══════════════════════════════════════════════════
   DASHBOARD LAYOUT
══════════════════════════════════════════════════ */
.viu-dashboard {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

/* ── Sidebar ──────────────────────────────────── */
.viu-sidebar {
  width: 270px;
  flex-shrink: 0;
  background: #fff;
  border-radius: var(--viu-radius-lg);
  box-shadow: var(--viu-shadow);
  overflow: hidden;
  position: sticky;
  top: 20px;
}
.viu-user-card {
  background: var(--viu-gradient);
  padding: 30px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.viu-user-card::before {
  content: '';
  position: absolute;
  width: 150px; height: 150px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
  top: -50px; right: -30px;
}
.viu-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700;
  color: #fff;
  margin: 0 auto 14px;
  border: 3px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(10px);
  position: relative; z-index: 1;
}
.viu-user-card h3 {
  color: #fff;
  font-family: var(--viu-font-heading);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
  position: relative; z-index: 1;
}
.viu-student-id {
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  position: relative; z-index: 1;
  background: rgba(255,255,255,0.15);
  padding: 3px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-top: 4px;
}
.viu-nav { padding: 12px 0; }
.viu-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 24px;
  color: var(--viu-gray-600);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--viu-transition);
  border-left: 3px solid transparent;
  margin: 2px 0;
}
.viu-nav-item:hover {
  background: var(--viu-gray-50);
  color: var(--viu-teal);
  border-left-color: var(--viu-teal);
}
.viu-nav-item.active {
  background: linear-gradient(90deg, rgba(14,159,142,0.08) 0%, transparent 100%);
  color: var(--viu-teal);
  border-left-color: var(--viu-teal);
  font-weight: 600;
}
.viu-notif-badge {
  background: var(--viu-danger);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 700;
  min-width: 22px;
  text-align: center;
}
.viu-nav-divider {
  height: 1px;
  background: var(--viu-gray-100);
  margin: 8px 16px;
}

/* ── Main Content ─────────────────────────────── */
.viu-main { flex: 1; min-width: 0; }
.viu-section { display: none; }
.viu-section.active { display: block; animation: viuFadeIn 0.3s ease; }
@keyframes viuFadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

.viu-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.viu-page-header h2 {
  font-family: var(--viu-font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--viu-gray-900);
}

/* ── Stat Cards ───────────────────────────────── */
.viu-dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.viu-dash-stat {
  background: #fff;
  border-radius: var(--viu-radius);
  padding: 22px 20px;
  box-shadow: var(--viu-shadow-sm);
  border: 1px solid var(--viu-gray-100);
  transition: var(--viu-transition);
  position: relative;
  overflow: hidden;
}
.viu-dash-stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--viu-gradient);
}
.viu-dash-stat:hover { transform: translateY(-3px); box-shadow: var(--viu-shadow); }
.viu-ds-value {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--viu-primary);
  font-family: var(--viu-font-heading);
  line-height: 1.1;
}
.viu-ds-label {
  display: block;
  font-size: 12px;
  color: var(--viu-gray-500);
  margin-top: 6px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ══════════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════════ */
.viu-card {
  background: #fff;
  border-radius: var(--viu-radius);
  padding: 24px;
  box-shadow: var(--viu-shadow-sm);
  border: 1px solid var(--viu-gray-100);
}
.viu-card + .viu-card { margin-top: 20px; }
.viu-card h2, .viu-card h3 {
  font-family: var(--viu-font-heading);
  color: var(--viu-gray-900);
  margin-bottom: 16px;
}
.viu-card h2 {
  font-size: 18px;
  font-weight: 700;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--viu-gray-100);
}

/* ══════════════════════════════════════════════════
   COURSE GRID & CARDS
══════════════════════════════════════════════════ */
.viu-course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}
.viu-course-card {
  background: #fff;
  border-radius: var(--viu-radius);
  box-shadow: var(--viu-shadow-sm);
  border: 1px solid var(--viu-gray-100);
  overflow: hidden;
  transition: var(--viu-transition);
}
.viu-course-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--viu-shadow-lg);
  border-color: transparent;
}
.viu-cc-thumb {
  height: 170px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.viu-cc-thumb-placeholder {
  background: var(--viu-gradient);
  display: flex; align-items: center; justify-content: center;
}
.viu-cc-thumb-placeholder::after {
  content: '📚';
  font-size: 48px;
  opacity: 0.5;
}
.viu-cc-badge-wrap {
  position: absolute;
  top: 12px; left: 12px;
  display: flex; gap: 6px;
}
.viu-cc-body { padding: 20px; }
.viu-cc-body h4 {
  font-family: var(--viu-font-heading);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
}
.viu-cc-body h4 a {
  color: var(--viu-gray-900);
  text-decoration: none;
  transition: var(--viu-transition);
}
.viu-cc-body h4 a:hover { color: var(--viu-teal); }
.viu-cc-instructor {
  font-size: 13px;
  color: var(--viu-gray-500);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 5px;
}
.viu-cc-instructor::before { content: '👤'; font-size: 12px; }
.viu-cc-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--viu-gray-500);
  margin-bottom: 14px;
}
.viu-cc-actions { display: flex; gap: 8px; margin-top: 14px; }

/* ── Progress Bar ─────────────────────────────── */
.viu-progress-bar {
  width: 100%;
  height: 7px;
  background: var(--viu-gray-100);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 6px;
}
.viu-progress-fill {
  height: 100%;
  background: var(--viu-gradient);
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
}
.viu-progress-text { font-size: 12px; color: var(--viu-gray-500); font-weight: 500; }

/* ══════════════════════════════════════════════════
   BADGES
══════════════════════════════════════════════════ */
.viu-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.viu-badge-published, .viu-badge-graded, .viu-badge-completed, .viu-badge-active  { background: #DCFCE7; color: #166534; }
.viu-badge-draft, .viu-badge-submitted  { background: #FEF9C3; color: #854D0E; }
.viu-badge-archived   { background: var(--viu-gray-100); color: var(--viu-gray-600); }
.viu-badge-beginner   { background: #DCFCE7; color: #166534; }
.viu-badge-intermediate { background: #FEF9C3; color: #854D0E; }
.viu-badge-advanced   { background: #FEE2E2; color: #991B1B; }

/* ══════════════════════════════════════════════════
   COURSE DETAIL PAGE
══════════════════════════════════════════════════ */
.viu-course-hero-wrap { position: relative; border-radius: var(--viu-radius-lg); overflow: hidden; margin-bottom: 28px; }
.viu-course-hero { width: 100%; max-height: 320px; object-fit: cover; display: block; }
.viu-course-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.8) 0%, transparent 60%);
}
.viu-course-hero-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px;
  color: #fff;
}
.viu-course-hero-info h1 {
  font-family: var(--viu-font-heading);
  font-size: 28px; font-weight: 700;
  margin: 10px 0 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.viu-course-instructor { color: rgba(255,255,255,0.85); font-size: 14px; }
.viu-course-content-grid { display: grid; grid-template-columns: 1fr 330px; gap: 24px; }
.viu-course-main { min-width: 0; }
.viu-course-desc { line-height: 1.8; color: var(--viu-gray-600); font-size: 15px; }
.viu-sidebar-list { list-style: none; padding: 0; }
.viu-sidebar-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--viu-gray-100);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; color: var(--viu-gray-700);
}
.viu-sidebar-list li:last-child { border-bottom: none; }
.viu-sidebar-list li a { color: var(--viu-teal); text-decoration: none; font-weight: 500; }
.viu-sidebar-list li a:hover { text-decoration: underline; }

/* ── Module Accordion ─────────────────────────── */
.viu-module-accordion {
  border: 1px solid var(--viu-gray-200);
  border-radius: var(--viu-radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--viu-transition);
}
.viu-module-accordion:hover { border-color: var(--viu-gray-300); }
.viu-module-acc-header {
  background: var(--viu-gray-50);
  padding: 15px 18px;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
  font-weight: 600; font-size: 15px;
  color: var(--viu-gray-800);
  transition: var(--viu-transition);
}
.viu-module-acc-header:hover { background: var(--viu-gray-100); }
.viu-module-acc-header .viu-acc-arrow { font-size: 12px; color: var(--viu-gray-400); transition: var(--viu-transition); }
.viu-module-acc-body { padding: 6px 18px 14px; background: #fff; }
.viu-lesson-row {
  padding: 11px 0;
  border-bottom: 1px solid var(--viu-gray-100);
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--viu-gray-700);
}
.viu-lesson-row:last-child { border-bottom: none; }
.viu-lesson-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--viu-gray-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--viu-gray-400);
  flex-shrink: 0;
}
.viu-lesson-check.done { background: #DCFCE7; color: var(--viu-success); }
.viu-lesson-row a { color: var(--viu-primary); text-decoration: none; font-weight: 500; }
.viu-lesson-row a:hover { color: var(--viu-teal); }
.viu-lesson-row small { margin-left: auto; color: var(--viu-gray-400); font-size: 12px; background: var(--viu-gray-100); padding: 2px 8px; border-radius: 10px; }
.viu-drip-locked { color: var(--viu-warning); font-size: 13px; font-style: italic; padding: 10px 0; }

/* ══════════════════════════════════════════════════
   LESSON PAGE
══════════════════════════════════════════════════ */
.viu-lesson-layout { display: flex; gap: 24px; align-items: flex-start; }
.viu-lesson-sidebar {
  width: 270px; flex-shrink: 0;
  background: #fff;
  border-radius: var(--viu-radius);
  box-shadow: var(--viu-shadow-sm);
  border: 1px solid var(--viu-gray-100);
  padding: 20px;
  position: sticky; top: 20px;
  max-height: 85vh; overflow-y: auto;
}
.viu-lesson-sidebar h3 { font-size: 14px; font-weight: 700; color: var(--viu-gray-800); margin-bottom: 16px; }
.viu-lesson-sidebar h3 a { color: var(--viu-primary); text-decoration: none; }
.viu-lesson-nav { list-style: none; }
.viu-lesson-nav li { border-bottom: 1px solid var(--viu-gray-100); }
.viu-lesson-nav li a {
  display: block; padding: 10px 12px;
  font-size: 13px; color: var(--viu-gray-600);
  text-decoration: none;
  border-left: 3px solid transparent;
  border-radius: 0 var(--viu-radius-sm) var(--viu-radius-sm) 0;
  transition: var(--viu-transition);
}
.viu-lesson-nav li a:hover, .viu-lesson-nav li.active a {
  color: var(--viu-teal); border-left-color: var(--viu-teal); background: var(--viu-gray-50);
}
.viu-lesson-main { flex: 1; min-width: 0; }
.viu-lesson-main h1 { font-family: var(--viu-font-heading); font-size: 24px; font-weight: 700; color: var(--viu-gray-900); margin-bottom: 20px; }
.viu-video-wrap { position: relative; padding-bottom: 56.25%; height: 0; border-radius: var(--viu-radius); overflow: hidden; margin-bottom: 24px; box-shadow: var(--viu-shadow); }
.viu-video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.viu-lesson-text { font-size: 15px; line-height: 1.85; color: var(--viu-gray-700); }
.viu-lesson-footer { margin-top: 32px; padding: 20px; background: var(--viu-gray-50); border-radius: var(--viu-radius); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.viu-lesson-nav-btns { display: flex; gap: 10px; }

/* ══════════════════════════════════════════════════
   QUIZ PAGE
══════════════════════════════════════════════════ */
.viu-quiz-container { max-width: 820px; margin: 0 auto; }
.viu-quiz-hero {
  background: var(--viu-gradient);
  border-radius: var(--viu-radius-lg);
  padding: 32px;
  color: #fff;
  margin-bottom: 28px;
}
.viu-quiz-hero h1 { font-family: var(--viu-font-heading); font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.viu-quiz-meta { color: rgba(255,255,255,0.8); font-size: 14px; display: flex; gap: 16px; flex-wrap: wrap; }
.viu-quiz-meta span { display: flex; align-items: center; gap: 5px; }
.viu-quiz-timer {
  position: sticky; top: 16px; z-index: 99;
  background: #fff;
  border: 2px solid var(--viu-teal);
  color: var(--viu-primary);
  padding: 14px 24px;
  border-radius: var(--viu-radius);
  text-align: center;
  font-size: 24px; font-weight: 800;
  margin-bottom: 24px;
  box-shadow: var(--viu-shadow);
  display: none;
  font-family: var(--viu-font-heading);
}
.viu-quiz-timer.warning { border-color: var(--viu-danger); color: var(--viu-danger); animation: viuPulse 1s infinite; }
@keyframes viuPulse { 0%,100%{opacity:1} 50%{opacity:0.7} }
.viu-question-card {
  background: #fff;
  border-radius: var(--viu-radius);
  padding: 26px;
  margin-bottom: 16px;
  box-shadow: var(--viu-shadow-sm);
  border: 1px solid var(--viu-gray-100);
  border-left: 4px solid var(--viu-teal);
  transition: var(--viu-transition);
}
.viu-question-card:hover { box-shadow: var(--viu-shadow); }
.viu-q-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.viu-q-num {
  width: 32px; height: 32px;
  background: var(--viu-gradient);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  flex-shrink: 0;
}
.viu-q-text { font-size: 15px; font-weight: 600; color: var(--viu-gray-800); line-height: 1.5; padding-top: 4px; }
.viu-option-label {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  margin: 8px 0;
  border: 1.5px solid var(--viu-gray-200);
  border-radius: var(--viu-radius-sm);
  cursor: pointer;
  font-size: 14px;
  color: var(--viu-gray-700);
  transition: var(--viu-transition);
}
.viu-option-label:hover { border-color: var(--viu-teal); background: rgba(14,159,142,0.04); }
.viu-option-label input[type="radio"] { accent-color: var(--viu-teal); width: 16px; height: 16px; flex-shrink: 0; }
.viu-option-label:has(input:checked) { border-color: var(--viu-teal); background: rgba(14,159,142,0.07); color: var(--viu-teal-dark); font-weight: 600; }
.viu-quiz-result-card { text-align: center; padding: 48px; }
.viu-result-icon { font-size: 72px; margin-bottom: 16px; }
.viu-result-percentage { display: block; font-size: 68px; font-weight: 800; font-family: var(--viu-font-heading); background: var(--viu-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; margin-bottom: 12px; }

/* ══════════════════════════════════════════════════
   RESULTS PAGE
══════════════════════════════════════════════════ */
.viu-results-container { max-width: 900px; margin: 0 auto; }
.viu-results-hero {
  background: var(--viu-gradient);
  border-radius: var(--viu-radius-lg);
  padding: 32px;
  color: #fff;
  margin-bottom: 28px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
}
.viu-results-hero h1 { font-family: var(--viu-font-heading); font-size: 22px; font-weight: 700; }
.viu-pass-badge {
  background: rgba(255,255,255,0.2);
  color: #fff;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
}

/* ══════════════════════════════════════════════════
   TABLES
══════════════════════════════════════════════════ */
.viu-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.viu-table th {
  background: var(--viu-gray-50);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--viu-gray-600);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 2px solid var(--viu-gray-200);
}
.viu-table td { padding: 13px 16px; border-bottom: 1px solid var(--viu-gray-100); color: var(--viu-gray-700); }
.viu-table tr:hover td { background: var(--viu-gray-50); }
.viu-table tr:last-child td { border-bottom: none; }

/* ══════════════════════════════════════════════════
   CERTIFICATES
══════════════════════════════════════════════════ */
.viu-cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.viu-cert-card {
  background: linear-gradient(135deg, #fff 0%, var(--viu-gray-50) 100%);
  border-radius: var(--viu-radius);
  padding: 24px;
  border: 1px solid var(--viu-gray-200);
  box-shadow: var(--viu-shadow-sm);
  position: relative;
  overflow: hidden;
  transition: var(--viu-transition);
}
.viu-cert-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--viu-gradient);
}
.viu-cert-card::after {
  content: '🎓';
  position: absolute;
  bottom: -10px; right: -5px;
  font-size: 72px;
  opacity: 0.06;
}
.viu-cert-card:hover { transform: translateY(-4px); box-shadow: var(--viu-shadow); }
.viu-cert-card h4 { font-family: var(--viu-font-heading); font-weight: 700; color: var(--viu-gray-900); margin-bottom: 8px; }
.viu-cert-uid { font-size: 11px; color: var(--viu-gray-400); font-family: monospace; background: var(--viu-gray-100); padding: 3px 8px; border-radius: 4px; display: inline-block; margin: 6px 0 14px; }
.viu-cert-check { font-size: 72px; margin: 16px 0; display: block; }

/* ══════════════════════════════════════════════════
   NOTIFICATIONS
══════════════════════════════════════════════════ */
.viu-notif-list { max-height: 520px; overflow-y: auto; }
.viu-notif-item {
  padding: 15px 18px;
  border-bottom: 1px solid var(--viu-gray-100);
  transition: var(--viu-transition);
  border-radius: var(--viu-radius-sm);
  margin: 4px 0;
}
.viu-notif-item:hover { background: var(--viu-gray-50); }
.viu-notif-item.unread {
  background: linear-gradient(90deg, rgba(14,159,142,0.05) 0%, transparent 100%);
  border-left: 3px solid var(--viu-teal);
}
.viu-notif-item h4 { font-size: 14px; font-weight: 600; color: var(--viu-gray-800); margin-bottom: 4px; }
.viu-notif-item p  { font-size: 13px; color: var(--viu-gray-500); }
.viu-notif-item small { font-size: 11px; color: var(--viu-gray-400); margin-top: 4px; display: block; }

/* ══════════════════════════════════════════════════
   CATALOG PAGE
══════════════════════════════════════════════════ */
.viu-catalog-header { margin-bottom: 32px; }
.viu-catalog-hero {
  background: var(--viu-gradient);
  border-radius: var(--viu-radius-lg);
  padding: 48px 40px;
  color: #fff;
  text-align: center;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.viu-catalog-hero::before {
  content: '';
  position: absolute; width: 300px; height: 300px;
  background: rgba(255,255,255,0.05); border-radius: 50%;
  top: -100px; right: -50px;
}
.viu-catalog-hero h1 {
  font-family: var(--viu-font-heading);
  font-size: 36px; font-weight: 800;
  margin-bottom: 12px;
  position: relative; z-index: 1;
}
.viu-catalog-hero p { color: rgba(255,255,255,0.85); font-size: 16px; position: relative; z-index: 1; }
.viu-catalog-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px;
  background: #fff;
  border-radius: var(--viu-radius);
  box-shadow: var(--viu-shadow-sm);
  border: 1px solid var(--viu-gray-100);
}
.viu-catalog-filters .viu-input { max-width: 280px; }

/* ══════════════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════════════ */
.viu-pagination { margin: 28px 0; display: flex; gap: 6px; justify-content: center; }
.viu-pagination button {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--viu-gray-200);
  background: #fff;
  border-radius: var(--viu-radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: var(--viu-transition);
  color: var(--viu-gray-600);
}
.viu-pagination button:hover { border-color: var(--viu-teal); color: var(--viu-teal); }
.viu-pagination button.active { background: var(--viu-gradient); color: #fff; border-color: transparent; box-shadow: 0 4px 10px rgba(14,159,142,0.3); }

/* ══════════════════════════════════════════════════
   GRADE FORM
══════════════════════════════════════════════════ */
.viu-grade-form { display: flex; gap: 6px; align-items: center; }

/* ══════════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════════ */
.viu-pub-toast {
  position: fixed; bottom: 30px; right: 30px;
  background: var(--viu-gray-900);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--viu-radius-sm);
  z-index: 99999;
  font-size: 14px;
  box-shadow: var(--viu-shadow-xl);
  font-family: var(--viu-font);
  max-width: 320px;
}
.viu-pub-toast.success { border-left: 4px solid var(--viu-success); }
.viu-pub-toast.error   { border-left: 4px solid var(--viu-danger); }

/* ══════════════════════════════════════════════════
   EMPTY STATES
══════════════════════════════════════════════════ */
.viu-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--viu-gray-400);
}
.viu-empty-state .viu-empty-icon { font-size: 56px; margin-bottom: 16px; display: block; }
.viu-empty-state h3 { font-size: 18px; font-weight: 600; color: var(--viu-gray-600); margin-bottom: 8px; }
.viu-empty-state p  { font-size: 14px; margin-bottom: 20px; }

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .viu-course-content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .viu-dashboard { flex-direction: column; }
  .viu-sidebar { width: 100%; position: relative; top: auto; }
  .viu-lesson-layout { flex-direction: column; }
  .viu-lesson-sidebar { width: 100%; position: relative; top: auto; max-height: none; }
  .viu-form-row { flex-direction: column; }
  .viu-catalog-filters .viu-input { max-width: 100%; }
  .viu-dash-stats { grid-template-columns: 1fr 1fr; }
  .viu-course-grid { grid-template-columns: 1fr; }
  .viu-quiz-hero h1 { font-size: 20px; }
  .viu-results-hero { flex-direction: column; text-align: center; }
  .viu-tab-content { padding: 24px 20px; }
  .viu-lms-login-header { padding: 30px 24px; }
  .viu-catalog-hero { padding: 36px 24px; }
  .viu-catalog-hero h1 { font-size: 26px; }
}
@media (max-width: 480px) {
  .viu-lms-wrap { padding: 16px 14px; }
  .viu-dash-stats { grid-template-columns: 1fr; }
  .viu-ds-value { font-size: 26px; }
}
