/* ===================================================
   Career Buddy – Main Stylesheet
   =================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --primary:       #2563eb;
  --primary-dark:  #1d4ed8;
  --accent:        #f59e0b;
  --accent-dark:   #d97706;
  --success:       #10b981;
  --danger:        #ef4444;
  --warning:       #f59e0b;
  --dark:          #0f172a;
  --dark-2:        #1e293b;
  --dark-3:        #334155;
  --gray:          #64748b;
  --light-gray:    #f1f5f9;
  --white:         #ffffff;
  --border:        #e2e8f0;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
  --shadow:        0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:     0 12px 40px rgba(0,0,0,.14);
  --radius:        12px;
  --radius-lg:     20px;
  --radius-sm:     8px;
  --transition:    .25s ease;
  --font:          'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: #f8fafc;
  color: var(--dark-2);
  line-height: 1.65;
}
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }

/* ---------- Utility ---------- */
.text-accent  { color: var(--accent) !important; }
.bg-accent    { background: var(--accent) !important; }
.btn-accent   { background: var(--accent); color: var(--dark); border: none; font-weight: 600; }
.btn-accent:hover { background: var(--accent-dark); color: var(--dark); }

/* colour helpers for activity cards */
.bg-primary   { background: linear-gradient(135deg,#2563eb,#1d4ed8) !important; }
.bg-success   { background: linear-gradient(135deg,#10b981,#059669) !important; }
.bg-danger    { background: linear-gradient(135deg,#ef4444,#dc2626) !important; }
.bg-warning   { background: linear-gradient(135deg,#f59e0b,#d97706) !important; }
.bg-info      { background: linear-gradient(135deg,#06b6d4,#0891b2) !important; }
.bg-purple    { background: linear-gradient(135deg,#8b5cf6,#7c3aed) !important; }
.bg-pink      { background: linear-gradient(135deg,#ec4899,#db2777) !important; }
.bg-teal      { background: linear-gradient(135deg,#14b8a6,#0d9488) !important; }
.bg-orange    { background: linear-gradient(135deg,#f97316,#ea580c) !important; }
.bg-indigo    { background: linear-gradient(135deg,#6366f1,#4f46e5) !important; }
.bg-rose      { background: linear-gradient(135deg,#f43f5e,#e11d48) !important; }
.bg-emerald   { background: linear-gradient(135deg,#34d399,#10b981) !important; }

/* ---------- Navbar ---------- */
#mainNav {
  background: rgba(15,23,42,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: .75rem 0;
  transition: background var(--transition);
}
#mainNav .brand-icon {
  width: 36px; height: 36px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--dark); font-size: .9rem;
}
.brand-text { font-size: 1.15rem; font-weight: 700; color: #fff; letter-spacing: -.3px; }
.brand-accent { color: var(--accent); }
.navbar-nav .nav-link { color: rgba(255,255,255,.78) !important; font-weight: 500; padding: .4rem .8rem !important; border-radius: 6px; transition: all var(--transition); }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: #fff !important; background: rgba(255,255,255,.1); }
.nav-avatar {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .75rem; font-weight: 700;
  overflow: hidden;
}
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Messages ---------- */
.messages-container { position: fixed; top: 72px; right: 1.5rem; z-index: 9999; min-width: 300px; max-width: 420px; }
.toast-message { border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); border: none; }

/* ---------- Main Content ---------- */
.main-content { min-height: 100vh; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.65);
  padding: 2rem 0;
  margin-top: 4rem;
  font-size: .875rem;
}
.footer-brand { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: .25rem; }
.footer-tagline { font-size: .8rem; margin: 0; }
.footer-stats { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.footer-stats span { opacity: .75; }
.footer-copy { margin: 0; opacity: .6; }

/* ===================================================
   HOME PAGE
   =================================================== */
.hero-section {
  background: linear-gradient(135deg, var(--dark) 0%, #1a2744 50%, #0c1829 100%);
  position: relative; overflow: hidden; min-height: 100vh;
  display: flex; align-items: center;
}
.hero-bg-shapes .shape {
  position: absolute; border-radius: 50%;
  background: rgba(37,99,235,.12); pointer-events: none;
}
.shape-1 { width: 600px; height: 600px; top: -200px; right: -150px; }
.shape-2 { width: 400px; height: 400px; bottom: -100px; left: -100px; background: rgba(245,158,11,.07); }
.shape-3 { width: 250px; height: 250px; top: 40%; left: 30%; background: rgba(16,185,129,.06); }

.hero-badge {
  display: inline-flex; align-items: center;
  background: rgba(245,158,11,.15); color: var(--accent);
  border: 1px solid rgba(245,158,11,.3);
  padding: .4rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
}
.hero-title { font-size: clamp(2rem,4vw,3.2rem); font-weight: 800; color: #fff; line-height: 1.2; margin: .75rem 0 1rem; }
.hero-subtitle { color: rgba(255,255,255,.7); font-size: 1.05rem; max-width: 520px; margin-bottom: 2rem; }

.hero-stats { display: flex; gap: 2rem; align-items: center; }
.stat-item { text-align: center; }
.stat-number { display: block; font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label  { font-size: .75rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .5px; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,.15); }

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Hero Illustration */
.hero-illustration {
  position: relative; width: 420px; height: 380px; margin: 0 auto;
}
.illustration-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 120px; height: 120px;
  background: linear-gradient(135deg,var(--primary),var(--primary-dark));
  border-radius: 50%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: #fff;
  font-size: 2rem; box-shadow: 0 0 0 12px rgba(37,99,235,.2);
  text-align: center;
}
.illustration-center span { font-size: .7rem; font-weight: 600; margin-top: .25rem; line-height: 1.2; }
.illustration-card {
  position: absolute;
  background: rgba(255,255,255,.1); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-sm); padding: .5rem .8rem;
  color: #fff; font-size: .78rem; font-weight: 600;
  display: flex; align-items: center; gap: .5rem;
  animation: floatCard 3s ease-in-out infinite;
  white-space: nowrap;
}
.illustration-card i { font-size: 1rem; color: var(--accent); }
.card-1 { top: 0;    left: 10%;  animation-delay: 0s; }
.card-2 { top: 15%;  right: 0;   animation-delay: .4s; }
.card-3 { top: 50%;  left: 0;    animation-delay: .8s; }
.card-4 { bottom: 10%; right: 5%; animation-delay: 1.2s; }
.card-5 { bottom: 0;  left: 20%; animation-delay: 1.6s; }

@keyframes floatCard {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.hero-scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.5); font-size: .8rem; text-align: center;
  animation: bounce 2s infinite;
}
.hero-scroll-indicator i { display: block; margin-top: .25rem; }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ---------- Section Shared ---------- */
.section-badge {
  display: inline-block;
  background: rgba(37,99,235,.1); color: var(--primary);
  padding: .3rem .9rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
  margin-bottom: .75rem;
}
.section-title    { font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: .5rem; }
.section-subtitle { color: var(--gray); font-size: 1rem; }

/* ---------- Categories ---------- */
.categories-section { background: #fff; }
.category-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem 1rem;
  text-align: center; transition: all var(--transition);
  height: 100%;
}
.category-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.category-icon {
  width: 56px; height: 56px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.4rem; margin: 0 auto 1rem;
}
.category-card h6 { font-weight: 700; font-size: .85rem; margin-bottom: .25rem; }
.category-card p  { font-size: .75rem; color: var(--gray); margin: 0; }

/* ---------- Activity Cards ---------- */
.activity-card {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all var(--transition);
  background: #fff; height: 100%; display: flex; flex-direction: column;
  border: 1px solid var(--border);
}
.activity-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.activity-card-done { border-color: var(--success); }

.activity-card-header {
  padding: 1.75rem 1.5rem;
  position: relative; min-height: 110px;
  display: flex; align-items: center; justify-content: space-between;
}
.activity-number {
  font-size: .8rem; font-weight: 800; color: rgba(255,255,255,.6);
  text-transform: uppercase; letter-spacing: 1px;
}
.activity-icon-lg {
  font-size: 2.4rem; color: rgba(255,255,255,.9);
}
.activity-done-badge {
  position: absolute; top: .75rem; right: .75rem;
  width: 28px; height: 28px; background: var(--success);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .75rem;
}
.activity-card-body { padding: 1.25rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.activity-meta { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; margin-bottom: .75rem; }
.badge-level {
  background: rgba(37,99,235,.1); color: var(--primary);
  padding: .2rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 600;
}
.badge-category {
  background: rgba(100,116,139,.1); color: var(--gray);
  padding: .2rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 600;
}
.badge-duration {
  background: rgba(245,158,11,.1); color: var(--accent-dark);
  padding: .2rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 600;
}
.activity-title { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; color: var(--dark); }
.activity-objective { font-size: .85rem; color: var(--gray); flex: 1; line-height: 1.5; }
.activity-details { display: flex; gap: 1rem; font-size: .8rem; color: var(--gray); }
.activity-footer { display: flex; justify-content: space-between; align-items: center; margin-top: .75rem; }
.sub-count { font-size: .8rem; color: var(--gray); }

/* progress bar */
.progress-sm  { height: 6px; border-radius: 3px; }
.progress-thin{ height: 4px; border-radius: 2px; }

/* ---------- How It Works ---------- */
.how-section { background: var(--light-gray); }
.how-card {
  background: #fff; border-radius: var(--radius); padding: 2rem 1.5rem;
  text-align: center; box-shadow: var(--shadow-sm); height: 100%;
  position: relative; transition: box-shadow var(--transition);
}
.how-card:hover { box-shadow: var(--shadow); }
.how-step {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  width: 32px; height: 32px; background: var(--primary); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .85rem;
}
.how-icon { font-size: 2.5rem; color: var(--primary); margin: 1rem 0 1rem; }
.how-card h5 { font-weight: 700; margin-bottom: .5rem; }
.how-card p  { color: var(--gray); font-size: .9rem; margin: 0; }

/* ---------- CTA ---------- */
.cta-section { background: linear-gradient(135deg,#1e3a8a,#1d4ed8); }
.cta-card {
  padding: 3rem; border-radius: var(--radius-lg); color: #fff;
}
.cta-card h2 { font-weight: 800; margin-bottom: .5rem; }
.cta-card p  { color: rgba(255,255,255,.8); }

/* ===================================================
   FILTER BAR (Activities List)
   =================================================== */
.filter-bar { display: flex; gap: .5rem; flex-wrap: wrap; }
.filter-btn {
  padding: .4rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: #fff; border: 1.5px solid var(--border); color: var(--gray);
  cursor: pointer; transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary); border-color: var(--primary); color: #fff;
}

/* ---------- Page Header Band ---------- */
.page-header-band {
  background: linear-gradient(135deg, var(--dark),#1a2744);
  padding: 5rem 0 2.5rem;
}
.page-header-title { color: #fff; font-size: 2rem; font-weight: 800; margin: 0; }
.page-header-sub   { color: rgba(255,255,255,.65); margin: .25rem 0 0; }

/* ===================================================
   DASHBOARD
   =================================================== */
.dashboard-page { background: var(--light-gray); min-height: 100vh; padding-top: 80px; }
.dashboard-welcome {
  display: flex; justify-content: space-between; align-items: center;
  background: #fff; border-radius: var(--radius); padding: 1.5rem 2rem;
  box-shadow: var(--shadow-sm);
}

/* Stat Cards */
.stat-card {
  border-radius: var(--radius); padding: 1.5rem;
  display: flex; flex-direction: column; gap: .5rem;
  color: #fff; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.stat-card::after {
  content: ''; position: absolute; right: -20px; top: -20px;
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.stat-card-blue   { background: linear-gradient(135deg,#2563eb,#1d4ed8); }
.stat-card-green  { background: linear-gradient(135deg,#10b981,#059669); }
.stat-card-orange { background: linear-gradient(135deg,#f59e0b,#d97706); }
.stat-card-purple { background: linear-gradient(135deg,#8b5cf6,#7c3aed); }
.stat-card-icon   { font-size: 1.5rem; opacity: .85; }
.stat-card-value  { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.stat-card-label  { font-size: .8rem; opacity: .85; }

/* Dashboard Cards */
.dashboard-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.dashboard-card-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.5rem; border-bottom: 1px solid var(--border);
}
.dashboard-card-header h5 { margin: 0; font-weight: 700; font-size: 1rem; }
.dashboard-card-body { padding: 1rem 1.5rem; }

/* Progress List */
.progress-activity-item { border-bottom: 1px solid var(--border); }
.progress-activity-item:last-child { border-bottom: none; }
.progress-activity-link {
  display: flex; align-items: center; gap: 1rem;
  padding: .85rem 0; color: inherit; text-decoration: none;
  transition: all var(--transition);
}
.progress-activity-link:hover { color: var(--primary); }
.progress-activity-icon {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem; flex-shrink: 0;
}
.progress-activity-info  { flex: 1; min-width: 0; }
.progress-activity-name  { font-size: .9rem; font-weight: 600; color: var(--dark); }
.progress-activity-pct   { font-size: .85rem; font-weight: 700; }

/* Recent Results */
.recent-result-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1.25rem; border-bottom: 1px solid var(--border);
}
.recent-result-item:last-child { border: none; }
.result-exercise-name { font-size: .85rem; font-weight: 600; flex: 1; }
.result-activity-name { font-size: .75rem; }
.score-badge { padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700; color: #fff; }
.score-high { background: var(--success); }
.score-mid  { background: var(--warning); color: var(--dark); }
.score-low  { background: var(--danger); }

/* Quick Links */
.quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.quick-link-item {
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  background: var(--light-gray); border-radius: var(--radius-sm);
  padding: .85rem; color: var(--dark-3); font-size: .78rem; font-weight: 600;
  transition: all var(--transition); text-decoration: none;
}
.quick-link-item i  { font-size: 1.2rem; color: var(--primary); }
.quick-link-item:hover { background: var(--primary); color: #fff; }
.quick-link-item:hover i { color: #fff; }

/* Empty State */
.empty-state { color: var(--gray); }

/* ===================================================
   ACTIVITY DETAIL
   =================================================== */
.activity-hero {
  padding-top: 80px;
}
.activity-hero-number { font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.6); }
.activity-hero-title  { font-size: 2rem; font-weight: 800; color: #fff; margin: .25rem 0 .75rem; }
.activity-hero-objective { color: rgba(255,255,255,.8); max-width: 600px; }
.activity-hero-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1rem; color: rgba(255,255,255,.75); font-size: .9rem; }
.activity-hero-icon-wrap {
  width: 120px; height: 120px; background: rgba(255,255,255,.15);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: #fff; margin: 0 auto;
}
.hero-progress-ring { text-align: center; }
.ring-value { font-size: 1.6rem; font-weight: 800; color: var(--accent); }
.ring-label { font-size: .75rem; color: rgba(255,255,255,.65); }

/* Breadcrumb Light */
.breadcrumb-light .breadcrumb-item a { color: rgba(255,255,255,.7); }
.breadcrumb-light .breadcrumb-item.active { color: rgba(255,255,255,.5); }
.breadcrumb-light .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* Sub-Activity Cards (in detail page) */
.sub-activity-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 1rem; overflow: hidden; transition: box-shadow var(--transition);
}
.sub-activity-card:hover { box-shadow: var(--shadow); }
.sub-activity-card.sub-done   { border-color: #bbf7d0; background: #f0fdf4; }
.sub-activity-card.sub-active { border-color: #bfdbfe; background: #eff6ff; }

.sub-activity-header {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
}
.sub-number-badge {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: .9rem;
}
.sub-activity-info { flex: 1; }
.sub-title { font-size: 1rem; font-weight: 700; margin: 0; }
.sub-meta  { display: flex; align-items: center; gap: .5rem; margin-top: .2rem; font-size: .8rem; }
.sub-status-badge { padding: .15rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 600; }
.status-completed    { background: #dcfce7; color: #166534; }
.status-in_progress  { background: #dbeafe; color: #1e40af; }
.status-not_started  { background: #f1f5f9; color: var(--gray); }

.sub-activity-body { padding: .75rem 1.25rem 1rem 4rem; }
.sub-description { font-size: .875rem; color: var(--gray); margin: 0; }

/* Info Cards (sidebar) */
.info-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.info-card-header {
  padding: .85rem 1.25rem; font-weight: 700; font-size: .9rem;
  background: var(--light-gray); border-bottom: 1px solid var(--border);
}
.info-card-body { padding: 1.25rem; }
.materials-list { list-style: none; padding: 0; margin: 0; }
.materials-list li { padding: .3rem 0; font-size: .875rem; border-bottom: 1px solid var(--border); }
.materials-list li:last-child { border: none; }
.assessment-item { padding: .4rem 0; font-size: .875rem; }
.login-prompt-card {
  background: linear-gradient(135deg,var(--dark),#1a2744);
  border-radius: var(--radius); padding: 1.75rem; text-align: center; color: #fff;
}
.login-prompt-card i { color: var(--accent); }
.login-prompt-card h6 { margin: .5rem 0 .25rem; font-weight: 700; }
.login-prompt-card p  { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 1.25rem; }

/* Activity Navigation */
.activity-nav { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ===================================================
   SUB-ACTIVITY PAGE
   =================================================== */
.sub-activity-hero { padding-top: 80px; }
.sub-hero-icon {
  width: 48px; height: 48px; background: rgba(255,255,255,.2);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.3rem; flex-shrink: 0;
}

/* Content Cards */
.content-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.content-card-header {
  padding: .85rem 1.25rem; font-weight: 700; font-size: .9rem;
  background: var(--light-gray); border-bottom: 1px solid var(--border);
}
.content-card-body { padding: 1.25rem; }
.instructions-text p { margin-bottom: .75rem; color: var(--gray); font-size: .9rem; }

/* Exercise Cards in Sub-Activity */
.exercises-grid { display: flex; flex-direction: column; gap: .85rem; }
.exercise-card {
  display: flex; align-items: center; gap: 1rem;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.25rem; transition: box-shadow var(--transition);
}
.exercise-card:hover { box-shadow: var(--shadow); }
.exercise-type-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.2rem;
}
.exercise-mcq       { background: linear-gradient(135deg,#2563eb,#1d4ed8); }
.exercise-fill_blank{ background: linear-gradient(135deg,#10b981,#059669); }
.exercise-matching  { background: linear-gradient(135deg,#8b5cf6,#7c3aed); }
.exercise-ordering  { background: linear-gradient(135deg,#f59e0b,#d97706); }
.exercise-bingo     { background: linear-gradient(135deg,#ec4899,#db2777); }
.exercise-writing   { background: linear-gradient(135deg,#06b6d4,#0891b2); }
.exercise-timer     { background: linear-gradient(135deg,#ef4444,#dc2626); }

.exercise-card-body { flex: 1; min-width: 0; }
.exercise-type-label{ font-size: .72rem; text-transform: uppercase; letter-spacing: .5px; color: var(--gray); font-weight: 600; }
.exercise-title { font-weight: 700; font-size: .9rem; margin: .1rem 0; }
.exercise-last-score { font-size: .78rem; margin-top: .25rem; }
.exercise-card-action { flex-shrink: 0; }

/* Mark Complete / Completed Banner */
.mark-complete-card {
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
}
.completed-banner {
  background: linear-gradient(135deg,var(--success),#059669);
  color: #fff; border-radius: var(--radius); padding: 1rem 1.5rem;
  font-weight: 600; text-align: center;
}

/* Sub Nav Items (sidebar) */
.sub-nav-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem 1.25rem; color: var(--dark-3);
  border-bottom: 1px solid var(--border); font-size: .85rem;
  transition: background var(--transition); text-decoration: none;
}
.sub-nav-item:last-child { border: none; }
.sub-nav-item:hover    { background: var(--light-gray); color: var(--primary); }
.sub-nav-active { background: #eff6ff !important; color: var(--primary) !important; font-weight: 700; }
.sub-nav-num {
  width: 24px; height: 24px; background: var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; flex-shrink: 0;
}
.sub-nav-active .sub-nav-num { background: var(--primary); color: #fff; }

.tips-card .info-card-header { background: #fffbeb; border-color: #fde68a; }
.tips-list { padding-left: 1.2rem; margin: 0; }
.tips-list li { font-size: .875rem; color: var(--gray); padding: .25rem 0; }

/* ===================================================
   EXERCISE PAGE
   =================================================== */
.exercise-hero { padding-top: 80px; }
.exercise-hero-icon {
  width: 56px; height: 56px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.2); color: #fff; font-size: 1.5rem; flex-shrink: 0;
}
.exercise-icon-mcq       { background: rgba(37,99,235,.3)!important; }
.exercise-icon-fill_blank{ background: rgba(16,185,129,.3)!important; }
.exercise-icon-matching  { background: rgba(139,92,246,.3)!important; }
.exercise-icon-bingo     { background: rgba(236,72,153,.3)!important; }
.exercise-icon-writing   { background: rgba(6,182,212,.3)!important; }
.exercise-icon-timer     { background: rgba(239,68,68,.3)!important; }

.exercise-instructions-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.instruction-icon {
  width: 32px; height: 32px; background: rgba(37,99,235,.1);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ===================================================
   AUTH PAGES
   =================================================== */
.auth-page { display: flex; min-height: 100vh; }
.auth-left {
  flex: 1; background: linear-gradient(135deg,var(--dark),#1a2744);
  display: flex; align-items: center; justify-content: center;
  padding: 6rem 3rem; min-height: 100vh;
}
.auth-left-content { max-width: 380px; color: #fff; }
.auth-brand { font-size: 1.2rem; font-weight: 700; color: var(--accent); margin-bottom: 2rem; }
.auth-left h2 { font-size: 2rem; font-weight: 800; margin-bottom: .75rem; }
.auth-left p  { color: rgba(255,255,255,.7); margin-bottom: 2rem; }
.auth-features { list-style: none; padding: 0; }
.auth-features li { display: flex; align-items: center; gap: .75rem; padding: .5rem 0; color: rgba(255,255,255,.85); font-size: .9rem; }
.auth-features li i { color: var(--success); font-size: .9rem; }

.auth-right {
  flex: 0 0 460px; background: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 4rem 3rem;
}
.auth-form-wrap { width: 100%; max-width: 380px; }
.auth-title    { font-size: 1.75rem; font-weight: 800; margin-bottom: .25rem; }
.auth-subtitle { margin-bottom: 2rem; }
.auth-form .form-control, .auth-form .form-select { border-radius: var(--radius-sm); padding: .65rem 1rem; border-color: var(--border); }
.auth-form .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }

.auth-divider {
  text-align: center; position: relative; margin: 1.5rem 0;
  color: var(--gray); font-size: .85rem;
}
.auth-divider::before {
  content: ''; position: absolute; top: 50%; left: 0; right: 0;
  height: 1px; background: var(--border);
}
.auth-divider span { background: #fff; padding: 0 1rem; position: relative; }

/* ===================================================
   PROFILE PAGE
   =================================================== */
.profile-page { background: var(--light-gray); min-height: 100vh; }
.profile-card {
  background: #fff; border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.profile-avatar-wrap { margin-bottom: .5rem; }
.profile-avatar-img {
  width: 100px; height: 100px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--primary);
}
.profile-avatar-initials {
  width: 100px; height: 100px; border-radius: 50%; margin: 0 auto;
  background: linear-gradient(135deg,var(--primary),var(--primary-dark));
  color: #fff; font-size: 2rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.profile-stats-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .5rem; }
.profile-stat { text-align: center; padding: .5rem; }
.profile-stat-value { font-size: 1.5rem; font-weight: 800; }
.profile-stat-label { font-size: .7rem; color: var(--gray); text-transform: uppercase; letter-spacing: .5px; }

/* ===================================================
   RESULT PANEL
   =================================================== */
.result-panel {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.result-panel-inner { padding: 3rem; text-align: center; }
.result-icon { font-size: 4rem; margin-bottom: 1rem; }
.result-score-display {
  font-size: 1.25rem; font-weight: 700; color: var(--primary);
  background: var(--light-gray); padding: .75rem 2rem;
  border-radius: 999px; display: inline-block; margin-top: .5rem;
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 991px) {
  .auth-right { flex: 1; }
  .auth-left  { display: none; }
  .auth-right { padding: 3rem 1.5rem; }
  .hero-stats { gap: 1.25rem; }
}
@media (max-width: 768px) {
  .hero-title { font-size: 2rem; }
  .dashboard-welcome { flex-direction: column; gap: 1rem; text-align: center; }
  .activity-nav { flex-direction: column; }
  .hero-stats { justify-content: center; }
  .filter-bar { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: .5rem; }
  .filter-btn { white-space: nowrap; }
}

/* --- Premium Mistake Highlighting (Integrated from Writing Module) --- */
.issue-mark {
  background: #ff7f50 !important;
  color: #ffffff !important;
  padding: 0 4px !important;
  border-radius: 4px !important;
  cursor: help !important;
  text-decoration: none !important;
  display: inline !important;
  transition: filter 0.2s;
}

.issue-mark:hover {
  filter: brightness(1.1);
}

/* Premium Tooltip Styling */
.lv-issue-tooltip {
  position: fixed;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 127, 80, 0.2);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  font-family: inherit;
  color: #1e293b;
  pointer-events: none;
  width: max-content;
  max-width: 320px;
  transition: opacity 0.2s, transform 0.2s;
  opacity: 1;
}

.lv-issue-tooltip[hidden] {
  display: none !important;
  opacity: 0;
  transform: translateY(5px);
}

.lv-issue-tooltip__type {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: #ff7f50;
  margin-bottom: 4px;
}

.lv-issue-tooltip__message {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
}

.lv-issue-tooltip__try {
  font-size: 13px;
  color: #64748b;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.lv-issue-tooltip__try span {
  font-weight: 700;
  color: #0ea5e9;
}

