/* ===================================================================
   VisionAttend - Master Enterprise Design System v5.0
   Entrypoint importing all modular design tokens, components & pages
   =================================================================== */

/* 1. Base & Tokens */
@import url("./base/variables.css");
@import url("./base/reset.css");
@import url("./base/layout.css");

/* 2. Reusable UI Components */
@import url("./components/cards.css");
@import url("./components/tables.css");
@import url("./components/buttons.css");
@import url("./components/badges.css");
@import url("./components/forms.css");
@import url("./components/modals.css");
@import url("./components/toasts.css");

/* 3. Page-Specific Styles */
@import url("./pages/auth.css");
@import url("./pages/dashboard.css");
@import url("./pages/capture.css");
@import url("./pages/review.css");
@import url("./pages/students.css");
@import url("./pages/classes.css");
@import url("./pages/reports.css");
@import url("./pages/unknown_faces.css");
@import url("./pages/model_benchmark.css");
@import url("./pages/admin_panel.css");
@import url("./pages/profile.css");

@import url("./pages/dedicated_forms.css");

/* ===================================================================
   TOPBAR GLOBAL SEARCH & USER PROFILE DROPDOWN STYLES
   =================================================================== */

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 10px 24px;
  box-sizing: border-box;
  min-height: 64px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.topbar-header-info {
  display: flex;
  flex-direction: column;
}

.breadcrumb-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6366f1;
  line-height: 1;
}

.page-main-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin: 0;
}

/* Global Search Component */
.topbar-search-wrap {
  flex: 1;
  max-width: 440px;
  position: relative;
}

.topbar-search-box {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 999px;
  padding: 6px 14px;
  transition: all 0.15s ease;
  position: relative;
}

.topbar-search-box:focus-within {
  background: #ffffff;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.topbar-search-icon {
  width: 15px;
  height: 15px;
  color: #94a3b8;
  margin-right: 8px;
  flex-shrink: 0;
}

.topbar-search-input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 0.78rem;
  color: #0f172a;
  outline: none;
  font-family: inherit;
}

.topbar-search-input::placeholder {
  color: #94a3b8;
}

.topbar-search-clear {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.15s;
}

.topbar-search-clear:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.06);
}

/* Global Search Dropdown Menu */
.search-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  min-width: 320px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  z-index: 50;
  animation: fadeInDown 0.15s ease-out;
}

.search-dropdown-header {
  padding: 8px 14px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  background: #f8fafc;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.search-results-list {
  max-height: 280px;
  overflow-y: auto;
  padding: 4px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s;
}

.search-result-item:hover {
  background: #f1f5f9;
}

.search-result-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.search-result-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.search-result-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.2;
}

.search-result-cat {
  font-size: 0.65rem;
  color: #64748b;
}

/* Topbar Right Area */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Notification Button & Badge */
.topbar-notif-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.topbar-notif-btn:hover {
  background: #f1f5f9;
  border-color: rgba(99, 102, 241, 0.2);
}

.topbar-notif-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6366f1;
  border: 1.5px solid #ffffff;
}

/* Topbar User Profile Pill & Dropdown */
.topbar-profile-container {
  position: relative;
}

.topbar-user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.15s ease;
}

.topbar-user-pill:hover {
  background: #f1f5f9;
  border-color: rgba(99, 102, 241, 0.2);
}

.topbar-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(99, 102, 241, 0.25);
}

.topbar-user-name {
  font-size: 0.74rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.topbar-user-role {
  font-size: 0.62rem;
  color: #64748b;
  line-height: 1;
}

/* Profile Dropdown Menu */
.profile-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  z-index: 50;
  animation: fadeInDown 0.15s ease-out;
}

.profile-dropdown-header {
  padding: 12px 14px;
  background: #f8fafc;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.profile-dropdown-body {
  padding: 6px;
}

.profile-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #334155;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: all 0.12s;
}

.profile-dropdown-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.profile-dropdown-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
  margin: 4px 6px;
}

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

/* Responsive Topbar Rules */
@media (max-width: 900px) {
  .topbar-search-wrap {
    max-width: 240px;
  }
}

@media (max-width: 720px) {
  .app-topbar {
    padding: 8px 14px;
    min-height: 56px;
  }
  .topbar-search-wrap {
    display: none;
  }
  .page-main-title {
    font-size: 1rem;
  }
}


/* ===================================================================
   Enterprise Notification Center & Drawer Styles
   =================================================================== */

.topbar-notif-btn {
  position: relative;
}

.topbar-notif-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  background: #ef4444;
  color: #ffffff;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4);
  line-height: 1;
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 440px;
  max-width: calc(100vw - 24px);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 16px;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  z-index: 100;
  display: flex;
  flex-direction: column;
  max-height: 580px;
  animation: notifDrop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes notifDrop {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.notif-header {
  padding: 14px 18px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.notif-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notif-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.notif-unread-pill {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.notif-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.notif-read-all-btn {
  font-size: 0.7rem;
  font-weight: 600;
  color: #6366f1;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.12s;
}

.notif-read-all-btn:hover {
  background: rgba(99, 102, 241, 0.08);
  color: #4f46e5;
}

/* Category Filter Tab Bar */
.notif-tab-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  background: #f8fafc;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  overflow-x: auto;
}

.notif-tab-btn {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.12s;
}

.notif-tab-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.notif-tab-btn.active {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Notifications List Scroll Container */
.notif-list-body {
  overflow-y: auto;
  flex: 1;
  max-height: 420px;
}

/* Notification Item Card */
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  background: #ffffff;
  cursor: pointer;
  transition: all 0.12s ease;
  position: relative;
}

.notif-item:hover {
  background: #f8fafc;
}

.notif-item.unread {
  background: rgba(99, 102, 241, 0.03);
}

.notif-item.unread:hover {
  background: rgba(99, 102, 241, 0.06);
}

.notif-unread-dot {
  position: absolute;
  top: 16px;
  right: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6366f1;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.6);
}

.notif-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.notif-icon-box.assignments {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(79, 70, 229, 0.08));
  color: #6366f1;
  border-color: rgba(99, 102, 241, 0.25);
}

.notif-icon-box.attendance {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.08));
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.25);
}

.notif-icon-box.warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(217, 119, 6, 0.08));
  color: #d97706;
  border-color: rgba(245, 158, 11, 0.25);
}

.notif-icon-box.security {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(124, 58, 237, 0.08));
  color: #8b5cf6;
  border-color: rgba(139, 92, 246, 0.25);
}

.notif-content {
  flex: 1;
  min-width: 0;
}

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

.notif-item-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.notif-item-time {
  font-size: 0.65rem;
  color: #94a3b8;
  white-space: nowrap;
}

.notif-item-msg {
  font-size: 0.72rem;
  color: #475569;
  line-height: 1.4;
  margin-bottom: 6px;
}

.notif-meta-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
}

.notif-meta-tag {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.notif-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.notif-action-btn {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  background: #f8fafc;
  color: #6366f1;
  border: 1px solid rgba(99, 102, 241, 0.2);
  cursor: pointer;
  transition: all 0.12s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.notif-action-btn:hover {
  background: #6366f1;
  color: #ffffff;
}

.notif-mark-read-btn {
  font-size: 0.65rem;
  color: #94a3b8;
  background: none;
  border: none;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 4px;
  transition: color 0.12s;
}

.notif-mark-read-btn:hover {
  color: #6366f1;
}

/* Empty State */
.notif-empty-state {
  padding: 36px 20px;
  text-align: center;
}

.notif-empty-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f8fafc;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.notif-empty-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 3px;
}

.notif-empty-subtitle {
  font-size: 0.7rem;
  color: #64748b;
}

.notif-footer {
  padding: 10px 18px;
  background: #f8fafc;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.65rem;
  color: #94a3b8;
}

@media (max-width: 640px) {
  .notif-dropdown {
    position: fixed;
    top: 60px;
    left: 12px;
    right: 12px;
    width: auto;
    max-height: calc(100vh - 80px);
  }
}


/* ===================================================================
   Bell Shake Animation & Real-time Notification Toast
   =================================================================== */

@keyframes bellShake {
  0% { transform: rotate(0); }
  15% { transform: rotate(14deg); }
  30% { transform: rotate(-14deg); }
  45% { transform: rotate(10deg); }
  60% { transform: rotate(-10deg); }
  75% { transform: rotate(4deg); }
  90% { transform: rotate(-4deg); }
  100% { transform: rotate(0); }
}

.bell-shake {
  animation: bellShake 0.9s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  color: #6366f1 !important;
}

.notif-toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-left: 4px solid #6366f1;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  min-width: 280px;
  max-width: 400px;
  margin-bottom: 8px;
}

.notif-toast-title {
  font-size: 0.62rem;
  font-weight: 800;
  color: #6366f1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.notif-toast-msg {
  font-size: 0.72rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
  margin-top: 2px;
}

.notif-toast-sub {
  font-size: 0.68rem;
  color: #64748b;
  margin-top: 2px;
}

.notif-toast-btn {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: #6366f1;
  color: #ffffff;
  border: none;
  cursor: pointer;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.12s;
}

.notif-toast-btn:hover {
  background: #4f46e5;
}

/* ===================================================================
   Dedicated Student Attendance Profile & Official Transcript Styles
   =================================================================== */
.student-attendance-page {
  max-width: 1320px;
  margin: 0 auto;
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 1. Top Action Toolbar */
.student-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.student-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 2. Official Transcript Container & Header */
.transcript-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.transcript-running-header {
  background: #0f172a;
  color: #ffffff;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.transcript-title-box {
  text-align: center;
  padding: 18px 24px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: #ffffff;
}

.transcript-main-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 4px 0;
  letter-spacing: -0.01em;
}

.transcript-subtitle {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 500;
  margin: 0;
}

/* 3. Student Profile Info Box (Side-by-Side Flex Layout) */
.student-profile-info-box {
  padding: 24px;
  background: #f8fafc;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 28px;
}

.student-photo-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
}

.student-photo-wrapper {
  width: 130px;
  height: 130px;
  min-width: 130px;
  min-height: 130px;
  max-width: 130px;
  max-height: 130px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: #e2e8f0;
  border: 2px solid rgba(99, 102, 241, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.student-photo-img {
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
}

.student-avatar-initials-lg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6366f1, #4338ca);
  color: #ffffff;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.student-details-2col {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
  font-size: 0.8rem;
  color: #1e293b;
}

.student-detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.student-detail-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.student-detail-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f172a;
}

.student-name-val {
  font-size: 1.15rem;
  font-weight: 900;
  color: #0f172a;
}

.student-roll-pill {
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  color: #4f46e5;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
}

.student-status-strip {
  grid-column: span 2;
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: 4px;
}

/* 4. 6 KPI Cards Summary Row */
.transcript-kpi-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.transcript-kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0f172a;
}

.transcript-kpi-grid-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.transcript-kpi-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.transcript-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.transcript-kpi-title {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  line-height: 1.2;
}

.transcript-kpi-val {
  font-size: 1.5rem;
  font-weight: 900;
  color: #0f172a;
  margin: 6px 0;
  line-height: 1;
}

.transcript-kpi-caption {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
}

.kpi-card-defaulter {
  border: 2px solid #fda4af !important;
  background: #fff1f2 !important;
}

.kpi-card-eligible {
  border: 2px solid #a7f3d0 !important;
  background: #ecfdf5 !important;
}

.kpi-card-extra {
  border: 1px solid #fde68a !important;
  background: #fffbeb !important;
}

/* 5. Institutional Tables */
.transcript-table-panel {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.transcript-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.transcript-panel-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.transcript-table-navy th {
  background: #0f172a !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.72rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  padding: 10px 12px !important;
  border: none !important;
}

.transcript-table-amber th {
  background: #92400e !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.72rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  padding: 10px 12px !important;
  border: none !important;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .transcript-kpi-grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .student-profile-info-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .student-details-2col {
    grid-template-columns: 1fr;
    text-align: left;
    width: 100%;
    gap: 10px;
  }
  .student-status-strip {
    grid-column: span 1;
    justify-content: center;
  }
  .transcript-kpi-grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
  .student-photo-wrapper {
    width: 104px;
    height: 104px;
    min-width: 104px;
    min-height: 104px;
    border-radius: 12px;
  }
  .student-avatar-initials-lg {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .transcript-kpi-grid-6 {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .transcript-kpi-val {
    font-size: 1.25rem;
  }
  .student-photo-wrapper {
    width: 88px;
    height: 88px;
    min-width: 88px;
    min-height: 88px;
    border-radius: 10px;
  }
  .student-avatar-initials-lg {
    font-size: 22px;
  }
}

/* ===================================================================
   Reports & Export Hierarchical Presentation Styles
   =================================================================== */

.report-program-tabs-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
  overflow-x: auto;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.report-prog-tab-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid transparent;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.report-prog-tab-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.report-prog-tab-btn.active {
  background: #4f46e5 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3) !important;
}

.report-program-section {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin-bottom: 28px;
}

.report-program-header {
  background: #0f172a;
  color: #ffffff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.report-program-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.25);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.report-semesters-container {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #f8fafc;
}

.report-semester-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.report-semester-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 10px;
}

.report-division-block {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

.report-division-header {
  padding: 10px 16px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.report-table-wrap {
  overflow-x: auto;
  background: #ffffff;
}

.report-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
  text-align: left;
}

.report-matrix-table th {
  background: #0f172a !important;
  color: #ffffff !important;
  padding: 9px 12px !important;
  font-weight: 700 !important;
  font-size: 0.7rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  border: none !important;
  white-space: nowrap !important;
}

.report-matrix-table th.th-consolidated {
  background: #1e1b4b !important;
  color: #c7d2fe !important;
}

.report-matrix-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.report-matrix-table tr:hover {
  background: #f8fafc;
}

.report-matrix-table tr.row-defaulter {
  background: #fff1f2;
}

.report-matrix-table tr.row-defaulter:hover {
  background: #ffe4e6;
}

/* ===================================================================
   Print Layout & Institutional Report Styles (A4 Standard)
   =================================================================== */
@media print {
  @page {
    size: A4 portrait;
    margin: 12mm 12mm 12mm 12mm;
  }

  .not-printable,
  #sidebar,
  #sidebar-overlay,
  .app-topbar,
  .btn-primary,
  .btn-secondary,
  .btn-icon,
  #toast-container,
  #modal-container,
  #timeline-search,
  #timeline-type-filter,
  #timeline-status-filter,
  .form-select,
  .form-input {
    display: none !important;
  }

  body, html, .app-shell, .main-wrapper, .view-content-wrapper {
    background: #ffffff !important;
    color: #0f172a !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .student-attendance-page {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    space-y: 12px !important;
  }

  .student-profile-card,
  .glass-panel, 
  .kpi-card {
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    background: #ffffff !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
    margin-bottom: 12px !important;
  }

  .student-photo-wrapper {
    width: 90px !important;
    height: 90px !important;
    min-width: 90px !important;
    min-height: 90px !important;
    border: 1px solid #94a3b8 !important;
  }

  .data-table {
    border-collapse: collapse !important;
    width: 100% !important;
    font-size: 10.5px !important;
  }

  .data-table thead {
    display: table-header-group !important;
  }

  .data-table tr {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .data-table th {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    padding: 5px 6px !important;
  }

  .data-table td {
    border: 1px solid #cbd5e1 !important;
    padding: 5px 6px !important;
  }

  .badge {
    border: 1px solid currentColor !important;
    background: transparent !important;
    print-color-adjust: exact !important;
    -webkit-print-color-adjust: exact !important;
  }
}

/* ================= Sensitivity & Architecture Option Cards ================= */
.sensitivity-option-card {
  border: 2px solid #e2e8f0;
  background: #ffffff;
  border-radius: 12px;
  padding: 14px;
  transition: all 0.15s ease;
}

.sensitivity-option-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
}

.sensitivity-option-card.selected {
  border-color: #6366f1 !important;
  background: #eef2ff !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.12);
}

/* ================= PWA Mobile Installation Banner ================= */
.pwa-mobile-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
  position: relative;
  z-index: 25;
}

@media (min-width: 769px) {
  .pwa-mobile-banner {
    display: none !important;
  }
}

/* ================= Universal KPI Grid & Cards ================= */
.kpi-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .kpi-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }
}

.kpi-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: all 0.18s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.kpi-card:hover {
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.08);
  transform: translateY(-2px);
}

.kpi-card-header,
.kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}

.kpi-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.kpi-icon-wrap {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  margin-bottom: 4px;
  font-family: 'JetBrains Mono', monospace, sans-serif;
}

.kpi-caption {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 500;
}

/* ================= Requisitions Systematic Cards & Styling ================= */
.req-student-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  max-height: 380px;
  overflow-y: auto;
  padding: 4px;
}

.req-student-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  gap: 10px;
  box-sizing: border-box;
}

.req-student-card:hover {
  border-color: #6366f1;
  background: #f8faff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.1);
  transform: translateY(-1px);
}

.req-student-card.selected {
  border-color: #10b981 !important;
  background: #f0fdf4 !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25) !important;
}

.req-student-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
  background: #ffffff;
  color: #ffffff;
}

.req-student-card:hover .req-student-checkbox {
  border-color: #6366f1;
}

.req-student-card.selected .req-student-checkbox {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.4);
}

.req-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.25);
}

.req-avatar-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #e2e8f0;
}

.req-student-info {
  flex: 1;
  min-width: 0;
}

.req-student-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.req-student-meta {
  font-size: 0.72rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.req-roll-pill {
  font-family: 'JetBrains Mono', monospace, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #1e293b;
  padding: 1px 7px;
  border-radius: 5px;
  border: 1px solid #cbd5e1;
}

.req-tag-pill {
  font-size: 0.68rem;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.08);
  color: #4f46e5;
  padding: 1px 6px;
  border-radius: 4px;
}

.req-div-badge {
  font-size: 0.68rem;
  font-weight: 700;
  background: #f8fafc;
  color: #475569;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}

/* ================= Requisitions Lecture Items ================= */
.req-lecture-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.2s ease;
  gap: 12px;
  margin-bottom: 8px;
}

.req-lecture-item.is-missed {
  border-color: #fde68a;
  background: #fffdf5;
}

.req-lecture-item.is-missed:hover {
  border-color: #f59e0b;
  background: #fffbeb;
}

.req-lecture-item.is-present {
  background: #f8fafc;
  opacity: 0.9;
}

.req-lecture-item.is-od {
  border-color: #a7f3d0;
  background: #f0fdf4;
}



