﻿/* ============================================
   EĞİTİM PLATFORMU - SHARED DESIGN SYSTEM
   Inspired by crm.akcelik.com.tr dark theme
   ============================================ */

:root {
  --bg-primary: #060d18;
  --bg-secondary: #080f1e;
  --bg-card: #0a1628;
  --bg-card-hover: #0d1f38;
  --bg-sidebar: #070c17;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: #112237;
  --border-light: #1a3152;
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-darker: #1d4ed8;
  --primary-glow: rgba(59, 130, 246, 0.15);
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ── LIGHT MODE ── */
body.light-mode {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-sidebar: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --border-light: #cbd5e1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Reserve the vertical scrollbar's gutter on every page so the layout
   width (and therefore the sticky topbar's position) stays identical
   whether or not a given page's content is tall enough to scroll. */
html {
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s, color 0.3s;
}

/* ── CUSTOM SCROLLBAR ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.2);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.4);
}
body.light-mode ::-webkit-scrollbar-track {
  background: transparent;
}
body.light-mode ::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.2);
}
body.light-mode ::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.4);
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }

/* ── LAYOUT ── */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* ── SIDEBAR ── */
.sidebar {
  width: 260px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: width 300ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: width;       /* GPU-accelerate the width transition */
  z-index: 100;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar-header {
  height: 70px;
  min-height: 70px;
  flex-shrink: 0;           /* never let the header change height */
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;         /* hard-clip any overflow during animation */
  transition: padding 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;        /* CRITICAL: never let flex items drop to next row */
  gap: 10px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  transition: gap 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-darker));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 16px;
  flex-shrink: 0;           /* icon NEVER gets squeezed by flex */
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 300ms ease;
}

/* ── Logo text: width-based collapse, opacity-based hide ── */
.logo-text {
  flex-shrink: 0;           /* let max-width own the animation, not flex */
  overflow: hidden;
  max-width: 200px;
  white-space: nowrap;
  opacity: 1;
  /*
   * EXPANDING: max-width opens (300ms), then text fades IN after 120ms delay.
   * This way text only appears when there is already enough room.
   */
  transition: max-width 300ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity 180ms ease 120ms;
}

.sidebar-menu {
  flex: 1;
  padding: 20px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin: 16px 0 8px 8px;
  font-weight: 600;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.menu-item:hover {
  background-color: var(--bg-card-hover);
  color: var(--text-primary);
}

.menu-item.text-red {
  color: var(--danger);
}
.menu-item.text-red:hover {
  background-color: var(--danger-bg);
  color: var(--danger);
}

.menu-item.active {
  background-color: var(--primary-glow);
  color: var(--primary);
  position: relative;
}

.menu-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 20px;
  width: 3px;
  background-color: var(--primary);
  border-radius: 0 4px 4px 0;
}

.menu-icon {
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
}

/* ── MAIN CONTENT ── */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  min-width: 0;
}

/* ── TOPBAR ── */
.topbar {
  height: 70px;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar-left {
  display: flex;
  align-items: center;
}

.topbar-search {
  background: var(--bg-primary);
  border-radius: 8px;
  padding: 8px 16px;
  width: 280px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-search input {
  font-size: 14px;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  width: 100%;
}

.topbar-search input::placeholder {
  color: var(--text-muted);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme Toggle Refinement */
.theme-toggle {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 28px;
  margin-right: 12px;
}
.theme-toggle input { opacity: 0; width: 0; height: 0; }
.theme-toggle .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--bg-card-hover);
  transition: .4s;
  border-radius: 34px;
  border: 1px solid var(--border-color);
  padding: 0;
}
.theme-toggle .slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 2px;
  bottom: 2px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  transition: .4s;
  border-radius: 50%;
  z-index: 2;
}
body.light-mode .theme-toggle .slider { 
  background-color: #3b82f6; 
  border-color: #3b82f6; 
}
body.light-mode .theme-toggle .slider:before { 
  transform: translateX(28px); 
  background-color: #ffffff;
  border-color: #ffffff;
}

.theme-toggle .icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .4s;
  left: 7px;
}
.theme-toggle .icon svg { 
  width: 14px; 
  height: 14px; 
  stroke: currentColor; 
  stroke-width: 2; 
  stroke-linecap: round; 
  stroke-linejoin: round; 
  fill: none; 
}

/* Dark Mode State */
.theme-toggle .icon-moon { 
  color: var(--text-secondary);
  opacity: 1;
}
.theme-toggle .icon-sun { 
  color: #f59e0b; 
  opacity: 0;
}

/* Light Mode State */
body.light-mode .theme-toggle .icon-moon { 
  transform: translate(28px, -50%);
  opacity: 0;
}
body.light-mode .theme-toggle .icon-sun { 
  transform: translate(28px, -50%);
  opacity: 1;
}
/* End Theme Toggle Refinement */

/* Notif Dropdown Styles */
.notif-wrapper { position: relative; display: flex; align-items: center; cursor: pointer; }
.notif-btn { border: none; background: transparent; padding: 4px; margin-right: 0; position: relative; color: var(--text-secondary); }
.notif-btn:hover { color: var(--text-primary); }
.topbar-icon-svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.notif-btn .badge { position: absolute; top: -2px; right: -4px; background: #ef4444; color: #fff; font-size: 10px; padding: 2px 5px; border-radius: 10px; border: 1px solid var(--bg-secondary); font-weight: 700; }
.notif-menu { width: 320px; padding: 0; }
.notif-list { max-height: 300px; overflow-y: auto; }
.notif-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; white-space: normal; position: relative; text-decoration: none; transition: background 0.15s; }
.notif-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.notif-content { flex: 1; }
.notif-text { font-size: 13px; color: var(--text-primary); line-height: 1.4; }
.notif-time { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* Unread vs. read notification states */
.notif-item.is-unread { background: var(--primary-glow); }
.notif-item.is-unread .notif-text { font-weight: 600; }
.notif-item.is-read { opacity: 0.62; }
.notif-item.is-read .notif-text strong { font-weight: 600; }
.notif-unread-dot {
  position: absolute; top: 14px; right: 14px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary); flex-shrink: 0;
}
.bg-primary { background: var(--primary-glow); color: var(--primary); }
.bg-warning { background: var(--warning-bg); color: var(--warning); }
.bg-success { background: var(--success-bg); color: var(--success); }

/* User Dropdown */
.user-dropdown { position: relative; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 12px; border-radius: 20px; transition: background .2s; }
.user-dropdown:hover { background: var(--bg-card-hover); }
.user-avatar-small { width: 32px; height: 32px; border-radius: 50%; background: #2563eb; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.user-avatar-small svg { width: 16px; height: 16px; fill: currentColor; }
.user-name-top { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.chevron { display: flex; align-items: center; justify-content: center; margin-left: -2px; margin-top: 1px; }
.chevron svg { width: 12px; height: 12px; stroke: var(--text-muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }

/* Dropdown Menu */
.dropdown-menu { position: absolute; top: calc(100% + 8px); right: 0; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; width: 220px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); display: none; flex-direction: column; z-index: 1000; overflow: hidden; padding: 8px 0; }
.dropdown-menu.show { display: flex; }
.dropdown-header { padding: 12px 20px; }
.dd-title { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.dd-sub { font-size: 13px; color: var(--text-muted); }
.dropdown-divider { height: 1px; background: var(--border-color); margin: 8px 16px; }
.dropdown-item { padding: 10px 20px; font-size: 14px; color: var(--text-secondary); text-decoration: none; transition: background .2s; display: flex; align-items: center; gap: 10px; }
.dropdown-item:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.dropdown-item.text-red { color: #ef4444; }
.dropdown-item.text-red:hover { background: rgba(239, 68, 68, 0.05); color: #ef4444; }

/* ── PAGE CONTENT ── */
.page-content {
  flex: 1;
  padding: 32px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.page-desc {
  color: var(--text-muted);
  font-size: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--text-muted);
}

/* ── DASHBOARD SPECIFIC ── */
.welcome-banner {
  background: linear-gradient(135deg, #0d1f38 0%, #112237 50%, #0a1628 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
body.light-mode .welcome-banner {
  background: linear-gradient(135deg, #e0e7ff 0%, #dbeafe 50%, #eff6ff 100%);
  border-color: #bfdbfe;
}

.welcome-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12), transparent 70%);
  border-radius: 50%;
}

.welcome-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}
body.light-mode .welcome-title { color: #1e3a8a; }

.welcome-title span { color: var(--primary); }

.welcome-sub {
  font-size: 13px;
  color: var(--text-muted);
}
body.light-mode .welcome-sub { color: #475569; }

.welcome-streak {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 10px;
  padding: 12px 16px;
}

.streak-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--warning);
}

.streak-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.grid-2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

/* Cards */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Stats Card */
.stat-card {
  display: flex;
  align-items: center;
  gap: 20px;
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.stat-icon.primary { background-color: var(--primary-glow); color: var(--primary); }
.stat-icon.success { background-color: var(--success-bg); color: var(--success); }
.stat-icon.warning { background-color: var(--warning-bg); color: var(--warning); }

.stat-info { flex: 1; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--text-muted); }

/* Progress Bar */
.progress-wrapper { width: 100%; margin-top: 12px; }
.progress-info { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.progress-bar { height: 6px; background-color: var(--bg-secondary); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 3px; }
.progress-fill.primary { background-color: var(--primary); }
.progress-fill.success { background-color: var(--success); }
.progress-fill.warning { background-color: var(--warning); }

/* Course List */
.course-list { display: flex; flex-direction: column; gap: 16px; }
.course-item { display: flex; gap: 16px; padding: 16px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background-color: var(--bg-secondary); transition: border-color 0.2s; }
.course-item:hover { border-color: var(--border-light); }
.course-thumb { width: 100px; height: 70px; border-radius: var(--radius-sm); object-fit: cover; background-color: var(--bg-primary); }
.course-details { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.course-name { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.course-meta { display: flex; gap: 16px; font-size: 12px; color: var(--text-muted); }
.course-meta span { display: flex; align-items: center; gap: 4px; }
.course-action { display: flex; align-items: center; }

/* Deadline List */
.deadline-list { display: flex; flex-direction: column; }
.deadline-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-color); }
.deadline-item:last-child { border-bottom: none; }
.deadline-days { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-direction: column; flex-shrink: 0; }
.deadline-days.urgent { background-color: var(--danger-bg); color: var(--danger); }
.deadline-days.warning { background-color: var(--warning-bg); color: var(--warning); }
.deadline-days span:first-child { font-size: 16px; font-weight: 700; line-height: 1; }
.deadline-days span:last-child { font-size: 9px; text-transform: uppercase; }
.deadline-info { flex: 1; }
.deadline-name { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.deadline-date { font-size: 11px; color: var(--text-muted); }

/* ══════════════════════════════════════════════
   WELCOME / KARSILAMA PAGE
   ══════════════════════════════════════════════ */
.welcome-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: #060d18;
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.25), transparent 55%),
    radial-gradient(ellipse at 10% 80%, rgba(16, 185, 129, 0.12), transparent 40%),
    radial-gradient(white, rgba(255,255,255,.25) 2px, transparent 4px),
    radial-gradient(white, rgba(255,255,255,.18) 1px, transparent 3px),
    radial-gradient(white, rgba(255,255,255,.12) 2px, transparent 4px),
    radial-gradient(rgba(255,255,255,.45), rgba(255,255,255,.12) 2px, transparent 3px);
  background-size: 100% 100%, 100% 100%, 600px 600px, 400px 400px, 280px 280px, 160px 160px;
  background-position: 0 0, 0 0, 0 0, 40px 60px, 130px 270px, 70px 100px;
  color: #e2e8f0;
  padding: 40px 20px;
}

body.light-mode.welcome-body {
  background-color: #f0f4ff;
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.18), transparent 55%),
    radial-gradient(ellipse at 10% 80%, rgba(16, 185, 129, 0.1), transparent 40%),
    radial-gradient(rgba(30,58,138,.5), rgba(30,58,138,.15) 2px, transparent 4px),
    radial-gradient(rgba(30,58,138,.4), rgba(30,58,138,.1) 1px, transparent 3px),
    radial-gradient(rgba(30,58,138,.3), rgba(30,58,138,.08) 2px, transparent 4px),
    radial-gradient(rgba(30,58,138,.6), rgba(30,58,138,.1) 2px, transparent 3px);
  background-size: 100% 100%, 100% 100%, 600px 600px, 400px 400px, 280px 280px, 160px 160px;
  background-position: 0 0, 0 0, 0 0, 40px 60px, 130px 270px, 70px 100px;
  color: #0f172a;
}

.welcome-theme-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 50;
}

.welcome-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 560px;
  width: 100%;
}

/* ── Atom Animation ── */
.atom-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 28px;
}
.atom-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  background: radial-gradient(circle, #60a5fa, #3b82f6);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(59,130,246,0.8), 0 0 32px rgba(59,130,246,0.4);
  z-index: 2;
}
.atom-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1.5px solid rgba(96, 165, 250, 0.6);
  border-radius: 50%;
  transform-origin: center center;
}
.atom-ring-1 {
  width: 80px;
  height: 30px;
  margin-top: -15px;
  margin-left: -40px;
  animation: orbit1 3s linear infinite;
}
.atom-ring-2 {
  width: 80px;
  height: 30px;
  margin-top: -15px;
  margin-left: -40px;
  animation: orbit2 3.5s linear infinite;
}
.atom-ring-3 {
  width: 60px;
  height: 60px;
  margin-top: -30px;
  margin-left: -30px;
  border-color: rgba(96, 165, 250, 0.3);
  animation: orbit3 5s linear infinite;
}
@keyframes orbit1 { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes orbit2 { from { transform: rotate(60deg); } to { transform: rotate(420deg); } }
@keyframes orbit3 { from { transform: rotate(30deg) rotateX(60deg); } to { transform: rotate(390deg) rotateX(60deg); } }

/* ── Welcome Brand ── */
.welcome-brand-block {
  margin-bottom: 20px;
}
.welcome-brand-name {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 3px;
  color: #e2e8f0;
  margin-bottom: 6px;
}
body.light-mode .welcome-brand-name { color: #1e3a8a; }
.welcome-brand-sub {
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(148,163,184,0.8);
  text-transform: uppercase;
  margin-bottom: 16px;
}
body.light-mode .welcome-brand-sub { color: rgba(30,58,138,0.6); }
.welcome-divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  margin: 0 auto;
  border-radius: 2px;
}

.welcome-subtitle {
  font-size: 16px;
  color: rgba(148,163,184,0.9);
  margin-bottom: 8px;
}
body.light-mode .welcome-subtitle { color: rgba(30,58,138,0.65); }

.welcome-title {
  font-size: 52px;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 16px;
  line-height: 1.1;
}
body.light-mode .welcome-title { color: #1e3a8a; }

.welcome-desc {
  font-size: 14px;
  color: rgba(148,163,184,0.8);
  max-width: 380px;
  line-height: 1.7;
  margin-bottom: 36px;
}
body.light-mode .welcome-desc { color: rgba(30,58,138,0.6); }

.welcome-cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 16px 48px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(59,130,246,0.4);
  transition: all 0.3s ease;
  margin-bottom: 16px;
}
.welcome-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(59,130,246,0.55);
}

.welcome-otp-note {
  font-size: 12px;
  color: rgba(148,163,184,0.6);
  margin-bottom: 36px;
}
body.light-mode .welcome-otp-note { color: rgba(30,58,138,0.5); }

.welcome-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.welcome-tag {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(148,163,184,0.8);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 8px 18px;
  border-radius: 50px;
}
body.light-mode .welcome-tag {
  background: rgba(30,58,138,0.08);
  border-color: rgba(30,58,138,0.2);
  color: rgba(30,58,138,0.65);
}

.welcome-footer {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: rgba(148,163,184,0.4);
  white-space: nowrap;
}
body.light-mode .welcome-footer { color: rgba(30,58,138,0.4); }


/* ══════════════════════════════════════════════
   SIGNIN (LOGIN) PAGE — SPLIT LAYOUT
   ══════════════════════════════════════════════ */
.signin-body {
  min-height: 100vh;
  background-color: #060d18;
  background-image:
    radial-gradient(ellipse at 0% 50%, rgba(59, 130, 246, 0.15), transparent 45%),
    radial-gradient(ellipse at 100% 20%, rgba(16, 185, 129, 0.1), transparent 35%),
    radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 4px),
    radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 3px),
    radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 4px),
    radial-gradient(rgba(255,255,255,.4), rgba(255,255,255,.1) 2px, transparent 3px);
  background-size: 100% 100%, 100% 100%, 600px 600px, 400px 400px, 280px 280px, 160px 160px;
  background-position: 0 0, 0 0, 0 0, 40px 60px, 130px 270px, 70px 100px;
  display: flex;
  align-items: stretch;
}
body.light-mode.signin-body {
  background-color: #eef2ff;
  background-image:
    radial-gradient(ellipse at 0% 50%, rgba(59, 130, 246, 0.15), transparent 45%),
    radial-gradient(ellipse at 100% 20%, rgba(16, 185, 129, 0.08), transparent 35%),
    radial-gradient(rgba(30,58,138,.5), rgba(30,58,138,.12) 2px, transparent 4px),
    radial-gradient(rgba(30,58,138,.4), rgba(30,58,138,.08) 1px, transparent 3px),
    radial-gradient(rgba(30,58,138,.3), rgba(30,58,138,.06) 2px, transparent 4px),
    radial-gradient(rgba(30,58,138,.55), rgba(30,58,138,.08) 2px, transparent 3px);
  background-size: 100% 100%, 100% 100%, 600px 600px, 400px 400px, 280px 280px, 160px 160px;
  background-position: 0 0, 0 0, 0 0, 40px 60px, 130px 270px, 70px 100px;
}

.signin-layout {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* ── LEFT PANEL ── */
.signin-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 40px 48px;
  color: #e2e8f0;
}
body.light-mode .signin-left { color: #1e3a8a; }

.signin-left-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: auto;
}

.signin-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.signin-logo-wrap .logo-icon {
  width: 44px;
  height: 44px;
  font-size: 20px;
  border-radius: 10px;
  flex-shrink: 0;
}
.signin-brand-name {
  font-size: 15px;
  font-weight: 700;
  color: #e2e8f0;
}
body.light-mode .signin-brand-name { color: #1e3a8a; }
.signin-brand-sub {
  font-size: 12px;
  color: rgba(148,163,184,0.7);
}
body.light-mode .signin-brand-sub { color: rgba(30,58,138,0.55); }

.signin-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.25);
  color: #60a5fa;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  width: fit-content;
}
body.light-mode .signin-badge {
  background: rgba(37,99,235,0.1);
  border-color: rgba(37,99,235,0.25);
  color: #1d4ed8;
}

.signin-left-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 0;
}

.signin-left-title {
  font-size: 36px;
  font-weight: 800;
  color: #f1f5f9;
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 420px;
}
body.light-mode .signin-left-title { color: #1e3a8a; }

.signin-left-desc {
  font-size: 14px;
  color: rgba(148,163,184,0.8);
  line-height: 1.7;
  max-width: 380px;
  margin-bottom: 40px;
}
body.light-mode .signin-left-desc { color: rgba(30,58,138,0.6); }

.signin-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.signin-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: rgba(148,163,184,0.85);
}
body.light-mode .signin-feature { color: rgba(30,58,138,0.7); }
.signin-feature-icon {
  width: 36px;
  height: 36px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  flex-shrink: 0;
}
body.light-mode .signin-feature-icon {
  background: rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.18);
  color: #1d4ed8;
}

.signin-left-footer {
  font-size: 12px;
  color: rgba(148,163,184,0.35);
  padding-top: 20px;
}
body.light-mode .signin-left-footer { color: rgba(30,58,138,0.35); }

/* ── RIGHT PANEL ── */
.signin-right {
  width: 480px;
  flex-shrink: 0;
  background: rgba(6, 13, 24, 0.75);
  backdrop-filter: blur(12px);
  border-left: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 48px;
  position: relative;
}
body.light-mode .signin-right {
  background: rgba(255,255,255,0.82);
  border-left-color: rgba(0,0,0,0.07);
}

.signin-right-top {
  position: absolute;
  top: 20px;
  right: 20px;
}

.signin-form-wrap {
  width: 100%;
}

.signin-form-icon {
  width: 56px;
  height: 56px;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  margin-bottom: 20px;
}
body.light-mode .signin-form-icon {
  background: rgba(37,99,235,0.1);
  border-color: rgba(37,99,235,0.2);
  color: #1d4ed8;
}

.signin-form-title {
  font-size: 28px;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 8px;
}
body.light-mode .signin-form-title { color: #1e3a8a; }

.signin-form-desc {
  font-size: 13px;
  color: rgba(148,163,184,0.8);
  margin-bottom: 28px;
  line-height: 1.6;
}
body.light-mode .signin-form-desc { color: rgba(30,58,138,0.6); }

.signin-security-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(148,163,184,0.55);
  margin-top: 16px;
}
body.light-mode .signin-security-note { color: rgba(30,58,138,0.45); }

/* Phone input with flag */
.phone-input-wrap {
  display: flex;
  align-items: center;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.phone-input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.phone-prefix {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border-right: 1px solid var(--border-color);
  white-space: nowrap;
  flex-shrink: 0;
}
.phone-field {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  flex: 1;
  background: transparent !important;
}
.phone-field:focus {
  border-color: transparent !important;
  box-shadow: none !important;
}
.form-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* OTP stuff */
.otp-success-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  color: #10b981;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.otp-boxes {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  width: 100%;
  max-width: 352px;
}
.otp-digit {
  flex: 1 1 0;
  min-width: 0;
  height: 58px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  background-color: var(--bg-secondary);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  caret-color: var(--primary);
}
.otp-digit:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  outline: none;
}
.otp-digit:not(:placeholder-shown) {
  border-color: var(--primary);
}

.otp-timer-text {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}
.otp-timer-text strong {
  color: var(--primary);
}

.otp-actions {
  text-align: center;
  margin-top: 16px;
}
.otp-resend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: rgba(148,163,184,0.6);
  cursor: pointer;
  transition: color 0.2s;
}
.otp-resend:hover { color: var(--primary); }

.otp-warning {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  color: rgba(148,163,184,0.45);
  margin-top: 16px;
  text-align: center;
}
body.light-mode .otp-warning { color: rgba(30,58,138,0.4); }

/* Shared form components (login tabs, form controls etc.) */
.login-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 6px;
  margin-bottom: 24px;
  gap: 6px;
}
body.light-mode .login-tabs {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}
.login-tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
body.light-mode .login-tab {
  color: #64748b;
}
.login-tab:hover {
  color: var(--text-primary);
}
body.light-mode .login-tab:hover {
  color: #334155;
}
.login-tab.active {
  background: var(--bg-card);
  color: var(--primary);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
body.light-mode .login-tab.active {
  background: #ffffff;
  color: #2563eb;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 15px;
  transition: border-color 0.2s;
  font-family: inherit;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.btn-block {
  width: 100%;
  padding: 14px;
  font-size: 15px;
}

.back-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
}
.back-link:hover { color: var(--text-primary); }

/* Responsive - stack on mobile */
@media (max-width: 768px) {
  .signin-layout { flex-direction: column; }
  .signin-left { display: none; }
  .signin-right {
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.06);
    min-height: 100vh;
    padding: 80px 28px 40px;
  }
}

.preload-theme * {
  -webkit-transition: none !important;
  -moz-transition: none !important;
  -ms-transition: none !important;
  -o-transition: none !important;
  transition: none !important;
}

.preload-theme * { transition: none !important; }

/* ═══════════════════════════════════════════════════
   NETFLIX-STYLE DASHBOARD
   ═══════════════════════════════════════════════════ */

/* Override page-content padding for netflix layout */
.netflix-page {
  padding: 0 !important;
  display: flex;
  flex-direction: column;
}

/* ── HERO ── */
.netflix-hero {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
}
@media (max-width: 768px) { .netflix-hero { height: 240px; } }

.netflix-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a1628 0%, #1e1b4b 45%, #1a3a5c 100%);
}
body.light-mode .netflix-hero-bg {
  background: linear-gradient(135deg, #1e3a8a 0%, #312e81 45%, #1e40af 100%);
}
.netflix-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 85% 40%, rgba(59,130,246,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 70% 80%, rgba(139,92,246,0.12) 0%, transparent 50%),
    linear-gradient(to right, rgba(6,13,24,0.92) 0%, rgba(6,13,24,0.5) 55%, rgba(6,13,24,0.1) 100%),
    linear-gradient(to top, rgba(6,13,24,0.85) 0%, transparent 45%);
}
body.light-mode .netflix-hero-bg::after {
  background:
    radial-gradient(ellipse 60% 80% at 85% 40%, rgba(99,102,241,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 70% 80%, rgba(59,130,246,0.15) 0%, transparent 50%),
    linear-gradient(to right, rgba(15,23,42,0.9) 0%, rgba(15,23,42,0.45) 55%, rgba(15,23,42,0.05) 100%),
    linear-gradient(to top, rgba(15,23,42,0.8) 0%, transparent 45%);
}

/* decorative circles on hero right side */
.netflix-hero-deco {
  position: absolute;
  right: -40px;
  top: -60px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(59,130,246,0.12);
  pointer-events: none;
}
.netflix-hero-deco::before {
  content: '';
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  border: 1px solid rgba(59,130,246,0.1);
}
.netflix-hero-deco::after {
  content: '';
  position: absolute;
  inset: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, transparent 70%);
}

.netflix-hero-icon-bg {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  width: 180px;
  height: 180px;
  opacity: 0.08;
  pointer-events: none;
}
@media (max-width: 768px) { .netflix-hero-icon-bg { display: none; } }

.netflix-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 32px 28px;
  max-width: 560px;
  color: #e2e8f0;
}
@media (max-width: 768px) {
  .netflix-hero-content { padding: 0 16px 20px; max-width: 100%; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(226,232,240,0.7);
  margin-bottom: 10px;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--danger);
  animation: hero-pulse 2s ease-in-out infinite;
}
@keyframes hero-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
@media (max-width: 768px) { .hero-title { font-size: 20px; } }

.hero-desc {
  font-size: 13px;
  color: rgba(226,232,240,0.75);
  margin-bottom: 16px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 768px) { .hero-desc { display: none; } }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.hero-btn-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.hero-btn-play:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(59,130,246,0.4); }
.hero-btn-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
}
.hero-btn-info:hover { background: rgba(255,255,255,0.2); }

.hero-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-progress-label {
  font-size: 12px;
  color: rgba(226,232,240,0.65);
  white-space: nowrap;
}
.hero-progress-bar {
  flex: 1;
  max-width: 180px;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  overflow: hidden;
}
.hero-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 4px;
}

/* ── STAT STRIP ── */
.stat-strip {
  display: flex;
  gap: 12px;
  padding: 16px 32px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border-color);
}
@media (max-width: 768px) { .stat-strip { padding: 12px 16px; gap: 8px; } }

.stat-strip-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  transition: border-color 0.2s;
}
.stat-strip-item:hover { border-color: var(--border-light); }
@media (max-width: 480px) { .stat-strip-item { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px; } }

.stat-strip-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-strip-icon.ic-blue { background: rgba(59,130,246,0.12); color: var(--primary); }
.stat-strip-icon.ic-orange { background: rgba(245,158,11,0.12); color: var(--warning); }
.stat-strip-icon.ic-green { background: rgba(16,185,129,0.12); color: var(--success); }
.stat-strip-icon.ic-purple { background: rgba(139,92,246,0.12); color: #8b5cf6; }

.stat-strip-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}
.stat-strip-lbl {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── ROWS WRAPPER ── */
.netflix-rows {
  flex: 1;
  padding: 24px 0 40px;
}

/* ── CONTENT ROW ── */
.content-row {
  margin-bottom: 32px;
  position: relative;
}

.row-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 32px;
  margin-bottom: 14px;
  gap: 12px;
}
@media (max-width: 768px) { .row-header { padding: 0 16px; margin-bottom: 10px; } }

.row-title-wrap { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.row-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}
.row-subtitle {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-glow);
  padding: 2px 8px;
  border-radius: 20px;
}
.row-more-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  transition: opacity 0.2s;
}
.row-more-link:hover { opacity: 0.75; text-decoration: underline; }

/* ── CARDS SCROLL ── */
.cards-scroll {
  position: relative;
}
.cards-scroll:hover .scroll-arrow { opacity: 1; }

.cards-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 32px 12px;
  scroll-padding-left: 32px;
}
.cards-track::-webkit-scrollbar { display: none; }
@media (max-width: 768px) {
  .cards-track { padding: 4px 16px 12px; scroll-padding-left: 16px; gap: 10px; }
}

/* ── SCROLL ARROWS ── */
.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.scroll-arrow:hover { background: var(--primary); color: #fff; box-shadow: 0 4px 16px rgba(59,130,246,0.4); }
.scroll-arrow.left { left: 4px; }
.scroll-arrow.right { right: 4px; }
@media (max-width: 768px) { .scroll-arrow { display: none; } }

/* ── COURSE CARD ── */
.course-card {
  flex-shrink: 0;
  width: 260px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
.course-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  border-color: var(--border-light);
}
body.light-mode .course-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.12); }

@media (max-width: 768px) { .course-card { width: 200px; } }
@media (max-width: 480px) { .course-card { width: 180px; } }

/* card sizes: wide variant */
.course-card.card-wide { width: 320px; }
@media (max-width: 768px) { .course-card.card-wide { width: 260px; } }

.course-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* hover overlay with play button */
.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.course-card:hover .card-overlay { background: rgba(0,0,0,0.35); }

.card-play-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  display: flex; align-items: center; justify-content: center;
  color: #0f172a;
  font-size: 18px;
  transform: scale(0.7);
  opacity: 0;
  transition: transform 0.2s, opacity 0.2s;
  pointer-events: none;
}
.course-card:hover .card-play-btn { transform: scale(1); opacity: 1; }

/* badges on the thumb */
.card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 5px;
  z-index: 2;
}
.card-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.card-badge.badge-required { background: var(--danger); color: #fff; }
.card-badge.badge-new { background: var(--success); color: #fff; }
.card-badge.badge-deadline { background: var(--warning); color: #000; }
.card-badge.badge-certificate { background: #8b5cf6; color: #fff; }

/* deadline countdown badge */
.card-countdown {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  z-index: 2;
}
.card-countdown.urgent { color: #fca5a5; }

/* progress strip at bottom of thumb */
.card-progress-strip {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.2);
  z-index: 2;
}
.card-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 0 2px 2px 0;
}
.card-progress-fill.fill-warning { background: var(--warning); }
.card-progress-fill.fill-danger { background: var(--danger); }

/* thumb decorative icon */
.card-thumb-icon {
  opacity: 0.15;
  flex-shrink: 0;
}

.course-card-body {
  padding: 12px 14px;
}
.card-category {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--primary);
  margin-bottom: 5px;
}
.card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}
.card-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); }

/* in-progress card variant */
.card-progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.card-progress-bar-sm {
  flex: 1;
  height: 4px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}
.card-progress-bar-sm .fill {
  height: 100%;
  background: var(--primary);
  border-radius: 4px;
}
.card-progress-pct {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

/* ── SIDEBAR TOGGLE BUTTON (always visible) ── */
.sidebar-toggle {
  display: flex;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  margin-right: 8px;
  transition: background 0.15s, color 0.15s;
}
.sidebar-toggle:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

/* Flip icon when sidebar is collapsed */
.sidebar-toggle svg { transition: transform 300ms ease; }
body.sidebar-collapsed .sidebar-toggle svg { transform: scaleX(-1); }

/* ── DESKTOP COLLAPSED SIDEBAR ── */
body.sidebar-collapsed .sidebar {
  width: 60px;
}

/* ── COLLAPSED: center the icon, hide the text ── */
body.sidebar-collapsed .sidebar-header {
  padding: 0;
  justify-content: center;
}
body.sidebar-collapsed .logo {
  gap: 0;
  justify-content: center;
}

/* Icon gets a slight glow ring in the collapsed state */
body.sidebar-collapsed .logo-icon {
  transform: scale(1.04);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/*
 * COLLAPSING: opacity to 0 with ZERO delay and ZERO duration.
 * Text disappears before a single pixel of sidebar-width has moved.
 * max-width then closes silently in the background.
 *
 * This prevents ANY visible text-wrapping or layout shift during animation.
 */
body.sidebar-collapsed .logo-text {
  max-width: 0;
  opacity: 0;
  pointer-events: none;
  transition: max-width 300ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0ms;   /* ← INSTANT hide, zero duration */
}

/* Hide section labels */
body.sidebar-collapsed .menu-label {
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
}

/* Menu items — icon only */
body.sidebar-collapsed .menu-item {
  justify-content: center;
  padding: 10px 0;
  gap: 0;
  font-size: 0;
  white-space: nowrap;
  position: relative;
}
body.sidebar-collapsed .menu-item .menu-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
body.sidebar-collapsed .menu-item.active::before {
  height: 22px;
}

/* Tooltip on hover when collapsed */
body.sidebar-collapsed .menu-item[data-label]::after {
  content: attr(data-label);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 200;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  transition: opacity 0.15s;
}
body.sidebar-collapsed .menu-item[data-label]:hover::after {
  opacity: 1;
}

/* ── MOBILE SIDEBAR ── */
@media (max-width: 1024px) {
  .sidebar {
    position: fixed;
    top: 0; left: 0;
    height: 100%;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 200;
    width: 260px !important;
  }
  .sidebar.open { transform: translateX(0); }
  .main-content { width: 100%; }

  /* Override collapsed state on mobile — always show full sidebar */
  body.sidebar-collapsed .sidebar-header { padding: 0 20px; justify-content: flex-start; }
  body.sidebar-collapsed .logo { gap: 10px; justify-content: flex-start; }
  body.sidebar-collapsed .logo-icon { transform: none; box-shadow: none; }
  body.sidebar-collapsed .logo-text {
    max-width: 200px;
    opacity: 1;
    pointer-events: auto;
    /* override the 0ms transition: restore both animations on mobile */
    transition: max-width 300ms cubic-bezier(0.4, 0, 0.2, 1),
                opacity 180ms ease 120ms;
  }
  body.sidebar-collapsed .menu-label { height: auto; margin: 16px 0 8px 8px; opacity: 1; }
  body.sidebar-collapsed .menu-item { justify-content: flex-start; padding: 12px 16px; gap: 12px; font-size: 14px; }
}

/* ── SPA PAGE TRANSITION ── */
/* Transitions on .page-content only — sidebar + topbar never fade */
.page-content {
  transition: opacity 160ms ease;
}
.page-content.spa-leaving  { opacity: 0; pointer-events: none; }
.page-content.spa-entering { opacity: 0; }

/* ═══════════════════════════════════════════════════════════════════
   USER DROPDOWN — enhanced header, badge, functional items, modal
   ═══════════════════════════════════════════════════════════════════ */

/* ── Subtle tinted header background ── */
.dd-info-header {
  background: var(--bg-secondary);
  border-radius: 10px 10px 0 0;
  padding: 13px 18px 12px;
}
.dd-info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

/* ── Corporate XP badge ── */
.user-pts-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(59,130,246,.12);
  border: 1px solid rgba(59,130,246,.25);
  border-radius: 20px;
  padding: 4px 9px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Enhanced dropdown item hover ── */
.dd-action {
  gap: 10px;
  padding: 10px 18px;
  transition: background 200ms ease, color 200ms ease, transform 100ms ease;
  border-radius: 0;
}
.dd-action:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  transform: translateX(2px);
}

/* ── Inline theme-row (no link behaviour) ── */
.dd-theme-row {
  cursor: default;
  color: var(--text-secondary);
}
.dd-theme-row:hover { color: var(--text-primary); }

/* ── Mini toggle (inside dropdown) ── */
.mini-toggle {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 19px;
  flex-shrink: 0;
  cursor: pointer;
}
.mini-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.mini-tog-t {
  position: absolute; inset: 0;
  background: var(--border-color);
  border-radius: 19px;
  transition: background 200ms;
}
.mini-tog-t::before {
  content: '';
  position: absolute;
  width: 13px; height: 13px;
  left: 3px; top: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform 200ms, background 200ms;
}
.mini-toggle input:checked + .mini-tog-t { background: var(--primary); }
.mini-toggle input:checked + .mini-tog-t::before {
  transform: translateX(15px);
  background: #fff;
}

/* ═══════════════════════════════════════════════════════════════════
   PROFILE MODAL — Kurumsal Bilgilerim pop-up
   ═══════════════════════════════════════════════════════════════════ */
.pm-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 9000;
  opacity: 0; pointer-events: none;
  transition: opacity 220ms ease;
}
.pm-overlay.pm-visible {
  opacity: 1; pointer-events: all;
}
.pm-overlay.pm-visible .pm-box {
  transform: translateY(0) scale(1);
}
.pm-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: min(420px, calc(100vw - 32px));
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  transform: translateY(16px) scale(.97);
  transition: transform 240ms cubic-bezier(.2,.8,.3,1);
}
.pm-head {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
}
.pm-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary);
  color: #fff; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pm-name { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.pm-role { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.pm-close {
  margin-left: auto;
  background: none; border: none;
  color: var(--text-muted); cursor: pointer;
  padding: 6px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: background 150ms, color 150ms;
}
.pm-close:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.pm-rows { padding: 8px 0 12px; }
.pm-row {
  display: flex; align-items: center;
  padding: 10px 20px; gap: 12px;
}
.pm-row + .pm-row { border-top: 1px solid var(--border-color); }
.pm-label {
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .5px;
  min-width: 140px; flex-shrink: 0;
}
.pm-val { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.pm-pts { color: var(--primary); }

/* ── ACCESSIBILITY: Large text mode ─────────────────────────────────
   Activated by body.textSize-large (set via platform-text-size in localStorage).
   Uses zoom on .page-content so sidebar layout is unaffected.
   ─────────────────────────────────────────────────────────────────── */
body.textSize-large .page-content {
  zoom: 1.12;
}

/* Top progress bar for SPA navigation */
#spa-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), #60a5fa);
  z-index: 9999;
  transition: width 300ms ease, opacity 200ms ease;
  pointer-events: none;
}
#spa-progress.active { opacity: 1; }
#spa-progress.done   { width: 100% !important; opacity: 0; }

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 199;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.show { display: block; }

/* ── URGENT DEADLINE ROW ── */
.deadline-strip {
  margin: 0 32px 20px;
  padding: 12px 16px;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 768px) { .deadline-strip { margin: 0 16px 16px; } }
.deadline-strip-icon { color: var(--danger); flex-shrink: 0; }
.deadline-strip-text { font-size: 13px; font-weight: 600; color: var(--text-primary); flex: 1; }
.deadline-strip-sub { font-size: 12px; color: var(--text-muted); }
.deadline-strip-btn {
  padding: 6px 14px;
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.deadline-strip-btn:hover { background: #dc2626; }

/* ================================================================
   EĞİTİMLERİM SAYFASI — mytrainings.css
   ================================================================ */

/* ── Compact page header ── */
.mt-header {
  padding: 24px 32px 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.mt-header-left h1 { font-size: 22px; font-weight: 900; color: var(--text-primary); margin: 0 0 4px; }
.mt-header-left p  { font-size: 13px; color: var(--text-muted); margin: 0; }

/* Stat pills row */
.mt-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 32px 0;
}
.mt-stat-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
}
.mt-stat-pill .pill-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.mt-stat-pill.pill-red   .pill-dot { background: #ef4444; }
.mt-stat-pill.pill-amber .pill-dot { background: #f59e0b; }
.mt-stat-pill.pill-blue  .pill-dot { background: #3b82f6; }
.mt-stat-pill.pill-green .pill-dot { background: #10b981; }
.mt-stat-pill.pill-purple .pill-dot { background: #8b5cf6; }

/* ── Filter chips ── */
.mt-filter-row {
  padding: 16px 32px 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.mt-filter-chip {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--border-color);
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.mt-filter-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.mt-filter-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── Row accent line ── */
.row-header {
  padding: 0 32px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.row-header-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Duration pill on thumb bottom-left ── */
.card-duration {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 3px;
}
/* ── Completed card overlay tint ── */
.course-card.card-done .course-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(16,185,129,.12);
  pointer-events: none;
  z-index: 1;
}
.course-card.card-done .card-progress-fill { background: #10b981; }

/* ── Urgent row header ── */
.row-urgent-header {
  background: linear-gradient(90deg, rgba(239,68,68,.08) 0%, transparent 70%);
  border-left: 3px solid #ef4444;
  padding: 10px 32px;
  margin-bottom: -4px;
}
.row-urgent-header .row-title {
  color: #ef4444;
}

/* ── Recommended row header ── */
.row-reco-header {
  background: linear-gradient(90deg, rgba(59,130,246,.06) 0%, transparent 70%);
  border-left: 3px solid var(--primary);
  padding: 10px 32px;
  margin-bottom: -4px;
}

/* ── Empty state card ── */
.empty-row-card {
  width: 260px;
  flex-shrink: 0;
  height: 160px;
  border: 1.5px dashed var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}
@media (max-width: 768px) { .mt-header, .mt-stats, .mt-filter-row { padding-left: 16px; padding-right: 16px; } }

/* ════════════════════════════════════════════════════════════════════
   GLOBAL ICON SIZE LOCK
   ─────────────────────────────────────────────────────────────────
   These rules form the browser-level defence line:
   • All known icon wrapper elements get flex-shrink:0 so flex
     containers cannot inflate them.
   • Each SVG selector carries a max-width/max-height cap so that
     font-size inheritance and zoom cannot push them beyond their
     design-time pixel budget.
   • A counter-zoom block neutralises the 1.12× large-text zoom
     on every icon container, keeping icon pixels steady while
     surrounding text still scales up.
   • Content areas that previously used a hard height get min-height
     so they can grow downward rather than overflow or clip.
   ════════════════════════════════════════════════════════════════════ */

/* ── 1. Flex-shrink lock on all icon wrapper elements ─────────── */
.menu-icon,
.sidebar-toggle,
.stat-icon,
.stat-strip-icon,
.notif-icon,
.deadline-strip-icon,
.adm-stat-icon,
.adm-section-title,
.adm-action-btn,
.adm-btn-primary,
.adm-btn-ghost,
.adm-role-badge,
.dd-action,
.pm-close,
.pm-avatar,
.signin-feature-icon,
.signin-form-icon,
.badge-icon-wrap,
.lb-podium-icon,
.faq-acc-icon,
.card-play-btn,
.carousel-btn {
  flex-shrink: 0 !important;
  /* prevent inline-flex items from ever collapsing the icon space */
}

/* ── 2. Universal max-size cap on SVGs inside icon containers ─── */
/*    Using max-width/max-height preserves smaller explicit sizes.  */
.menu-icon svg,
.sidebar-toggle svg {
  max-width: 20px !important; max-height: 20px !important;
  min-width: 16px !important; min-height: 16px !important;
  width: 20px !important; height: 20px !important;
}

.stat-icon svg {
  max-width: 24px !important; max-height: 24px !important;
  min-width: 20px !important; min-height: 20px !important;
}

.stat-strip-icon svg,
.deadline-strip-icon svg,
.adm-stat-icon svg {
  max-width: 20px !important; max-height: 20px !important;
  min-width: 16px !important; min-height: 16px !important;
  width: 20px !important; height: 20px !important;
}

.adm-section-title svg {
  max-width: 16px !important; max-height: 16px !important;
  min-width: 14px !important; min-height: 14px !important;
  width: 16px !important; height: 16px !important;
}

.adm-action-btn svg {
  max-width: 13px !important; max-height: 13px !important;
  width: 13px !important; height: 13px !important;
}

.adm-btn-primary svg,
.adm-btn-ghost svg {
  max-width: 14px !important; max-height: 14px !important;
  width: 14px !important; height: 14px !important;
}

.adm-role-badge svg {
  max-width: 12px !important; max-height: 12px !important;
  width: 12px !important; height: 12px !important;
}

.notif-icon svg {
  max-width: 16px !important; max-height: 16px !important;
}

.pm-close svg {
  max-width: 18px !important; max-height: 18px !important;
  width: 18px !important; height: 18px !important;
}

.pm-avatar svg,
.user-pts-badge svg {
  max-width: 14px !important; max-height: 14px !important;
}

/* Topbar row */
.notif-btn > svg,
.notif-btn svg {
  max-width: 20px !important; max-height: 20px !important;
  width: 20px !important; height: 20px !important;
}
.user-avatar-small svg {
  max-width: 16px !important; max-height: 16px !important;
  width: 16px !important; height: 16px !important;
}
.chevron svg {
  max-width: 12px !important; max-height: 12px !important;
  width: 12px !important; height: 12px !important;
}

/* Dropdown action items */
.dd-action > svg:first-child,
.dropdown-item > svg:first-child {
  max-width: 15px !important; max-height: 15px !important;
  width: 15px !important; height: 15px !important;
  flex-shrink: 0 !important;
}

/* FAQ / FAQ accordion */
.faq-acc-icon svg,
.faq-acc-icon { max-width: 16px; max-height: 16px; }

/* Gamification badge icon cells */
.badge-icon-wrap svg {
  max-width: 22px !important; max-height: 22px !important;
  width: 22px !important; height: 22px !important;
}

/* ── 3. Counter-zoom for icon wrappers in large-text mode ──────
   body.textSize-large applies zoom:1.12 to .page-content; the
   rules below apply the reciprocal zoom (≈ 0.8929) so icon pixels
   remain at their original design size while surrounding text
   continues to scale normally.
   ──────────────────────────────────────────────────────────────── */
body.textSize-large .page-content .menu-icon,
body.textSize-large .page-content .stat-icon,
body.textSize-large .page-content .stat-strip-icon,
body.textSize-large .page-content .adm-stat-icon,
body.textSize-large .page-content .adm-section-title,
body.textSize-large .page-content .adm-action-btn,
body.textSize-large .page-content .adm-btn-primary,
body.textSize-large .page-content .adm-btn-ghost,
body.textSize-large .page-content .adm-role-badge,
body.textSize-large .page-content .deadline-strip-icon,
body.textSize-large .page-content .notif-icon,
body.textSize-large .page-content .badge-icon-wrap,
body.textSize-large .page-content .lb-podium-icon,
body.textSize-large .page-content .faq-acc-icon,
body.textSize-large .page-content .carousel-btn,
body.textSize-large .page-content .card-play-btn {
  zoom: 0.8929; /* 1 ÷ 1.12 ≈ 0.8929 */
}

/* Topbar is outside .page-content — protect it separately */
body.textSize-large .topbar .notif-btn > svg,
body.textSize-large .topbar .notif-btn svg,
body.textSize-large .topbar .user-avatar-small svg,
body.textSize-large .topbar .chevron svg,
body.textSize-large .topbar .sidebar-toggle svg {
  max-width: 22px !important; max-height: 22px !important;
}

/* ── 4. Fixed-height content containers → min-height ──────────
   Prevents text overflow/clipping when large-text mode is active.
   ──────────────────────────────────────────────────────────────── */

/* Stat strip items — numbers and labels side by side */
.stat-strip-item   { height: auto !important; min-height: 40px; }
.stat-strip-num    { height: auto !important; }
.stat-strip-label  { height: auto !important; }

/* Notification list rows */
.notif-item        { height: auto !important; min-height: 48px; align-items: flex-start !important; }

/* Dropdown action rows */
.dropdown-item,
.dd-action         { height: auto !important; min-height: 36px; }

/* Menu items in the sidebar */
.menu-item         { height: auto !important; min-height: 36px; }

/* Stat cards — the content text columns */
.stat-info         { height: auto !important; }
.adm-stat > div    { height: auto !important; }

/* Training / course cards: thumbnail fixed, text area flexible */
.card-info,
.course-card-info,
.mt-card-body      { height: auto !important; min-height: 0; }

/* ════════════════════════════════════════════════════════════════════
   GLOBAL UI ICON PRECISION LOCK
   ════════════════════════════════════════════════════════════════════ */

/* Global UI Icon Precision Lock */
.ui-icon-wrapper {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  flex-shrink: 0 !important;
}

.ui-icon-wrapper svg,
.ui-icon-wrapper [data-lucide] {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

/* Size variants */
.ui-icon-wrapper-sm {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  flex-shrink: 0 !important;
}
.ui-icon-wrapper-sm svg,
.ui-icon-wrapper-sm [data-lucide] {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

.ui-icon-wrapper-lg {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  flex-shrink: 0 !important;
}
.ui-icon-wrapper-lg svg,
.ui-icon-wrapper-lg [data-lucide] {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}
