/* ==========================================================================
   LMS MARKETPLACE - DASHBOARDS & PORTAL LAYOUTS
   ========================================================================== */

.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
  background-color: var(--background);
}

/* --- Fixed & Persistent Sidebar --- */
.dashboard-sidebar {
  width: 260px;
  background-color: #0F172A;
  color: #F8FAFC;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #1E293B;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 1040;
  transition: all var(--transition-base);
}

@media (min-width: 992px) {
  .dashboard-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
  }
}

.sidebar-brand {
  padding: 1.25rem 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid #1E293B;
  text-decoration: none;
}

.sidebar-brand i {
  color: var(--primary);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.sidebar-role-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  background-color: rgba(37, 99, 235, 0.2);
  color: #60A5FA;
  border: 1px solid rgba(37, 99, 235, 0.4);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.sidebar-menu {
  padding: 0.85rem 0.75rem;
  flex-grow: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Invisible Scrollbar for Sidebar */
.sidebar-menu::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.sidebar-heading {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748B;
  padding: 0.75rem 0.75rem 0.25rem;
  margin-top: 0.5rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  color: #94A3B8;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
  margin-bottom: 0.15rem;
  cursor: pointer;
}

.sidebar-link i {
  font-size: 1.15rem;
  width: 20px;
  text-align: center;
}

.sidebar-link:hover {
  color: #FFFFFF;
  background-color: #1E293B;
}

.sidebar-link.active {
  color: #FFFFFF;
  background-color: var(--primary);
  font-weight: 600;
}

.sidebar-link.active .badge.bg-primary {
  background-color: #FFFFFF !important;
  color: var(--primary) !important;
  font-weight: 700;
}

.sidebar-link.text-danger {
  color: #F87171 !important;
}

.sidebar-link.text-danger:hover {
  color: #FFFFFF !important;
  background-color: rgba(220, 38, 38, 0.2) !important;
}

.sidebar-link .badge {
  margin-left: auto;
}

.sidebar-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid #1E293B;
  flex-shrink: 0;
  background-color: #0F172A;
}

/* --- Main Content Area --- */
.dashboard-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: var(--background);
}

.dashboard-topbar {
  min-height: 60px;
  height: auto;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  margin: 0;
  position: relative;
  z-index: 1020;
}

.topbar-search {
  max-width: 320px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-icon-btn {
  position: relative;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.topbar-icon-btn:hover {
  color: var(--text);
}

.topbar-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background-color: var(--danger);
  border-radius: 50%;
  border: 2px solid var(--surface);
}

.topbar-badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background-color: #DC2626;
  color: #FFFFFF !important;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
  line-height: 1;
  box-shadow: 0 2px 5px rgba(220, 38, 38, 0.4);
  z-index: 2;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.topbar-user:hover {
  background-color: var(--surface-alt);
}

.topbar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.dashboard-content {
  padding: 1.5rem 1.75rem;
  flex-grow: 1;
}

/* --- Ultra-Smooth Real-Time SPA Sub-View Switching --- */
.portal-view-section {
  display: none;
  animation: smoothFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.portal-view-section.active {
  display: block;
}

@keyframes smoothFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Stat Metric Cards --- */
.stat-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.stat-title {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.stat-trend {
  font-size: var(--font-size-xs);
  font-weight: 500;
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.stat-trend.up {
  color: var(--success);
}

.stat-trend.down {
  color: var(--danger);
}

/* Reference UI Stat Card */
.stat-card-v2 {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.stat-icon-square {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.stat-icon-square.earnings {
  background-color: #DCFCE7;
  color: #16A34A;
}

.stat-icon-square.students {
  background-color: #EDE9FE;
  color: #6366F1;
}

.stat-icon-square.courses {
  background-color: #FEF3C7;
  color: #D97706;
}

.stat-icon-square.rating {
  background-color: #FEE2E2;
  color: #DC2626;
}

.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.stat-icon.primary { background-color: var(--primary-light); color: var(--primary); }
.stat-icon.success { background-color: var(--success-light); color: var(--success); }
.stat-icon.warning { background-color: var(--warning-light); color: var(--warning); }
.stat-icon.danger { background-color: var(--danger-light); color: var(--danger); }
.stat-icon.accent { background-color: #FEF3C7; color: #D97706; }

/* Custom Tables */
.custom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.custom-table th {
  background-color: var(--surface-alt);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.custom-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
}

.custom-table tr:last-child td {
  border-bottom: none;
}

.custom-table tr:hover td {
  background-color: #F8FAFC;
}

/* Status Badges */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}

.badge-status-approved { background-color: var(--success-light); color: var(--success); }
.badge-status-pending { background-color: var(--warning-light); color: var(--warning); }
.badge-status-rejected { background-color: var(--danger-light); color: var(--danger); }

/* Responsive Sidebar Offcanvas */
@media (max-width: 991.98px) {
  .dashboard-sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    height: 100vh;
    box-shadow: var(--shadow-xl);
  }
  .dashboard-sidebar.show {
    left: 0;
  }
}

/* --- Course Creation Wizard & Studio Design System --- */
.autosave-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #059669;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10B981;
  display: inline-block;
}

.course-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.75rem;
  overflow-x: auto;
  gap: 0.75rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  white-space: nowrap;
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.step-item:hover {
  background: #F8FAFC;
}

.step-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  background: #F1F5F9;
  color: #64748B;
  border: 1.5px solid #E2E8F0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-item.completed .step-icon {
  background: #10B981;
  color: #FFFFFF;
  border-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.step-item.active .step-icon {
  background: #2563EB;
  color: #FFFFFF;
  border-color: #2563EB;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18), 0 2px 8px rgba(37, 99, 235, 0.3);
}

.step-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1E293B;
  margin-bottom: 1px;
}

.step-status {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  color: #94A3B8;
}

.step-item.active .step-status {
  color: #2563EB;
}

.step-item.completed .step-status {
  color: #10B981;
}

.step-connector {
  flex-grow: 1;
  height: 2px;
  background: #E2E8F0;
  min-width: 24px;
  border-radius: 2px;
  transition: background 0.3s ease;
}

.step-connector.completed {
  background: #10B981;
}

/* Studio Form Controls & Rich Inputs */
.form-label-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.char-counter {
  font-size: 0.75rem;
  color: #94A3B8;
  font-weight: 500;
}

.thumbnail-dropzone {
  border: 2px dashed #CBD5E1;
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  background: #F8FAFC;
  transition: all 0.2s ease;
  cursor: pointer;
}

.thumbnail-dropzone:hover {
  border-color: #3B82F6;
  background: #EFF6FF;
}

.rich-editor-toolbar {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.6rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-bottom: 0;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.rich-editor-btn {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 0.85rem;
  transition: all 0.15s ease;
}

.rich-editor-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.rich-editor-btn.active {
  background: #DBEAFE;
  color: #2563EB;
}

.rich-editor-content {
  min-height: 120px;
  max-height: 280px;
  overflow-y: auto;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  font-size: 0.9rem;
  line-height: 1.6;
  background-color: #FFFFFF;
  padding: 0.75rem 1rem;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
}

.rich-editor-content:focus {
  border-color: #93C5FD;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  outline: none;
}

.rich-editor-content code {
  background-color: #F1F5F9;
  color: #0F172A;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  font-size: 0.85em;
  font-family: monospace;
}

.rich-editor-content a {
  color: #2563EB;
  text-decoration: underline;
}

.rich-editor-content ul, .rich-editor-content ol {
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.rich-textarea {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Dynamic Tag Pills */
.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #F1F5F9;
  color: #334155;
  border: 1px solid #E2E8F0;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

.tag-badge .remove-tag {
  cursor: pointer;
  color: #94A3B8;
}

.tag-badge .remove-tag:hover {
  color: #EF4444;
}

/* Curriculum Section & Lesson Rows */
.curriculum-section-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: border-color 0.2s ease;
}

.curriculum-section-card:hover {
  border-color: #CBD5E1;
}

.curriculum-section-header {
  background: #F8FAFC;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lesson-item-row {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  transition: all 0.18s ease;
  cursor: pointer;
}

.lesson-item-row:hover {
  border-color: #CBD5E1;
  background-color: #F8FAFC;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04);
}

.lesson-item-row.selected {
  border-color: #3B82F6;
  background-color: #F0F7FF;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.lesson-item-row.dragging {
  opacity: 0.5;
  border: 2px dashed #3B82F6;
  background: #EFF6FF;
}

.lesson-item-row.drag-over {
  border-top: 2px solid #2563EB;
}

.lesson-item-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1 1 auto;
}

.lesson-item-left .lesson-title-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 340px;
}

.lesson-item-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.free-preview-pill {
  cursor: pointer;
  user-select: none;
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
  transition: all 0.15s ease;
  background: #F8FAFC;
  color: #64748B;
  border: 1px solid #E2E8F0;
  font-weight: 500;
  min-width: 108px;
  text-align: center;
}

.free-preview-pill:hover {
  border-color: #93C5FD;
  color: #2563EB;
}

.free-preview-pill.active {
  background: #EFF6FF;
  color: #2563EB;
  border-color: #BFDBFE;
  font-weight: 600;
}

.lesson-duration-badge {
  white-space: nowrap;
  flex-shrink: 0;
}

.media-icon-badge {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.media-video {
  background: #EFF6FF;
  color: #2563EB;
}

.media-pdf {
  background: #FEF2F2;
  color: #DC2626;
}

.media-quiz {
  background: #FFFBEB;
  color: #D97706;
}

.media-code {
  background: #F5F3FF;
  color: #7C3AED;
}

.drag-handle {
  color: #94A3B8;
  cursor: grab;
  padding: 0 2px;
}

.drag-handle:hover {
  color: #475569;
}

/* Pricing Models & Revenue Widget */
.pricing-tier-card {
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #FFFFFF;
}

.pricing-tier-card:hover {
  border-color: #93C5FD;
}

.pricing-tier-card.selected {
  border-color: #2563EB;
  background: #F8FAFC;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.revenue-calc-card {
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
  border: 1px solid #DBEAFE;
  border-radius: 12px;
  padding: 1.25rem;
}

/* Sticky Course Preview Card */
.course-preview-sticky {
  position: sticky;
  top: 85px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 1.35rem;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
}

.preview-cover-box {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 170px;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.9);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  backdrop-filter: blur(4px);
  transition: transform 0.2s ease;
}

.preview-play-btn:hover {
  transform: scale(1.08);
}

.preview-price-display {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.preview-main-price {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.02em;
}

.preview-original-price {
  font-size: 0.95rem;
  text-decoration: line-through;
  color: #94A3B8;
  font-weight: 500;
}

.preview-discount-tag {
  font-size: 0.72rem;
  font-weight: 700;
  background: #DCFCE7;
  color: #15803D;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

/* ==========================================================================
   Tutor Course Management & Catalog (assigned-courses.html)
   ========================================================================== */

.catalog-stat-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
}

.catalog-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.08);
  border-color: #CBD5E1;
}

.catalog-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.catalog-stat-icon.courses {
  background: #EFF6FF;
  color: #2563EB;
}

.catalog-stat-icon.students {
  background: #EEF2FF;
  color: #4F46E5;
}

.catalog-stat-icon.revenue {
  background: #F0FDF4;
  color: #16A34A;
}

.catalog-stat-icon.rating {
  background: #FEF3C7;
  color: #D97706;
}

.catalog-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem !important;
  margin-bottom: 1.75rem;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.catalog-filter-bar::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.catalog-actions-group {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.catalog-search-input-wrap {
  width: 175px;
  transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.catalog-search-input-wrap .form-control {
  height: 38px;
  font-size: 0.84rem;
}

.catalog-search-input-wrap .input-group-text {
  height: 38px;
}

.catalog-search-input-wrap:focus-within {
  width: 225px;
}

.catalog-category-select {
  width: 135px;
  height: 38px;
  flex-shrink: 0;
  font-size: 0.82rem;
}

.segmented-status-track {
  background: #F1F5F9;
  padding: 0.25rem;
  height: 38px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border: 1px solid #E2E8F0;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.segmented-status-track .catalog-filter-btn {
  border: none;
  background: transparent;
  padding: 0.32rem 0.8rem;
  height: 100%;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #475569;
  box-shadow: none;
  transition: all 0.15s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.segmented-status-track .catalog-filter-btn:hover {
  color: #0F172A;
  background: rgba(255, 255, 255, 0.65);
}

.segmented-status-track .catalog-filter-btn.active {
  background: #2563EB;
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(37, 99, 235, 0.25);
}

.segmented-status-track .catalog-filter-btn.active .filter-count-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

.segmented-status-track .filter-count-badge {
  background: #E2E8F0;
  color: #475569;
  font-size: 0.7rem;
  padding: 0.08rem 0.38rem;
  border-radius: 9999px;
  margin-left: 0.2rem;
  font-weight: 600;
}

/* View Switcher */
.view-switcher-group {
  display: inline-flex;
  align-items: center;
  background: #F1F5F9;
  padding: 0.2rem;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
}

.view-btn {
  width: 32px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #64748B;
  cursor: pointer;
  transition: all 0.15s ease;
}

.view-btn:hover {
  color: #0F172A;
}

.view-btn.active {
  background: #FFFFFF;
  color: #2563EB;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

/* Grid Cards */
.catalog-grid-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.catalog-grid-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  border-color: #CBD5E1;
}

.catalog-grid-cover {
  position: relative;
  height: 160px;
  overflow: hidden;
  background: #0F172A;
}

.catalog-grid-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.catalog-grid-card:hover .catalog-grid-cover img {
  transform: scale(1.04);
}

.catalog-grid-actions-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #0F172A;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.circular-score-pill {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid #2563EB;
  color: #2563EB;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   Tutor Student Questions & Doubts Solver (questions.html)
   ========================================================================== */

.doubt-queue-scroll {
  overflow-y: auto;
  overflow-x: hidden;
}

.doubt-queue-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.doubt-queue-card:hover {
  border-color: #CBD5E1;
  background: #F8FAFC;
  transform: translateX(2px);
}

.doubt-queue-card.active {
  border-color: #2563EB;
  background: #F8FAFC;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.doubt-queue-card.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  background: #2563EB;
  border-radius: 0 4px 4px 0;
}

.doubt-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #1E293B;
  color: #93C5FD;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-right: 0.85rem;
}

.doubt-tag-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  line-height: 1.25;
}

.doubt-tag-pill.course-react {
  background: #EFF6FF;
  color: #2563EB;
  border: 1px solid #BFDBFE;
}

.doubt-tag-pill.course-python {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.doubt-tag-pill.course-devops {
  background: #F0FDF4;
  color: #0D9488;
  border: 1px solid #99F6E4;
}

.doubt-priority-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  line-height: 1.25;
}

.doubt-priority-badge.urgent {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

.doubt-priority-badge.medium {
  background: #FFFBEB;
  color: #D97706;
  border: 1px solid #FDE68A;
}

.doubt-priority-badge.resolved {
  background: #F0FDF4;
  color: #16A34A;
  border: 1px solid #BBF7D0;
}

.doubt-code-block {
  background: #0F172A;
  color: #F8FAFC;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  overflow-x: auto;
  position: relative;
  border: 1px solid #1E293B;
}

.doubt-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.85rem;
  background: #1E293B;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  font-size: 0.75rem;
  color: #94A3B8;
  border-bottom: 1px solid #334155;
}

.ai-assistant-box {
  background: linear-gradient(135deg, #EFF6FF 0%, #EEF2FF 100%);
  border: 1px solid #BFDBFE;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  position: relative;
}

.ai-assistant-badge {
  background: linear-gradient(135deg, #2563EB 0%, #4F46E5 100%);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.mentor-editor-toolbar {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.6rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-bottom: none;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  flex-wrap: wrap;
}

.editor-tool-btn {
  background: transparent;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.15s ease;
}

.editor-tool-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.doubt-response-textarea {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-color: #E2E8F0;
  font-size: 0.88rem;
  resize: vertical;
  min-height: 120px;
}

.doubt-response-textarea:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* macOS Terminal Box */
.macos-terminal-box {
  background: #0F172A;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #1E293B;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.15);
}

.macos-traffic-lights {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.traffic-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.traffic-dot.red { background: #EF4444; }
.traffic-dot.yellow { background: #F59E0B; }
.traffic-dot.green { background: #10B981; }

.copilot-card {
  background: #F0F7FF;
  border: 1px solid #BAE6FD;
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.doubts-tab-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  border-bottom: 2px solid #F1F5F9;
  margin-bottom: 1rem;
}

.doubts-tab-btn {
  background: transparent;
  border: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: #64748B;
  padding: 0.5rem 0.2rem;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.doubts-tab-btn:hover {
  color: #0F172A;
}

.doubts-tab-btn.active {
  color: #2563EB;
  font-weight: 600;
}

.doubts-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #2563EB;
  border-radius: 2px;
}

/* ==========================================================================
   Tutor Earnings & Payouts Dashboard (earnings.html)
   ========================================================================== */

.payout-account-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.payout-gateway-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #6366F1;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  flex-shrink: 0;
}

.payout-status-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  line-height: 1.25;
}

.payout-status-pill.paid {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.payout-status-pill.processing {
  background: #EFF6FF;
  color: #2563EB;
  border: 1px solid #BFDBFE;
}

.payout-status-pill.pending {
  background: #FFFBEB;
  color: #D97706;
  border: 1px solid #FDE68A;
}

.course-earn-row {
  transition: background 0.15s ease;
}

.course-earn-row:hover {
  background-color: #F8FAFC;
}

.course-earn-thumb {
  width: 44px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.finance-trend-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.22rem 0.6rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.25;
}

.finance-trend-pill i {
  font-size: 0.95rem;
  margin-right: 0.2rem;
  line-height: 1;
}

.finance-trend-pill.success {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.finance-trend-pill.primary {
  background: #EFF6FF;
  color: #2563EB;
  border: 1px solid #BFDBFE;
}

/* Duration Pills & Metric Switcher */
.chart-time-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #64748B;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.25;
}

.chart-time-pill:hover {
  color: #0F172A;
  background: #F8FAFC;
  border-color: #CBD5E1;
}

.chart-time-pill.active {
  background: #1E293B;
  color: #FFFFFF;
  border-color: #1E293B;
  box-shadow: 0 2px 6px rgba(30, 41, 59, 0.15);
}

.chart-metric-btn {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #64748B;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chart-metric-btn.active {
  background: #FFFFFF;
  color: #2563EB;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.chart-micro-card {
  border-right: 1px solid #F1F5F9;
  padding-right: 1.25rem;
}

@media (max-width: 768px) {
  .chart-micro-card {
    border-right: none;
    padding-right: 0;
    margin-bottom: 0.75rem;
  }
}

.chart-bar-col {
  transition: all 0.2s ease;
  cursor: pointer;
}

.chart-bar-col:hover rect.chart-bar-bg {
  cursor: pointer;
  transition: all 0.25s ease;
}

.chart-bar-col:hover {
  filter: brightness(0.9);
}

.chart-bar-col.active {
  filter: drop-shadow(0 4px 6px rgba(37, 99, 235, 0.4));
}

.chart-node-circle {
  transition: all 0.2s ease;
  cursor: pointer;
}

.chart-node-circle:hover {
  r: 7;
  stroke-width: 4;
}

/* Invoice Modal & Printout Styling */
.invoice-doc-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 2.25rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.invoice-header-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: #2563EB;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.invoice-paid-stamp {
  border: 2px solid #10B981;
  color: #059669;
  background: #ECFDF5;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.3rem 0.8rem;
  font-size: 1.25rem;
  font-weight: 800;
  flex-shrink: 0;
}

.payout-status-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  line-height: 1.25;
}

.payout-status-pill.paid {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.payout-status-pill.processing {
  background: #EFF6FF;
  color: #2563EB;
  border: 1px solid #BFDBFE;
}

.payout-status-pill.pending {
  background: #FFFBEB;
  color: #D97706;
  border: 1px solid #FDE68A;
}

.course-earn-row {
  transition: background 0.15s ease;
}

.course-earn-row:hover {
  background-color: #F8FAFC;
}

.course-earn-thumb {
  width: 44px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.finance-trend-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.22rem 0.6rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.25;
}

.finance-trend-pill i {
  font-size: 0.95rem;
  margin-right: 0.2rem;
  line-height: 1;
}

.finance-trend-pill.success {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.finance-trend-pill.primary {
  background: #EFF6FF;
  color: #2563EB;
  border: 1px solid #BFDBFE;
}

/* Duration Pills & Metric Switcher */
.chart-time-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #64748B;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.25;
}

.chart-time-pill:hover {
  color: #0F172A;
  background: #F8FAFC;
  border-color: #CBD5E1;
}

.chart-time-pill.active {
  background: #1E293B;
  color: #FFFFFF;
  border-color: #1E293B;
  box-shadow: 0 2px 6px rgba(30, 41, 59, 0.15);
}

.chart-metric-btn {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #64748B;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chart-metric-btn.active {
  background: #FFFFFF;
  color: #2563EB;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.chart-micro-card {
  border-right: 1px solid #F1F5F9;
  padding-right: 1.25rem;
}

@media (max-width: 768px) {
  .chart-micro-card {
    border-right: none;
    padding-right: 0;
    margin-bottom: 0.75rem;
  }
}

.chart-bar-col {
  transition: all 0.2s ease;
  cursor: pointer;
}

.chart-bar-col:hover rect.chart-bar-bg {
  cursor: pointer;
  transition: all 0.25s ease;
}

.chart-bar-col:hover {
  filter: brightness(0.9);
}

.chart-bar-col.active {
  filter: drop-shadow(0 4px 6px rgba(37, 99, 235, 0.4));
}

.chart-node-circle {
  transition: all 0.2s ease;
  cursor: pointer;
}

.chart-node-circle:hover {
  r: 7;
  stroke-width: 4;
}

/* Invoice Modal & Printout Styling */
.invoice-doc-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 2.25rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.invoice-header-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: #2563EB;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.invoice-paid-stamp {
  border: 2px solid #10B981;
  color: #059669;
  background: #ECFDF5;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  display: inline-block;
  transform: rotate(-3deg);
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.invoice-table th {
  background: #F8FAFC;
  padding: 0.65rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #E2E8F0;
}

.invoice-table td {
  padding: 0.75rem 0.85rem;
  font-size: 0.84rem;
  border-bottom: 1px solid #F1F5F9;
}

.invoice-signature-line {
  width: 150px;
  border-bottom: 1.5px solid #0F172A;
  margin-top: 1.5rem;
  margin-bottom: 0.25rem;
}

.course-earn-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  margin-right: 16px;
  display: block;
}

.course-price-pill {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: #EFF6FF;
  color: #2563EB;
  border: 1px solid #BFDBFE;
  display: inline-block;
  line-height: 1.2;
}

.monthly-enroll-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
  background: #EFF6FF;
  color: #1D4ED8;
  display: inline-block;
  line-height: 1.2;
}

.mini-progress-bar {
  height: 3px;
  border-radius: 2px;
  background: #E2E8F0;
  overflow: hidden;
  margin-top: 3px;
  width: 75px;
}

.mini-progress-fill {
  height: 100%;
  background: #10B981;
  border-radius: 2px;
}

.course-drilldown-btn {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.course-drilldown-btn i {
  margin-right: 0.25rem;
  font-size: 0.82rem;
}

/* ==========================================================================
   Student Reviews & Course Feedback Hub Styles (reviews.html)
   ========================================================================== */

.star-gold {
  color: #F59E0B;
}

.review-kpi-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 0.65rem 0.95rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.2s ease;
}

.review-kpi-card:hover {
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
  border-color: #CBD5E1;
}

/* Reviews Master Toolbar Card */
.reviews-toolbar-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  margin-bottom: 1rem;
}

/* Modern Capsule Tab Pills matching screenshot */
.reviews-tabs-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.reviews-tab-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.8rem;
  min-height: 32px;
  border-radius: 9999px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #334155;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
}

.reviews-tab-pill:hover {
  background: #F8FAFC;
  color: #0F172A;
  border-color: #CBD5E1;
  transform: translateY(-1px);
}

.reviews-tab-pill.active {
  background: #0B132B;
  color: #FFFFFF;
  border-color: #0B132B;
  box-shadow: 0 2px 6px rgba(11, 19, 43, 0.2);
}

.reviews-tab-pill .pill-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  background: #F1F5F9;
  color: #475569;
  line-height: 1.2;
}

.reviews-tab-pill.active .pill-badge {
  background: #F59E0B;
  color: #0F172A;
}

.reviews-tab-pill.active .pill-badge.plain {
  background: #FFFFFF;
  color: #0F172A;
}

/* Secondary Filter Bar Container & Precision Alignment */
.reviews-secondary-bar {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  margin-top: 0.65rem;
}

.filter-input-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
}

.filter-input-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1E293B;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
  margin-bottom: 0;
}

.filter-input-group .form-select,
.reviews-control-input {
  height: 36px;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid #CBD5E1;
  background-color: #FFFFFF;
  color: #0F172A;
  padding: 0.25rem 2rem 0.25rem 0.65rem;
  box-sizing: border-box;
  flex-grow: 1;
  transition: all 0.15s ease;
}

.filter-input-group .form-select:focus,
.reviews-control-input:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.search-input-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input-box .search-icon {
  position: absolute;
  left: 0.75rem;
  font-size: 0.82rem;
  color: #64748B;
  pointer-events: none;
  line-height: 1;
  z-index: 2;
}

.reviews-search-field {
  height: 36px;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid #CBD5E1;
  background-color: #FFFFFF;
  color: #0F172A;
  padding-left: 2.15rem;
  padding-right: 0.75rem;
  box-sizing: border-box;
  width: 100%;
  transition: all 0.15s ease;
}

.reviews-search-field:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  background-color: #FFFFFF;
  outline: none;
}

/* Feed Cards */
.review-card {
  transition: all 0.2s ease;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  background: #FFFFFF;
  padding: 1.45rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  margin-bottom: 1.1rem;
}

.review-card:hover {
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.07);
  border-color: #CBD5E1;
}

.review-card.pinned {
  border: 1.5px solid #93C5FD;
}

.review-pinned-banner {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 8px;
  padding: 0.5rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1D4ED8;
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sentiment-badge {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  line-height: 1.25;
}

.sentiment-badge.emerald {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.sentiment-badge.blue {
  background: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
}

.sentiment-badge.purple {
  background: #FAF5FF;
  color: #6B21A8;
  border: 1px solid #E9D5FF;
}

.instructor-reply-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-left: 4px solid #10B981;
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin-left: 3.5rem;
}

@media (max-width: 768px) {
  .instructor-reply-box {
    margin-left: 0.5rem;
  }
}

.rating-bar-track {
  height: 8px;
  border-radius: 5px;
  background: #F1F5F9;
  overflow: hidden;
  flex-grow: 1;
}

.rating-bar-fill {
  height: 100%;
  border-radius: 5px;
  background: #2563EB;
}

.rating-bar-fill.emerald {
  background: #10B981;
}

.rating-bar-fill.gold {
  background: #F59E0B;
}

.review-action-btn {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.42rem 0.85rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.15s ease;
}

.review-action-btn i {
  margin-right: 0.2rem;
}

/* ==========================================================================
   Modern SaaS Pagination UI Component (Pixel-Perfect Alignment)
   ========================================================================== */

.pagination-container-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  margin-top: 1.25rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pagination-pills-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pagination-btn {
  height: 32px;
  min-width: 32px;
  padding: 0 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  line-height: 1;
  vertical-align: middle;
  box-sizing: border-box;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  user-select: none;
}

.pagination-btn i {
  font-size: 0.72rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.pagination-btn:hover:not(:disabled):not(.active) {
  background: #F8FAFC;
  color: #0F172A;
  border-color: #CBD5E1;
}

.pagination-btn.active {
  background: #2563EB;
  color: #FFFFFF;
  border-color: #2563EB;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.22);
}

.pagination-btn:disabled,
.pagination-btn.disabled {
  background: #F8FAFC;
  color: #94A3B8;
  border-color: #E2E8F0;
  cursor: not-allowed;
  opacity: 0.8;
  pointer-events: none;
}

.pagination-ellipsis {
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #94A3B8;
  padding: 0 0.25rem;
  line-height: 1;
}

.pagination-per-page {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #64748B;
}

.pagination-per-page select {
  height: 30px;
  font-size: 0.8rem;
  border-radius: 6px;
  border: 1px solid #CBD5E1;
  padding: 0 0.4rem;
  background-color: #FFFFFF;
}

/* ==========================================================================
   Student Mentorship Directory & Table Styles (Compact & Sleek)
   ========================================================================== */

.students-table-container {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.students-table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.students-table thead th {
  background: #F8FAFC;
  color: #475569;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.75rem 0.95rem;
  border-bottom: 1px solid #E2E8F0;
  white-space: nowrap;
}

.students-table tbody tr {
  transition: background-color 0.15s ease;
}

.students-table tbody tr:hover {
  background-color: #F8FAFC;
}

.students-table tbody tr.at-risk-row {
  background-color: #FFFBEB;
}

.students-table tbody tr.at-risk-row:hover {
  background-color: #FEF3C7;
}

.students-table tbody td {
  padding: 0.75rem 0.95rem;
  vertical-align: middle;
  border-bottom: 1px solid #F1F5F9;
  font-size: 0.84rem;
}

.student-info-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.student-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  max-width: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.student-progress-track {
  height: 6px;
  background-color: #E2E8F0;
  border-radius: 9999px;
  overflow: hidden;
  width: 100%;
  min-width: 100px;
}

.student-progress-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.student-progress-fill.emerald {
  background: linear-gradient(90deg, #10B981, #059669);
}

.student-progress-fill.blue {
  background: linear-gradient(90deg, #3B82F6, #2563EB);
}

.student-progress-fill.amber {
  background: linear-gradient(90deg, #F59E0B, #D97706);
}

.student-progress-fill.red {
  background: linear-gradient(90deg, #EF4444, #DC2626);
}

/* Floating / Inline Batch Action Bar */
.batch-action-bar {
  background: #0F172A;
  color: #FFFFFF;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
  animation: fadeInDown 0.2s ease;
}

/* Mentorship Chat Offcanvas */
.chat-bubble-received {
  background: #F1F5F9;
  color: #0F172A;
  border-radius: 12px 12px 12px 4px;
  padding: 0.65rem 0.85rem;
  max-width: 80%;
  font-size: 0.84rem;
  line-height: 1.45;
}

.chat-bubble-sent {
  background: #2563EB;
  color: #FFFFFF;
  border-radius: 12px 12px 4px 12px;
  padding: 0.65rem 0.85rem;
  max-width: 80%;
  font-size: 0.84rem;
  line-height: 1.45;
  margin-left: auto;
}

.quick-reply-chip {
  font-size: 0.74rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 9999px;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.quick-reply-chip:hover {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: #1D4ED8;
}

/* Student Action Button Spacing & Compact Sizing */
.student-actions-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

/* Live Updating Number & Dot Styles (Static & Normal) */
.live-pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background-color: #10B981;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

.live-updating-flash {
  display: inline-block;
}

.kpi-num-counter {
  display: inline-block;
  transition: transform 0.2s ease;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Student Questions & Doubts Solver Hub Styles (questions.html)
   ========================================================================== */

.doubt-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.15rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.doubt-card:hover {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  border-color: #CBD5E1;
}

.doubt-card.urgent-card {
  border-left: 4px solid #EF4444;
  background: #FFFBFA;
}

.doubt-card.resolved-card {
  border-left: 4px solid #10B981;
  background: #F8FAFC;
  opacity: 0.92;
}

/* Syntax Highlighted Dark Code Box */
.code-snippet-box {
  background: #0F172A;
  color: #E2E8F0;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin: 0.75rem 0;
  overflow-x: auto;
  border: 1px solid #1E293B;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.code-snippet-box .comment { color: #64748B; font-style: italic; }
.code-snippet-box .keyword { color: #F43F5E; font-weight: 600; }
.code-snippet-box .func { color: #38BDF8; font-weight: 500; }
.code-snippet-box .str { color: #34D399; }
.code-snippet-box .err-line { 
  background: rgba(239, 68, 68, 0.2); 
  display: block; 
  margin: 0 -1rem; 
  padding: 0 1rem; 
  border-left: 3px solid #EF4444; 
}

/* Code Diff Box in Drawer */
.code-diff-box {
  background: #0B132B;
  border-radius: 8px;
  border: 1px solid #1E293B;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  overflow: hidden;
}

.diff-line-removed {
  background: rgba(239, 68, 68, 0.15);
  color: #FCA5A5;
  padding: 0.25rem 0.75rem;
  border-left: 3px solid #EF4444;
}

.diff-line-added {
  background: rgba(16, 185, 129, 0.15);
  color: #86EFAC;
  padding: 0.25rem 0.75rem;
  border-left: 3px solid #10B981;
}

.sla-countdown-badge {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ==========================================================================
   My Affiliated Institutes & Teaching Contracts (my-institutes.html)
   ========================================================================== */

.invite-banner-card {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border: 1.5px solid #FCD34D;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.08);
}

.institute-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.15rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.institute-card:hover {
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  border-color: #CBD5E1;
}

.institute-logo-box {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.contract-tag {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
  display: inline-flex;
  align-items: center;
}

.stat-pill {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  text-align: center;
  min-width: 0;
}

.stat-pill strong {
  font-size: 0.85rem;
  white-space: nowrap;
}

.student-actions-column {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
  max-width: 125px;
  margin-left: auto;
}

.student-actions-column .btn {
  width: 100%;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 6px;
}

.institute-card .student-actions-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.institute-card .btn-sm {
  padding: 0.32rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 6px;
}

/* Incoming Faculty Invitation Banner (Pixel-matched) */
.invite-banner-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 1.4rem 1.65rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.invite-badge-tag {
  background-color: #064E3B;
  color: #34D399;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.22rem 0.65rem;
  border-radius: 9999px;
  display: inline-block;
  margin-bottom: 0.65rem;
}

.invite-actions-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.invite-btn-decline {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #1E293B;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.invite-btn-decline:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
  color: #0F172A;
}

.invite-btn-accept {
  background: #0052FF;
  border: 1px solid #0052FF;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  box-shadow: 0 2px 6px rgba(0, 82, 255, 0.2);
  transition: all 0.2s ease;
  cursor: pointer;
}

.invite-btn-accept:hover {
  background: #0045D8;
  border-color: #0045D8;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 82, 255, 0.3);
}

/* Decline / Reject Animation */
@keyframes declineShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

@keyframes bannerSlideOutReject {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
    max-height: 200px;
    margin-bottom: 1.25rem;
    padding: 1.25rem 1.5rem;
  }
  35% {
    opacity: 0.8;
    transform: scale(0.98);
    background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
    border-color: #EF4444;
  }
  100% {
    opacity: 0;
    transform: translateX(60px) scale(0.92);
    max-height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
  }
}

.banner-anim-reject {
  animation: bannerSlideOutReject 0.65s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
  pointer-events: none;
}

/* Accept / Sign Animation */
@keyframes acceptPulseSuccess {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.02);
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    border-color: #10B981;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.22);
  }
  75% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-20px) scale(0.96);
    max-height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
  }
}

.banner-anim-accept {
  animation: acceptPulseSuccess 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  pointer-events: none;
}

/* New Faculty Card Entrance Animation */
@keyframes newCardSlideIn {
  from {
    opacity: 0;
    transform: translateY(-25px) scale(0.95);
    box-shadow: 0 0 0 rgba(16, 185, 129, 0);
  }
  50% {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.new-academy-card-enter {
  animation: newCardSlideIn 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  border-color: #10B981 !important;
}

/* ==========================================================================
   Global Offcanvas & Modal Layering & Header Fix
   ========================================================================== */

.offcanvas {
  z-index: 1070 !important;
}

.offcanvas-backdrop {
  z-index: 1065 !important;
}

.modal {
  z-index: 1080 !important;
}

.modal-backdrop {
  z-index: 1075 !important;
}

.offcanvas-header {
  padding: 1.1rem 1.5rem !important;
  min-height: 68px;
  background-color: #FFFFFF !important;
  border-bottom: 1px solid #E2E8F0 !important;
}

/* ==========================================================================
   Tutor Professional Identity, Dual-Mode & Settings Hub Styles (Stitch Design)
   ========================================================================== */

.profile-hero-banner {
  background: #111827;
  border-radius: 16px;
  padding: 1.75rem 2rem;
  color: #FFFFFF;
  position: relative;
  border: 1px solid #1F2937;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.profile-avatar-box {
  position: relative;
  display: inline-block;
}

.profile-avatar-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid #1F2937;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.avatar-edit-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 28px;
  height: 28px;
  background: #2563EB;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  border: 2px solid #111827;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}

.avatar-edit-badge:hover {
  transform: scale(1.1);
}

.profile-nav-pills {
  display: flex;
  gap: 0.35rem;
  background: #FFFFFF;
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  overflow-x: auto;
}

.profile-nav-pills .nav-link {
  color: #64748B;
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: none;
  background: transparent;
  cursor: pointer;
}

.profile-nav-pills .nav-link:hover {
  color: #0F172A;
  background: #F8FAFC;
}

.profile-nav-pills .nav-link.active {
  color: #2563EB;
  background: #EFF6FF;
  font-weight: 600;
}

.profile-card-surface {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.mode-capability-card {
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  background: #F8FAFC;
  transition: all 0.2s ease;
}

.mode-capability-card.active-mode {
  border-color: #0052FF;
  background: #F8FAFC;
  box-shadow: 0 2px 8px rgba(0, 82, 255, 0.08);
}

.mode-capability-card.inactive-mode {
  opacity: 0.6;
  border-color: #CBD5E1;
  background: #F1F5F9;
}

.mode-badge-on {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.mode-badge-single {
  background: #EFF6FF;
  color: #2563EB;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  border: 1px solid #BFDBFE;
}

.credential-row {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: all 0.2s;
}

.credential-row:hover {
  border-color: #CBD5E1;
  background: #FFFFFF;
}

.time-slot-pill {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.day-schedule-row {
  border-bottom: 1px solid #F1F5F9;
  padding: 0.75rem 0;
}

.day-schedule-row:last-child {
  border-bottom: none;
}

.social-link-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  text-decoration: none !important;
  color: #1E293B;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  white-space: nowrap;
  width: 100%;
}

.social-link-btn:hover {
  border-color: #2563EB;
  background: #F8FAFC;
  color: #2563EB;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.social-btn-text {
  color: #1E293B;
  font-weight: 500;
  font-size: 0.82rem;
  transition: color 0.15s ease;
}

.social-link-btn:hover .social-btn-text {
  color: #2563EB;
}

/* Custom Spacing Helpers for Fractional Bootstrap Utilities */
.gap-1\.5 {
  gap: 0.5rem !important;
}

.mb-1\.5 {
  margin-bottom: 0.5rem !important;
}

.gap-2\.5 {
  gap: 0.75rem !important;
}

.p-2\.5 {
  padding: 0.75rem !important;
}

/* ==========================================================================
   Live Dynamic Counter & Scroll Telemetry Styles
   ========================================================================== */
.live-counter-stat {
  display: inline-block;
  color: #0F172A !important;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.live-counter-stat.live-counting {
  color: #0F172A !important; /* Stays solid black while loading / updating */
  text-shadow: none !important;
}

.live-indicator-dot {
  width: 7px;
  height: 7px;
  background-color: #10B981;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}

/* ==========================================================================
   Mentorship Schedule & Verified Credentials (Mockup Match)
   ========================================================================== */
.schedule-day-row {
  display: flex;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid #F1F5F9;
  gap: 1rem;
}

.schedule-day-row:last-child {
  border-bottom: none;
}

.schedule-day-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 140px;
  font-weight: 600;
  color: #1E293B;
  font-size: 0.88rem;
  flex-shrink: 0;
}

.slot-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #EFF6FF;
  color: #1E293B;
  border: 1px solid #DBEAFE;
  border-radius: 9999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.slot-chip:hover {
  background: #DBEAFE;
  border-color: #BFDBFE;
}

.slot-chip .remove-slot {
  color: #94A3B8;
  cursor: pointer;
  font-size: 0.8rem;
}

.slot-chip .remove-slot:hover {
  color: #EF4444;
}

.session-duration-btn {
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #475569;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.session-duration-btn:hover {
  background: #F8FAFC;
  color: #1E293B;
}

.session-duration-btn.active {
  background: #EFF6FF;
  color: #2563EB;
  border-color: #2563EB;
}

.rate-card-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.credential-stitch-card {
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  transition: all 0.15s ease;
}

.credential-stitch-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.credential-stitch-card.verified-featured {
  background: #ECFDF5;
  border-color: #A7F3D0;
}

.credential-logo-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.credential-logo-box.mit {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #A31F34;
}

.credential-logo-box.aws {
  background: #111827;
  color: #FF9900;
  border: 1px solid #1F2937;
}

/* ==========================================================================
   Connect to Calendar & Zoom Sync Bar (Right Side of Display)
   ========================================================================== */
.connect-sync-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.65rem;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 9999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  white-space: nowrap;
}

.connect-sync-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #0F172A;
  white-space: nowrap;
}

.connect-sync-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.connect-sync-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: #0F172A;
  white-space: nowrap;
}

.connect-sync-divider {
  width: 1px;
  height: 16px;
  background-color: #E2E8F0;
  display: inline-block;
  margin: 0 0.15rem;
}

.sync-switch-input {
  width: 2rem !important;
  height: 1.15rem !important;
  cursor: pointer;
  background-color: #CBD5E1;
  border: none !important;
  border-radius: 2rem !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e") !important;
  transition: background-position .15s ease-in-out, background-color .15s ease-in-out !important;
}

.sync-switch-input:checked {
  background-color: #2563EB !important;
}

.sync-switch-input:focus {
  box-shadow: 0 0 0 0.15rem rgba(37, 99, 235, 0.15) !important;
}

/* Priority 2: Modern Financial Payout UI Styles */
.payout-method-card {
  border: 1.5px solid #E2E8F0;
  border-radius: 0.75rem;
  padding: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  background: #FFFFFF;
  position: relative;
}

.payout-method-card:hover {
  border-color: #94A3B8;
  background: #F8FAFC;
}

.payout-method-card.active {
  border-color: #10B981;
  background: #F0FDF4;
  box-shadow: 0 0 0 1px #10B981;
}

.payout-method-icon {
  width: 38px;
  height: 38px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.payout-method-icon.instant {
  background: #EFF6FF;
  color: #2563EB;
}

.payout-method-icon.ach {
  background: #F1F5F9;
  color: #475569;
}

.payout-check-indicator {
  display: none;
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  color: #10B981;
  font-size: 1rem;
}

.payout-method-card.active .payout-check-indicator {
  display: block;
}

/* Priority 3: Student Doubt Solver & IDE Reply Editor */
.code-diff-ide-box {
  background: #0F172A;
  border: 1px solid #1E293B;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.diff-num {
  display: inline-block;
  width: 24px;
  color: #64748B;
  user-select: none;
  text-align: right;
  margin-right: 8px;
}

.diff-row {
  padding: 1px 4px;
  border-radius: 3px;
}

.diff-row.diff-del {
  background: rgba(239, 68, 68, 0.18) !important;
  color: #FCA5A5 !important;
}

.diff-row.diff-add {
  background: rgba(16, 185, 129, 0.18) !important;
  color: #6EE7B7 !important;
}

.diff-comment {
  font-style: italic;
  opacity: 0.7;
}

/* ==========================================================================
   Priority 4: Course Studio & Curriculum Builder (Mockup Match)
   ========================================================================== */
.ai-outline-banner {
  background: #F0F7FF;
  border: 1px solid #BFDBFE;
  border-radius: 12px;
  padding: 1.15rem 1.4rem;
  transition: all 0.2s ease;
}

.ai-outline-banner:hover {
  border-color: #93C5FD;
  box-shadow: 0 3px 12px rgba(37, 99, 235, 0.08);
}

.module-accordion-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.module-accordion-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.module-accordion-header {
  background: #FFFFFF;
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
}

.module-accordion-header:hover {
  background: #F8FAFC;
}

.module-accordion-header .module-chevron {
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: #64748B;
  font-size: 0.9rem;
}

.module-accordion-header.collapsed .module-chevron {
  transform: rotate(-90deg);
}

.module-accordion-body {
  padding: 1rem 1.25rem;
  transition: max-height 0.3s ease;
}

.module-accordion-body.collapsed {
  display: none;
}

/* Modern Mockup Lesson Item Row */
.lesson-row-mockup {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  transition: all 0.18s ease;
}

.lesson-row-mockup:hover {
  border-color: #CBD5E1;
  background-color: #F8FAFC;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.media-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 500;
  white-space: nowrap;
}

.media-type-pill.type-video {
  background: #EFF6FF;
  color: #2563EB;
  border: 1px solid #DBEAFE;
}

.media-type-pill.type-sandbox {
  background: #F5F3FF;
  color: #7C3AED;
  border: 1px solid #DDD6FE;
}

.media-type-pill.type-quiz {
  background: #FFFBEB;
  color: #D97706;
  border: 1px solid #FDE68A;
}

.media-type-pill.type-pdf {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

.duration-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #475569;
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.free-preview-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: #475569;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.free-preview-toggle-wrap input {
  cursor: pointer;
  width: 1.85rem !important;
  height: 1.05rem !important;
}

/* Circular Course Readiness Gauge */
.readiness-gauge-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  margin-top: 1rem;
}

.readiness-svg-wrap {
  position: relative;
  width: 130px;
  height: 130px;
}

.readiness-svg-wrap svg {
  transform: rotate(-90deg);
}

.readiness-center-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.readiness-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  line-height: 1.2;
}

.readiness-pct {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.1;
}

/* ==========================================================================
   Priority 5: Student Inspection Drawer & 360° Dossier (Mockup Match)
   ========================================================================== */
.student-inspection-drawer {
  width: 540px !important;
  max-width: 90vw;
  background: #FFFFFF;
  border-left: 1px solid #E2E8F0;
  box-shadow: -4px 0 24px rgba(15, 23, 42, 0.08);
}

.student-hero-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.student-hero-avatar {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #E2E8F0;
  flex-shrink: 0;
}

.stacked-action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 142px;
  padding: 0.4rem 0.75rem;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #1E293B;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  text-decoration: none;
  white-space: nowrap;
}

.stacked-action-btn:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #2563EB;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.05);
}

.inspection-kpi-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 1rem 0.95rem;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.kpi-watermark-icon {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 1.65rem;
  color: #94A3B8;
  opacity: 0.35;
  line-height: 1;
  pointer-events: none;
}

.timeline-wide-note {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 0.5rem 0.85rem;
  font-size: 0.78rem;
  color: #334155;
  line-height: 1.4;
}

.inspection-stat-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 0.95rem 0.85rem;
  text-align: center;
  flex: 1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
}

.inspection-stat-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.1;
  margin-bottom: 2px;
}

.inspection-stat-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: #475569;
}

.inspection-stat-sub {
  font-size: 0.68rem;
  color: #94A3B8;
}

.inspection-tabs-bar {
  display: flex;
  border-bottom: 1px solid #E2E8F0;
  gap: 1.5rem;
}

.inspection-tab-item {
  padding: 0.65rem 0.15rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #64748B;
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.inspection-tab-item:hover {
  color: #1E293B;
}

.inspection-tab-item.active {
  color: #2563EB;
}

.inspection-tab-item.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: #2563EB;
  border-radius: 2px 2px 0 0;
}

.timeline-module-node {
  position: relative;
  padding-left: 1.85rem;
  padding-bottom: 1.25rem;
}

.timeline-module-node:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 20px;
  bottom: 0;
  width: 2px;
  background: #E2E8F0;
}

.timeline-check-circle {
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #10B981;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}

.timeline-pr-circle {
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #059669;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}

.tutor-note-chip {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  font-size: 0.74rem;
  color: #334155;
  display: inline-block;
}

/* ==========================================================================
   Certificate Customizer & Template Studio Modal (Mockup Match)
   ========================================================================== */
.cert-studio-modal .modal-content {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}

.cert-canvas-container {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.08);
  transition: all 0.3s ease;
  background-size: cover;
  background-position: center;
}

/* Template 1: Classic Gold */
.cert-theme-classic {
  background-color: #FCFBF7;
  border: 12px solid #1E293B;
  outline: 3px solid #D97706;
  outline-offset: -8px;
}

/* Template 2: Modern Tech Blue */
.cert-theme-modern {
  background: linear-gradient(135deg, #FFFFFF 0%, #F0F7FF 100%);
  border: 12px solid #0F172A;
  outline: 3px solid #2563EB;
  outline-offset: -8px;
}

/* Template 3: Minimalist Slate */
.cert-theme-minimalist {
  background-color: #FFFFFF;
  border: 10px solid #0F172A;
  outline: 2px solid #64748B;
  outline-offset: -6px;
}

.cert-editable-box {
  display: inline-block;
  border: 1.5px solid #2563EB;
  padding: 2px 14px;
  border-radius: 4px;
  background: rgba(37, 99, 235, 0.04);
  position: relative;
  transition: all 0.2s ease;
}

.cert-editable-box::after {
  content: '';
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 9px;
  height: 9px;
  background: #2563EB;
  border: 1px solid #FFFFFF;
}

.cert-template-thumb {
  border: 2px solid #E2E8F0;
  border-radius: 8px;
  padding: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  background: #FFFFFF;
}

.cert-template-thumb:hover {
  border-color: #94A3B8;
  transform: translateY(-2px);
}

.cert-template-thumb.active {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.cert-template-preview-box {
  height: 50px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.cert-gold-seal {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle, #FDE68A 0%, #D97706 70%, #B45309 100%);
  border: 2px solid #F59E0B;
  box-shadow: 0 3px 6px rgba(180, 83, 9, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #78350F;
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}

.cert-upload-btn {
  border: 1.5px dashed #2563EB;
  background: #F0F7FF;
  color: #2563EB;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: block;
  width: 100%;
}

.cert-upload-btn:hover {
  background: #DBEAFE;
  border-color: #1D4ED8;
}

/* ==========================================================================
   Priority 6: Contract & Dean Drawers (my-institutes.html)
   ========================================================================== */
.contract-drawer, .dean-office-drawer {
  width: 580px !important;
  max-width: 92vw;
  background: #FFFFFF;
  border-left: 1px solid #E2E8F0;
  box-shadow: -6px 0 28px rgba(15, 23, 42, 0.09);
}

.contract-section-heading {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.69rem;
  font-weight: 700;
  color: #64748B;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.contract-brand-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 1rem 1.15rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.contract-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  background: #E6F8F0;
  border: 1px solid #A7F3D0;
  border-radius: 8px;
  color: #047857;
}

.contract-status-pill.status-pending {
  background: #FEF3C7;
  border-color: #FDE68A;
  color: #B45309;
}

.contract-status-text {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: left;
}

.contract-kpi-card {
  border-radius: 8px;
  padding: 0.95rem 0.5rem;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  text-align: center;
  transition: all 0.2s ease;
}

.contract-kpi-card.kpi-blue {
  background: #EFF6FF;
  border-color: #BFDBFE;
}

.contract-kpi-card.kpi-green {
  background: #ECFDF5;
  border-color: #A7F3D0;
}

.contract-kpi-card.kpi-slate {
  background: #FFFFFF;
  border-color: #E2E8F0;
}

.contract-kpi-val {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.25rem;
}

.contract-kpi-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 600;
  color: #475569;
}

.contract-course-pill {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 0.42rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: #1E293B;
  display: inline-block;
}

.contract-legal-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 1.15rem;
  font-size: 0.81rem;
  line-height: 1.62;
  color: #334155;
}

.btn-black-contract {
  background: #000000 !important;
  border-color: #000000 !important;
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: 6px;
  padding: 0.55rem 1.4rem;
  transition: all 0.15s ease;
}

.btn-black-contract:hover {
  background: #1E293B !important;
  border-color: #1E293B !important;
  color: #FFFFFF !important;
}

.btn-pdf-contract {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #1E293B;
  font-weight: 500;
  font-size: 0.82rem;
  border-radius: 6px;
  padding: 0.55rem 1.15rem;
  transition: all 0.15s ease;
}

.btn-pdf-contract:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #0F172A;
}

.dean-profile-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  overflow: visible !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  flex-shrink: 0 !important;
  position: relative;
}

.dean-card-header-banner {
  height: 72px;
  background: linear-gradient(135deg, #065F46 0%, #059669 50%, #0D9488 100%);
  position: relative;
  padding: 0.75rem 1rem;
  border-top-left-radius: 13px;
  border-top-right-radius: 13px;
}

.dean-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.75rem;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: #FFFFFF;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.pulse-dot-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34D399;
}

.dean-avatar-wrapper {
  margin-top: -40px;
  position: relative;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.dean-avatar-img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 4px solid #FFFFFF;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  object-fit: cover;
  display: block;
}

.dean-verified-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2563EB;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

.dean-card-content {
  padding: 0 1rem 1.25rem 1rem;
  text-align: center;
}

.dean-name-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.dean-role-title {
  font-size: 0.8rem;
  color: #64748B;
  font-weight: 500;
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.dean-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.85rem;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: 999px;
  color: #047857;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
}

.inquiry-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.95rem;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 999px;
  color: #334155;
  font-size: 0.77rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  white-space: nowrap;
}

.inquiry-chip:hover {
  background: #EFF6FF;
  border-color: #93C5FD;
  color: #1D4ED8;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.12);
}

.dean-chat-thread {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  max-height: 400px;
  min-height: 240px;
  background: #F8FAFC;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 transparent;
}

.dean-chat-thread::-webkit-scrollbar {
  width: 5px;
}

.dean-chat-thread::-webkit-scrollbar-track {
  background: transparent;
}

.dean-chat-thread::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 999px;
}

.dean-chat-thread::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

.chat-date-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0.25rem 0;
}

.chat-date-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #E2E8F0;
}

.chat-date-pill {
  position: relative;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.69rem;
  color: #64748B;
  font-weight: 600;
}

.chat-row-dean {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  max-width: 88%;
  align-self: flex-start;
}

.chat-row-tutor {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: 84%;
  align-self: flex-end;
}

.dean-micro-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.chat-bubble-dean {
  background: #FFFFFF;
  color: #1E293B;
  border: 1px solid #E2E8F0;
  border-radius: 14px 14px 14px 2px;
  padding: 0.85rem 1.05rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  font-size: 0.84rem;
  line-height: 1.55;
}

.chat-bubble-tutor {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF;
  border-radius: 14px 14px 2px 14px;
  padding: 0.85rem 1.05rem;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.2);
  font-size: 0.84rem;
  line-height: 1.55;
}

.chat-bubble-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.chat-bubble-author {
  font-size: 0.72rem;
  font-weight: 700;
  color: #334155;
}

.chat-bubble-time {
  font-size: 0.68rem;
  color: #94A3B8;
}

.chat-bubble-time-tutor {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.35rem;
  text-align: right;
}

.dean-composer-card {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  transition: all 0.2s ease;
}

.dean-composer-card:focus-within {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.dean-composer-textarea {
  border: none;
  outline: none;
  resize: none;
  width: 100%;
  padding: 0.85rem 1rem 0.4rem 1rem;
  font-size: 0.85rem;
  color: #0F172A;
  background: transparent;
  min-height: 52px;
  max-height: 120px;
}

.dean-composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.85rem;
  border-top: 1px solid #F1F5F9;
  background: #FFFFFF;
}

.composer-tool-btn {
  background: transparent;
  border: none;
  color: #64748B;
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
  font-size: 0.88rem;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.composer-tool-btn:hover {
  background: #F1F5F9;
  color: #2563EB;
}

.composer-send-btn {
  background: #2563EB;
  border: none;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.45rem 1.15rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.composer-send-btn:hover {
  background: #1D4ED8;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}

.composer-footer-hint {
  padding: 0.35rem 0.85rem;
  background: #F8FAFC;
  border-top: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  color: #94A3B8;
}

/* ==========================================================================
   TUTOR DASHBOARD - OVERVIEW GRAPH & ANALYTICS HUB (Reference Matching)
   ========================================================================== */

.overview-hub-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.05);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.overview-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.overview-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 0;
  letter-spacing: -0.3px;
}

.overview-time-pills {
  display: inline-flex;
  background: #F1F5F9;
  padding: 3px;
  border-radius: 10px;
  gap: 2px;
}

.overview-time-pill {
  border: none;
  background: transparent;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748B;
  border-radius: 7px;
  transition: all 0.18s ease;
  cursor: pointer;
}

.overview-time-pill:hover {
  color: #0F172A;
}

.overview-time-pill.active {
  background: #FFFFFF;
  color: #2563EB;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.overview-micro-cards-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.overview-micro-card {
  flex: 1 1 calc(25% - 0.75rem);
  min-width: 135px;
  background: #F8FAFC;
  border: 1px solid #F1F5F9;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
}

.overview-micro-card:hover {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.overview-micro-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.overview-micro-val-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.overview-micro-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.2px;
}

.overview-micro-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 6px;
}

.overview-micro-progress-bar {
  height: 6px;
  border-radius: 4px;
  background: #E2E8F0;
  overflow: hidden;
  margin-top: 0.5rem;
}

.overview-micro-progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

/* Tutor Royal Virtual Card */
.tutor-wallet-card {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  border-radius: 16px;
  color: #FFFFFF;
  padding: 1.4rem;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.35);
  position: relative;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.tutor-wallet-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.tutor-wallet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.tutor-wallet-chip {
  width: 38px;
  height: 28px;
  background: linear-gradient(135deg, #FDE68A 0%, #F59E0B 100%);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.tutor-wallet-balance-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.85;
  margin-bottom: 0.2rem;
}

.tutor-wallet-balance-val {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.tutor-wallet-number-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: monospace;
  font-size: 0.88rem;
  letter-spacing: 1.5px;
  opacity: 0.9;
  margin-bottom: 0.8rem;
}

.tutor-wallet-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  opacity: 0.85;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 0.75rem;
}

/* Recent Activity List */
.activity-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 1.2rem;
}

.activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid #F1F5F9;
}

.activity-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.activity-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Visual Breakdown Companion Cards */
.breakdown-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 1.15rem;
  height: 100%;
}

.radial-track-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.radial-track-bar {
  flex-grow: 1;
  height: 6px;
  background: #F1F5F9;
  border-radius: 3px;
  margin: 0 0.75rem;
  overflow: hidden;
}

.radial-track-fill {
  height: 100%;
  border-radius: 3px;
}

/* ==========================================================================
   OPERATIONS ANALYTICS TEMPLATE (Faithful Reference Implementation)
   ========================================================================== */

.ops-analytics-container {
  background-color: #FFFFFF;
  background-image: 
    linear-gradient(to right, rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  border: 1px solid #E2E8F0;
  border-top: 3px solid #2563EB;
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px -2px rgba(37, 99, 235, 0.05), 0 2px 6px rgba(15, 23, 42, 0.02);
}

.ops-header-title {
  font-size: 1.32rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.3px;
  margin-bottom: 0.15rem;
}

.telemetry-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  display: inline-block;
  vertical-align: middle;
}

.ops-main-chart-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.025);
}

.ops-pill-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ops-view-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #64748B;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.ops-view-pill:hover {
  background: #F8FAFC;
  color: #0F172A;
  border-color: #CBD5E1;
}

.ops-view-pill.active {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: #1D4ED8;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.1);
}

.ops-preset-pill {
  font-size: 0.78rem;
  border-radius: 6px;
  padding: 5px 12px;
  font-weight: 500;
}

.ops-kpi-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 11px;
  padding: 0.95rem 1.05rem;
  height: 100%;
  position: relative;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
}

.ops-kpi-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
}

.ops-kpi-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.3px;
  margin-bottom: 0.25rem;
  line-height: 1.15;
}

.ops-channel-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 11px;
  padding: 1.05rem 1.15rem;
  height: 100%;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
}

.ops-channel-bar-bg {
  height: 18px;
  background: #F1F5F9;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.ops-channel-bar-fill {
  height: 100%;
  border-radius: 5px 0 0 5px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.ops-treemap-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 11px;
  padding: 1.05rem 1.15rem;
  height: 100%;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
}

.ops-treemap-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 10px;
  height: 168px;
}

.ops-treemap-right-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  height: 100%;
}

.ops-tag-translucent {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #FFFFFF !important;
  font-size: 0.62rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-block;
  line-height: 1.2;
}

.ops-tag-highlight {
  background: #FFFFFF;
  color: #1D4ED8 !important;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-block;
  line-height: 1.2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.ops-treemap-tile-primary {
  background: linear-gradient(135deg, #1E40AF 0%, #2563EB 100%);
  color: #FFFFFF;
  border-radius: 10px;
  padding: 0.95rem 1.1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  overflow: hidden;
}

.ops-treemap-tile-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}

.ops-treemap-tile-secondary {
  background: linear-gradient(135deg, #4338CA 0%, #6366F1 100%);
  color: #FFFFFF;
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 3px 10px rgba(99, 102, 241, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  overflow: hidden;
}

.ops-treemap-tile-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(99, 102, 241, 0.28);
}

.ops-treemap-tile-tertiary {
  background: linear-gradient(135deg, #0F766E 0%, #0D9488 100%);
  color: #FFFFFF;
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 3px 10px rgba(13, 148, 136, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  overflow: hidden;
}

.ops-treemap-tile-tertiary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(13, 148, 136, 0.28);
}

/* Course Catalog & Module Spacing Enhancements */
.course-catalog-card .card {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-color: #E2E8F0 !important;
}

.course-catalog-card .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04) !important;
}

.course-catalog-card .card-img-top {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.w-fit {
  width: fit-content;
}

.cursor-pointer {
  cursor: pointer;
}

/* Wishlist Heart Pop Animation */
@keyframes heartPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.4); }
  80% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.animate-heart-pop {
  animation: heartPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  display: inline-block;
}

.wishlist-heart-btn {
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  background-color: #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.wishlist-heart-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.wishlist-heart-btn:active {
  transform: scale(0.88);
}

/* ==========================================================================
   STUDENT PORTAL ENHANCED UI & INTERACTION EFFECTS
   ========================================================================== */

/* Modern Filter Tab Pills (Image 2 Match) */
.portal-filter-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-bottom: 0.5rem;
}

.portal-tab-pill {
  padding: 0.45rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1.5px solid transparent;
  background-color: transparent;
  color: #64748B;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  user-select: none;
}

.portal-tab-pill:hover {
  color: #2563EB;
  background-color: rgba(37, 99, 235, 0.06);
}

.portal-tab-pill.active {
  color: #2563EB !important;
  border-color: #2563EB !important;
  background-color: #EFF6FF !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.12);
}

/* Clean Interactive Cards (Normal Neutral Effects) */
.interactive-card,
.hover-lift,
.student-stat-card,
.master-course-card .card,
.quiz-subject-card,
.portal-stat-pill {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
  cursor: pointer;
  position: relative;
}

.interactive-card:hover,
.hover-lift:hover,
.student-stat-card:hover,
.master-course-card .card:hover,
.quiz-subject-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.06) !important;
  border-color: #CBD5E1 !important;
}

.interactive-card:active,
.hover-lift:active,
.student-stat-card:active,
.master-course-card .card:active,
.quiz-subject-card:active,
.portal-stat-pill:active {
  transform: translateY(0) scale(0.99) !important;
}

/* Button Subtle Glow & Tactile Lift */
.btn-primary {
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease, background-color 0.18s ease !important;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.32) !important;
}

.btn-primary:active {
  transform: translateY(1px) scale(0.97) !important;
}

.btn-outline-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.18) !important;
}

.btn-outline-primary:active {
  transform: translateY(1px) scale(0.97) !important;
}

/* Modern Gradient Progress Bars */
.progress {
  background-color: #F1F5F9;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, #2563EB 0%, #3B82F6 100%) !important;
  border-radius: 9999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-bg-light:hover {
  background-color: #F8FAFC !important;
  transition: background-color 0.18s ease;
}

/* Universal Invisible Scrollbars (Full Smooth Scrolling Functionality Preserved) */
*,
*::before,
*::after,
html,
body,
.dashboard-sidebar,
.dashboard-sidebar *,
.sidebar-menu,
.dashboard-main,
.dashboard-content,
.modal-body {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

*::-webkit-scrollbar,
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.dashboard-sidebar::-webkit-scrollbar,
.dashboard-sidebar *::-webkit-scrollbar,
.sidebar-menu::-webkit-scrollbar,
.dashboard-main::-webkit-scrollbar,
.dashboard-content::-webkit-scrollbar,
.modal-body::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* ==========================================================================
   QUIZZES ASSESSMENT STATION - MODERN UI STYLES
   ========================================================================== */

.quiz-hero-banner {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 55%, #1D4ED8 100%);
  border-radius: 16px;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15);
}

.quiz-hero-banner::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.quiz-stat-pill {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.quiz-stat-pill:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
}

.quiz-subject-card {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
  border-radius: 14px;
}

.quiz-subject-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(37, 99, 235, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.05);
  border-color: #93C5FD !important;
}

.quiz-difficulty-badge {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

.quiz-difficulty-beginner {
  background-color: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.quiz-difficulty-intermediate {
  background-color: #EFF6FF;
  color: #2563EB;
  border: 1px solid #BFDBFE;
}

.quiz-difficulty-advanced {
  background-color: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

.quiz-option-card {
  border: 1.5px solid #E2E8F0;
  background-color: #FFFFFF;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.quiz-option-card:hover {
  border-color: #93C5FD;
  background-color: #F8FAFC;
  transform: translateX(4px);
}

.quiz-option-card.selected {
  border-color: #2563EB !important;
  background-color: #EFF6FF !important;
  box-shadow: 0 0 0 1px #2563EB, 0 4px 12px rgba(37, 99, 235, 0.1);
}

.quiz-radio-indicator {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.quiz-option-card.selected .quiz-radio-indicator {
  border-color: #2563EB;
  background-color: #2563EB;
  color: #FFFFFF;
}

.quiz-nav-grid-btn {
  width: 100%;
  aspect-ratio: 1;
  max-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.2s ease;
  border: 1px solid #E2E8F0;
  background-color: #FFFFFF;
  color: #334155;
}

.quiz-nav-grid-btn:hover {
  border-color: #93C5FD;
  background-color: #F8FAFC;
  transform: scale(1.05);
}

.quiz-nav-grid-btn.current {
  background-color: #2563EB !important;
  color: #FFFFFF !important;
  border-color: #2563EB !important;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}

.quiz-nav-grid-btn.answered {
  background-color: #10B981 !important;
  color: #FFFFFF !important;
  border-color: #10B981 !important;
}

.quiz-timer-box {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  padding: 0.4rem 0.85rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  font-size: 15px;
  color: #0F172A;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.quiz-timer-box.timer-warning {
  background: #FEF2F2;
  border-color: #F87171;
  color: #DC2626;
}

/* ==========================================================================
   UNIVERSAL STUDENT PORTAL - MODERN MODULE ENHANCEMENTS
   ========================================================================== */

.portal-hero-banner {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 55%, #1D4ED8 100%);
  border-radius: 16px;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15);
}

.portal-hero-banner.banner-purple {
  background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 50%, #6D28D9 100%);
}

.portal-hero-banner.banner-emerald {
  background: linear-gradient(135deg, #0F172A 0%, #064E3B 50%, #059669 100%);
}

.portal-hero-banner.banner-amber {
  background: linear-gradient(135deg, #0F172A 0%, #451A03 50%, #D97706 100%);
}

.portal-hero-banner.banner-cyan {
  background: linear-gradient(135deg, #0F172A 0%, #083344 50%, #0284C7 100%);
}

.portal-hero-banner::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.portal-stat-pill {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.portal-stat-pill:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
}

/* Timeline & Log Components */
.portal-timeline-item {
  position: relative;
  padding-left: 28px;
  padding-bottom: 24px;
}

.portal-timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 18px;
  bottom: 0;
  width: 2px;
  background-color: #E2E8F0;
}

.portal-timeline-bullet {
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #EFF6FF;
  border: 2px solid #2563EB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #2563EB;
}

/* Video Player Theater Mode & Sidebar */
.player-theater-wrapper {
  background: #090D16;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.4);
}

.player-lesson-item {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.player-lesson-item:hover {
  background-color: #F1F5F9;
}

.player-lesson-item.active {
  background-color: #EFF6FF;
  border-color: #BFDBFE;
}

/* ==========================================================================
   MY COURSES LIST VIEW MODE
   ========================================================================== */
.my-courses-list-view .my-course-card {
  width: 100% !important;
  flex: 0 0 100% !important;
  max-width: 100% !important;
}

.my-courses-list-view .my-course-card .card {
  flex-direction: row !important;
  align-items: center !important;
  padding: 1.15rem !important;
}

.my-courses-list-view .my-course-card .card > .position-relative {
  width: 220px !important;
  height: 125px !important;
  border-radius: 10px !important;
  flex-shrink: 0 !important;
}

.my-courses-list-view .my-course-card .card-body {
  padding: 0 1.25rem !important;
  flex-grow: 1 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1.5rem !important;
}

.my-courses-list-view .my-course-card .course-info-col {
  flex: 1 1 45% !important;
}

.my-courses-list-view .my-course-card .course-progress-col {
  flex: 1 1 30% !important;
  min-width: 180px !important;
}

.my-courses-list-view .my-course-card .course-action-col {
  flex: 0 0 auto !important;
  min-width: 150px !important;
}

@media (max-width: 991px) {
  .my-courses-list-view .my-course-card .card {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .my-courses-list-view .my-course-card .card > .position-relative {
    width: 100% !important;
    height: 160px !important;
  }
  .my-courses-list-view .my-course-card .card-body {
    flex-direction: column !important;
    padding: 1rem 0 0 0 !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }
}

/* ==========================================================================
   CLEAN SOLID FILTER TABS & PILLS (NORMAL STATIC EFFECTS)
   ========================================================================== */
.portal-filter-tabs {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.portal-tab-pill,
.catalog-pill,
.mycourse-pill {
  padding: 0.5rem 1.15rem;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 9999px;
  border: 1.5px solid #CBD5E1;
  background-color: #F8FAFC;
  color: #334155;
  transition: all 0.2s ease;
  cursor: pointer;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.portal-tab-pill:hover,
.catalog-pill:hover,
.mycourse-pill:hover {
  color: #0F172A;
  background-color: #F1F5F9;
  border-color: #94A3B8;
  transform: translateY(-1px);
}

.portal-tab-pill.active,
.catalog-pill.active,
.mycourse-pill.active {
  color: #2563EB !important;
  background-color: #EFF6FF !important;
  border: 1.5px solid #2563EB !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12) !important;
  font-weight: 700;
}

.btn-white {
  background-color: #FFFFFF;
  color: #475569;
  transition: all 0.2s ease;
}

.btn-white:hover {
  background-color: #F8FAFC;
  color: #0F172A;
}

.btn-white.active {
  background-color: #0F172A !important;
  color: #FFFFFF !important;
}

.filter-pulse-active {
  border-color: #2563EB !important;
}

@keyframes cardSubtleFadeIn {
  0% {
    opacity: 0.2;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.my-course-card.animate-filter-in {
  animation: cardSubtleFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.master-course-card,
.my-course-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.master-course-card .card,
.my-course-card .card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border: 2px solid rgba(226, 232, 240, 0.9);
  position: relative;
}

.course-search-active-box .card {
  border: 2px solid #2563eb !important;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.04) 0%, #FFFFFF 100%) !important;
}

.course-search-active-box .card:hover {
  transform: translateY(-6px) scale(1.025) !important;
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.4) !important;
  border-color: #1d4ed8 !important;
}

/* ==========================================================================
   TOPBAR ACTION PICKUP MICRO-ANIMATIONS & USER DROPDOWN
   ========================================================================== */

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Unified 40px Action Buttons with Smooth Rounded Edges */
.topbar-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  background-color: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.topbar-icon-btn i {
  font-size: 17px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar-icon-btn:hover {
  background-color: #F8FAFC;
  color: #0F172A;
  border-color: #CBD5E1;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.topbar-icon-btn:active {
  transform: scale(0.92);
}

/* Floating Corner Badge Pill (Wishlist & Cart) */
.topbar-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 9999px;
  font-size: 10.5px;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  line-height: 1;
}

/* Floating Notification Live Pulse Dot */
.topbar-badge-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  pointer-events: none;
}

/* 1. Topbar Action Button Hover Effects (Clean & Normal) */
.topbar-icon-btn:has(.bi-heart):hover i,
.topbar-icon-btn:has(.bi-heart-fill):hover i {
  color: #EF4444;
}

.topbar-icon-btn:has(.bi-bell):hover i,
.topbar-icon-btn:has(.bi-bell-fill):hover i {
  color: #F59E0B;
}

/* Static Red Live Notification Dot */
#topbarNotifDot {
  width: 7px;
  height: 7px;
  background-color: #EF4444;
  border-radius: 50%;
  border: 1px solid #FFFFFF;
}

.topbar-icon-btn:has(.bi-cart3):hover i,
.topbar-icon-btn:has(.bi-cart-fill):hover i {
  color: #2563EB;
}

/* Badge Micro-Interactions */
.topbar-icon-btn .topbar-badge {
  transition: transform 0.15s ease;
}

.topbar-icon-btn:hover .topbar-badge {
  transform: scale(1.08);
}

/* 4. User Profile Dropdown Pill & Avatar Alignment */
.topbar-user {
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 14px 0 4px;
  background-color: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  flex-shrink: 0;
}

.topbar-user:hover {
  background-color: #F8FAFC;
  border-color: #CBD5E1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.topbar-user img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.22s ease;
}

.topbar-user:hover img {
  transform: scale(1.06);
}

.topbar-user .bi-chevron-down {
  font-size: 11.5px;
  color: #64748B;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown.show .topbar-user .bi-chevron-down {
  transform: rotate(180deg);
}

.topbar-user-name {
  font-size: 13px;
  font-weight: 600;
  color: #0F172A;
  white-space: nowrap;
  line-height: 1;
}

/* 5. Topbar Welcome Badge */
.greeting-wave {
  display: inline-block;
}

.topbar-welcome-badge {
  background: rgba(37, 99, 235, 0.08);
  color: #2563EB;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 9999px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.topbar-welcome-badge .pulse-green-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10B981;
}

/* ==========================================================================
   RECTANGULAR NOTIFICATION DROPDOWN BOX (FULL RIGHT ALIGNED)
   ========================================================================== */
.notification-dropdown-menu {
  border-radius: 8px !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 14px 40px -4px rgba(15, 23, 42, 0.2) !important;
  background-color: #FFFFFF !important;
  overflow: hidden !important;
  margin-top: 8px !important;
  z-index: 1060 !important;
  right: 0 !important;
  left: auto !important;
  transform: none !important;
  width: 420px !important;
  max-width: 95vw !important;
}

@media (max-width: 575.98px) {
  .notification-dropdown-menu {
    position: fixed !important;
    top: 56px !important;
    left: 10px !important;
    right: 10px !important;
    transform: none !important;
    width: auto !important;
    max-width: calc(100vw - 20px) !important;
    max-height: 82vh !important;
    border-radius: 10px !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.25) !important;
    z-index: 1070 !important;
  }

  .notification-dropdown-menu .dropdown-header-bar {
    padding: 0.65rem 0.85rem !important;
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
  }

  .notification-dropdown-menu .dropdown-header-bar h6 {
    font-size: 13px !important;
    white-space: nowrap !important;
  }

  .notification-dropdown-menu .dropdown-header-bar button {
    font-size: 11px !important;
    white-space: nowrap !important;
  }

  .notif-box-item {
    padding: 0.75rem 0.85rem !important;
  }

  .notif-icon-sq {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.9rem !important;
  }

  .notif-box-item h6 {
    font-size: 12.5px !important;
  }

  .notif-box-item p {
    font-size: 11px !important;
    line-height: 1.35 !important;
    margin-bottom: 0.35rem !important;
  }

  .notif-action-btn {
    font-size: 11.5px !important;
    padding: 0.35rem 0.6rem !important;
  }
}

.notification-dropdown-menu .dropdown-header-bar {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  background-color: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  padding: 0.85rem 1.15rem;
}

.notif-box-item {
  transition: background-color 0.18s ease;
  border-bottom: 1px solid #F1F5F9;
}

.notif-box-item:hover {
  background-color: #F8FAFC;
}

.notif-icon-sq {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.notif-action-btn {
  border-radius: 6px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  padding: 0.45rem 0.75rem !important;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.notif-action-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* ==========================================================================
   PREMIUM SAAS LMS EXTENSIONS
   ========================================================================== */

.bg-page-slate {
  background-color: #F8FAFC;
}

/* Premium Sidebar Components */
.sidebar-brand-wrapper {
  padding: 1.25rem 1rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-brand-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  margin-bottom: 0.85rem;
}

.brand-icon-sq {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
  flex-shrink: 0;
}

.brand-name-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.sidebar-workspace-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.sidebar-workspace-pill:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}

.workspace-role-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #94A3B8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.workspace-role-badge i {
  color: #6366F1;
  font-size: 0.85rem;
}

.workspace-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.sidebar-role-pill {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #60A5FA;
  border-radius: 9999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.sidebar-link.active-indigo {
  background-color: #4F46E5 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  font-weight: 600;
}

.sidebar-plan-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
  color: #F8FAFC;
  margin: 0.85rem 0.75rem 0.75rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sidebar-plan-card:hover {
  background: linear-gradient(135deg, rgba(40, 53, 75, 0.95) 0%, rgba(20, 30, 50, 0.98) 100%);
  border-color: rgba(255, 255, 255, 0.2);
}

.sidebar-plan-card .star-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(234, 179, 8, 0.18);
  color: #FACC15;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* SaaS Search Input */
.saas-search-wrapper {
  position: relative;
  width: 240px;
}

.saas-search-wrapper i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  font-size: 0.85rem;
}

.saas-search-input {
  width: 100%;
  background-color: #F1F5F9;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.4rem 0.85rem 0.4rem 2.2rem;
  font-size: 0.825rem;
  color: #0F172A;
  transition: all 0.2s ease;
}

.saas-search-input:focus {
  background-color: #FFFFFF;
  border-color: #6366F1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  outline: none;
}

/* KPI Card Polish */
.kpi-card-saas {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03), 0 4px 12px rgba(15, 23, 42, 0.015);
  transition: all 0.25s ease;
  height: 100%;
}

.kpi-card-saas:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  border-color: #CBD5E1;
}

.kpi-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Mentor Horizontal Rating Bars */
.mentor-rating-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.mentor-rating-row:last-child {
  margin-bottom: 0;
}

.mentor-rating-info {
  width: 155px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.mentor-rating-bar-container {
  flex-grow: 1;
  height: 8px;
  background-color: #EEF2FF;
  border-radius: 9999px;
  overflow: hidden;
  min-width: 0;
}

.mentor-rating-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366F1, #818CF8);
  border-radius: 9999px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.mentor-rating-value {
  width: 30px;
  font-weight: 700;
  font-size: 0.85rem;
  color: #0F172A;
  text-align: right;
  flex-shrink: 0;
}

.rating-axis-labels {
  display: flex;
  justify-content: space-between;
  margin-left: 163px;
  margin-right: 38px;
  margin-top: 0.85rem;
  padding-top: 0.4rem;
  border-top: 1px dashed #E2E8F0;
  font-size: 0.7rem;
  color: #94A3B8;
  font-weight: 500;
}

/* Activity Timeline */
.timeline-item-saas {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid #F1F5F9;
  margin-bottom: 0.95rem;
}

.timeline-item-saas:last-child {
  padding-bottom: 0;
  border-bottom: none;
  margin-bottom: 0;
}

.timeline-icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Course Sparkline Cards */
.sparkline-card-saas {
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 0.85rem 0.75rem;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  transition: all 0.2s ease;
}

.sparkline-card-saas:hover {
  background-color: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

/* Theme Customizer Component */
.theme-customizer-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 1.25rem;
}

.theme-palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
}

.theme-tile-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
  user-select: none;
}

.theme-tile-card:hover {
  border-color: #CBD5E1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.theme-tile-card.active {
  border-color: var(--primary, #4F46E5);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05);
}

.theme-swatch-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 0.7rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.theme-tile-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.theme-tile-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.theme-tile-hex {
  font-size: 0.65rem;
  color: #64748B;
  font-family: monospace;
}

.custom-picker-tile {
  border: 1.5px dashed #CBD5E1;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.custom-picker-tile:hover {
  border-color: var(--primary, #4F46E5);
  background: #FAFAFA;
}

.custom-picker-input-wrapper {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.custom-picker-native {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 44px;
  height: 44px;
  border: none;
  cursor: pointer;
}

/* Theme Preview Box */
.theme-preview-box {
  border-radius: 12px;
  padding: 1rem 1.25rem;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
}

/* Sidebar Active Plan Card */
.sidebar-plan-card {
  margin: 0.85rem 0.75rem 0.85rem;
  padding: 0.85rem 0.95rem;
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

.sidebar-plan-card .plan-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.sidebar-plan-card .plan-title-box {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.sidebar-plan-card .plan-title-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.sidebar-plan-card .plan-tier-badge {
  background: rgba(99, 102, 241, 0.22);
  color: #A5B4FC;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  white-space: nowrap;
}

.sidebar-plan-card .plan-usage-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
  font-size: 0.73rem;
}

.sidebar-plan-card .plan-usage-label {
  color: #94A3B8;
  font-weight: 500;
  white-space: nowrap;
}

.sidebar-plan-card .plan-usage-numbers {
  font-weight: 700;
  color: #F8FAFC;
  white-space: nowrap;
}

.sidebar-plan-card .plan-usage-max {
  color: #64748B;
  font-weight: 400;
}

.sidebar-plan-card .progress {
  height: 5px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.sidebar-plan-card .progress-bar {
  background: linear-gradient(90deg, #6366F1, #8B5CF6);
  border-radius: 999px;
}

/* ==========================================================================
   PERFECT MODAL & FORM CENTERING
   ========================================================================== */
.modal {
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(5px);
}

.modal-dialog {
  margin: 2.5rem auto !important;
}

.modal-dialog.modal-dialog-centered {
  min-height: calc(100% - 5rem) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.modal-dialog-centered .modal-content {
  margin: auto !important;
  border-radius: 16px !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  overflow: hidden;
}

/* ==========================================================================
   STUDENT PORTAL ENHANCED UI & INTERACTION EFFECTS
   ========================================================================== */

/* Modern Filter Tab Pills (Image 2 Match) */
.portal-filter-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-bottom: 0.5rem;
}

.portal-tab-pill {
  padding: 0.45rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1.5px solid transparent;
  background-color: transparent;
  color: #64748B;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  user-select: none;
}

.portal-tab-pill:hover {
  color: #2563EB;
  background-color: rgba(37, 99, 235, 0.06);
}

.portal-tab-pill.active {
  color: #2563EB !important;
  border-color: #2563EB !important;
  background-color: #EFF6FF !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.12);
}

/* Elevated Stat Cards */
.student-stat-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  border-color: #E2E8F0 !important;
}

.student-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.03) !important;
}

/* Polished Master Course Cards */
.master-course-card .card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  border-color: #E2E8F0 !important;
}

.master-course-card .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.09), 0 8px 12px -6px rgba(0, 0, 0, 0.04) !important;
  border-color: #CBD5E1 !important;
}

/* Button Subtle Glow & Tactile Lift */
.btn-primary {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease !important;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28) !important;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15) !important;
}

/* Modern Gradient Progress Bars */
.progress {
  background-color: #F1F5F9;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, #2563EB 0%, #3B82F6 100%) !important;
  border-radius: 9999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover Effects on List Items */
.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.hover-bg-light:hover {
  background-color: #F8FAFC !important;
  transition: background-color 0.18s ease;
}

/* Dark Theme Matching Scrollbar for Sidebar & Dark Containers */
.dashboard-sidebar,
.dashboard-sidebar * {
  scrollbar-width: thin;
  scrollbar-color: #334155 transparent;
}

.dashboard-sidebar::-webkit-scrollbar,
.dashboard-sidebar *::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.dashboard-sidebar::-webkit-scrollbar-track,
.dashboard-sidebar *::-webkit-scrollbar-track {
  background: transparent;
}

.dashboard-sidebar::-webkit-scrollbar-thumb,
.dashboard-sidebar *::-webkit-scrollbar-thumb {
  background-color: #334155;
  border-radius: 9999px;
  transition: background-color 0.2s ease;
}

.dashboard-sidebar::-webkit-scrollbar-thumb:hover,
.dashboard-sidebar *::-webkit-scrollbar-thumb:hover {
  background-color: #64748B;
}

/* Subtle Minimalist Scrollbar for Main Content */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: #CBD5E1;
  border-radius: 9999px;
}

/* ==========================================================================
   QUIZZES ASSESSMENT STATION - MODERN UI STYLES
   ========================================================================== */

.quiz-hero-banner {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 55%, #1D4ED8 100%);
  border-radius: 16px;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15);
}

.quiz-hero-banner::after {
  display: none !important;
}

.quiz-stat-pill {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.quiz-stat-pill:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
}

.quiz-subject-card {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
  border-radius: 14px;
}

.quiz-subject-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(37, 99, 235, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.05);
  border-color: #93C5FD !important;
}

.quiz-difficulty-badge {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

.quiz-difficulty-beginner {
  background-color: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.quiz-difficulty-intermediate {
  background-color: #EFF6FF;
  color: #2563EB;
  border: 1px solid #BFDBFE;
}

.quiz-difficulty-advanced {
  background-color: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

.quiz-option-card {
  border: 1.5px solid #E2E8F0;
  background-color: #FFFFFF;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.quiz-option-card:hover {
  border-color: #93C5FD;
  background-color: #F8FAFC;
  transform: translateX(4px);
}

.quiz-option-card.selected {
  border-color: #2563EB !important;
  background-color: #EFF6FF !important;
  box-shadow: 0 0 0 1px #2563EB, 0 4px 12px rgba(37, 99, 235, 0.1);
}

.quiz-radio-indicator {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.quiz-option-card.selected .quiz-radio-indicator {
  border-color: #2563EB;
  background-color: #2563EB;
  color: #FFFFFF;
}

.quiz-nav-grid-btn {
  width: 100%;
  aspect-ratio: 1;
  max-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.2s ease;
  border: 1px solid #E2E8F0;
  background-color: #FFFFFF;
  color: #334155;
}

.quiz-nav-grid-btn:hover {
  border-color: #93C5FD;
  background-color: #F8FAFC;
  transform: scale(1.05);
}

.quiz-nav-grid-btn.current {
  background-color: #2563EB !important;
  color: #FFFFFF !important;
  border-color: #2563EB !important;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}

.quiz-nav-grid-btn.answered {
  background-color: #10B981 !important;
  color: #FFFFFF !important;
  border-color: #10B981 !important;
}

.quiz-timer-box {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  padding: 0.4rem 0.85rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  font-size: 15px;
  color: #0F172A;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.quiz-timer-box.timer-warning {
  background: #FEF2F2;
  border-color: #F87171;
  color: #DC2626;
}

/* ==========================================================================
   UNIVERSAL STUDENT PORTAL - MODERN MODULE ENHANCEMENTS
   ========================================================================== */

.portal-hero-banner {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 55%, #1D4ED8 100%);
  border-radius: 16px;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15);
}

.portal-hero-banner.banner-purple {
  background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 50%, #6D28D9 100%);
}

.portal-hero-banner.banner-emerald {
  background: linear-gradient(135deg, #0F172A 0%, #064E3B 50%, #059669 100%);
}

.portal-hero-banner.banner-amber {
  background: linear-gradient(135deg, #0F172A 0%, #451A03 50%, #D97706 100%);
}

.portal-hero-banner.banner-cyan {
  background: linear-gradient(135deg, #0F172A 0%, #083344 50%, #0284C7 100%);
}

.portal-hero-banner::after {
  display: none !important;
}

.portal-stat-pill {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.portal-stat-pill:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
}

/* Timeline & Log Components */
.portal-timeline-item {
  position: relative;
  padding-left: 28px;
  padding-bottom: 24px;
}

.portal-timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 18px;
  bottom: 0;
  width: 2px;
  background-color: #E2E8F0;
}

.portal-timeline-bullet {
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #EFF6FF;
  border: 2px solid #2563EB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #2563EB;
}

/* Video Player Theater Mode & Sidebar */
.player-theater-wrapper {
  background: #090D16;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.4);
}

.player-lesson-item {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.player-lesson-item:hover {
  background-color: #F1F5F9;
}

.player-lesson-item.active {
  background-color: #EFF6FF;
  border-color: #BFDBFE;
}

/* ==========================================================================
   MOBILE SCREEN RATIO & STUDENT UI ENHANCEMENTS
   ========================================================================== */

/* Mobile Bottom Navigation Bar for Student Ease of Access */
.portal-mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid #E2E8F0;
  display: none;
  justify-content: space-around;
  align-items: center;
  z-index: 1040;
  padding: 0 4px;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
}

.portal-mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  color: #64748B;
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1;
  transition: all 0.2s ease;
  cursor: pointer;
  border-radius: 8px;
  padding: 3px 2px;
}

.portal-mobile-nav-item i {
  font-size: 19px;
  line-height: 1;
  margin-bottom: 3px;
  transition: transform 0.2s ease;
}

.portal-mobile-nav-item span {
  white-space: nowrap !important;
  font-size: 10px !important;
  line-height: 1 !important;
  display: block;
}

.portal-mobile-nav-item:active {
  transform: scale(0.92);
}

.portal-mobile-nav-item.active {
  color: #2563EB !important;
  font-weight: 700;
}

.portal-mobile-nav-item.active i {
  transform: translateY(-1px);
  color: #2563EB !important;
}

/* Enhanced Dashboard Layout Alignment */
.portal-kpi-card {
  padding: 1.25rem 1rem;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.portal-kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -5px rgba(0, 0, 0, 0.08);
  border-color: #CBD5E1;
}

.portal-kpi-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
}

/* Responsive Breakpoints & Mobile Screen Adaptations */
@media (max-width: 991.98px) {
  .portal-mobile-bottom-nav {
    display: flex !important;
  }
  .dashboard-main {
    padding-bottom: 86px !important;
  }
  .portal-hero-banner {
    padding: 1.75rem 1.25rem !important;
  }
  .dashboard-topbar {
    padding: 0.65rem 1rem !important;
  }
  .portal-filter-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding-bottom: 8px;
  }
  .catalog-pill,
  .portal-tab-pill,
  .mycourse-pill {
    flex-shrink: 0 !important;
  }
}

@media (max-width: 767.98px) {
  .dashboard-topbar {
    padding: 0.45rem 0.75rem !important;
    min-height: 52px !important;
  }

  .topbar-actions {
    gap: 0.4rem !important;
  }

  .topbar-icon-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
  }

  .topbar-icon-btn i {
    font-size: 15px !important;
  }

  .topbar-badge {
    min-width: 17px !important;
    height: 17px !important;
    font-size: 9.5px !important;
    top: -4px !important;
    right: -4px !important;
  }

  .topbar-user {
    height: 36px !important;
    padding: 0 6px 0 2px !important;
    gap: 0.35rem !important;
  }

  .topbar-user img {
    width: 28px !important;
    height: 28px !important;
  }

  .topbar-user-name {
    display: none !important;
  }

  /* Sleek Compact Mobile Hero Banners (High Usability & No Discomfort) */
  .portal-hero-banner {
    padding: 1.15rem 1rem !important;
    margin-bottom: 1rem !important;
    border-radius: 14px !important;
  }

  .portal-hero-banner h3 {
    font-size: 1.15rem !important;
    margin-bottom: 0.25rem !important;
  }

  .portal-hero-banner p {
    font-size: 11.5px !important;
    margin-bottom: 0.65rem !important;
    line-height: 1.35 !important;
  }

  .portal-stat-pill {
    padding: 0.35rem 0.5rem !important;
    min-width: auto !important;
    border-radius: 10px !important;
  }

  .portal-stat-pill .fs-4 {
    font-size: 1.05rem !important;
    line-height: 1.1 !important;
  /* Hide multi-line welcome greeting on mobile topbar */
  .topbar-welcome-badge,
  .greeting-wave,
  .topbar-greeting-name {
    display: none !important;
  }

  .dashboard-main {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    padding-bottom: 70px !important;
  }

  .portal-stat-pill small {
    font-size: 10px !important;
  }

  .portal-kpi-card {
    padding: 0.9rem 0.75rem !important;
    gap: 0.75rem !important;
  }
  .portal-kpi-icon-box {
    width: 42px !important;
    height: 42px !important;
    font-size: 1.25rem !important;
  }
  .portal-kpi-card .fs-4 {
    font-size: 1.25rem !important;
  }
  .master-course-card {
    width: 100% !important;
  }

  /* My Courses Mobile Specific Ergonomics */
  #myCourseViewGridBtn,
  #myCourseViewListBtn {
    display: none !important;
  }

  .my-course-card {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .my-course-card .card {
    border-radius: 14px !important;
  }

  .portal-filter-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    padding-bottom: 6px !important;
    gap: 0.4rem !important;
  }

  .mycourse-pill {
    flex-shrink: 0 !important;
    font-size: 12px !important;
    padding: 0.4rem 0.85rem !important;
    border-radius: 9999px !important;
  }
}

/* ==========================================================================
   TOUCH-FRIENDLY & MOBILE ACCESS OPTIMIZATIONS (WCAG & MOBILE HIGHLIGHTS)
   ========================================================================== */

/* Universal Touch Feel & Tactile Micro-Interactions */
button,
a,
.btn,
.portal-tab-pill,
.catalog-pill,
.mycourse-pill,
.portal-mobile-nav-item,
.sidebar-link,
.card,
.nav-link,
.dropdown-item {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Tactile Active Feedback for Touch Devices */
.btn:active,
.portal-tab-pill:active,
.catalog-pill:active,
.mycourse-pill:active,
.dropdown-item:active {
  transform: scale(0.97);
  transition: transform 0.1s ease;
}

/* Touch Friendly Horizontal Momentum Scrolling for Category Pills & Tab Bars */
.portal-filter-tabs,
.nav-tabs-touch-scroll {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 2px 8px 2px;
}

.portal-filter-tabs::-webkit-scrollbar,
.nav-tabs-touch-scroll::-webkit-scrollbar {
  display: none;
}

.portal-tab-pill,
.catalog-pill,
.mycourse-pill {
  scroll-snap-align: start;
  flex-shrink: 0;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  font-size: 13.5px;
  border-radius: 9999px;
  user-select: none;
}

/* Touch-optimized Minimum Target Sizes */
.btn-touch-lg {
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font-size: 15px;
}

.btn-touch-md {
  min-height: 42px;
  padding: 0.5rem 1.15rem;
  font-size: 13.5px;
}

.form-control,
.form-select {
  min-height: 42px;
  border-radius: 10px;
  font-size: 14px;
}

/* Mobile & Touch Card Ergonomics */
@media (max-width: 767.98px) {
  .btn,
  .form-control,
  .form-select {
    font-size: 14.5px !important;
  }
  
  .card {
    border-radius: 14px !important;
  }

  .portal-hero-banner {
    border-radius: 16px !important;
    padding: 1.5rem 1.15rem !important;
  }

  .modal-dialog {
    margin: 0.75rem !important;
  }

  .modal-content {
    border-radius: 18px !important;
  }

  /* Safe Area for iOS Notch and Home Indicator */
  .portal-mobile-bottom-nav {
    padding-bottom: max(6px, env(safe-area-inset-bottom));
    height: calc(60px + env(safe-area-inset-bottom, 0px));
  }
}
