/* Modular CSS slice extracted from style.css (2152-2869) */
.pulse-stat-distribution {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.pulse-dist-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-weight: 600;
}
.pulse-dist-chip .dist-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* Exam Submissions Search & Filter Bar */
.exam-submissions-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}
.submissions-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 240px;
  max-width: 380px;
}
.submissions-search-wrap .search-icon {
  position: absolute;
  left: 10px;
  font-size: 0.85rem;
  color: var(--text-muted, #94a3b8);
  pointer-events: none;
}
.submissions-search-input {
  width: 100%;
  padding: 0.42rem 1.8rem 0.42rem 2rem;
  font-size: 0.8rem;
  border: 1px solid var(--border-color, #cbd5e1);
  border-radius: 8px;
  background: #ffffff;
  transition: all 0.15s ease;
}
.submissions-search-input:focus {
  outline: none;
  border-color: var(--primary, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.btn-clear-search {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  color: #94a3b8;
  padding: 2px;
}
.submissions-filters-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tier-filter-select-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.tier-filter-select-wrap .filter-label {
  font-size: 0.75rem;
  color: var(--text-muted, #64748b);
  font-weight: 600;
}
.tier-select {
  padding: 0.38rem 0.65rem;
  font-size: 0.78rem;
  border-radius: 8px;
  border: 1px solid var(--border-color, #cbd5e1);
  background: #ffffff;
  font-weight: 500;
}

/* Floating Bulk Actions Bar - Apple / Stripe Glassmorphism HUD */
.floating-bulk-bar {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: #ffffff;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.45rem 0.9rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.08);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
}

.floating-bulk-bar.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.bulk-bar-content {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: nowrap;
}

.bulk-bar-info {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  white-space: nowrap;
  padding-right: 0.65rem;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.bulk-selected-badge {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 2px 9px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
}

.bulk-selected-label {
  color: #f1f5f9;
  font-weight: 600;
  font-size: 0.8rem;
}

.btn-bulk-deselect {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  margin-left: 0.2rem;
  transition: all 0.15s ease;
}

.btn-bulk-deselect:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.bulk-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
}

/* Specific Bulk Action Buttons with Perfect Contrast & Semantic Themes */
.btn-bulk-action {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  padding: 0.32rem 0.68rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: all 0.16s ease !important;
  border: 1px solid transparent !important;
  line-height: 1.2 !important;
}

.btn-bulk-action:hover {
  transform: translateY(-1px);
}

.btn-bulk-action-stop {
  background: rgba(245, 158, 11, 0.22) !important;
  color: #fcd34d !important;
  border: 1px solid rgba(251, 191, 36, 0.45) !important;
}
.btn-bulk-action-stop:hover {
  background: rgba(245, 158, 11, 0.36) !important;
  color: #ffffff !important;
  border-color: rgba(251, 191, 36, 0.7) !important;
}

.btn-bulk-action-variant {
  background: rgba(56, 189, 248, 0.2) !important;
  color: #7dd3fc !important;
  border: 1px solid rgba(125, 211, 252, 0.42) !important;
}
.btn-bulk-action-variant:hover {
  background: rgba(56, 189, 248, 0.34) !important;
  color: #ffffff !important;
  border-color: rgba(125, 211, 252, 0.68) !important;
}

.btn-bulk-action-zalo {
  background: linear-gradient(135deg, #0068ff 0%, #0052cc 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 2px 8px rgba(0, 104, 255, 0.35);
}
.btn-bulk-action-zalo:hover {
  background: linear-gradient(135deg, #1a78ff 0%, #005fe6 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 104, 255, 0.5);
}

.btn-bulk-action-zip {
  background: rgba(16, 185, 129, 0.22) !important;
  color: #6ee7b7 !important;
  border: 1px solid rgba(52, 211, 153, 0.42) !important;
}
.btn-bulk-action-zip:hover {
  background: rgba(16, 185, 129, 0.35) !important;
  color: #ffffff !important;
  border-color: rgba(52, 211, 153, 0.65) !important;
}

.btn-bulk-action-regrade {
  background: rgba(139, 92, 246, 0.22) !important;
  color: #d8b4fe !important;
  border: 1px solid rgba(192, 132, 252, 0.42) !important;
}
.btn-bulk-action-regrade:hover {
  background: rgba(139, 92, 246, 0.36) !important;
  color: #ffffff !important;
  border-color: rgba(192, 132, 252, 0.65) !important;
}

.btn-bulk-action-delete {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #fca5a5 !important;
  border: 1px solid rgba(248, 113, 113, 0.38) !important;
}
.btn-bulk-action-delete:hover {
  background: rgba(239, 68, 68, 0.32) !important;
  color: #ffffff !important;
  border-color: rgba(248, 113, 113, 0.6) !important;
}

/* Mobile & Tablet Safe-Area & Dock Adaptation */
@media (max-width: 768px) {
  .floating-bulk-bar {
    bottom: calc(var(--mobile-dock-height, 64px) + env(safe-area-inset-bottom, 12px) + 12px) !important;
    padding: 0.4rem 0.75rem;
    border-radius: 16px;
    max-width: calc(100vw - 20px);
  }
  .bulk-bar-content {
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .bulk-bar-content::-webkit-scrollbar {
    display: none;
  }
  .bulk-bar-info {
    font-size: 0.75rem;
    padding-right: 0.4rem;
  }
  .bulk-selected-label {
    display: none;
  }
  .btn-bulk-action {
    font-size: 0.72rem !important;
    padding: 0.28rem 0.5rem !important;
  }
}

.sub-row-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--primary, #2563eb);
  border-radius: 4px;
  margin-right: 2px;
  flex-shrink: 0;
}

.table-action-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.table-action-group .btn {
  padding: 0.18rem 0.36rem;
  font-size: 0.72rem;
  min-height: 26px;
  line-height: 1.2;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  font-weight: 600;
}

.btn-action-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm, 6px);
  font-size: 0.76rem;
  line-height: 1;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-action-icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Status Dot Pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--surface-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
}

.status-graded {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}
.status-graded .status-dot { background: #10b981; }

.status-grading {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}
.status-grading .status-dot { background: #f59e0b; }

.status-submitted {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}
.status-submitted .status-dot { background: #2563eb; }

.status-pending {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}
.status-pending .status-dot { background: #ea580c; }

#btn-submit-next-student:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

.btn-approve-submission:hover {
  background: #059669 !important;
  color: #ffffff !important;
}

.btn-reject-submission:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
}

.score-pill-table {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.85rem;
}

.score-max {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.score-placeholder {
  color: var(--text-muted);
  font-weight: 500;
}

.variant-select-inline {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  padding: 0.2rem 0.45rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
  outline: none;
  cursor: pointer;
  max-width: 100px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.variant-select-inline:hover {
  border-color: var(--border-strong);
}

/* Generic Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-weight: 600;
}

.badge-submitted {
  background: var(--surface-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.badge-graded {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.score-pill-table {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-xs);
  font-weight: 700;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  border: 1px solid transparent;
}

.score-pill-table.score-high {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.score-pill-table.score-good {
  background: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}

.score-pill-table.score-mid {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}

.score-pill-table.score-low {
  background: #fff1f2;
  color: #9f1239;
  border-color: #fecdd3;
}

/* Buttons - Modern Luminous EdTech */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--fast-transition);
  cursor: pointer;
}

.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.78rem; }
.btn-xs { padding: 0.2rem 0.55rem; font-size: 0.72rem; }

.btn-primary {
  background: var(--primary-gradient, linear-gradient(135deg, #00c5df 0%, #00b4d8 50%, #0099b8 100%));
  color: #082850;
  font-weight: 750;
  border: 1px solid rgba(8, 40, 80, 0.15);
  box-shadow: 0 2px 8px rgba(0, 197, 223, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #00d5ee 0%, #00c5df 50%, #00b4d8 100%);
  color: #082850;
  box-shadow: 0 4px 14px rgba(0, 197, 223, 0.4);
  transform: translateY(-1px);
}

.btn-success {
  background: var(--success-gradient, linear-gradient(135deg, #059669 0%, #10b981 100%));
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-success:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 50%, #10b981 100%);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.38);
  transform: translateY(-1px);
}

.btn-iris, .btn-executive {
  background: var(--btn-executive-gradient, linear-gradient(135deg, #082850 0%, #0c3666 50%, #0284c7 100%));
  color: #ffffff;
  border: 1px solid rgba(0, 197, 223, 0.3);
  box-shadow: 0 3px 12px rgba(8, 40, 80, 0.25);
}

.btn-iris:hover, .btn-executive:hover {
  background: var(--btn-executive-hover-gradient, linear-gradient(135deg, #051c38 0%, #082850 50%, #00b4d8 100%));
  box-shadow: 0 6px 18px rgba(0, 197, 223, 0.35);
  transform: translateY(-1px);
}

.btn-royal {
  background: var(--accent-royal);
  color: #ffffff;
  border: 1px solid var(--accent-royal);
}

.btn-royal:hover {
  background: var(--accent-royal-hover);
}

.btn-outline {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.btn-outline:hover {
  background: var(--primary-light);
  border-color: var(--primary-border);
  color: var(--primary);
}

/* --- INLINE SPEEDGRADER SPLIT STUDIO (LUMINOUS EDTECH MODE) --- */
.speedgrader-studio-layout {
  display: grid;
  grid-template-columns: 240px 1fr 320px;
  gap: 0.75rem;
  min-height: 680px;
  background: var(--studio-bg);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  color: var(--studio-text);
  border: 1px solid var(--studio-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.speedgrader-roster {
  background: var(--studio-surface);
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-sm);
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  overflow-y: auto;
  max-height: none;
  align-self: stretch;
  height: 100%;
}

.speedgrader-roster-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-xs);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--fast-transition);
  color: var(--studio-text);
}

.speedgrader-roster-item:hover {
  background: rgba(0, 197, 223, 0.05);
}

.speedgrader-roster-item.active {
  background: rgba(0, 197, 223, 0.08);
  border-left: 3.5px solid var(--primary, #00c5df);
  color: var(--brand-navy, #082850);
  font-weight: 750;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  box-shadow: inset 1px 0 0 rgba(0, 197, 223, 0.2);
}

.speedgrader-center-pane {
  background: #f8fafc;
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.speedgrader-canvas-toolbar {
  min-height: 44px;
  height: auto;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.85rem;
  border-bottom: 1px solid var(--studio-border);
  flex-wrap: wrap;
  gap: 0.45rem;
}

.speedgrader-canvas-toolbar button {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  border-radius: var(--radius-xs);
  padding: 0.2rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--fast-transition);
}

.speedgrader-canvas-toolbar button:hover {
  background: #e2e8f0;
  color: #1e293b;
}

/* SpeedGrader Multi-Page Switcher Tabs Bar */
.sg-page-tabs-bar {
  background: #f8fafc;
  border-bottom: 1px solid var(--studio-border);
  padding: 0.35rem 0.85rem;
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: thin;
  align-items: center;
}

.sg-page-tab-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  border-radius: 6px;
  padding: 0.25rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
