/* ============================================================
   AYBÜ ÖĞMER — Premium Yönetim Paneli
   Tasarım: Beyaz + Mor Aksan, Kurumsal Premium
   ============================================================ */

:root {
  --panel-bg      : #f5f6fa;
  --panel-surface : #ffffff;
  --panel-border  : #e8eaf0;
  --panel-shadow  : 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
  --panel-shadow2 : 0 4px 24px rgba(91,43,217,.10);
  --panel-accent  : #5b2bd9;
  --panel-accent2 : #7a4cff;
  --panel-text    : #1a1d2e;
  --panel-muted   : #6e7191;
  --panel-radius  : 14px;
  --panel-radius2 : 10px;
  --sidebar-w     : 248px;
  --sidebar-bg    : #ffffff;
  --sidebar-border: #ede9f8;
}

/* ── Layout ── */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: var(--panel-bg);
}

/* ── Sidebar ── */
.admin-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 30;
}

.admin-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 20px 18px;
  border-bottom: 1px solid var(--sidebar-border);
}

.admin-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--panel-accent), var(--panel-accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.admin-logo-text {
  font-weight: 900;
  font-size: 14px;
  color: var(--panel-text);
  letter-spacing: -.2px;
}

.admin-sidebar-nav {
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.admin-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--panel-radius2);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--panel-muted);
  text-decoration: none;
  transition: background .14s, color .14s;
  position: relative;
  white-space: nowrap;
}

.admin-sidebar-nav a:hover {
  background: #f3effd;
  color: var(--panel-accent);
}

.admin-sidebar-nav a.active {
  background: linear-gradient(90deg, rgba(91,43,217,.12), rgba(122,76,255,.06));
  color: var(--panel-accent);
  font-weight: 700;
  border-left: 3px solid var(--panel-accent);
  padding-left: 9px;
}

.nav-icon {
  font-size: 15px;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}

.nav-svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: .7;
}

.admin-sidebar-nav a.active .nav-svg,
.admin-sidebar-nav a:hover .nav-svg {
  opacity: 1;
}

.nav-badge {
  margin-left: auto;
  background: #ef4444;
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  min-width: 18px;
  text-align: center;
  flex-shrink: 0;
}

/* Sidebar divider */
.admin-sidebar-section {
  padding: 14px 12px 6px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #c0bdd8;
}

/* ── Main Content ── */
.admin-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Welcome card buton tıklanabilirliği */
.admin-welcome-card > * {
  position: relative;
  z-index: 2;
}

.admin-main-inner {
  flex: 1;
  padding: 28px 32px;
}

/* ── Top Header Bar ── */
.admin-header-bar {
  background: var(--panel-surface);
  border-bottom: 1px solid var(--panel-border);
  padding: 0 32px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.admin-header-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--panel-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-header-title .breadcrumb {
  font-weight: 500;
  color: var(--panel-muted);
  font-size: 13px;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Page Topbar (içerik alanı) ── */
.admin-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.admin-topbar-left { flex: 1; min-width: 0; }

.admin-page-title {
  margin: 0 0 3px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.5px;
  color: var(--panel-text);
  line-height: 1.2;
}

.admin-page-subtitle {
  margin: 0;
  color: var(--panel-muted);
  font-size: 13px;
  font-weight: 500;
}

.admin-topbar-right {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.admin-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  background: var(--panel-surface);
  color: var(--panel-muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .14s, color .14s;
  margin-bottom: 6px;
  display: inline-flex;
}
.admin-back-btn:hover {
  border-color: var(--panel-accent);
  color: var(--panel-accent);
}

/* ── Buttons ── */
.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity .14s, transform .1s, box-shadow .14s;
  white-space: nowrap;
  line-height: 1.2;
  letter-spacing: -.1px;
  font-family: inherit;
}
.admin-btn:active { transform: scale(.98); }

.admin-btn.primary {
  background: var(--panel-accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(91,43,217,.25);
}
.admin-btn.primary:hover { opacity: .9; box-shadow: 0 4px 14px rgba(91,43,217,.35); }

.admin-btn.secondary {
  background: var(--panel-surface);
  color: var(--panel-text);
  border: 1px solid var(--panel-border);
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.admin-btn.secondary:hover { background: #f8f7fc; border-color: #d8d4f0; }

.admin-btn.success {
  background: #16a34a;
  color: #fff;
  box-shadow: 0 2px 8px rgba(22,163,74,.2);
}
.admin-btn.success:hover { opacity: .9; }

.admin-btn.danger {
  background: #dc2626;
  color: #fff;
  box-shadow: 0 2px 8px rgba(220,38,38,.2);
}
.admin-btn.danger:hover { opacity: .9; }

.admin-btn.warning {
  background: #f59e0b;
  color: #fff;
  box-shadow: 0 2px 8px rgba(245,158,11,.2);
}
.admin-btn.warning:hover { opacity: .9; }

.admin-btn.ghost {
  background: transparent;
  color: var(--panel-accent);
  border: 1px solid rgba(91,43,217,.25);
}
.admin-btn.ghost:hover { background: rgba(91,43,217,.06); }

.admin-btn.sm {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 7px;
  gap: 4px;
}

.admin-btn.xs {
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 6px;
}

/* ── Stat Cards — Premium ── */
.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.admin-stat-card {
  background: var(--panel-surface);
  border: 1px solid var(--panel-border);
  border-radius: var(--panel-radius);
  padding: 18px 18px 16px;
  box-shadow: var(--panel-shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  position: relative;
  min-width: 0;
}

.admin-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--panel-accent), var(--panel-accent2));
  border-radius: var(--panel-radius) var(--panel-radius) 0 0;
}

.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.stat-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(91,43,217,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.stat-card-value {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.8px;
  color: var(--panel-text);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.stat-card-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--panel-muted);
  letter-spacing: .1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Welcome Banner ── */
.admin-welcome-card {
  background: linear-gradient(125deg, var(--panel-accent) 0%, #9b59b6 60%, var(--panel-accent2) 100%);
  border-radius: var(--panel-radius);
  padding: 24px 28px;
  color: #fff;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.admin-welcome-card::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
}

.admin-welcome-card h2 {
  margin: 0 0 5px;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.3px;
}

.admin-welcome-card p {
  margin: 0;
  opacity: .82;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

/* ── Cards ── */
.admin-card {
  background: var(--panel-surface);
  border: 1px solid var(--panel-border);
  border-radius: var(--panel-radius);
  padding: 20px 22px;
  box-shadow: var(--panel-shadow);
  margin-bottom: 16px;
}

.admin-card-title {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 800;
  color: var(--panel-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

/* ── Tables ── */
.admin-table-wrap {
  background: var(--panel-surface);
  border: 1px solid var(--panel-border);
  border-radius: var(--panel-radius);
  box-shadow: var(--panel-shadow);
  overflow: hidden;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table thead th {
  padding: 11px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--panel-muted);
  background: #fafbfc;
  border-bottom: 1px solid var(--panel-border);
  white-space: nowrap;
}

.admin-table tbody tr {
  border-bottom: 1px solid #f4f5f8;
  transition: background .1s;
}

.admin-table tbody tr:last-child { border-bottom: none; }
.admin-table tbody tr:hover { background: #faf9fd; }

.admin-table tbody td {
  padding: 11px 16px;
  color: var(--panel-text);
  vertical-align: middle;
}

.admin-table.compact thead th { padding: 8px 14px; }
.admin-table.compact tbody td { padding: 8px 14px; }

/* ── Form Elements ── */
.admin-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--panel-border);
  border-radius: 9px;
  font-size: 13px;
  color: var(--panel-text);
  background: var(--panel-surface);
  outline: none;
  transition: border-color .14s, box-shadow .14s;
  font-family: inherit;
  box-sizing: border-box;
}

.admin-input:focus {
  border-color: var(--panel-accent);
  box-shadow: 0 0 0 3px rgba(91,43,217,.10);
}

.admin-input::placeholder { color: #b5b8cc; }

.admin-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.admin-form-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--panel-text);
  letter-spacing: .1px;
}

.admin-form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  align-items: flex-start;
}

/* ── Flash Messages ── */
.admin-flash {
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid;
}

.admin-flash.success { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.admin-flash.error   { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.admin-flash.info    { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.admin-flash.warning { background: #fffbeb; color: #b45309; border-color: #fde68a; }

/* ── Badge Variants ── */
.admin-badge-alert {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-success {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.badge-danger {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.badge-warning {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}
.badge-info {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.badge-muted {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #f9fafb;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

/* ── Empty State ── */
.admin-empty-state {
  text-align: center;
  padding: 56px 20px;
  color: var(--panel-muted);
}

.empty-icon {
  font-size: 40px;
  margin-bottom: 14px;
  opacity: .6;
}

.admin-empty-state h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--panel-text);
}

.admin-empty-state p {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.6;
}

/* ── Tabs ── */
.admin-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1.5px solid var(--panel-border);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.admin-tab {
  padding: 9px 18px;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--panel-muted);
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1.5px;
  transition: color .14s;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: inherit;
  white-space: nowrap;
}

.admin-tab:hover { color: var(--panel-text); }

.admin-tab.active {
  color: var(--panel-accent);
  border-bottom-color: var(--panel-accent);
  font-weight: 700;
}

.tab-count {
  background: #ede9f8;
  color: var(--panel-accent);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  min-width: 16px;
  text-align: center;
}

.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; }

/* ── Application Cards ── */
.applications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 14px;
}

.application-card {
  background: var(--panel-surface);
  border: 1px solid var(--panel-border);
  border-radius: var(--panel-radius);
  padding: 18px;
  box-shadow: var(--panel-shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .15s;
}
.application-card:hover { box-shadow: 0 4px 20px rgba(91,43,217,.10); }
.application-card.pending  { border-top: 3px solid #f59e0b; }
.application-card.approved { border-top: 3px solid #16a34a; }
.application-card.rejected { border-top: 3px solid #dc2626; }

.app-card-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.app-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--panel-accent), var(--panel-accent2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  flex-shrink: 0;
}

.app-info { flex: 1; min-width: 0; }
.app-info h3 { margin: 0 0 3px; font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-email { margin: 0 0 5px; font-size: 12px; color: var(--panel-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.app-status-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.app-status-badge.pending  { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.app-status-badge.approved { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.app-status-badge.rejected { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

.app-date {
  text-align: right;
  font-size: 11px;
  color: var(--panel-muted);
  flex-shrink: 0;
  white-space: nowrap;
}
.app-date strong { display: block; font-weight: 700; color: var(--panel-text); font-size: 12px; margin-top: 2px; }

.app-field label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--panel-muted);
  display: block;
  margin-bottom: 3px;
}
.app-field p { margin: 0; font-size: 13px; color: var(--panel-text); line-height: 1.5; }

.app-actions { display: flex; gap: 8px; }

/* ── Modal ── */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,10,40,.45);
  backdrop-filter: blur(3px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.admin-modal-overlay.open { display: flex; }

.admin-modal {
  background: var(--panel-surface);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.20), 0 0 0 1px rgba(0,0,0,.06);
  width: 100%;
  max-width: 460px;
  overflow: hidden;
  animation: modalIn .2s ease;
}

@keyframes modalIn {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--panel-border);
}
.admin-modal-header h3 { margin: 0; font-size: 15px; font-weight: 800; }

.modal-close-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: var(--panel-muted);
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
  font-family: inherit;
}
.modal-close-btn:hover { background: var(--panel-bg); }

.admin-modal-body { padding: 18px 20px; }
.admin-modal-body p { margin: 0 0 12px; font-size: 13px; line-height: 1.6; }

.admin-modal-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 12px 20px;
  border-top: 1px solid var(--panel-border);
  background: #fafbfc;
}

/* ── Curriculum Cards ── */
.curriculum-section-card {
  background: var(--panel-surface);
  border: 1px solid var(--panel-border);
  border-radius: var(--panel-radius);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--panel-shadow);
}

.curriculum-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fafbfc;
  border-bottom: 1px solid var(--panel-border);
  gap: 10px;
}

.section-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.section-icon { font-size: 16px; flex-shrink: 0; }

.section-info strong {
  font-size: 14px;
  font-weight: 800;
  color: var(--panel-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-meta {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--panel-muted);
  background: var(--panel-border);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.curriculum-lectures { padding: 0; }

.curriculum-lecture-item {
  border-bottom: 1px solid #f4f5f8;
}
.curriculum-lecture-item:last-child { border-bottom: none; }

.lecture-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  gap: 10px;
  flex-wrap: wrap;
}

.lecture-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.lecture-type-icon { font-size: 14px; flex-shrink: 0; opacity: .7; }

.lecture-title {
  font-size: 13px;
  font-weight: 600;
  display: block;
  color: var(--panel-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lecture-meta {
  font-size: 11px;
  color: var(--panel-muted);
  font-weight: 500;
  white-space: nowrap;
}

.preview-tag  { background: #eff6ff; color: #1d4ed8; padding: 1px 6px; border-radius: 4px; font-weight: 700; font-size: 10px; }
.question-tag { background: #fffbeb; color: #92400e; padding: 1px 6px; border-radius: 4px; font-weight: 700; font-size: 10px; }

.lecture-actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }

.q-count-badge {
  background: rgba(255,255,255,.25);
  border-radius: 999px;
  padding: 1px 5px;
  font-size: 10px;
  font-weight: 800;
}

/* ── Question Panel ── */
.question-panel {
  background: #fbf9ff;
  border-top: 1px solid #ede9f8;
}

.question-panel-inner { padding: 14px 16px; }
.question-panel-inner h4 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  color: var(--panel-accent);
}

.existing-questions { margin-bottom: 18px; }

.question-item {
  background: var(--panel-surface);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
}

.question-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.question-trigger-time {
  background: #ede9fe;
  color: #5b21b6;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  margin-right: 6px;
}

.question-text-preview { font-size: 12px; color: var(--panel-muted); font-weight: 500; }
.q-answers-badge { background: #f0fdf4; color: #15803d; padding: 2px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.question-full-text { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--panel-text); line-height: 1.5; }

.question-options-preview { display: flex; gap: 6px; flex-wrap: wrap; }

.option-chip {
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: var(--panel-bg);
  color: var(--panel-muted);
  border: 1px solid var(--panel-border);
}
.option-chip.correct { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; font-weight: 800; }

.no-questions-msg { color: var(--panel-muted); font-size: 12px; font-style: italic; margin: 0 0 14px; }

/* ── Add Question Form ── */
.add-question-form {
  background: var(--panel-surface);
  border: 1.5px dashed #d8d4f0;
  border-radius: 10px;
  padding: 14px;
}
.add-question-form h5 { margin: 0 0 12px; font-size: 12px; font-weight: 800; color: var(--panel-accent); text-transform: uppercase; letter-spacing: .4px; }

.options-inputs { display: flex; flex-direction: column; gap: 7px; }
.option-input-row { display: flex; align-items: center; gap: 8px; }
.option-label { font-size: 12px; font-weight: 800; color: var(--panel-accent); width: 22px; flex-shrink: 0; }

/* ── Add Lecture ── */
.curriculum-add-lecture {
  border-top: 1px solid #f4f5f8;
  background: #fafbfc;
}
.curriculum-add-lecture details { margin: 0; }
.add-lecture-toggle {
  display: block;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--panel-accent);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.add-lecture-toggle::-webkit-details-marker { display: none; }
.add-lecture-form { padding: 14px 16px 16px; border-top: 1px solid var(--panel-border); }

/* ── Instructor Stats ── */
.instructor-stats-row {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.instructor-stat-pill {
  background: var(--panel-surface);
  border: 1px solid var(--panel-border);
  border-radius: var(--panel-radius);
  padding: 16px 20px;
  flex: 1;
  min-width: 130px;
  box-shadow: var(--panel-shadow);
  position: relative;
  overflow: hidden;
}

.instructor-stat-pill::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--panel-accent), var(--panel-accent2));
}

.instructor-stat-pill .value {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -.8px;
  color: var(--panel-accent);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.instructor-stat-pill .label {
  font-size: 12px;
  color: var(--panel-muted);
  font-weight: 600;
  margin-top: 5px;
  white-space: nowrap;
}

/* ── Quick Actions ── */
.admin-quick-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Report Stats ── */
.report-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.report-stat-card {
  background: var(--panel-surface);
  border: 1px solid var(--panel-border);
  border-radius: var(--panel-radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--panel-shadow);
}

.report-stat-icon { font-size: 22px; flex-shrink: 0; opacity: .8; }
.report-stat-value { font-size: 22px; font-weight: 900; color: var(--panel-text); letter-spacing: -.5px; line-height: 1; }
.report-stat-label { font-size: 11px; color: var(--panel-muted); font-weight: 600; margin-top: 3px; }

.report-question-card {
  background: var(--panel-surface);
  border: 1px solid var(--panel-border);
  border-radius: var(--panel-radius);
  padding: 18px;
  margin-bottom: 12px;
  box-shadow: var(--panel-shadow);
}

.report-q-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.report-q-info { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.report-q-lecture { background: #f0fdf4; color: #15803d; padding: 3px 9px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.report-q-time   { background: #ede9fe; color: #5b21b6; padding: 3px 9px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.report-q-stats  { display: flex; gap: 8px; align-items: center; }
.report-q-answers { font-size: 12px; color: var(--panel-muted); font-weight: 600; }

.report-q-success { padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 800; }
.report-q-success.good { background: #f0fdf4; color: #15803d; }
.report-q-success.bad  { background: #fef2f2; color: #b91c1c; }

.report-q-text { margin: 0 0 14px; font-size: 15px; font-weight: 800; color: var(--panel-text); line-height: 1.5; }

.report-options { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.report-option { border: 1px solid var(--panel-border); border-radius: 8px; padding: 9px 12px; background: var(--panel-bg); }
.report-option.correct { border-color: #bbf7d0; background: #f0fdf4; }
.report-option-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; flex-wrap: wrap; }
.report-option-text { font-size: 13px; font-weight: 600; flex: 1; color: var(--panel-text); }
.correct-badge { background: #dcfce7; color: #15803d; padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.report-option-count { font-size: 11px; color: var(--panel-muted); font-weight: 700; white-space: nowrap; }
.report-option-bar { height: 5px; background: var(--panel-border); border-radius: 999px; overflow: hidden; margin-top: 2px; }
.report-option-fill { height: 100%; background: var(--panel-accent); border-radius: 999px; transition: width .4s ease; }
.report-option-fill.correct { background: #16a34a; }

.report-answers-detail summary { cursor: pointer; font-size: 12px; font-weight: 700; color: var(--panel-accent); padding: 5px 0; }

/* ── Quiz Modal (Video Sorusu) ── */
.quiz-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,10,40,.6);
  backdrop-filter: blur(4px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn .2s ease;
}

.quiz-modal {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,.25), 0 0 0 1px rgba(0,0,0,.05);
  width: 100%;
  max-width: 500px;
  padding: 28px;
  animation: modalIn .2s ease;
}

.quiz-modal-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.quiz-modal-icon  { font-size: 20px; }

.quiz-modal-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--panel-accent);
  text-transform: uppercase;
  letter-spacing: .6px;
}

.quiz-modal-question {
  font-size: 17px;
  font-weight: 800;
  color: var(--panel-text);
  line-height: 1.5;
  margin: 0 0 18px;
}

.quiz-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }

.quiz-option-btn {
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  border: 1.5px solid var(--panel-border);
  border-radius: 10px;
  background: var(--panel-bg);
  font-size: 14px;
  font-weight: 600;
  color: var(--panel-text);
  cursor: pointer;
  transition: border-color .14s, background .14s;
  font-family: inherit;
  line-height: 1.4;
}

.quiz-option-btn:hover:not(:disabled) {
  border-color: var(--panel-accent);
  background: rgba(91,43,217,.04);
}

.quiz-option-btn:disabled { cursor: default; }
.quiz-option-btn.correct { border-color: #16a34a; background: #f0fdf4; color: #15803d; }
.quiz-option-btn.wrong   { border-color: #dc2626; background: #fef2f2; color: #b91c1c; }

.quiz-result {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  border: 1px solid;
}
.quiz-result.correct { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.quiz-result.wrong   { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }

.quiz-continue-btn {
  width: 100%;
  padding: 13px;
  background: var(--panel-accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity .14s;
  font-family: inherit;
  box-shadow: 0 3px 10px rgba(91,43,217,.25);
}
.quiz-continue-btn:hover { opacity: .9; }

/* ── Animations ── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .admin-sidebar { display: none; }
  .admin-main-inner { padding: 16px; }
  .applications-grid { grid-template-columns: 1fr; }
  .admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .instructor-stats-row { gap: 8px; }
}

@media (max-width: 600px) {
  .admin-stat-grid { grid-template-columns: 1fr 1fr; }
  .curriculum-section-header { flex-wrap: wrap; }
  .lecture-main-row { flex-direction: column; align-items: flex-start; }
  .admin-form-row { flex-direction: column; }
  .admin-header-bar { padding: 0 16px; }
}