:root {
  --bg-main: #0b0f19;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-hover: rgba(26, 35, 54, 0.85);
  --bg-card-glass: rgba(15, 23, 42, 0.65);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --primary: #38bdf8;
  --primary-glow: rgba(56, 189, 248, 0.25);
  --accent-blue: #0284c7;
  --accent-purple: #818cf8;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px -5px rgba(56, 189, 248, 0.3);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(56, 189, 248, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(129, 140, 248, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.5) 0%, transparent 70%);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.app-layout {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  width: 100%;
}

/* ==================== Left Sidebar ==================== */
.app-sidebar {
  width: 280px;
  min-width: 280px;
  height: 100vh;
  position: sticky;
  top: 0;
  background: rgba(12, 17, 29, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 16px;
  z-index: 100;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px 16px 4px;
  border-bottom: 1px solid var(--border-subtle);
}

.brand-logo-badge {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: #fff;
  line-height: 1;
}

.logo-sub {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 2px;
}

.brand-details {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.brand-sub {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
}

/* Sidebar Navigation */
.sidebar-nav-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 0 10px;
  margin-bottom: 8px;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
}

.sidebar-link .link-icon {
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
}

.sidebar-link .link-text {
  flex: 1;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  transform: translateX(3px);
}

.sidebar-link.active {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.14), rgba(56, 189, 248, 0.04));
  color: var(--primary);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--primary);
}

.sidebar-badge {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  transition: var(--transition);
}

.sidebar-link.active .sidebar-badge {
  background: var(--primary);
  color: #0b0f19;
}

/* Sidebar Bottom: Student Profile & Sync Widget */
.sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.sidebar-student-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.sidebar-student-card .avatar-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  padding: 2px;
  flex-shrink: 0;
}

.sidebar-student-card .avatar-inner {
  width: 100%;
  height: 100%;
  background: #0f172a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  color: #38bdf8;
}

.sidebar-student-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sidebar-student-name {
  font-weight: 700;
  font-size: 12.5px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-student-sub {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sidebar Sync Card */
.sidebar-sync-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-sync-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-sync-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #10b981;
}

.sidebar-countdown {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-heading);
}

.btn-sidebar-scan {
  width: 100%;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition);
}

.btn-sidebar-scan:hover {
  background: linear-gradient(135deg, #0369a1, #0284c7);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
}

.btn-sidebar-scan.scanning .scan-icon {
  animation: spin 1s linear infinite;
}

/* ==================== Main Content Area ==================== */
.main-area {
  flex: 1;
  min-width: 0;
  max-width: calc(100% - 280px);
  padding: 28px 36px;
  display: flex;
  flex-direction: column;
}

/* Top Action Header */
.main-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.breadcrumb-title h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.breadcrumb-title p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Charts Grid & Cards */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
}

.chart-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

.chart-canvas-box {
  position: relative;
  height: 240px;
  width: 100%;
}

/* Student Profile Card (Legacy support) */
.student-header-profile {
  display: none;
  gap: 12px;
  background: var(--bg-card-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 6px 14px;
}

.scan-indicator-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 12px;
  padding: 4px 10px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseAnim 2s infinite;
}

@keyframes pulseAnim {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px #10b981; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.scan-label {
  font-size: 12px;
  font-weight: 600;
  color: #10b981;
}

.scan-countdown-box {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  padding: 0 4px;
}

.countdown-caption {
  font-size: 10px;
  color: var(--text-muted);
}

.countdown-val {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.btn-scan-now {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-scan-now:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
  background: linear-gradient(135deg, #0369a1, #0284c7);
}

.btn-scan-now:active {
  transform: translateY(0);
}

.btn-scan-now.scanning .scan-icon {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* ==================== Main Content ==================== */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px;
  width: 100%;
}

/* Urgent Banner */
.urgent-banner {
  background: linear-gradient(90deg, rgba(244, 63, 94, 0.18), rgba(245, 158, 11, 0.18));
  border: 1px solid rgba(244, 63, 94, 0.4);
  border-left: 5px solid #f43f5e;
  border-radius: var(--radius-md);
  padding: 12px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: #fecdd3;
  animation: slideDown 0.3s ease;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.12);
}

.urgent-banner:hover {
  background: linear-gradient(90deg, rgba(244, 63, 94, 0.28), rgba(245, 158, 11, 0.25));
  border-color: rgba(244, 63, 94, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(244, 63, 94, 0.22);
}

.urgent-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.urgent-click-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(244, 63, 94, 0.28);
  color: #fff;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 12px;
  border: 1px solid rgba(244, 63, 94, 0.5);
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.35);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: var(--transition);
}

.urgent-click-badge:hover {
  background: rgba(244, 63, 94, 0.5);
}

.btn-urgent-banner {
  background: rgba(244, 63, 94, 0.25);
  border: 1px solid rgba(244, 63, 94, 0.5);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-urgent-banner:hover {
  background: #f43f5e;
  color: #fff;
  border-color: #f43f5e;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.5);
}

.urgent-banner.hidden {
  display: none;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Metrics Row */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.card-accent-blue::before { background: var(--primary); }
.card-accent-amber::before { background: var(--accent-amber); }
.card-accent-emerald::before { background: var(--accent-emerald); }
.card-accent-purple::before { background: var(--accent-purple); }
.card-accent-rose::before { background: #f43f5e; }
.card-accent-cyan::before { background: #06b6d4; }
.card-accent-indigo::before { background: #6366f1; }
.text-rose { color: #fb7185; }
.text-cyan { color: #38bdf8; }
.text-indigo { color: #818cf8; }

.metric-icon-box {
  font-size: 24px;
  margin-bottom: 12px;
}

.metric-data {
  margin-bottom: 8px;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
  color: #fff;
}

.metric-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 4px;
}

.metric-trend {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.text-amber { color: var(--accent-amber); }
.text-emerald { color: var(--accent-emerald); }
.text-purple { color: var(--accent-purple); }
.text-cyan { color: var(--primary); }

/* Navigation Tabs */
.navigation-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
  padding-bottom: 4px;
  overflow-x: auto;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
  color: var(--primary);
  background: rgba(56, 189, 248, 0.08);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
  box-shadow: 0 0 10px var(--primary);
}

.badge {
  background: rgba(56, 189, 248, 0.2);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

.badge-purple {
  background: rgba(129, 140, 248, 0.2);
  color: var(--accent-purple);
}

/* Tab Panes */
.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Toolbar */
.section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.filters-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: var(--transition);
}

.filter-pill:hover {
  border-color: var(--border-hover);
  color: var(--text-main);
}

.filter-pill.active {
  background: var(--primary);
  color: #0b0f19;
  border-color: var(--primary);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.4);
}

.toolbar-info {
  font-size: 12px;
  color: var(--text-muted);
}

.filter-pill.pill-completed {
  border-color: rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}
.filter-pill.pill-completed:hover {
  border-color: #10b981;
}
.filter-pill.pill-completed.active {
  background: #10b981;
  color: #042f2e;
  border-color: #10b981;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
}

.filter-pill.pill-unassessed {
  border-color: rgba(129, 140, 248, 0.35);
  color: #a5b4fc;
}
.filter-pill.pill-unassessed:hover {
  border-color: #818cf8;
}
.filter-pill.pill-unassessed.active {
  background: #818cf8;
  color: #0f172a;
  border-color: #818cf8;
  box-shadow: 0 2px 10px rgba(129, 140, 248, 0.4);
}

.filter-pill.pill-urgent {
  border-color: rgba(245, 158, 11, 0.35);
  color: #fcd34d;
}
.filter-pill.pill-urgent:hover {
  border-color: #f59e0b;
}
.filter-pill.pill-urgent.active {
  background: #f59e0b;
  color: #451a03;
  border-color: #f59e0b;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}

/* Toolbar Controls Row (Search, Sort, Page Size) */
.controls-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
  margin-bottom: 22px;
  padding: 12px 18px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
}

.controls-left, .controls-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.control-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.control-item label {
  font-weight: 600;
  color: #94a3b8;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.toolbar-select {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: #f1f5f9;
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.toolbar-select:hover, .toolbar-select:focus {
  border-color: var(--primary);
  background: var(--bg-card-hover);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.toolbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  min-width: 280px;
  transition: var(--transition);
}

.toolbar-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.toolbar-search input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 13px;
  outline: none;
  width: 100%;
}

.toolbar-search input::placeholder {
  color: var(--text-muted);
}

/* Pagination Bar */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding: 16px 22px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
  gap: 14px;
  box-shadow: var(--shadow-card);
}

.pagination-info {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.pagination-info strong {
  color: #38bdf8;
  font-weight: 700;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pagination-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.pagination-btn:hover:not(:disabled):not(.active) {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.pagination-btn.active {
  background: var(--primary);
  color: #0b0f19;
  border-color: var(--primary);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.45);
}

.pagination-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.pagination-ellipsis {
  color: var(--text-muted);
  padding: 0 6px;
  font-weight: 700;
}

/* ==================== Assignments Grid ==================== */
.assignments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 20px;
}

.assignment-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
  user-select: none;
}

.assignment-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(56, 189, 248, 0.15);
}

.assignment-card:active {
  transform: translateY(-1px);
}

.assignment-card.urgent {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.05) 0%, rgba(18, 24, 38, 0.8) 100%);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.course-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.course-badge.tur {
  background: rgba(129, 140, 248, 0.18);
  color: #a5b4fc;
  border: 1px solid rgba(129, 140, 248, 0.3);
}

.course-badge.mat {
  background: rgba(56, 189, 248, 0.18);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.course-badge.fen {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.course-badge.ing {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.deadline-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.deadline-pill.urgent {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.deadline-pill.normal {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.assignment-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.teacher-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.teacher-avatar-mini {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
}

/* Teacher Note Highlight Callout */
.teacher-note-callout {
  background: rgba(56, 189, 248, 0.08);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 10px 14px;
  margin: 4px 0;
}

.teacher-note-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.teacher-note-content {
  font-size: 13px;
  color: #e2e8f0;
  font-weight: 500;
}

.dates-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12px;
}

.date-col {
  display: flex;
  flex-direction: column;
}

.date-label {
  font-size: 10px;
  color: var(--text-muted);
}

.date-val {
  font-weight: 600;
  color: var(--text-secondary);
}

.date-val.highlight {
  color: #f8fafc;
}

.progress-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
}

.progress-bar-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  border-radius: 3px;
  transition: width 0.6s ease;
}

/* ==================== Teacher Notes Feed ==================== */
.teacher-notes-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.notif-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.notif-card:hover {
  transform: translateX(4px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.notif-card.unread {
  border-left: 4px solid var(--accent-purple);
  background: linear-gradient(90deg, rgba(129, 140, 248, 0.06), var(--bg-card));
}

.notif-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.icon-box-grade { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.icon-box-deadline { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.icon-box-homework { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }

.notif-body {
  flex: 1;
}

.notif-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  gap: 10px;
}

.notif-category-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.notif-time {
  font-size: 12px;
  color: var(--text-muted);
}

.notif-message {
  font-size: 14px;
  color: #f1f5f9;
  line-height: 1.45;
}

.notif-teacher-tag {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

/* ==================== Development Report ==================== */
.report-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.report-hero-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.report-hero-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.report-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.report-main-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: #fff;
}

.report-timestamp {
  font-size: 13px;
  color: var(--text-muted);
}

.report-summary-text {
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.6;
  max-width: 900px;
}

.report-sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
}

.report-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.report-card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

/* Action Items List */
.action-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-item-card {
  background: rgba(0, 0, 0, 0.2);
  border-left: 3px solid var(--accent-amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 16px;
}

.action-item-card.critical {
  border-left-color: var(--accent-rose);
  background: rgba(244, 63, 94, 0.08);
}

.action-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.action-item-priority {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
}

.priority-critical { background: rgba(244, 63, 94, 0.25); color: #fda4af; }
.priority-high { background: rgba(245, 158, 11, 0.25); color: #fde68a; }

.action-item-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.action-item-desc {
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.action-item-recom {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

/* Teacher Matrix Table */
.teacher-matrix-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.teacher-eval-card {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.teacher-eval-name {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.teacher-eval-subject {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
}

.teacher-eval-msg {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ==================== 30-Minute Scanner Tab ==================== */
.scanner-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.scanner-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.scanner-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.scanner-desc {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 800px;
  margin-top: 6px;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.6);
}

.scanner-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.stat-caption {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin: 4px 0;
}

.stat-sub {
  font-size: 11px;
  color: var(--text-secondary);
}

.section-subtitle {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}

.scan-history-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.scan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.scan-table th {
  background: rgba(15, 23, 42, 0.9);
  padding: 12px 16px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.scan-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.scan-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.status-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.status-tag.success { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.status-tag.error { background: rgba(244, 63, 94, 0.2); color: #f43f5e; }

/* Loading State */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
  color: var(--text-secondary);
  grid-column: 1 / -1;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(56, 189, 248, 0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Responsive adjustments */
/* ==================== Modal Styles ==================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 7, 14, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none; /* Hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active,
.modal-backdrop:not(.hidden) {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.modal-backdrop.hidden {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.modal-dialog {
  background: linear-gradient(150deg, #131b2e 0%, #0d1322 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-xl);
  max-width: 680px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8), 0 0 35px rgba(56, 189, 248, 0.15);
  animation: modalScaleIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.5);
}

.modal-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: rgba(244, 63, 94, 0.2);
  border-color: rgba(244, 63, 94, 0.4);
  color: #fff;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.modal-teacher-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.modal-teacher-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  color: #0b0f19;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-teacher-info-name {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
}

.modal-teacher-info-role {
  font-size: 12px;
  color: var(--text-secondary);
}

.modal-note-box {
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 16px;
}

.modal-note-box.empty {
  border-left-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border-subtle);
}

.modal-note-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary);
  margin-bottom: 6px;
}

.modal-note-text {
  font-size: 14px;
  line-height: 1.6;
  color: #e2e8f0;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.modal-meta-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.modal-meta-caption {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.modal-meta-value {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: #f1f5f9;
}

.modal-meta-value.accent {
  color: var(--primary);
}

.modal-advice-box {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-left: 4px solid var(--accent-emerald);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.modal-advice-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent-emerald);
  margin-bottom: 6px;
}

.modal-advice-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: #cbd5e1;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.4);
  display: flex;
  justify-content: flex-end;
}

.btn-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 8px 18px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
}


/* ==================== Type Badges (Digital vs Written) ==================== */
.card-type-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.type-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.type-pill.digital {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.type-pill.written {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.4);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.2);
}


/* ==================== In-Page Master-Detail Layout ==================== */
.master-detail-layout {
  display: grid;
  grid-template-columns: minmax(380px, 1.15fr) minmax(380px, 1.25fr);
  gap: 24px;
  align-items: start;
  margin-top: 10px;
}

.master-list-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.master-detail-col {
  position: sticky;
  top: 24px;
}

.inpage-detail-card {
  background: linear-gradient(150deg, rgba(19, 27, 46, 0.95) 0%, rgba(13, 19, 34, 0.95) 100%);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow-card), 0 0 35px rgba(56, 189, 248, 0.08);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeInDetail 0.25s ease-out;
}

@keyframes fadeInDetail {
  from {
    opacity: 0.6;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.detail-card-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}

.detail-teacher-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.detail-teacher-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  color: #0b0f19;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.detail-teacher-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: #fff;
}

.detail-teacher-role {
  font-size: 12px;
  color: var(--text-secondary);
}

.detail-note-callout {
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.detail-note-callout.empty {
  border-left-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border-subtle);
}

.detail-note-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary);
  margin-bottom: 8px;
}

.detail-note-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: #e2e8f0;
}

.detail-guidance-box {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-left: 4px solid var(--accent-emerald);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.detail-guidance-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent-emerald);
  margin-bottom: 6px;
}

.detail-guidance-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: #cbd5e1;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.detail-meta-cell {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.detail-meta-caption {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.detail-meta-value {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: #f1f5f9;
}

.detail-meta-value.accent {
  color: var(--primary);
}

.detail-meta-value.success {
  color: var(--accent-emerald);
}

.detail-meta-value.urgent {
  color: var(--accent-rose);
}

/* Selected assignment card highlight */
.assignment-card.active-card {
  border-color: var(--primary) !important;
  background: rgba(56, 189, 248, 0.08) !important;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.22) !important;
  transform: translateX(4px);
}

.assignment-card {
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.assignment-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

/* Action button in detail card */
.btn-detail-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
  transition: var(--transition);
  cursor: pointer;
  width: 100%;
}

.btn-detail-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
}

@media (max-width: 1100px) {
  .master-detail-layout {
    grid-template-columns: 1fr;
  }
  .master-detail-col {
    position: static;
  }
}
.modal-dialog {
  background: linear-gradient(150deg, #131b2e 0%, #0d1322 100%);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 680px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8), 0 0 35px rgba(56, 189, 248, 0.12);
  animation: modalScaleIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-dialog-lg {
  max-width: 840px !important;
}

.modal-header-urgent {
  background: linear-gradient(90deg, rgba(244, 63, 94, 0.25), rgba(245, 158, 11, 0.18)) !important;
  border-bottom: 1px solid rgba(244, 63, 94, 0.35) !important;
}

.urgent-modal-badge {
  background: rgba(244, 63, 94, 0.25);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.5);
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Urgent Assignments Cards Inside Modal */
.urgent-cards-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.urgent-card-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(244, 63, 94, 0.35);
  border-left: 5px solid #f43f5e;
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.urgent-card-item:hover {
  border-color: rgba(244, 63, 94, 0.6);
  background: rgba(15, 23, 42, 0.85);
}

.urgent-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.urgent-card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.urgent-countdown-pill {
  background: rgba(244, 63, 94, 0.2);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.45);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.25);
}

.urgent-meta-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.urgent-meta-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.urgent-meta-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.urgent-meta-val {
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  margin-top: 2px;
}

.urgent-meta-val.highlight {
  color: #fda4af;
}

.btn-modal-action {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #0b0f19;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.btn-modal-action:hover {
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.45);
  transform: translateY(-1px);
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.4);
}

.modal-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: rgba(244, 63, 94, 0.2);
  color: #fda4af;
  border-color: rgba(244, 63, 94, 0.4);
  transform: rotate(90deg);
}

.modal-body {
  padding: 24px 26px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}

.modal-teacher-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.modal-teacher-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #0b0f19;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.modal-teacher-info-name {
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
}

.modal-teacher-info-role {
  font-size: 12px;
  color: var(--text-muted);
}

/* Modal Prominent Note Callout */
.modal-note-box {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(14, 165, 233, 0.05));
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.modal-note-box.empty {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-subtle);
  border-left: 4px solid var(--text-muted);
}

.modal-note-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin-bottom: 6px;
}

.modal-note-box.empty .modal-note-header {
  color: var(--text-muted);
}

.modal-note-text {
  font-size: 15px;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.5;
}

/* Grid of Meta Details */
.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.modal-meta-item {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.modal-meta-caption {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.modal-meta-value {
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
}

.modal-meta-value.accent {
  color: var(--primary);
}

/* Advice Box inside Modal */
.modal-advice-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.modal-advice-title {
  font-size: 12px;
  font-weight: 700;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.modal-advice-text {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.45;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.4);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.btn-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Card Click Hint */
.card-click-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -6px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  opacity: 0.85;
  transition: var(--transition);
}

.assignment-card:hover .card-click-hint {
  opacity: 1;
  transform: translateX(2px);
}

/* ==================== Navigation Tabs Bar ==================== */
.portal-nav-bar {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 28px;
  position: sticky;
  top: 84px;
  z-index: 90;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-container::-webkit-scrollbar {
  display: none;
}

.portal-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.portal-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.portal-nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(56, 189, 248, 0.06);
}

.nav-badge {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  transition: var(--transition);
}

.portal-nav-link.active .nav-badge {
  background: var(--primary);
  color: #0b0f19;
}

/* Page Header Title Section */
.page-title-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.page-title-box h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-title-box p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Status Pill in Cards */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-pill.completed {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-pill.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-pill.expired {
  background: rgba(244, 63, 94, 0.15);
  color: #f87171;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.status-pill.attended {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-pill.absent {
  background: rgba(244, 63, 94, 0.15);
  color: #f87171;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.status-pill.planned {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.status-pill.unassessed {
  background: rgba(148, 163, 184, 0.14);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Performance Info Callout Banner */
.performance-info-banner {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-left: 4px solid #6366f1;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.performance-info-banner .pib-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}

.performance-info-banner .pib-content {
  flex: 1;
}

.performance-info-banner .pib-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.performance-info-banner .pib-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0;
}

.performance-info-banner .pib-highlight {
  color: #38bdf8;
  font-weight: 600;
}

/* Etut Empty State Box */
.etut-empty-card {
  background: var(--bg-card);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  max-width: 650px;
  margin: 40px auto;
  box-shadow: var(--shadow-card);
}

.etut-empty-icon {
  font-size: 54px;
  margin-bottom: 16px;
}

.etut-empty-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.etut-empty-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.etut-info-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--primary);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

/* ==================== Responsive Breakpoints ==================== */
@media (max-width: 1024px) {
  .app-sidebar {
    width: 240px;
    min-width: 240px;
    padding: 16px 12px;
  }
  .main-area {
    max-width: calc(100% - 240px);
    padding: 20px 16px;
  }
  .charts-grid {
    grid-template-columns: 1fr;
  }
  .master-detail-layout {
    grid-template-columns: 1fr;
  }
  .master-detail-col {
    position: static;
  }
}

@media (max-width: 768px) {
  /* Layout: Stack full width */
  .app-layout {
    flex-direction: column;
    min-height: 100vh;
  }

  /* Compact Native-Feel Mobile Header & Navigation */
  .app-sidebar {
    width: 100%;
    min-width: 100%;
    height: auto;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 15, 25, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 10px 12px;
    gap: 8px;
  }

  .sidebar-top {
    gap: 8px;
  }

  .sidebar-brand {
    padding: 0 4px;
    margin-bottom: 4px;
  }

  .brand-logo-badge {
    width: 38px;
    height: 38px;
  }

  .brand-title {
    font-size: 14px;
  }

  .brand-sub {
    font-size: 10px;
  }

  .sidebar-student-card {
    display: none; /* Student info already displayed on main header */
  }

  /* Horizontal Swipeable Nav Menu for Mobile */
  .sidebar-menu {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
    padding: 2px 2px 4px 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar-menu::-webkit-scrollbar {
    display: none;
  }

  .sidebar-link {
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 12.5px;
    border-radius: 20px;
    flex-shrink: 0;
    gap: 6px;
  }

  .sidebar-link .link-icon {
    font-size: 15px;
  }

  .sidebar-bottom {
    margin-top: 0;
    gap: 0;
  }

  /* Compact one-row sync bar: status + countdown + scan button */
  .sidebar-sync-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 10px;
  }

  .sidebar-sync-header {
    margin-bottom: 0;
    gap: 8px;
  }

  .btn-sidebar-scan {
    width: auto;
    padding: 6px 12px;
    flex-shrink: 0;
  }

  /* Main Area */
  .main-area {
    max-width: 100%;
    width: 100%;
    padding: 14px 12px 60px 12px;
  }

  /* Top Bar */
  .main-top-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 16px;
  }

  .breadcrumb-title h2 {
    font-size: 19px;
  }

  .breadcrumb-title p {
    font-size: 12px;
  }

  .header-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
  }

  .btn-scan-now {
    flex: 1;
    justify-content: center;
    padding: 9px 12px;
    font-size: 12px;
  }

  /* Urgent Banner */
  .urgent-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
  }

  .urgent-banner-left {
    gap: 8px;
  }

  .urgent-banner-text {
    font-size: 13px;
    line-height: 1.45;
  }

  .btn-urgent-banner {
    width: 100%;
    justify-content: center;
    padding: 10px 12px;
    font-size: 12.5px;
  }

  /* 2-Column Metrics Grid on Mobile */
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 18px;
  }

  .metric-card {
    padding: 12px 10px;
  }

  .metric-icon-box {
    font-size: 20px;
    margin-bottom: 6px;
  }

  .metric-value {
    font-size: 22px;
  }

  .metric-label {
    font-size: 11px;
  }

  /* Charts */
  .charts-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 20px;
  }

  .chart-card {
    padding: 14px 12px;
  }

  .chart-canvas-box {
    height: 220px;
  }

  /* Toolbar & Filter Pills */
  .section-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 16px;
  }

  .filters-group {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
  }

  .filters-group::-webkit-scrollbar {
    display: none;
  }

  .filter-pill {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 7px 12px;
    font-size: 12px;
  }

  .toolbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .select-styled {
    width: 100%;
    padding: 8px 10px;
    font-size: 12.5px;
  }

  .search-box {
    width: 100%;
  }

  .search-box input {
    font-size: 13.5px;
    padding: 9px 12px;
  }

  /* Cards Grid */
  .assignments-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .assignment-card {
    padding: 16px 14px;
  }

  .assignment-title {
    font-size: 16px;
    line-height: 1.35;
  }

  /* Student Status Control on Mobile */
  .student-status-control {
    padding: 8px 10px;
    margin: 8px 0 10px 0;
  }

  .student-status-select {
    font-size: 13.5px;
    padding: 8px 10px;
    height: 38px;
  }

  /* Modal Mobile Experience (Bottom Sheet style) */
  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }

  .modal-dialog,
  .modal-dialog-lg {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 90vh !important;
    border-radius: 20px 20px 0 0 !important;
    margin: 0 !important;
    border-bottom: none !important;
  }

  .modal-header {
    padding: 14px 16px;
  }

  .modal-body {
    padding: 16px 14px;
    gap: 14px;
  }

  .modal-title {
    font-size: 18px;
  }

  .modal-meta-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .urgent-meta-summary {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .modal-footer {
    flex-direction: column-reverse;
    gap: 8px;
    padding: 12px 14px;
  }

  .modal-footer button {
    width: 100%;
    justify-content: center;
    padding: 12px 14px;
    font-size: 13.5px;
  }

  /* Master Detail on Separate Pages */
  .master-detail-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .master-detail-col {
    position: static;
    width: 100%;
  }

  .inpage-detail-card {
    padding: 16px 14px;
  }

  .detail-title {
    font-size: 18px;
  }

  .detail-meta-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Pagination */
  .pagination-bar {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
    padding: 12px 6px;
  }

  .pagination-controls {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }

  .page-num-btn {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
}

@media (max-width: 400px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .toolbar-actions {
    grid-template-columns: 1fr;
  }

  .urgent-meta-summary {
    grid-template-columns: 1fr;
  }
}

/* ==================== Student Homework Status Control ==================== */
.student-status-control {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin: 10px 0 14px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: var(--transition);
}

.student-status-control:hover {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.15);
}

.student-status-control.status-done_submitted {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
}

.student-status-control.status-done_not_submitted {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.08);
}

.student-status-control.status-not_done {
  border-color: rgba(244, 63, 94, 0.4);
  background: rgba(244, 63, 94, 0.08);
}

.student-status-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.student-status-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.student-status-badge {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
}

.student-status-badge.done_submitted {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.student-status-badge.done_not_submitted {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.student-status-badge.not_done {
  background: rgba(244, 63, 94, 0.2);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.4);
}

.student-status-badge.unselected {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px dashed rgba(255, 255, 255, 0.15);
}

.student-status-select {
  width: 100%;
  background: rgba(4, 7, 14, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 10px;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.student-status-select:focus,
.student-status-select:hover {
  border-color: var(--primary);
  background: rgba(4, 7, 14, 0.95);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.student-status-select option {
  background: #0f172a;
  color: #fff;
  padding: 8px;
}




/* ==================== Mobil Ödev Detay Modalı (Bottom Sheet) ==================== */
/* Masaüstünde sarmalayıcı yerleşimi etkilemez; başlık gizlidir */
.sheet-panel { display: contents; }
.sheet-header { display: none; }

@media (max-width: 1100px) {
  /* Detay paneli artık listenin altında durmaz; karta dokununca üstte açılır */
  .master-detail-col { display: none; }

  .master-detail-col.sheet-open {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 2000;
    width: 100%;
    align-items: flex-end;
    justify-content: center;
    background: rgba(3, 6, 15, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: sheetFadeIn 0.2s ease-out;
  }

  .master-detail-col.sheet-open .sheet-panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 720px;
    max-height: 92vh;
    max-height: 92dvh;
    background: linear-gradient(150deg, #131b2e 0%, #0d1322 100%);
    border: 1px solid var(--border-hover);
    border-bottom: none;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.55);
    animation: sheetSlideUp 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
  }

  .master-detail-col.sheet-open .sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 18px 14px 10px 18px;
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
  }

  .sheet-handle {
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 42px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.22);
  }

  .sheet-heading {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.2px;
  }

  .sheet-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.15s ease;
  }
  .sheet-close:hover,
  .sheet-close:active {
    background: rgba(244, 63, 94, 0.2);
    transform: scale(0.95);
  }

  .master-detail-col.sheet-open .inpage-detail-card {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
    padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
    animation: none;
  }

}

@keyframes sheetFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes sheetSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
/* ==================== Veli Mesajları: Tek Satır & Açılır Modal Stilleri ==================== */
.messages-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

/* Mesaj Başlık Çubuğu (Masaüstü için sütun başlıkları) */
.messages-list-header {
  display: grid;
  grid-template-columns: 200px 1fr 140px 120px 180px;
  align-items: center;
  gap: 16px;
  padding: 10px 18px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

/* Tek Satır Mesaj Öğesi */
.message-row {
  display: grid;
  grid-template-columns: 200px 1fr 140px 120px 180px;
  align-items: center;
  gap: 16px;
  background: linear-gradient(150deg, rgba(19, 27, 46, 0.8) 0%, rgba(13, 19, 34, 0.85) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.message-row:hover {
  transform: translateY(-2px);
  background: linear-gradient(150deg, rgba(24, 34, 58, 0.95) 0%, rgba(16, 24, 43, 0.98) 100%);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(56, 189, 248, 0.12);
}

.message-row:active {
  transform: translateY(0);
}

/* Gönderen Sütunu */
.msg-col-sender {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.msg-row-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(129, 140, 248, 0.22));
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.msg-row-sender-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.msg-row-sender-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.msg-row-sender-role {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* Tek Cümlelik İçerik / Talep Sütunu */
.msg-col-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.msg-row-summary-text {
  font-size: 13.5px;
  font-weight: 600;
  color: #e0f2fe;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.msg-row-mobile-meta {
  display: none;
}

/* Kategori ve Ek Sütunu */
.msg-col-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.msg-att-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 3px 6px;
  border-radius: 4px;
  color: #cbd5e1;
}

/* Tarih Sütunu */
.msg-col-date {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Aksiyon Sütunu */
.msg-col-action {
  display: flex;
  justify-content: flex-end;
}

.btn-inspect-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 5px 10px;
  border-radius: 6px;
  transition: var(--transition);
  white-space: nowrap;
}

.message-row:hover .btn-inspect-row {
  background: var(--primary);
  color: #0b0f19;
  border-color: var(--primary);
}

/* Category Badge Colors */
.cat-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.cat-badge.cat-akademik { background: rgba(56, 189, 248, 0.18); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.cat-badge.cat-etkinlik { background: rgba(168, 85, 247, 0.18); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.cat-badge.cat-guvenlik { background: rgba(244, 63, 94, 0.18); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.3); }
.cat-badge.cat-beslenme { background: rgba(16, 185, 129, 0.18); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.cat-badge.cat-sosyal   { background: rgba(245, 158, 11, 0.18); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.cat-badge.cat-genel    { background: rgba(148, 163, 184, 0.18); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.3); }

/* ==================== Açılır Modal Stilleri (Message Popup Modal) ==================== */
.message-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(3, 7, 18, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.message-modal-overlay.open {
  display: flex;
  animation: modalFadeIn 0.22s ease-out;
}

.message-modal-card {
  width: 100%;
  max-width: 780px;
  max-height: 88vh;
  max-height: 88dvh;
  background: linear-gradient(150deg, #131b2e 0%, #0d1322 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(56, 189, 248, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPopUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.message-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  flex-shrink: 0;
}

.message-modal-title-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.message-modal-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin: 0;
}

.message-modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #94a3b8;
  font-size: 16px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}

.message-modal-close:hover {
  background: rgba(244, 63, 94, 0.2);
  color: #fb7185;
  border-color: rgba(244, 63, 94, 0.4);
}

/* Modal Meta Bar */
.message-modal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.18);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.modal-sender-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(129, 140, 248, 0.25));
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-sender-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.modal-sender-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.modal-date-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

/* Modal Body */
.message-modal-body {
  padding: 22px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}

/* Vurgulu Tek Cümlelik Talep Özeti */
.modal-summary-box {
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.22) 0%, rgba(2, 132, 199, 0.16) 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-summary-header {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-summary-content {
  font-size: 15px;
  font-weight: 600;
  color: #f0f9ff;
  line-height: 1.5;
}

/* Ekli Belgeler / Dosyalar */
.modal-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-attachments-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: #e2e8f0;
  transition: var(--transition);
}

.modal-attachment-item:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.modal-attachment-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.modal-attachment-name {
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-attachment-size {
  font-size: 11px;
  color: var(--text-muted);
}

.modal-attachment-btn {
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  padding: 4px 10px;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Orijinal Mesaj Tam Metni */
.modal-fulltext-content {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Modal Footer */
.message-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 24px;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.modal-footer-note {
  font-size: 11.5px;
  color: var(--text-muted);
}

.btn-modal-dismiss {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-modal-dismiss:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Modal Animasyonları */
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalPopUp {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ==================== Öğretmene Doğrudan Cevap Paneli ==================== */
.modal-reply-section {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.08) 0%, rgba(15, 23, 42, 0.45) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modal-reply-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-reply-title-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.reply-icon {
  font-size: 22px;
  line-height: 1;
  padding: 8px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.modal-reply-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #f0fdf4;
  margin: 0;
}

.modal-reply-desc {
  font-size: 12px;
  color: #94a3b8;
  margin: 2px 0 0;
  line-height: 1.4;
}

.reply-recipient-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.reply-recipient-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}

/* Geçmiş Gönderilen Cevaplar */
.modal-sent-replies {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 12px 14px;
}

.sent-replies-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.sent-reply-card {
  background: rgba(16, 185, 129, 0.08);
  border-left: 3px solid #10b981;
  border-radius: 6px;
  padding: 10px 14px;
}

.sent-reply-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 11.5px;
}

.sent-reply-author {
  font-weight: 700;
  color: #a7f3d0;
}

.sent-reply-status {
  color: #34d399;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.sent-reply-text {
  font-size: 13px;
  color: #e2e8f0;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* Cevap Formu Stilleri */
.reply-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reply-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reply-form-label {
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.reply-input,
.reply-textarea {
  width: 100%;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  color: #f8fafc;
  font-family: inherit;
  font-size: 13.5px;
  padding: 10px 14px;
  transition: var(--transition);
  outline: none;
}

.reply-input:focus,
.reply-textarea:focus {
  border-color: #34d399;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  background: rgba(15, 23, 42, 0.95);
}

.reply-textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}

.reply-form-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
  color: #64748b;
  margin-top: 4px;
}

.reply-security-note {
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Hızlı Şablon Butonları */
.quick-templates-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.quick-templates-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
}

.quick-templates-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quick-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.quick-chip:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
  transform: translateY(-1px);
}

/* Geri Bildirim Banner'ı */
.reply-feedback-banner {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  animation: modalFadeIn 0.2s ease-out;
}

.reply-feedback-banner.success {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.reply-feedback-banner.error {
  background: rgba(244, 63, 94, 0.18);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fda4af;
}

.reply-feedback-banner.loading {
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Aksiyon Butonları */
.reply-actions-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.btn-clear-reply {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-clear-reply:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn-send-reply {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: var(--transition);
}

.btn-send-reply:hover:not(:disabled) {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

.btn-send-reply:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Liste Satırı Hızlı Cevap Butonu */
.msg-col-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.btn-reply-row {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-reply-row:hover {
  background: rgba(16, 185, 129, 0.28);
  border-color: rgba(16, 185, 129, 0.55);
  color: #6ee7b7;
  transform: translateY(-1px);
}

.btn-inspect-row {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-inspect-row:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: rgba(56, 189, 248, 0.5);
  color: #7dd3fc;
}

.msg-replied-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* ==================== Mobil Uyum (<= 860px) ==================== */
@media (max-width: 860px) {
  .messages-list-header {
    display: none;
  }

  .message-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px 16px;
  }

  .msg-col-sender {
    justify-content: space-between;
  }

  .msg-col-meta,
  .msg-col-date,
  .msg-col-action {
    display: none;
  }

  .msg-row-mobile-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
  }

  .msg-row-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: auto;
  }

  .message-modal-card {
    max-height: 94vh;
    max-height: 94dvh;
    border-radius: 16px;
  }

  .message-modal-header {
    padding: 16px 18px 12px;
  }

  .message-modal-meta {
    padding: 10px 18px;
  }

  .message-modal-body {
    padding: 16px 18px;
  }
}

/* ==================== Etüt Detay & Katılımcı Öğrenci Modal ==================== */
.assignment-card.clickable-etut {
  cursor: pointer;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.assignment-card.clickable-etut:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.45), 0 0 15px rgba(56, 189, 248, 0.15);
}

.etut-view-btn-row {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.etut-students-count-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.btn-open-etut-detail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.assignment-card.clickable-etut:hover .btn-open-etut-detail {
  background: #38bdf8;
  color: #0f172a;
}

/* Modal Overlay & Card */
.etut-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  width: 100dvw;
  height: 100dvh;
  background: rgba(8, 12, 22, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: modalFadeIn 0.22s ease-out forwards;
}

.etut-modal-card {
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  max-height: 90dvh;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75), 0 0 35px rgba(56, 189, 248, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPopUp 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.etut-modal-header {
  padding: 20px 24px 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.etut-modal-header-left {
  flex: 1;
}

.etut-modal-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.etut-modal-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 4px;
}

.etut-modal-topic {
  font-size: 13px;
  color: #38bdf8;
  font-weight: 500;
}

.etut-modal-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.etut-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.etut-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Selim Çınar Simsar Vurgulu Durum Kutusu */
.etut-selim-banner {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(99, 102, 241, 0.1) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.etut-selim-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.etut-selim-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.etut-selim-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.etut-selim-sub {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

.etut-selim-status-badge {
  text-align: right;
}

.etut-selim-status-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.etut-selim-status-val {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
}

/* Katılımcı Öğrenci Tablosu */
.etut-students-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.etut-students-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.etut-students-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.etut-students-table-wrap {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  max-height: 380px;
  overflow-y: auto;
}

.etut-students-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.etut-students-table th {
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 2;
}

.etut-students-table td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
}

.etut-students-table tr:last-child td {
  border-bottom: none;
}

.etut-students-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Target student row styling */
.etut-students-table tr.student-row-target td {
  background: rgba(56, 189, 248, 0.12) !important;
  font-weight: 700;
  color: #fff;
  border-top: 1px solid rgba(56, 189, 248, 0.3);
  border-bottom: 1px solid rgba(56, 189, 248, 0.3);
}

.target-student-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  margin-left: 8px;
}

/* Status pills */
.att-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.att-pill-attended {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.att-pill-absent {
  background: rgba(244, 63, 94, 0.18);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.att-pill-late {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.att-pill-none {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.att-pill-planned {
  background: rgba(99, 102, 241, 0.18);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.etut-modal-footer {
  padding: 14px 24px;
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==================== Pagination Controls ==================== */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 18px;
  background: rgba(18, 24, 38, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.pagination-info {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pagination-info strong {
  color: var(--primary);
  font-weight: 700;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.pagination-btn:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--primary);
  transform: translateY(-1px);
}

.pagination-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 4px;
}

.page-num-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.page-num-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: var(--border-hover);
}

.page-num-btn.active {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
  font-weight: 700;
}

@media (max-width: 768px) {
  .pagination-bar {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    text-align: center;
  }
  .pagination-info {
    justify-content: center;
  }
  .pagination-controls {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ==================== Scan History New Items Badge & Modal ==================== */
.btn-scan-new-items {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.35), rgba(37, 99, 235, 0.45));
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #38bdf8;
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
  user-select: none;
}

.btn-scan-new-items:hover {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.6), rgba(37, 99, 235, 0.7));
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

.badge-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: badgePulse 1.8s infinite;
}

@keyframes badgePulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.badge-open-icon {
  font-size: 11px;
  opacity: 0.85;
}

.scan-zero-pill {
  display: inline-block;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  padding: 2px 6px;
}

.new-items-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.new-item-card {
  background: rgba(18, 24, 38, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition);
}

.new-item-card:hover {
  background: rgba(26, 35, 54, 0.95);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.new-item-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.new-item-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.new-item-type-badge.written {
  background: rgba(129, 140, 248, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(129, 140, 248, 0.35);
}

.new-item-type-badge.digital {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.new-item-type-badge.message {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.new-item-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin: 0;
}

.new-item-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 16px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.new-item-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.new-item-meta-label {
  color: var(--text-muted);
}

.new-item-meta-value {
  color: var(--text-main);
  font-weight: 600;
}

.new-item-action-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.new-item-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.5);
  color: #ffffff;
}

/* ==================== View Mode Toggle (Cards vs Table) ==================== */
.view-mode-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 3px;
}

.view-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.view-mode-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.view-mode-btn.active {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.35), rgba(37, 99, 235, 0.35));
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

/* ==================== Student Filter Pills ==================== */
.filter-pills-student {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.filter-pills-student .filter-pill.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(14, 165, 233, 0.25));
  border-color: #10b981;
  color: #34d399;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

/* ==================== Full Table / List View ==================== */
.table-view-section {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.95) 0%, rgba(10, 15, 30, 0.95) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow-card);
  margin-top: 10px;
  backdrop-filter: blur(16px);
  animation: fadeInDetail 0.25s ease-out;
}

.table-responsive-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Course Badge Styles for Cards, Lists and Tables */
.course-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
  line-height: normal;
  border: 1px solid transparent;
}

.course-badge.badge-mat, .course-badge.mat {
  background: rgba(56, 189, 248, 0.16);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
}

.course-badge.badge-tur, .course-badge.tur {
  background: rgba(129, 140, 248, 0.16);
  color: #a5b4fc;
  border-color: rgba(129, 140, 248, 0.35);
}

.course-badge.badge-fen, .course-badge.fen {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
}

.course-badge.badge-sos, .course-badge.sos {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.35);
}

.course-badge.badge-ing, .course-badge.ing {
  background: rgba(244, 63, 94, 0.16);
  color: #fb7185;
  border-color: rgba(244, 63, 94, 0.35);
}

.course-badge.badge-din, .course-badge.din {
  background: rgba(20, 184, 166, 0.16);
  color: #2dd4bf;
  border-color: rgba(20, 184, 166, 0.35);
}

.course-badge.badge-alm, .course-badge.alm {
  background: rgba(168, 85, 247, 0.16);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.35);
}

.course-badge.badge-genel, .course-badge.genel {
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.35);
}

.mba-data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  text-align: left;
}

.mba-data-table thead th {
  background: #0f172a;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 13px 16px;
  border-bottom: 2px solid rgba(56, 189, 248, 0.25);
  white-space: nowrap;
  vertical-align: middle;
}

.mba-data-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.mba-data-table tbody tr {
  background: rgba(15, 23, 42, 0.45);
  transition: background 0.15s ease;
}

.mba-data-table tbody tr:nth-child(even) {
  background: rgba(30, 41, 59, 0.25);
}

.mba-data-table tbody tr:hover {
  background: rgba(56, 189, 248, 0.09);
}

.mba-data-table tbody tr.row-urgent {
  border-left: 3px solid #f59e0b;
}

.mba-data-table .col-num {
  text-align: center;
  color: #64748b;
  font-weight: 700;
  font-size: 13px;
  width: 40px;
}

.mba-data-table .col-course {
  text-align: center;
  width: 140px;
  white-space: nowrap;
}

.mba-data-table .col-title {
  min-width: 220px;
}

.mba-data-table .table-title-main {
  font-weight: 700;
  color: #f1f5f9;
  cursor: pointer;
  transition: color 0.15s ease;
  line-height: 1.4;
  font-size: 13.5px;
}

.mba-data-table .table-title-main:hover {
  color: #38bdf8;
  text-decoration: underline;
}

.mba-data-table .table-teacher {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.mba-data-table .col-due {
  width: 165px;
  white-space: nowrap;
}

.mba-data-table .table-date {
  font-weight: 700;
  color: var(--text-main);
  font-size: 12.5px;
  white-space: nowrap;
}

.mba-data-table .table-date-sub {
  font-size: 11.5px;
  margin-top: 3px;
  font-weight: 600;
}

.mba-data-table .table-date-sub.urgent {
  color: #f59e0b;
}

.mba-data-table .table-date-sub.expired {
  color: #94a3b8;
}

.mba-data-table .table-date-sub.success {
  color: #10b981;
}

.mba-data-table .table-date-sub.planned {
  color: #38bdf8;
}

.mba-data-table .col-student-status {
  width: 215px;
}

.student-status-table-cell {
  position: relative;
  min-width: 195px;
  max-width: 220px;
}

.student-status-table-select {
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  border: 1px solid var(--border-subtle);
  background: #1e293b;
  color: #f1f5f9;
  transition: all 0.2s ease;
  white-space: nowrap;
  line-height: normal;
}

.student-status-table-select.status-done_submitted {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.5);
  color: #34d399;
}

.student-status-table-select.status-done_not_submitted {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}

.student-status-table-select.status-not_done {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.5);
  color: #f87171;
}

.student-status-table-select.status-none {
  background: rgba(30, 41, 59, 0.7);
  border-color: var(--border-subtle);
  color: #94a3b8;
}

.mba-data-table .col-teacher-eval {
  width: 225px;
  white-space: nowrap;
}

.table-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.table-badge.eval-completed {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.table-badge.eval-pending {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

.table-badge.eval-urgent {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}

.table-badge.eval-expired {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #cbd5e1;
}

.mba-data-table .col-action {
  width: 100px;
  text-align: center;
  white-space: nowrap;
}

.btn-table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 14px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-sm);
  color: #38bdf8;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  min-width: 82px;
  transition: all 0.2s ease;
  line-height: normal;
}

.btn-table-action:hover {
  background: rgba(56, 189, 248, 0.25);
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}

/* ==================== Table View Modal ==================== */
.mba-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mba-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.mba-modal-dialog {
  background: linear-gradient(150deg, #131b2e 0%, #0d1322 100%);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(56, 189, 248, 0.15);
  animation: modalScaleIn 0.25s ease-out;
  padding: 26px;
  position: relative;
}

@keyframes modalScaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.mba-modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mba-modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.4);
  border-color: #ef4444;
  transform: rotate(90deg);
}

/* ========================================================
   SEBIT VCLOUD PROOF SCREENSHOTS & LIGHTBOX STYLES
   ======================================================== */

.proof-card-preview {
  margin-top: 10px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.proof-card-preview:hover {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.proof-card-preview.is-not-done {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.05);
}

.proof-card-preview.is-not-done:hover {
  border-color: rgba(239, 68, 68, 0.7);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.2);
}

.proof-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.proof-card-header .proof-tag {
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 5px;
}

.proof-card-preview.is-not-done .proof-card-header .proof-tag {
  color: #f87171;
}

.proof-card-header .proof-zoom-hint {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 3px;
}

.proof-card-preview:hover .proof-zoom-hint {
  color: #38bdf8;
}

.proof-card-img-wrapper {
  background: #ffffff;
  border-radius: 4px;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  max-height: 48px;
}

.proof-card-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Detail Panel & Modal Proof Container */
.detail-proof-box {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(10, 15, 29, 0.98));
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 18px;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.detail-proof-box.is-not-done {
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.12);
}

.detail-proof-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-proof-title-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-proof-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-proof-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn-zoom-proof {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-zoom-proof:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
}

.detail-proof-img-frame {
  background: #ffffff;
  border-radius: 6px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
}

.detail-proof-img-frame:hover {
  border-color: #38bdf8;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.25);
}

.detail-proof-img {
  max-width: 100%;
  height: auto;
  display: block;
}

.detail-proof-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  backdrop-filter: blur(2px);
}

.detail-proof-img-frame:hover .detail-proof-overlay {
  opacity: 1;
}

.detail-proof-overlay span {
  background: #0f172a;
  color: #38bdf8;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.detail-proof-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: var(--text-secondary);
}

.detail-proof-meta-strip span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-tag-proof {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
}

.badge-tag-proof.red {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.badge-tag-proof.green {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-tag-proof.gray {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Table View Proof Trigger */
.table-proof-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
  transition: all 0.2s ease;
}

.table-proof-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #ffffff;
}

.table-proof-btn.is-not-done {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.table-proof-btn.is-not-done:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ffffff;
}

/* ========================================================
   SINAV RAPORLARI VE EKSİKLER STYLES (PREMIUM DARK / GLASS)
   ======================================================== */

.exam-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.exam-select-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(18, 24, 38, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px 14px;
}

.select-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.exam-dropdown {
  background: transparent;
  color: var(--text-main);
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  padding: 4px;
}

.exam-dropdown option {
  background: #111827;
  color: #f8fafc;
}

/* KPI GRID */
.exam-kpis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.exam-kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.exam-kpi-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.kpi-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kpi-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}

.pill-success {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.pill-purple {
  background: rgba(129, 140, 248, 0.15);
  color: #818cf8;
  border: 1px solid rgba(129, 140, 248, 0.3);
}

.pill-emerald {
  background: rgba(5, 150, 105, 0.2);
  color: #34d399;
  border: 1px solid rgba(5, 150, 105, 0.4);
}

.pill-blue {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.kpi-main {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.kpi-value {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.kpi-max {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
}

.progress-bar-wrap {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #10b981);
  border-radius: 999px;
  transition: width 1s ease-in-out;
}

.kpi-sub-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* RANKS GRID */
.ranks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.rank-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 8px 6px;
  text-align: center;
}

.rank-badge {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 4px;
}

.rank-num {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #818cf8;
}

.rank-num small {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* DISTRIBUTION BARS */
.distribution-bars {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.dist-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
}

.dist-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.bg-emerald { background-color: #10b981; }
.bg-rose { background-color: #f43f5e; }
.bg-slate { background-color: #64748b; }

.sub-alert-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* INSIGHT BANNER */
.exam-insight-banner {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.insight-icon-col {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.insight-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 0.4rem;
}

.insight-desc {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.6;
}

/* DEFICITS SECTION */
.deficits-section {
  margin-bottom: 3rem;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.section-tag-badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #38bdf8;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.deficits-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.filter-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
}

/* DEFICIT CARDS */
.deficit-cards-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.deficit-card {
  background: var(--bg-card);
  border: 1px solid rgba(244, 63, 94, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  position: relative;
  transition: var(--transition);
}

.deficit-card:hover {
  border-color: rgba(244, 63, 94, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(244, 63, 94, 0.08);
}

.deficit-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.deficit-course-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.course-emoji {
  font-size: 1.35rem;
}

.course-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.q-order-badge {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.3);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.deficit-answers-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 6px 12px;
}

.ans-box {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
}

.ans-student .ans-letter {
  color: #f43f5e;
  font-size: 1.1rem;
}

.ans-correct .ans-letter {
  color: #10b981;
  font-size: 1.1rem;
}

.ans-arrow {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.deficit-path-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.deficit-objective-box {
  background: rgba(56, 189, 248, 0.05);
  border-left: 3px solid #38bdf8;
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1.25rem;
}

.obj-header {
  font-size: 0.75rem;
  font-weight: 700;
  color: #38bdf8;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.obj-text {
  font-size: 0.92rem;
  color: #f1f5f9;
  font-weight: 600;
}

.deficit-analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.analysis-box {
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.reason-box {
  background: rgba(244, 63, 94, 0.04);
  border-color: rgba(244, 63, 94, 0.2);
}

.action-box {
  background: rgba(16, 185, 129, 0.04);
  border-color: rgba(16, 185, 129, 0.2);
}

.analysis-tag {
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.analysis-text {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.deficit-resources-wrap {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.resources-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.resources-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.resource-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}

.res-type-pill {
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(129, 140, 248, 0.2);
  color: #818cf8;
  padding: 2px 6px;
  border-radius: 4px;
}

.res-title {
  color: #e2e8f0;
  font-weight: 600;
}

.deficit-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-card-qview {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-card-qview:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #ffffff;
}

.q-source-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* COURSES CARDS GRID (3x2 Simetrik Grid) */
.courses-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

@media (max-width: 1100px) {
  .courses-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .courses-cards-grid {
    grid-template-columns: 1fr;
  }
}

.course-perf-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.course-perf-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.course-perf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.course-name-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.course-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.course-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.course-card-qcount {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.course-net-badge {
  text-align: right;
}

.net-score {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #38bdf8;
  display: block;
  line-height: 1;
}

.net-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 700;
}

.course-perf-stats {
  display: flex;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 1rem;
}

.mini-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
}

.course-comparison-box {
  background: rgba(15, 23, 42, 0.4);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 1rem;
}

.comp-label-row, .comp-diff-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.comp-label-row {
  margin-bottom: 4px;
  color: var(--text-secondary);
}

.comp-diff-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.diff-positive {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.diff-negative {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
}

.course-progress-wrap {
  margin-top: 0.5rem;
}

.progress-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.course-bar-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.course-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  border-radius: 999px;
}

/* QUESTIONS MATRIX */
.questions-matrix-section {
  margin-bottom: 3rem;
}

.matrix-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.matrix-filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.matrix-filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.matrix-filter-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
}

.matrix-grid-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.matrix-q-card {
  background: rgba(18, 24, 38, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 6px;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  user-select: none;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 64px;
}

.matrix-q-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.matrix-q-card.q-correct {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.05);
}

.matrix-q-card.q-correct:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
}

.matrix-q-card.q-wrong {
  border-color: rgba(244, 63, 94, 0.6);
  background: rgba(244, 63, 94, 0.12);
}

.matrix-q-card.q-wrong:hover {
  background: rgba(244, 63, 94, 0.25);
  border-color: #f43f5e;
}

.matrix-q-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 2px;
  pointer-events: none;
}

.matrix-q-answers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  pointer-events: none;
}

.matrix-q-user {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  pointer-events: none;
}

.matrix-q-card.q-correct .matrix-q-status {
  color: #10b981;
  font-size: 0.8rem;
  font-weight: 800;
  pointer-events: none;
}

.matrix-q-card.q-wrong .matrix-q-status {
  color: #f43f5e;
  font-size: 0.8rem;
  font-weight: 800;
  pointer-events: none;
}

.matrix-q-hover {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  font-size: 0.72rem;
  font-weight: 700;
  color: #38bdf8;
  pointer-events: none; /* KRİTİK: Tıklamayı engellememesi için */
}

.matrix-q-card:hover .matrix-q-hover {
  opacity: 1;
}

/* PROOF SECTION */
.official-proof-section {
  margin-bottom: 3rem;
}

.proof-card-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem;
  backdrop-filter: blur(16px);
  align-items: center;
}

@media (max-width: 900px) {
  .proof-card-box {
    grid-template-columns: 1fr;
  }
}

.proof-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 0.35rem;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

.proof-desc {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.proof-thumb-side {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  max-height: 280px;
}

.proof-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.3s ease;
}

.proof-thumb-side:hover .proof-preview-img {
  transform: scale(1.03);
}

.thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 25, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.thumb-overlay span {
  background: rgba(18, 24, 38, 0.9);
  border: 1px solid #38bdf8;
  color: #38bdf8;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
}

.proof-thumb-side:hover .thumb-overlay {
  opacity: 1;
}

/* ========================================================
   MODALS BASE & FULLSCREEN OVERLAYS (FIXED VIEWPORT)
   ======================================================== */

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}

.image-modal.active {
  display: flex !important;
}

.image-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 14, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1;
  cursor: pointer;
}

.image-modal-content {
  position: relative;
  z-index: 10;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.image-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  flex-shrink: 0;
}

.image-modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
}

.image-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
}

.image-modal-close:hover {
  background: rgba(244, 63, 94, 0.2);
  border-color: #f43f5e;
  color: #f43f5e;
  transform: rotate(90deg);
}

.image-modal-body {
  padding: 20px;
  overflow-y: auto;
  max-height: calc(90vh - 75px);
}

/* MODALS SIZING */
.exam-proof-modal-content {
  max-width: 1200px;
  width: 95vw;
}

.proof-modal-icon {
  font-size: 1.5rem;
}

.proof-modal-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.modal-full-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
}

/* Q DETAIL MODAL */
.q-detail-modal-content {
  max-width: 700px;
  width: 90vw;
}

.q-modal-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  color: #ffffff;
  display: inline-block;
  margin-bottom: 4px;
}

.modal-q-header-info {
  margin-bottom: 1.25rem;
}

.modal-ans-compare {
  display: flex;
  gap: 1rem;
}

.modal-ans-compare .ans-box {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-deficit-box {
  background: rgba(244, 63, 94, 0.06);
  border: 1px solid rgba(244, 63, 94, 0.25);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  margin-bottom: 1.25rem;
}

.modal-deficit-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #f43f5e;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.modal-deficit-path {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.modal-deficit-desc {
  font-size: 0.92rem;
  color: #f8fafc;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal-deficit-recommendation {
  font-size: 0.88rem;
  color: #34d399;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.modal-q-img-wrap {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  overflow: hidden;
}

.modal-question-img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}

.q-no-img {
  color: #475569;
  font-size: 0.85rem;
  padding: 2rem 1rem;
}

.empty-deficit-box {
  background: rgba(16, 185, 129, 0.05);
  border: 1px dashed rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.empty-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 0.25rem;
}

.empty-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   ÇOKLU SINAV VE GELİŞİM TAKİP MERKEZİ (MULTI-EXAM PROGRESSION HUB)
   ========================================================================== */

/* Alt Sayfa / Sekme Navigasyon Çubuğu */
.exam-subnav-bar {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.exam-tabs-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.exam-tab-btn {
  flex: 1;
  min-width: 260px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.exam-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-2px);
}

.exam-tab-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(99, 102, 241, 0.12) 100%);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 4px 18px rgba(56, 189, 248, 0.15), inset 0 0 12px rgba(56, 189, 248, 0.05);
}

.exam-tab-btn.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
}

.tab-btn-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.tab-btn-texts {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.tab-btn-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.exam-tab-btn.active .tab-btn-title {
  color: #38bdf8;
}

.tab-btn-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.tab-badge-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.tab-badge-pill.pill-completed {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
}

.tab-badge-pill.pill-planned {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.35);
}

/* Alt Sayfa Geriye Dönüş Başlığı (Subpage Breadcrumb Banner) */
.subpage-back-banner {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-back-overview {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-back-overview:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  transform: translateX(-3px);
}

.subpage-title-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #94a3b8;
}

.subpage-title-badge strong {
  color: #ffffff;
}

/* Görünüm Panelleri (View Panes) */
.exam-view-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.exam-view-pane.active {
  display: block;
}

/* Gelişim Grafikleri Grid Yapısı */
.progression-charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.progression-chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.25);
  position: relative;
}

.chart-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.85rem;
}

.chart-card-title-group h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-card-title-group p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.chart-legend-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.legend-pill {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.chart-canvas-wrap {
  position: relative;
  height: 270px;
  width: 100%;
}

/* Dönemlik Sınav Kataloğu (Deneme Sınavları Takvimi) */
.exam-catalog-section {
  margin-bottom: 2.5rem;
}

.exam-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.25rem;
}

.catalog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.catalog-card.completed {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.04) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.catalog-card.completed:hover {
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.15);
}

.catalog-card.planned {
  border: 1px dashed rgba(255, 255, 255, 0.15);
  background: rgba(15, 23, 42, 0.5);
}

.catalog-card.planned:hover {
  border-color: rgba(56, 189, 248, 0.4);
}

.catalog-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.catalog-exam-code {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.catalog-exam-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.catalog-status-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.catalog-status-badge.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.catalog-status-badge.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.catalog-stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 12px;
}

.catalog-stat-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.catalog-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.catalog-stat-val {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.catalog-stat-val.text-emerald { color: #34d399; }
.catalog-stat-val.text-cyan { color: #38bdf8; }

.catalog-focus-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.catalog-focus-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
}

.catalog-focus-tag {
  font-size: 0.8rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  display: inline-block;
}

.btn-open-exam-subpage {
  width: 100%;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  border: none;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-open-exam-subpage:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.btn-catalog-disabled {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  cursor: not-allowed;
}

/* Kümülatif Eksik Konular Kartı */
.cumulative-deficits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.25rem;
}

.cum-deficit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: var(--transition);
}

.cum-deficit-card:hover {
  border-color: var(--border-hover);
  background: rgba(30, 41, 59, 0.5);
}

.cum-course-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cum-course-name {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cum-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.cum-progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.cum-progress-fill {
  height: 100%;
  border-radius: 999px;
}

.cum-topics-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cum-topic-item {
  font-size: 0.82rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cum-topic-item::before {
  content: '•';
  color: var(--primary);
  font-size: 1.1rem;
  line-height: 1;
}

@media (max-width: 768px) {
  .progression-charts-grid {
    grid-template-columns: 1fr;
  }
  .exam-tab-btn {
    min-width: 100%;
  }
}

/* ==========================================================================
   3-TIER MASTERY & REMEDIATION ENGINE (PEKİŞTİRME & TELAFİ SİSTEMİ)
   ========================================================================== */

/* Deficit Card Action & Status Pill */
.deficit-mastery-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.btn-start-mastery-test {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.btn-start-mastery-test:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.btn-start-mastery-test.locked {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.btn-start-mastery-test.mastered {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.mastery-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.mastery-status-pill.not-started {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.mastery-status-pill.retrying {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.mastery-status-pill.locked {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.mastery-status-pill.mastered {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Modal Content Extra Large */
.modal-content.modal-extra-large {
  max-width: 950px;
  width: 95vw;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(99, 102, 241, 0.15);
}

/* Test Header */
.test-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #1f2937;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.test-header-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.test-topic-badge {
  background: rgba(99, 102, 241, 0.18);
  color: #818cf8;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.test-timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  font-family: monospace;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Test Progress Bar */
.test-progress-strip {
  width: 100%;
  height: 5px;
  background: #374151;
  position: relative;
}

.test-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #10b981);
  transition: width 0.3s ease;
  width: 5%;
}

/* Test Main Layout */
.test-main-container {
  display: grid;
  grid-template-columns: 1fr 280px;
  min-height: 520px;
}

@media (max-width: 900px) {
  .test-main-container {
    grid-template-columns: 1fr;
  }
}

/* Question Area */
.test-question-area {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  overflow-y: auto;
  max-height: 70vh;
}

.question-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.question-number-pill {
  background: #3b82f6;
  color: #fff;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.question-learning-code {
  font-size: 11px;
  color: #9ca3af;
  font-family: monospace;
}

.question-text-content {
  font-size: 16px;
  line-height: 1.65;
  color: #f3f4f6;
  margin-bottom: 24px;
  font-weight: 500;
}

/* Options */
.test-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.test-option-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #1f2937;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  color: #e5e7eb;
}

.test-option-btn:hover {
  background: #283548;
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateX(3px);
}

.test-option-btn.selected {
  background: rgba(99, 102, 241, 0.18);
  border-color: #6366f1;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.3);
}

.option-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #374151;
  color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.test-option-btn.selected .option-circle {
  background: #6366f1;
  color: #ffffff;
}

.option-text {
  font-size: 14px;
  line-height: 1.45;
}

/* Question Navigation Buttons in Question Area */
.test-question-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
}

.btn-test-nav {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #374151;
  color: #e5e7eb;
  transition: all 0.2s ease;
}

.btn-test-nav:hover:not(:disabled) {
  background: #4b5563;
  color: #ffffff;
}

.btn-test-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-test-finish {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-test-finish:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
}

/* Navigator Sidebar */
.test-navigator-sidebar {
  padding: 20px;
  background: #182232;
  display: flex;
  flex-direction: column;
}

.test-nav-title {
  font-size: 13px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.test-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.nav-q-btn {
  aspect-ratio: 1;
  border-radius: 8px;
  background: #1f2937;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  position: relative;
}

.nav-q-btn:hover {
  border-color: #6366f1;
  color: #ffffff;
  background: #283548;
}

.nav-q-btn.active {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.35);
}

.nav-q-btn.answered {
  background: #064e3b;
  border-color: #10b981;
  color: #a7f3d0;
}

.nav-q-btn.active.answered {
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  border-width: 2px;
}

.nav-answered-choice {
  font-size: 9px;
  opacity: 0.8;
  margin-top: 1px;
}

.test-nav-stats-card {
  margin-top: auto;
  padding: 14px;
  background: #1f2937;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.test-nav-stat-item {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 6px;
}

.test-nav-stat-item:last-child {
  margin-bottom: 0;
}

.test-nav-stat-item strong {
  color: #ffffff;
}

/* Result Modal Styling */
.result-decision-container {
  padding: 36px 30px;
  text-align: center;
}

.result-badge-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 20px auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.result-badge-icon.success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.result-badge-icon.retry {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
}

.result-badge-icon.locked {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
}

.result-title {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

.result-subtitle {
  font-size: 15px;
  color: #9ca3af;
  max-width: 550px;
  margin: 0 auto 24px auto;
  line-height: 1.6;
}

.result-score-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 580px;
  margin: 0 auto 28px auto;
}

.score-metric-box {
  background: #1f2937;
  padding: 14px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.score-metric-box .label {
  font-size: 11px;
  color: #9ca3af;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.score-metric-box .val {
  font-size: 20px;
  font-weight: 800;
}

.score-metric-box .val.rate {
  color: #38bdf8;
}

.score-metric-box .val.correct {
  color: #34d399;
}

.score-metric-box .val.wrong {
  color: #f87171;
}

.score-metric-box .val.status {
  font-size: 14px;
}

/* Video Remediation Modal */
.video-remediation-body {
  padding: 28px;
}

.video-player-container {
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
  max-height: 380px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-mock-screen {
  text-align: center;
  padding: 24px;
}

.video-mock-screen .play-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px auto;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.video-mock-screen .play-circle:hover {
  transform: scale(1.1);
}

.video-remediation-notes {
  background: #1f2937;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.video-remediation-notes h4 {
  font-size: 15px;
  color: #e5e7eb;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.video-remediation-notes ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.video-remediation-notes li {
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.video-remediation-notes li::before {
  content: '✦';
  color: #6366f1;
  font-size: 14px;
  line-height: 1;
}

.video-unlock-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Modal Content Base for Test, Result & Video Modals */
.test-modal-content,
.result-modal-content,
.video-modal-content {
  width: 950px;
  max-width: 96vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(99, 102, 241, 0.2);
}

/* Test Runner Modal Header */
.test-modal-header {
  padding: 20px 28px;
  background: #1e293b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.test-header-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.test-course-badge {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.4);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.test-target-pill {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.test-timer-pill {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  font-family: monospace;
}

.test-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.test-objective {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
}

/* Soru Navigatörü (1-20 Çemberleri) */
.test-navigator-wrap {
  padding: 14px 28px;
  background: #151e2e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
}

.test-nav-label {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  white-space: nowrap;
}

.test-nav-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.test-nav-pill {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1e293b;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.test-nav-pill.has-visual {
  border-color: rgba(168, 85, 247, 0.45);
}

.pill-visual-dot {
  position: absolute;
  top: 1px;
  right: 2px;
  font-size: 7px;
  color: #c084fc;
  line-height: 1;
}

.test-nav-pill:hover {
  background: #334155;
  color: #ffffff;
  border-color: #6366f1;
}

.test-nav-pill.active {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.25);
  color: #818cf8;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
  border-width: 2px;
}

.test-nav-pill.answered {
  background: #064e3b;
  border-color: #10b981;
  color: #34d399;
}

.test-nav-pill.active.answered {
  border-color: #34d399;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.6);
}

/* Canlı İlerleme Çubuğu */
.test-progress-bar-wrap {
  width: 100%;
  height: 4px;
  background: #1e293b;
}

.test-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #10b981);
  transition: width 0.3s ease;
}

/* Test Modal Body */
.test-modal-body {
  padding: 28px;
  overflow-y: auto;
  flex: 1;
}

.test-question-box {
  background: #1e293b;
  border-radius: 12px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.test-q-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.test-q-meta-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.test-q-number {
  background: #3b82f6;
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.test-q-visual-badge {
  background: rgba(147, 51, 234, 0.18);
  color: #c084fc;
  border: 1px solid rgba(147, 51, 234, 0.4);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.test-q-status-tag {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}

.test-q-status-tag.answered {
  color: #34d399;
}

/* Soru Görsel / Şekil Alanı */
.test-q-visual-wrap {
  margin: 14px 0 18px 0;
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5), 0 4px 15px rgba(0, 0, 0, 0.2);
}

.test-q-visual-content {
  width: 100%;
  max-width: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.test-q-visual-content svg {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.test-q-visual-caption {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 10px;
  font-style: italic;
  text-align: center;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 8px;
  width: 100%;
}

.test-q-text {
  font-size: 16px;
  line-height: 1.65;
  color: #f8fafc;
  font-weight: 500;
}

/* Şıklar Grid */
.test-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.test-option-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #1e293b;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #e2e8f0;
}

.test-option-card:hover {
  background: #273549;
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateX(4px);
}

.test-option-card.selected {
  background: rgba(99, 102, 241, 0.18);
  border-color: #6366f1;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.35);
}

.option-letter-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #334155;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.test-option-card.selected .option-letter-circle {
  background: #6366f1;
  color: #ffffff;
}

.option-text-val {
  font-size: 15px;
  line-height: 1.45;
}

/* Test Modal Footer */
.test-modal-footer {
  padding: 16px 28px;
  background: #1e293b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.test-footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.test-footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.test-answered-counter {
  font-size: 13px;
  color: #94a3b8;
}

.test-answered-counter strong {
  color: #38bdf8;
}

.btn-finish-test {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-finish-test:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* ==========================================================================
   TEST RESULT & REVIEW MODAL
   ========================================================================== */
.result-modal-header {
  padding: 20px 28px;
  background: #1e293b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.result-header-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.result-icon {
  font-size: 32px;
}

.result-header-title h2 {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 3px 0;
}

.result-sub {
  font-size: 13px;
  color: #94a3b8;
}

.result-modal-body {
  padding: 28px;
  overflow-y: auto;
  flex: 1;
}

.result-decision-card {
  padding: 28px;
  border-radius: 14px;
  margin-bottom: 24px;
  text-align: center;
}

.result-decision-card.success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.08) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.result-decision-card.retry {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.08) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.result-decision-card.locked {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.18) 0%, rgba(185, 28, 28, 0.08) 100%);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.result-decision-card .decision-badge {
  font-size: 42px;
  margin-bottom: 12px;
}

.result-decision-card .decision-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.result-decision-card .decision-desc {
  font-size: 14px;
  color: #94a3b8;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

.result-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

@media (max-width: 768px) {
  .result-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.result-stat-box {
  background: #1e293b;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-caption {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 600;
}

.stat-big-val {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.stat-bar-pill {
  font-size: 11px;
  color: #64748b;
}

/* Soru Analizleri Listesi */
.result-review-section {
  background: #1e293b;
  border-radius: 14px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.review-header {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.review-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.review-sub {
  font-size: 12px;
  color: #94a3b8;
}

.review-questions-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-q-card {
  background: #0f172a;
  border-radius: 10px;
  padding: 16px;
  border-left: 4px solid #64748b;
}

.review-q-card.correct {
  border-left-color: #10b981;
}

.review-q-card.wrong {
  border-left-color: #ef4444;
}

.review-q-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.review-q-title {
  font-size: 14px;
  font-weight: 600;
  color: #f1f5f9;
}

.review-badge {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

.review-badge.correct {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.review-badge.wrong {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.review-explanation {
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  color: #cbd5e1;
  margin-top: 10px;
}

.result-modal-footer {
  padding: 16px 28px;
  background: #1e293b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.btn-result-action {
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-result-action.retry {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.btn-result-action.video {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.btn-result-action.close {
  background: #334155;
  color: #ffffff;
}

/* ==========================================================================
   VIDEO REMEDIATION MODAL
   ========================================================================== */
.video-modal-header {
  padding: 20px 28px;
  background: #1e293b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.video-header-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.video-lock-icon {
  font-size: 32px;
}

.video-header-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.video-header-top-row h2 {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.video-header-sub {
  font-size: 13px;
  color: #f87171;
}

.video-modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
}

.video-alert-banner {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.alert-spark {
  font-size: 20px;
  flex-shrink: 0;
}

.alert-text strong {
  font-size: 13px;
  color: #fca5a5;
  display: inline-block;
  margin-right: 6px;
}

.alert-text p {
  font-size: 12px;
  color: #cbd5e1;
  margin: 0;
  display: inline;
  line-height: 1.4;
}

/* Video Player Gerçek Konteyner */
.video-player-container {
  width: 100%;
  background: #0f172a;
  border-radius: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.video-player-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.video-meta-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.video-badge-adfree {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.video-source-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.video-duration-tag {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
}

.video-lesson-heading {
  font-size: 17px;
  font-weight: 700;
  color: #f8fafc;
  margin: 2px 0 6px 0;
  line-height: 1.4;
}

/* 16:9 Responsive Video Wrapper */
.video-embed-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #000000;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.video-embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Dış Bağlantı & EBA Butonları */
.video-external-links-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.btn-ext-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-ext-source.eba-btn {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.btn-ext-source.eba-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-ext-source.alt-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
}

.btn-ext-source.alt-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transform: translateY(-1px);
}

.video-summary-box {
  background: #1e293b;
  border-radius: 12px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 14px;
}

.summary-box-title {
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 10px 0;
}

.summary-points-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px 14px;
}

.summary-points-list li {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-points-list li::before {
  content: '✦';
  color: #38bdf8;
  font-size: 13px;
  line-height: 1.2;
}

.video-modal-footer {
  padding: 16px 28px;
  background: #1e293b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.btn-unlock-test {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.4);
}

.btn-unlock-test:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.6);
}

/* ============================================================
   ÖĞRETMEN DEĞERLENDİRME & GERİ BİLDİRİM MATRİSİ & BAR GRAFİK
   ============================================================ */
.report-teacher-matrix-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.75), rgba(15, 23, 42, 0.85));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  margin-top: 10px;
}

.report-teacher-matrix-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8 0%, #10b981 50%, #f59e0b 100%);
}

.teacher-matrix-header-box {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.teacher-matrix-subtitle {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.5;
  max-width: 780px;
  margin-top: 4px;
}

.teacher-matrix-subtitle strong {
  color: #38bdf8;
}

.matrix-legend-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.matrix-legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.legend-verilen { color: #38bdf8; border-color: rgba(56, 189, 248, 0.3); }
.legend-degerlendirilen { color: #34d399; border-color: rgba(16, 185, 129, 0.3); }
.legend-bekleyen { color: #fbbf24; border-color: rgba(245, 158, 11, 0.3); }

.chip-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.dot-blue { background: #38bdf8; box-shadow: 0 0 8px rgba(56, 189, 248, 0.6); }
.dot-green { background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.6); }
.dot-amber { background: #f59e0b; box-shadow: 0 0 8px rgba(245, 158, 11, 0.6); }

.teacher-matrix-chart-box {
  height: 340px;
  min-height: 320px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 24px;
  position: relative;
}

.teacher-matrix-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.4);
}

.teacher-matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.teacher-matrix-table thead th {
  background: #1e293b;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.teacher-matrix-table tbody td {
  padding: 14px 18px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}

.teacher-matrix-row {
  cursor: pointer;
  transition: all 0.2s ease;
}

.teacher-matrix-row:hover {
  background: rgba(56, 189, 248, 0.06) !important;
  transform: translateY(-1px);
}

.teacher-row-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.teacher-avatar-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #0b0f19;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.3);
}

.teacher-name-title {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.teacher-subject-sub {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

.stat-bubble {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.bubble-blue {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.bubble-green {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.bubble-amber {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.bubble-gray {
  background: rgba(148, 163, 184, 0.08);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.eval-progress-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eval-progress-bar {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.eval-progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.eval-rate-text {
  font-size: 13px;
  min-width: 38px;
  text-align: right;
}

.teacher-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.btn-teacher-report-open {
  padding: 7px 14px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-teacher-report-open:hover {
  background: rgba(56, 189, 248, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25);
}

.btn-teacher-msg-open {
  padding: 7px 14px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.25));
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-teacher-msg-open:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.4));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* ============================================================
   ÖĞRETMEN DETAYLI RAPOR MODAL STİLLERİ
   ============================================================ */
.btn-report-tool {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-report-tool:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.teacher-report-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}

.kpi-mini-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
}

.kpi-mini-icon {
  font-size: 20px;
  margin-bottom: 2px;
}

.kpi-mini-val {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  font-family: var(--font-heading);
}

.kpi-mini-lbl {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

.kpi-blue .kpi-mini-val { color: #38bdf8; }
.kpi-green .kpi-mini-val { color: #34d399; }
.kpi-amber .kpi-mini-val { color: #fbbf24; }
.kpi-cyan .kpi-mini-val { color: #22d3ee; }

.teacher-report-profile-banner {
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

.teacher-avatar-large {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  color: #0b0f19;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.4);
}

.btn-banner-direct-msg {
  padding: 9px 18px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  white-space: nowrap;
}

.btn-banner-direct-msg:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
}

.report-table-scroll {
  max-height: 340px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.4);
}

.report-assignments-table {
  width: 100%;
  border-collapse: collapse;
}

.report-assignments-table thead th {
  position: sticky;
  top: 0;
  background: #1e293b;
  z-index: 2;
  padding: 10px 14px;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 700;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.report-assignments-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.report-assign-idx {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #94a3b8;
  flex-shrink: 0;
  font-weight: 700;
}

.report-assign-title {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
}

.report-assign-desc {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 3px;
  line-height: 1.4;
}

.pill-assign-type {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  white-space: nowrap;
}

.type-digital {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.type-written {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.report-status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

.status-badge-green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.status-badge-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.status-badge-red {
  background: rgba(244, 63, 94, 0.15);
  color: #f87171;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.teacher-cta-msg-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(2, 132, 199, 0.08));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

.btn-cta-send-msg {
  padding: 10px 20px;
  background: linear-gradient(135deg, #10b981, #047857);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  transition: all 0.2s ease;
}

.btn-cta-send-msg:hover {
  background: linear-gradient(135deg, #059669, #0369a1);
  transform: translateY(-1px);
}

.btn-teacher-direct-msg {
  padding: 10px 20px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
}

.btn-teacher-direct-msg:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-1px);
}

/* ============================================================
   ÖĞRETMENE DOĞRUDAN MESAJ İLETİM MODALI (Sebit VCloud)
   ============================================================ */
.teacher-recipient-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 16px;
}

.recipient-direct-badge {
  font-size: 11px;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.teacher-msg-templates {
  margin-top: 4px;
}

.templates-label {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 8px;
  display: block;
}

.templates-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-msg-template-chip {
  padding: 6px 14px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-msg-template-chip:hover {
  background: rgba(56, 189, 248, 0.22);
  color: #fff;
  transform: translateY(-1px);
}

.teacher-msg-input {
  width: 100%;
  padding: 10px 14px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.teacher-msg-input:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.teacher-msg-textarea {
  width: 100%;
  padding: 12px 14px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.teacher-msg-textarea:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.msg-status-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

.msg-status-alert.info {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

.msg-status-alert.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.msg-status-alert.error {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #f87171;
}

.btn-teacher-send {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-teacher-send:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.6);
}

.btn-teacher-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ============================================================
   ÖĞRETMEN MESAJ MODALI: DEĞERLENDİRME BEKLEYEN ÖDEVLER KUTUSU
   ============================================================ */
.teacher-msg-pending-summary {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-left: 4px solid #f59e0b;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.teacher-msg-pending-summary.all-evaluated {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-left: 4px solid #10b981;
}

.pending-summary-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pending-summary-title {
  font-size: 13px;
  font-weight: 700;
  color: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pending-summary-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.2);
  color: #fde68a;
}

.pending-summary-hint {
  font-size: 11px;
  color: #94a3b8;
  margin: 0;
}

.pending-summary-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 140px;
  overflow-y: auto;
}

.pending-summary-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
}

.pending-item-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.pending-item-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.pending-item-title {
  color: #f1f5f9;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.pending-item-dates {
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  gap: 8px;
}

.badge-pending-status {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  white-space: nowrap;
}


