/* ==========================================================================
   EEGIK — İnsan Kaynakları Yönetim Sistemi
   Uygulama stilleri (Plesk tarzı panel · dark/light tema)
   Powered By EEG Bilişim
   ========================================================================== */
:root {
  --ik-sidebar-w: 268px;
  --ik-topbar-h: 64px;
  --ik-radius: 12px;
  --ik-brand: #1e6bff;
  --ik-brand-2: #5b4bf5;
  --ik-brand-3: #9333ea;
  --ik-transition: .18s ease;
}

/* ------------------------------------------------------- tema değişkenleri */
[data-bs-theme="light"] {
  --ik-bg: #f1f4f9;
  --ik-surface: #ffffff;
  --ik-sidebar-bg: #ffffff;
  --ik-sidebar-border: #e6eaf2;
  --ik-text: #1c2434;
  --ik-muted: #6b7688;
  --ik-border: #e6eaf2;
  --ik-hover: #f4f7fc;
  --ik-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .05);
  --ik-shadow-lg: 0 12px 32px -12px rgba(16, 24, 40, .22);
}
[data-bs-theme="dark"] {
  --ik-bg: #0d1220;
  --ik-surface: #151c2c;
  --ik-sidebar-bg: #111827;
  --ik-sidebar-border: #22304a;
  --ik-text: #e8edf7;
  --ik-muted: #93a0b8;
  --ik-border: #243149;
  --ik-hover: #1b2438;
  --ik-shadow: 0 1px 2px rgba(0, 0, 0, .4);
  --ik-shadow-lg: 0 16px 40px -16px rgba(0, 0, 0, .75);
  --bs-body-bg: #0d1220;
  --bs-body-color: #e8edf7;
  --bs-border-color: #243149;
  --bs-secondary-color: #93a0b8;
}

* { -webkit-tap-highlight-color: transparent; }
body.app-body {
  background: var(--ik-bg);
  color: var(--ik-text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: .925rem;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ------------------------------------------------------- iskelet */
.app-shell { display: flex; min-height: 100vh; }

.app-sidebar {
  width: var(--ik-sidebar-w);
  flex: 0 0 var(--ik-sidebar-w);
  background: var(--ik-sidebar-bg);
  border-right: 1px solid var(--ik-sidebar-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1040;
  transition: transform .22s ease;
}
.sidebar-brand {
  padding: 16px 18px;
  border-bottom: 1px solid var(--ik-sidebar-border);
  position: sticky;
  top: 0;
  background: var(--ik-sidebar-bg);
  z-index: 2;
}
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--ik-brand), var(--ik-brand-2) 60%, var(--ik-brand-3));
  color: #fff; font-size: 1.05rem;
  box-shadow: 0 6px 16px -6px rgba(30, 107, 255, .8);
}

/* ------------------------------------------------------- EEGIK marka */
.org-logo { max-width: 100%; object-fit: contain; display: block; }
img.org-logo[src$=".svg"] { object-fit: contain; }

.footer-powered {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; color: var(--ik-muted);
}
.footer-powered i { color: #f59e0b; font-size: .8rem; }
.footer-powered a {
  font-weight: 700; text-decoration: none;
  background: linear-gradient(90deg, var(--ik-brand), var(--ik-brand-2) 55%, var(--ik-brand-3));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--ik-brand);
}
.footer-powered a:hover { text-decoration: underline; text-decoration-color: var(--ik-brand-2); }

.sidebar-powered {
  font-size: .68rem; color: var(--ik-muted); letter-spacing: .02em;
  display: flex; align-items: center; gap: 4px;
}
.sidebar-powered a { font-weight: 700; text-decoration: none; color: var(--ik-brand); }
.sidebar-powered a:hover { text-decoration: underline; }

.sidebar-brand .org-logo { max-height: 34px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { color: var(--ik-text); font-size: .98rem; letter-spacing: -.2px; }
.brand-text small { color: var(--ik-muted); font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; }

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px 20px;
  scrollbar-width: thin;
}
.sidebar-nav::-webkit-scrollbar { width: 6px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--ik-border); border-radius: 8px; }

.nav-group-label {
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ik-muted);
  font-weight: 600;
  padding: 14px 10px 6px;
}
.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--ik-text);
  font-size: .855rem;
  font-weight: 500;
  margin-bottom: 2px;
  transition: background var(--ik-transition), color var(--ik-transition);
  position: relative;
}
.sidebar-nav .nav-link i { font-size: 1rem; width: 20px; text-align: center; color: var(--ik-muted); transition: color var(--ik-transition); }
.sidebar-nav .nav-link:hover { background: var(--ik-hover); }
.sidebar-nav .nav-link:hover i { color: var(--ik-brand); }
.sidebar-nav .nav-link.active {
  background: linear-gradient(90deg, rgba(47, 107, 255, .14), rgba(109, 94, 252, .07));
  color: var(--ik-brand);
  font-weight: 600;
}
.sidebar-nav .nav-link.active i { color: var(--ik-brand); }
.sidebar-nav .nav-link.active::before {
  content: "";
  position: absolute; left: -10px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; border-radius: 0 3px 3px 0; background: var(--ik-brand);
}
.sidebar-footer { padding: 10px 18px; border-top: 1px solid var(--ik-sidebar-border); }

.app-content {
  flex: 1;
  min-width: 0;
  margin-left: var(--ik-sidebar-w);
  display: flex;
  flex-direction: column;
}

.app-topbar {
  height: var(--ik-topbar-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  background: var(--ik-surface);
  border-bottom: 1px solid var(--ik-border);
  position: sticky;
  top: 0;
  z-index: 1030;
}
.topbar-search { position: relative; width: 320px; max-width: 38vw; }
.topbar-search i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ik-muted); font-size: .85rem; }
.topbar-search input { padding-left: 32px; background: var(--ik-hover); border-color: transparent; }
.topbar-search input:focus { background: var(--ik-surface); border-color: var(--ik-brand); box-shadow: 0 0 0 3px rgba(47, 107, 255, .12); }

.btn-icon {
  width: 38px; height: 38px; border-radius: 10px; display: inline-flex;
  align-items: center; justify-content: center; color: var(--ik-text);
  border: 1px solid transparent; background: transparent; transition: background var(--ik-transition);
}
.btn-icon:hover { background: var(--ik-hover); color: var(--ik-brand); }
.user-chip {
  border: 1px solid var(--ik-border); border-radius: 12px; padding: 4px 10px 4px 4px;
  background: var(--ik-surface); height: 44px;
}
.user-chip:hover { background: var(--ik-hover); }

[data-bs-theme="light"] .theme-icon-light { display: none; }
[data-bs-theme="dark"] .theme-icon-dark { display: none; }

.notif-dot {
  position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px;
  border-radius: 9px; background: #ef4444; color: #fff;
  font-size: .62rem; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 4px; font-weight: 700;
}
.notif-menu { width: 340px; border-radius: var(--ik-radius); border-color: var(--ik-border); }
.notif-list { max-height: 360px; overflow-y: auto; }
.notif-item { text-decoration: none; color: inherit; border-bottom: 1px solid var(--ik-border); }
.notif-item:hover { background: var(--ik-hover); }
.notif-item.read { opacity: .62; }

.app-main { padding: 24px 26px 34px; flex: 1; }
.app-footer {
  padding: 14px 26px; border-top: 1px solid var(--ik-border);
  display: flex; justify-content: space-between; font-size: .78rem; color: var(--ik-muted);
  background: var(--ik-surface);
}

.page-heading { margin-bottom: 20px; }
.page-title { font-size: 1.42rem; font-weight: 700; letter-spacing: -.4px; margin: 0; }
.page-subtitle { color: var(--ik-muted); font-size: .86rem; margin-top: 3px; }

/* ------------------------------------------------------- kartlar */
.card {
  background: var(--ik-surface);
  border: 1px solid var(--ik-border);
  border-radius: var(--ik-radius);
  box-shadow: var(--ik-shadow);
}
.card-header {
  background: transparent;
  border-bottom: 1px solid var(--ik-border);
  padding: 14px 18px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.card-body { padding: 18px; }
.card-title { font-size: .95rem; font-weight: 650; margin: 0; }

.stat-card { position: relative; overflow: hidden; }
.stat-card .stat-icon {
  width: 46px; height: 46px; border-radius: 12px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 1.2rem;
}
.stat-card .stat-value { font-size: 1.7rem; font-weight: 750; letter-spacing: -.8px; line-height: 1.15; }
.stat-card .stat-label { color: var(--ik-muted); font-size: .8rem; font-weight: 500; }
.stat-card .stat-trend { font-size: .76rem; font-weight: 600; }
.stat-card::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px;
  border-radius: 50%; background: currentColor; opacity: .06;
}
.bg-soft-primary { background: rgba(47,107,255,.12); color: #2f6bff; }
.bg-soft-success { background: rgba(16,185,129,.12); color: #10b981; }
.bg-soft-warning { background: rgba(245,158,11,.14); color: #f59e0b; }
.bg-soft-danger  { background: rgba(239,68,68,.12); color: #ef4444; }
.bg-soft-info    { background: rgba(14,165,233,.12); color: #0ea5e9; }
.bg-soft-purple  { background: rgba(139,92,246,.13); color: #8b5cf6; }

/* ------------------------------------------------------- tablolar */
.table { --bs-table-bg: transparent; margin-bottom: 0; color: var(--ik-text); }
.table > :not(caption) > * > * { padding: .68rem .75rem; border-bottom-color: var(--ik-border); }
.table thead th {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ik-muted); font-weight: 650; border-bottom: 1px solid var(--ik-border); white-space: nowrap;
  background: transparent;
}
.table-hover > tbody > tr:hover > * { background: var(--ik-hover); }
.table-sm > :not(caption) > * > * { padding: .5rem .6rem; }
.table-responsive { border-radius: 10px; }
.table td, .table th { white-space: nowrap; }
.table td.td-wrap, .table th.td-wrap { white-space: normal; }

.avatar-initial { color: #fff; font-weight: 650; user-select: none; }

.badge-soft {
  font-weight: 600; font-size: .71rem; padding: .34em .6em; border-radius: 6px; letter-spacing: .01em;
}
[data-bs-theme="dark"] .badge-soft { filter: brightness(.92) saturate(1.15); }

/* ------------------------------------------------------- formlar */
.form-label { font-size: .79rem; font-weight: 600; color: var(--ik-muted); margin-bottom: .3rem; }
.form-control, .form-select {
  border-radius: 9px; border-color: var(--ik-border);
  background: var(--ik-surface); color: var(--ik-text);
  font-size: .875rem; padding: .48rem .7rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--ik-brand); box-shadow: 0 0 0 3px rgba(47,107,255,.12);
  background: var(--ik-surface); color: var(--ik-text);
}
.form-control::placeholder { color: var(--ik-muted); opacity: .7; }
.form-section-title {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--ik-muted); font-weight: 700; margin: 4px 0 12px;
  display: flex; align-items: center; gap: 8px;
}
.form-section-title::after { content: ""; flex: 1; height: 1px; background: var(--ik-border); }

.btn { border-radius: 9px; font-size: .86rem; font-weight: 600; padding: .5rem .9rem; }
.btn-sm { padding: .32rem .65rem; font-size: .79rem; border-radius: 7px; }
.btn-primary { background: var(--ik-brand); border-color: var(--ik-brand); }
.btn-primary:hover, .btn-primary:focus { background: #1f5bef; border-color: #1f5bef; }
.btn-light { background: var(--ik-hover); border-color: var(--ik-border); color: var(--ik-text); }
.btn-light:hover { background: var(--ik-border); color: var(--ik-text); }
.btn-outline-secondary { color: var(--ik-text); border-color: var(--ik-border); }
.btn-outline-secondary:hover { background: var(--ik-hover); color: var(--ik-text); border-color: var(--ik-border); }

.nav-tabs { border-bottom-color: var(--ik-border); gap: 4px; }
.nav-tabs .nav-link {
  border: 0; color: var(--ik-muted); font-weight: 600; font-size: .855rem;
  padding: .55rem .85rem; border-radius: 8px 8px 0 0;
}
.nav-tabs .nav-link:hover { color: var(--ik-text); background: var(--ik-hover); }
.nav-tabs .nav-link.active { color: var(--ik-brand); background: transparent; border-bottom: 2px solid var(--ik-brand); }

.dropdown-menu {
  border-radius: 10px; border-color: var(--ik-border); background: var(--ik-surface);
  box-shadow: var(--ik-shadow-lg); padding: 6px;
}
.dropdown-item { border-radius: 7px; font-size: .86rem; padding: .45rem .7rem; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--ik-hover); }
.dropdown-item.active { background: var(--ik-brand); }

/* ------------------------------------------------------- modal */
.modal-content { border-radius: 14px; border-color: var(--ik-border); background: var(--ik-surface); }
.modal-header, .modal-footer { border-color: var(--ik-border); padding: 14px 18px; }
.modal-body { padding: 18px; }
.modal-title { font-size: 1rem; font-weight: 650; }

/* ------------------------------------------------------- misc */
.flash-stack { margin-bottom: 16px; }
.alert { border-radius: 10px; font-size: .86rem; padding: .7rem .9rem; }

.empty-state { padding: 48px 16px; text-align: center; color: var(--ik-muted); }
.empty-state i { font-size: 2.2rem; opacity: .5; }

.progress { height: 7px; border-radius: 8px; background: var(--ik-border); }
.progress-bar { border-radius: 8px; }

.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 2px; background: var(--ik-border); }
.timeline-item { position: relative; padding-bottom: 14px; }
.timeline-item::before {
  content: ""; position: absolute; left: -20px; top: 5px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--ik-brand); box-shadow: 0 0 0 3px rgba(47,107,255,.15);
}

.chart-box { position: relative; width: 100%; height: 280px; }
.chart-box-sm { height: 200px; }

.sidebar-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(9, 14, 24, .5); z-index: 1035;
  backdrop-filter: blur(2px);
}

/* ------------------------------------------------------- responsive */
@media (max-width: 1199.98px) {
  :root { --ik-sidebar-w: 248px; }
}
@media (max-width: 991.98px) {
  .app-sidebar { transform: translateX(-100%); box-shadow: var(--ik-shadow-lg); }
  .app-sidebar.show { transform: translateX(0); }
  .sidebar-backdrop.show { display: block; }
  .app-content { margin-left: 0; }
  .app-main { padding: 18px 16px 28px; }
  .app-topbar { padding: 0 14px; }
}
@media (max-width: 575.98px) {
  body.app-body { font-size: .88rem; }
  .page-title { font-size: 1.18rem; }
  .app-main { padding: 14px 12px 24px; }
  .card-body { padding: 14px; }
  .stat-card .stat-value { font-size: 1.4rem; }
  .app-footer { padding: 12px 14px; }
}

/* ------------------------------------------------------- login */
.auth-body {
  background: radial-gradient(1200px 600px at 10% 0%, #1e2a5a 0%, transparent 60%),
              radial-gradient(900px 500px at 90% 100%, #3b1f6b 0%, transparent 55%),
              #0b1020;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.auth-card {
  width: 100%; max-width: 940px; border-radius: 22px; overflow: hidden;
  background: var(--ik-surface); box-shadow: 0 40px 80px -30px rgba(0,0,0,.65);
  display: grid; grid-template-columns: 1.05fr 1fr; border: 0;
}
.auth-visual {
  background: linear-gradient(150deg, #2f6bff 0%, #6d5efc 55%, #a855f7 100%);
  color: #fff; padding: 44px 40px; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.auth-visual::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px;
  border-radius: 50%; background: rgba(255,255,255,.12);
}
.auth-visual::before {
  content: ""; position: absolute; left: -40px; top: 30%; width: 140px; height: 140px;
  border-radius: 50%; background: rgba(255,255,255,.08);
}
.auth-visual h2 { font-weight: 800; letter-spacing: -.8px; font-size: 1.75rem; }
.auth-feature { display: flex; gap: 10px; align-items: flex-start; font-size: .87rem; margin-bottom: 12px; }
.auth-feature i { font-size: 1rem; margin-top: 2px; opacity: .95; }
.auth-form { padding: 44px 40px; }
@media (max-width: 767.98px) {
  .auth-card { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-form { padding: 30px 24px; }
}

/* ------------------------------------------------------- print */
@media print {
  .app-sidebar, .app-topbar, .app-footer, .page-actions, .no-print, .sidebar-backdrop { display: none !important; }
  .app-content { margin-left: 0 !important; }
  .app-main { padding: 0 !important; }
  .card { box-shadow: none !important; border-color: #ddd !important; }
  body { background: #fff !important; color: #000 !important; }
}

/* yazdırma / bordro fişi */
.payslip-doc { background: #fff; color: #111; padding: 28px; border-radius: 10px; }
[data-bs-theme="dark"] .payslip-doc,
[data-bs-theme="dark"] .payslip-doc .table { color: #111; }
.payslip-doc .table > :not(caption) > * > * { border-color: #e5e7eb; }

/* ==========================================================================
   EĞİTİM YÖNETİM SİSTEMİ (LMS)
   ========================================================================== */
.lms-tabs {
  display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto;
  padding: 6px; border-radius: 14px; background: var(--ik-surface);
  border: 1px solid var(--ik-border); box-shadow: var(--ik-shadow);
  scrollbar-width: none;
}
.lms-tabs::-webkit-scrollbar { display: none; }
.lms-tab {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 8px 14px; border-radius: 10px; text-decoration: none;
  color: var(--ik-muted); font-size: .85rem; font-weight: 600;
  transition: background var(--ik-transition), color var(--ik-transition);
}
.lms-tab:hover { background: var(--ik-hover); color: var(--ik-text); }
.lms-tab.active {
  background: linear-gradient(135deg, var(--ik-brand), var(--ik-brand-2));
  color: #fff; box-shadow: 0 6px 16px -8px rgba(30, 107, 255, .9);
}
.lms-tab-count {
  font-size: .68rem; padding: 1px 7px; border-radius: 20px;
  background: rgba(255,255,255,.22); color: inherit;
}
.lms-tab:not(.active) .lms-tab-count { background: var(--ik-hover); }

.lms-course-card { transition: transform var(--ik-transition), box-shadow var(--ik-transition); }
.lms-course-card:hover { transform: translateY(-2px); box-shadow: var(--ik-shadow-lg); }
.lms-course-icon {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(30,107,255,.16), rgba(91,75,245,.16));
  color: var(--ik-brand);
}
.lms-lesson-num {
  width: 26px; height: 26px; flex: 0 0 26px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700;
  background: var(--ik-hover); color: var(--ik-muted);
}
.lms-qr-card { background: linear-gradient(160deg, var(--ik-surface), var(--ik-hover)); }
.lms-qr-wrap { display: flex; justify-content: center; }
.lms-qr-wrap img { box-shadow: 0 18px 40px -20px rgba(15,23,42,.45); }
.qr-img { image-rendering: pixelated; }
.lms-print-qr { padding-top: 24px; }

/* ==========================================================================
   MOBİL PERSONEL UYGULAMASI — Flutter/Material benzeri yüzey
   ========================================================================== */
body.mobile-body {
  background: #f4f6fb;
  color: #121a2b;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  margin: 0; min-height: 100vh;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}
[data-bs-theme="dark"] body.mobile-body { background: #0b1020; color: #e8edf7; }

.m-app {
  max-width: 480px; margin: 0 auto; min-height: 100vh;
  display: flex; flex-direction: column; position: relative;
  background: var(--m-surface, #f4f6fb);
  box-shadow: 0 0 60px -20px rgba(15,23,42,.25);
}
[data-bs-theme="dark"] .m-app { --m-surface: #0b1020; }

.m-appbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px 12px; padding-top: max(14px, env(safe-area-inset-top));
  background: rgba(244,246,251,.86); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15,23,42,.06);
}
[data-bs-theme="dark"] .m-appbar { background: rgba(11,16,32,.86); border-bottom-color: rgba(255,255,255,.07); }
.m-appbar h1 { font-size: 1.06rem; font-weight: 800; margin: 0; letter-spacing: -.3px; }
.m-appbar .m-sub { font-size: .72rem; color: #6b7688; }

.m-hero {
  margin: 14px 16px 0; padding: 20px; border-radius: 24px; color: #fff;
  background: linear-gradient(140deg, #2f6bff, #6d5efc 55%, #a855f7);
  box-shadow: 0 22px 44px -24px rgba(47,107,255,.9);
  position: relative; overflow: hidden;
}
.m-hero::after {
  content: ""; position: absolute; right: -50px; top: -50px;
  width: 170px; height: 170px; border-radius: 50%; background: rgba(255,255,255,.12);
}
.m-hero .who { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.m-hero .who img, .m-hero .who .avatar-initial { border: 2px solid rgba(255,255,255,.6); }
.m-hero .hi { font-size: .78rem; opacity: .85; }
.m-hero .nm { font-size: 1.12rem; font-weight: 800; line-height: 1.15; }
.m-hero .meta { font-size: .74rem; opacity: .85; }
.m-hero-actions { display: flex; gap: 8px; margin-top: 16px; position: relative; z-index: 1; }
.m-hero-actions a {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px; border-radius: 14px; text-decoration: none; font-size: .82rem; font-weight: 700;
  background: rgba(255,255,255,.2); color: #fff; border: 1px solid rgba(255,255,255,.28);
}
.m-hero-actions a.primary { background: #fff; color: #2f6bff; border-color: #fff; }

.m-section { padding: 18px 16px 0; }
.m-section-title {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .78rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .07em; color: #6b7688; margin-bottom: 10px;
}
.m-section-title a { font-size: .74rem; text-transform: none; letter-spacing: 0; text-decoration: none; font-weight: 700; }

.m-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.m-stat {
  background: #fff; border-radius: 18px; padding: 14px 12px; text-align: center;
  box-shadow: 0 8px 24px -18px rgba(15,23,42,.4); border: 1px solid rgba(15,23,42,.05);
}
[data-bs-theme="dark"] .m-stat { background: #151c2c; border-color: rgba(255,255,255,.06); }
.m-stat .v { font-size: 1.3rem; font-weight: 800; letter-spacing: -.5px; }
.m-stat .l { font-size: .66rem; color: #6b7688; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }

.m-list { display: flex; flex-direction: column; gap: 10px; }
.m-card {
  display: flex; gap: 12px; padding: 14px; border-radius: 20px; background: #fff;
  border: 1px solid rgba(15,23,42,.05); box-shadow: 0 10px 26px -22px rgba(15,23,42,.45);
  text-decoration: none; color: inherit;
}
[data-bs-theme="dark"] .m-card { background: #151c2c; border-color: rgba(255,255,255,.06); color: inherit; }
.m-card:active { transform: scale(.985); }
.m-thumb {
  width: 54px; height: 54px; flex: 0 0 54px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: #fff;
  background: linear-gradient(140deg, #2f6bff, #6d5efc);
}
.m-thumb.warn { background: linear-gradient(140deg, #f59e0b, #ef4444); }
.m-thumb.ok { background: linear-gradient(140deg, #10b981, #059669); }
.m-thumb.gray { background: linear-gradient(140deg, #94a3b8, #64748b); }
.m-title { font-size: .92rem; font-weight: 700; line-height: 1.25; }
.m-sub2 { font-size: .74rem; color: #6b7688; margin-top: 2px; }
.m-progress { height: 6px; border-radius: 6px; background: rgba(15,23,42,.08); overflow: hidden; margin-top: 8px; }
[data-bs-theme="dark"] .m-progress { background: rgba(255,255,255,.1); }
.m-progress > span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #2f6bff, #6d5efc); }
.m-chip {
  display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; font-weight: 700;
  padding: 3px 9px; border-radius: 20px; background: rgba(47,107,255,.1); color: #2f6bff;
}
.m-chip.green { background: rgba(16,185,129,.12); color: #059669; }
.m-chip.amber { background: rgba(245,158,11,.14); color: #b45309; }
.m-chip.red { background: rgba(239,68,68,.12); color: #dc2626; }
.m-chip.gray { background: rgba(100,116,139,.12); color: #475569; }

.m-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(255,255,255,.94); backdrop-filter: blur(16px);
  border-top: 1px solid rgba(15,23,42,.06);
  padding-bottom: env(safe-area-inset-bottom);
}
[data-bs-theme="dark"] .m-nav { background: rgba(21,28,44,.94); border-top-color: rgba(255,255,255,.07); }
.m-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 9px 0 10px; text-decoration: none; color: #8a94a6; font-size: .64rem; font-weight: 700;
}
.m-nav a i { font-size: 1.22rem; }
.m-nav a.active { color: #2f6bff; }
.m-nav a.center i {
  width: 46px; height: 46px; margin-top: -22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
  background: linear-gradient(140deg, #2f6bff, #6d5efc); color: #fff;
  box-shadow: 0 12px 24px -10px rgba(47,107,255,.9);
}
.m-nav a.center span { margin-top: 2px; }
.m-scroll { padding-bottom: 92px; flex: 1; }

.m-empty { text-align: center; padding: 36px 16px; color: #8a94a6; }
.m-empty i { font-size: 2.4rem; opacity: .4; display: block; margin-bottom: 8px; }

/* QR tarayıcı */
.m-scanner {
  position: relative; border-radius: 24px; overflow: hidden; background: #000;
  aspect-ratio: 1 / 1; margin: 0 16px;
}
.m-scanner video { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-scanner .frame {
  position: absolute; inset: 14%; border-radius: 24px;
  box-shadow: 0 0 0 100vmax rgba(0,0,0,.45);
  border: 3px solid rgba(255,255,255,.9);
}
.m-scanner .scanline {
  position: absolute; left: 16%; right: 16%; height: 2px;
  background: linear-gradient(90deg, transparent, #22d3ee, transparent);
  animation: m-scan 2s ease-in-out infinite;
}
@keyframes m-scan { 0%,100% { top: 18%; } 50% { top: 80%; } }

/* QR kimlik kartı (personeli giriş ekranı) */
.m-qr-card {
  background: #fff; border-radius: 26px; padding: 22px; text-align: center;
  box-shadow: 0 24px 60px -30px rgba(15,23,42,.5); border: 1px solid rgba(15,23,42,.05);
}
[data-bs-theme="dark"] .m-qr-card { background: #151c2c; border-color: rgba(255,255,255,.07); }
.m-qr-card img { border-radius: 16px; background: #fff; }

/* Ders oynatıcı */
.m-lesson-body { font-size: .92rem; line-height: 1.65; }
.m-lesson-body h5 { font-size: 1rem; font-weight: 800; }
.m-lesson-body img { max-width: 100%; border-radius: 14px; }

/* Sınav soru kartları */
.m-quiz-opt {
  display: flex; gap: 10px; align-items: flex-start; padding: 13px 14px;
  border-radius: 16px; background: #fff; border: 1.5px solid rgba(15,23,42,.08);
  cursor: pointer; margin-bottom: 9px; transition: border-color .15s, background .15s;
}
[data-bs-theme="dark"] .m-quiz-opt { background: #151c2c; border-color: rgba(255,255,255,.09); }
.m-quiz-opt input { margin-top: 2px; }
.m-quiz-opt.selected { border-color: #2f6bff; background: rgba(47,107,255,.06); }
.m-quiz-opt .k {
  width: 24px; height: 24px; flex: 0 0 24px; border-radius: 8px; font-weight: 800; font-size: .72rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(15,23,42,.06); color: #475569;
}
[data-bs-theme="dark"] .m-quiz-opt .k { background: rgba(255,255,255,.08); color: #cbd5e1; }

/* Yüzen bildirim (snackbar) */
.m-snack {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px);
  max-width: 420px; width: calc(100% - 32px); z-index: 60;
  padding: 13px 16px; border-radius: 16px; color: #fff; font-size: .86rem; font-weight: 600;
  background: #1f2937; box-shadow: 0 18px 40px -18px rgba(0,0,0,.6);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.m-snack.show { opacity: 1; transform: translate(-50%, 0); }
.m-snack.ok { background: linear-gradient(135deg, #059669, #10b981); }
.m-snack.err { background: linear-gradient(135deg, #dc2626, #ef4444); }
.m-snack.warn { background: linear-gradient(135deg, #b45309, #f59e0b); }

@media print {
  .lms-tabs, .no-print { display: none !important; }
  .lms-print-qr { display: block !important; }
}

/* ------------------------------------------------------- giriş yolu (QR personel) */
.auth-path-qr {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 14px; color: var(--ik-text);
  background: linear-gradient(135deg, rgba(47,107,255,.09), rgba(168,85,247,.09));
  border: 1px solid rgba(47,107,255,.22);
  transition: transform var(--ik-transition), box-shadow var(--ik-transition);
}
.auth-path-qr:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -18px rgba(47,107,255,.9); color: var(--ik-text); }
.auth-path-icon {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem;
  color: #fff; background: linear-gradient(140deg, var(--ik-brand), var(--ik-brand-2));
}
