/* ShulePoint unified UI — complements AdminLTE 3 / Bootstrap 4 */
:root { --sp-primary: #1a56db; --sp-navy: #0b2a6b; --sp-orange: #f97316; }
/* ===== GLOBAL FONT SIZE (matches POS scale: xs 12 / sm 14 / 2xl 24) ===== */
html { font-size: 16px; }
body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: .875rem; }
h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6 { font-weight: 700; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.3rem; } h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; } h5 { font-size: .9rem; } h6 { font-size: .8rem; }
/* Navbar */
.main-header { font-size: .875rem; }
.main-header .navbar-nav .nav-link { font-size: .875rem !important; }
.main-header .navbar-nav .nav-date,
.main-header .navbar-nav .nav-term { padding: .4rem .6rem !important; font-size: .75rem !important; }
/* Sidebar */
.main-sidebar.sidebar-dark-primary { font-size: .875rem; }
.main-sidebar.sidebar-dark-primary .nav-sidebar .nav-link { font-size: .875rem !important; }
.main-sidebar.sidebar-dark-primary .sidebar-menu .nav-item > a,
.main-sidebar.sidebar-dark-primary .nav-treeview .nav-item > a { font-size: .8125rem !important; }
.main-sidebar.sidebar-dark-primary .brand-link { font-size: .95rem; }
.main-sidebar.sidebar-dark-primary .brand-text { font-size: .95rem; }
.main-sidebar.sidebar-dark-primary .nav-sidebar .nav-link .nav-icon { font-size: 1rem; }
/* Content */
.content-wrapper { font-size: .875rem; }
.content-header h1 { font-size: 1.5rem; }
/* Cards */
.card { font-size: .875rem; }
.card-header { font-size: .9rem; }
.card-header .card-title { font-size: 1.125rem; }
.card-body { font-size: .875rem; }
/* Tables */
.table { font-size: .8125rem; }
.table thead th { font-size: .75rem; }
.table td, .table th { font-size: .8125rem; }
/* Buttons */
.btn { font-size: .875rem; }
.btn-sm { font-size: .75rem; }
.btn-lg { font-size: 1rem; }
/* Form controls */
.form-control { font-size: .875rem; }
.form-control-sm { font-size: .75rem; }
.form-control-lg { font-size: 1rem; }
select.form-control, select.form-control-sm, select.form-control-lg { font-size: .875rem; }
label, .fld-label { font-size: .75rem; }
/* Badges */
.badge { font-size: .75rem; }
/* Alerts */
.alert { font-size: .875rem; }
.alert-sm { font-size: .75rem; }
/* Modals */
.modal-title { font-size: 1.125rem; }
.modal-body { font-size: .875rem; }
.modal-footer { font-size: .875rem; }
/* Small boxes */
.small-box .inner > h3 { font-size: 1.75rem; }
.small-box .icon > i { font-size: 2.25rem; }
.small-box .small-box-number { font-size: 1.75rem; }
.small-box p { font-size: .875rem; }
/* Info boxes */
.info-box-number { font-size: 1.25rem; }
.info-box-text { font-size: .75rem; }
/* Progress bars */
.progress { font-size: .75rem; }
/* Timeline */
.timeline .timeline-header { font-size: .875rem; }
.timeline .time { font-size: .75rem; }
/* Pagination */
.page-link { font-size: .875rem; }
/* Direct chat */
.direct-chat .chat-message .message { font-size: .875rem; }
/* Breadcrumb */
.breadcrumb { font-size: .75rem; }
/* Footer */
.main-footer { font-size: .75rem; }
/* Login page */
.form-bottom h3 { font-size: 1.5rem; }
.form-group .form-control { font-size: .875rem; }
.btn { font-size: .875rem; }
.forgot { font-size: .75rem; }
/* Small helpers */
small, .small { font-size: .75rem; }
/* ===== GLOBAL FONT SIZE ===== */
/* Login page smart-school form styles */
.has-feedback { position: relative; }
.has-error .form-control { border-color: #dc3545 !important; }
.has-error .form-control-feedback { color: #dc3545 !important; }
.form-control-feedback { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); color: #adb5bd; pointer-events: none; }
.form-group .fa.form-control-feedback { left: .75rem; right: auto; }
.input-error { border-color: #dc3545 !important; }
/* Login page full-height centering */
.bgoffsetbg { margin:0; padding:0; }
.top-content { min-height:100vh; display:flex; align-items:center; justify-content:center; }
/* Login page full-height centering */
.login-page { background: linear-gradient(135deg, #1a56db 0%, #0b2a6b 100%); }
.login-logo a { color: #fff; }
.brand-image.img-circle { object-fit: cover; }
.small-box .icon { top: 5px; }
.content-wrapper { background: #f4f6f9; }
@media (max-width: 576px) {
  .small-box h3 { font-size: 1.4rem; }
  .main-footer { text-align: center; }
}
/* Public site */
section.bg-primary .card { border: none; }
/* Print: report cards / receipts */
@media print {
  .main-sidebar, .main-header, .main-footer, .content-header { display: none !important; }
  .content-wrapper { margin: 0 !important; }
}

/* ---------- Compact stat strip (~64px cards) ---------- */
.stat-strip .col-lg-3, .stat-strip .col-6 { margin-bottom: .6rem; }
.stat-mini {
  display: flex; align-items: center; gap: .65rem;
  background: #fff; border: 1px solid #e3e6eb; border-radius: .55rem;
  padding: .5rem .6rem; min-height: 64px;
  box-shadow: 0 1px 2px rgba(16,24,40,.05);
}
.stat-mini.is-filtered { border-color: #ffc107; }
.stat-icon {
  width: 40px; height: 40px; border-radius: .5rem; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem;
}
.stat-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.stat-text strong { font-size: 1.15rem; }
.stat-text span { font-size: .75rem; color: #6c757d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.stat-link { margin-left: auto; color: #adb5bd; }
.stat-link:hover { color: #1a56db; }

/* ---------- Bulk selection bar ---------- */
.bulk-bar {
  position: sticky; top: 56px; z-index: 30;
  background: linear-gradient(90deg, #1a56db, #0b2a6b);
  color: #fff; border-radius: .55rem;
  padding: .5rem .75rem; margin-bottom: .6rem;
  display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap;
  box-shadow: 0 4px 12px rgba(11,42,107,.25);
}
.bulk-count { font-size: .9rem; }
.bulk-hint { opacity: .75; font-size: .72rem; }

/* ---------- Cards ---------- */
.learner-card { border: 1px solid #e3e6eb; border-radius: .65rem; overflow: hidden; }
.learner-card .card-header { background: #fff; border-bottom: 1px solid #eef1f5; }
.card-tools .btn { margin-left: .25rem; }

/* ---------- Polished tables ---------- */
.learner-table { font-size: .86rem; }
.learner-table thead th {
  position: sticky; top: 0; background: #f8fafc; z-index: 5;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #64748b;
  border-top: 0; border-bottom: 1px solid #e9edf2; padding: .6rem .75rem; white-space: nowrap;
}
.learner-table tbody td { padding: .55rem .75rem; vertical-align: middle; border-top: 1px solid #f1f4f8; }
.learner-table tbody tr:first-child td { border-top: 0; }
.learner-table tbody tr:hover { background: #f4f7ff; }
.learner-table tbody tr.is-selected { background: #eaf1ff; }
.table-hover tbody tr:hover { background-color: #f1f5ff; }
.thead-light th { border-top: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Avatars / pills / chips ---------- */
.learner-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .72rem; color: #fff; flex-shrink: 0;
  background: linear-gradient(135deg, #1a56db, #0b2a6b);
}
.avatar-lg { width: 64px; height: 64px; font-size: 1.2rem; }
.learner-name { font-weight: 600; color: #1f2937; }
.learner-name:hover { color: #1a56db; }
.learner-meta { font-size: .74rem; color: #6b7280; margin-top: 1px; }
.adm-chip { background: #eef2ff; color: #3730a3; border-radius: 999px; padding: .1rem .55rem; font-weight: 600; font-size: .72rem; }
.adm-chip i { font-size: .65rem; }
.meta-sep { margin: 0 .3rem; color: #cbd5e1; }
.class-pill {
  display: inline-block; background: #e0e7ff; color: #1e40af;
  font-weight: 600; font-size: .72rem; border-radius: 999px; padding: .15rem .6rem;
}
.guardian { font-size: .82rem; font-weight: 500; color: #374151; }
.status-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .72rem; font-weight: 600; border-radius: 999px; padding: .2rem .65rem;
}
.status-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill.ok { background: #dcfce7; color: #15803d; }
.status-pill.bad { background: #fee2e2; color: #b91c1c; }
.status-pill.muted { background: #f1f5f9; color: #475569; }
.status-pill.warn { background: #fef3c7; color: #b45309; }
.status-pill.info { background: #e0f2fe; color: #0369a1; }
.min-w-0 { min-width: 0; }
.col-check { width: 36px; text-align: center; }
.col-check input { width: 15px; height: 15px; accent-color: #1a56db; cursor: pointer; }

/* ---------- Forms ---------- */
.fld-label { font-size: .74rem; color: #6b7280; margin-bottom: .25rem; font-weight: 600; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: #1a56db; color: #fff; font-size: .72rem; font-weight: 700; margin-right: .4rem;
}
.gender-pick { display: flex; gap: .4rem; }
.gender-opt {
  flex: 1; text-align: center; font-size: .8rem; font-weight: 600; color: #4b5563;
  border: 1px solid #e3e6eb; border-radius: .5rem; padding: .35rem 0; cursor: pointer; margin: 0;
  background: #f8fafc; transition: all .15s;
}
.gender-opt input { display: none; }
.gender-opt.checked, .gender-opt:has(input:checked) { background: #eef2ff; border-color: #1a56db; color: #1e40af; }
.admit-footer { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; background: #f8fafc; }
.sticky-preview { position: sticky; top: 12px; }
.progress-sm { height: 6px; }

/* ---------- Clean login (light, no colour wash) ---------- */
.login-page.login-clean { background: #f4f6f9; }
.login-clean .login-box { width: 420px; }
.login-clean .login-logo a { color: #0b2a6b; }
.login-brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 1rem; margin-bottom: .5rem;
  background: #1a56db; color: #fff; font-weight: 800; font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(26,86,219,.3);
}
.login-card { border-top: 3px solid #1a56db; border-radius: .75rem; box-shadow: 0 8px 24px rgba(16,24,40,.08); }
.login-card .login-card-body { padding: 2rem; }
.login-clean .login-box { width: 440px; }
.login-clean .login-logo { margin-bottom: 1.5rem; }
.login-clean .form-control { min-height: 44px; }
.login-clean .input-group-text { min-height: 44px; }
.login-school-logo { width: 76px; height: 76px; object-fit: contain; background: #fff; border-radius: 1rem; padding: 6px; }
/* Floating learning widgets */
.login-float { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.login-float i { position: absolute; color: rgba(26,86,219,.08); animation: drift 9s ease-in-out infinite; }
.login-clean .login-box { position: relative; z-index: 1; }
@keyframes drift { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-22px) rotate(6deg); } }
@media (max-width: 576px) {
  .login-clean .login-box { width: 94%; }
  .login-float i { font-size: 1.6rem !important; }
}
/* ---------- Pagination footer ---------- */
.pager-footer { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; background: #fff; }
.pager-info { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.pager-perpage { display: flex; align-items: center; gap: .35rem; }
.pager-perpage label { font-size: .74rem; color: #6b7280; font-weight: 600; }
.pager-perpage select { width: auto; }
.pager-links nav { display: flex; }
.pager-links .pagination { margin-bottom: 0; }
.pager-links .page-link { color: #1a56db; font-size: .82rem; padding: .35rem .65rem; }
.pager-links .page-item.active .page-link { background: #1a56db; border-color: #1a56db; }
@media (max-width: 576px) {
  .pager-footer { justify-content: center; text-align: center; }
}
/* ---------- Report hub cards ---------- */
.report-tile { display: block; border: 1px solid #e3e6eb; border-radius: .65rem; background: #fff; padding: 1rem; color: #1f2937; transition: all .15s; height: 100%; }
.report-tile:hover { border-color: #1a56db; box-shadow: 0 4px 12px rgba(26,86,219,.12); color: #1a56db; text-decoration: none; }
.report-tile i { font-size: 1.4rem; margin-bottom: .5rem; }

/* ---------- Topbar notifications ---------- */
.notif-menu { width: 340px; max-width: calc(100vw - 16px); padding: 0; }
.notif-list { max-height: 380px; overflow-y: auto; }
.notif-item { display: flex !important; align-items: flex-start; gap: .6rem; white-space: normal !important; padding: .6rem 1rem; }
.notif-item:hover { background: #f4f7ff; }
.notif-icon { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: .72rem; }
.notif-text { display: flex; flex-direction: column; min-width: 0; }
.notif-title { font-size: .82rem; font-weight: 600; color: #1f2937; line-height: 1.25; }
.notif-sub { font-size: .74rem; color: #6b7280; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.notif-time { font-size: .7rem; color: #9ca3af; margin-top: 1px; }
.notif-empty { white-space: normal !important; padding: .9rem 1rem; }
@media (max-width: 576px) {
  .notif-menu { width: calc(100vw - 16px); }
  .notif-list { max-height: 60vh; }
  .notif-item { padding: .7rem 1rem; }
}

/* ---------- Flash toast popups ---------- */
#toast-wrap { position: fixed; top: 64px; right: 16px; z-index: 1080; display: flex; flex-direction: column; gap: .6rem; width: min(370px, calc(100vw - 32px)); }
.sp-toast { display: flex; gap: .65rem; align-items: flex-start; background: #fff; border-radius: .55rem; box-shadow: 0 12px 32px rgba(15,23,42,.22); padding: .7rem .6rem .7rem .75rem; border-left: 5px solid #6b7280; transform: translateX(115%); opacity: 0; animation: spToastIn .32s ease forwards; }
.sp-toast.hide { animation: spToastOut .3s ease forwards; }
.sp-toast-success { border-left-color: #28a745; }
.sp-toast-error { border-left-color: #dc3545; }
.sp-toast-icon { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: .8rem; flex-shrink: 0; }
.sp-toast-success .sp-toast-icon { background: #28a745; }
.sp-toast-error .sp-toast-icon { background: #dc3545; }
.sp-toast-body { min-width: 0; flex: 1; }
.sp-toast-title { font-size: .85rem; font-weight: 700; color: #111827; }
.sp-toast-msg { font-size: .8rem; color: #4b5563; margin-top: 1px; word-break: break-word; }
.sp-toast-msg ul { margin: .25rem 0 0; padding-left: 1.1rem; }
.sp-toast-close { background: none; border: 0; color: #9ca3af; font-size: 1.1rem; line-height: 1; padding: .1rem .3rem; cursor: pointer; }
.sp-toast-close:hover { color: #111827; }
@keyframes spToastIn { to { transform: none; opacity: 1; } }
@keyframes spToastOut { to { transform: translateX(115%); opacity: 0; } }
@media (max-width: 576px) {
  #toast-wrap { top: auto; bottom: 16px; right: 16px; left: 16px; width: auto; }
}

/* ---------- AdminLTE Blue & Orange Theme ---------- */
:root { --sp-primary: #1a56db; --sp-navy: #0b3d91; --sp-orange: #f97316; --sp-sidebar-bg: #1a56db; }

/* === SIDEBAR === */
.main-sidebar.sidebar-dark-primary { background-color: #1a56db !important; }
.main-sidebar.sidebar-dark-primary .sidebar { background-color: #1a56db !important; }
.main-sidebar.sidebar-dark-primary .sidebar-menu { background-color: #1a56db !important; }
.main-sidebar.sidebar-dark-primary .brand-link { background-color: #0b3d91 !important; border-bottom: 1px solid rgba(255,255,255,.1); }
.main-sidebar.sidebar-dark-primary .brand-link:hover { background-color: #0b3d91 !important; }
.main-sidebar.sidebar-dark-primary .brand-text { color: #fff !important; }

/* === NAV LINKS — base state (no background) === */
.main-sidebar.sidebar-dark-primary .nav-sidebar .nav-link {
    color: rgba(255,255,255,.8) !important;
    background: transparent !important;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.main-sidebar.sidebar-dark-primary .nav-sidebar .nav-link .right { color: rgba(255,255,255,.6) !important; }

/* === TREEVIEW NAV LINKS === */
.main-sidebar.sidebar-dark-primary .sidebar-menu .nav-item > a,
.main-sidebar.sidebar-dark-primary .sidebar-menu .nav-item > .nav-link,
.main-sidebar.sidebar-dark-primary .nav-treeview .nav-item > a,
.main-sidebar.sidebar-dark-primary .nav-treeview .nav-item > .nav-link {
    color: rgba(255,255,255,.75) !important;
    background: transparent !important;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}

/* === HOVER — orange background + zoom on the link element only === */
.main-sidebar.sidebar-dark-primary .nav-sidebar .nav-item:hover > .nav-link,
.main-sidebar.sidebar-dark-primary .nav-sidebar .nav-item:hover > a,
.main-sidebar.sidebar-dark-primary .sidebar-menu .nav-item:hover > a,
.main-sidebar.sidebar-dark-primary .sidebar-menu .nav-item:hover > .nav-link,
.main-sidebar.sidebar-dark-primary .nav-treeview .nav-item:hover > a,
.main-sidebar.sidebar-dark-primary .nav-treeview .nav-item:hover > .nav-link {
    background: #f97316 !important;
    color: #fff !important;
    transform: scale(1.04);
}

/* === ACTIVE (selected) — orange background + zoom on the link element only === */
.main-sidebar.sidebar-dark-primary .nav-sidebar .nav-item.active > .nav-link,
.main-sidebar.sidebar-dark-primary .nav-sidebar .nav-item.active > a,
.main-sidebar.sidebar-dark-primary .sidebar-menu .nav-item.active > a,
.main-sidebar.sidebar-dark-primary .sidebar-menu .nav-item.active > .nav-link,
.main-sidebar.sidebar-dark-primary .nav-treeview .nav-item.active > a,
.main-sidebar.sidebar-dark-primary .nav-treeview .nav-item.active > .nav-link {
    background: #f97316 !important;
    color: #fff !important;
    transform: scale(1.04);
}

/* === ACTIVE ON THE LINK ITSELF (AdminLTE puts .active on <a>) — specific menu only === */
.main-sidebar.sidebar-dark-primary .nav-sidebar .nav-item > .nav-link.active,
.main-sidebar.sidebar-dark-primary .sidebar-menu .nav-item > a.active,
.main-sidebar.sidebar-dark-primary .sidebar-menu .nav-item > .nav-link.active,
.main-sidebar.sidebar-dark-primary .nav-treeview .nav-item > a.active,
.main-sidebar.sidebar-dark-primary .nav-treeview .nav-item > .nav-link.active,
.main-sidebar.sidebar-dark-primary .nav-sidebar .nav-item > .nav-link.active:hover,
.main-sidebar.sidebar-dark-primary .nav-treeview .nav-item > a.active:hover,
.main-sidebar.sidebar-dark-primary .nav-treeview .nav-item > .nav-link.active:hover {
    background: #f97316 !important;
    background-color: #f97316 !important;
    color: #fff !important;
    transform: scale(1.04);
}

/* === ACTIVE + HOVER === */
.main-sidebar.sidebar-dark-primary .nav-sidebar .nav-item.active:hover > .nav-link,
.main-sidebar.sidebar-dark-primary .nav-sidebar .nav-item.active:hover > a,
.main-sidebar.sidebar-dark-primary .sidebar-menu .nav-item.active:hover > a,
.main-sidebar.sidebar-dark-primary .sidebar-menu .nav-item.active:hover > .nav-link,
.main-sidebar.sidebar-dark-primary .nav-treeview .nav-item.active:hover > a,
.main-sidebar.sidebar-dark-primary .nav-treeview .nav-item.active:hover > .nav-link {
    background: #ea580c !important;
    color: #fff !important;
}

/* === MENU-OPEN (expanded parent) === */
.main-sidebar.sidebar-dark-primary .nav-sidebar .nav-item.menu-open > .nav-link,
.main-sidebar.sidebar-dark-primary .nav-sidebar .nav-item.menu-open > a,
.main-sidebar.sidebar-dark-primary .sidebar-menu .nav-item.menu-open > a,
.main-sidebar.sidebar-dark-primary .sidebar-menu .nav-item.menu-open > .nav-link,
.main-sidebar.sidebar-dark-primary .nav-treeview .nav-item.menu-open > a,
.main-sidebar.sidebar-dark-primary .nav-treeview .nav-item.menu-open > .nav-link {
    background: #f97316 !important;
    color: #fff !important;
}
.main-sidebar.sidebar-dark-primary .nav-sidebar .nav-item.menu-open:hover > .nav-link,
.main-sidebar.sidebar-dark-primary .nav-sidebar .nav-item.menu-open:hover > a,
.main-sidebar.sidebar-dark-primary .sidebar-menu .nav-item.menu-open:hover > a,
.main-sidebar.sidebar-dark-primary .sidebar-menu .nav-item.menu-open:hover > .nav-link,
.main-sidebar.sidebar-dark-primary .nav-treeview .nav-item.menu-open:hover > a,
.main-sidebar.sidebar-dark-primary .nav-treeview .nav-item.menu-open:hover > .nav-link {
    background: #ea580c !important;
}

/* === NAVBAR === */
.main-header { background-color: #fff !important; border-bottom: 2px solid #1a56db !important; }
.main-header .navbar-nav .nav-link { color: #334155 !important; }
.main-header .navbar-nav .nav-link:hover { color: #f97316 !important; }
.main-header .navbar-badge { background-color: #dc3545 !important; }
/* === NAVBAR DATE & TERM === */
.main-header .navbar-nav .nav-date,
.main-header .navbar-nav .nav-term { padding: .4rem .7rem !important; font-size: .95rem !important; line-height: 1.3 !important; cursor: default; }
.main-header .navbar-nav .nav-date i,
.main-header .navbar-nav .nav-term i { margin-right: .4rem; }
.main-header .navbar-nav .nav-date { color: #64748b !important; }
.main-header .navbar-nav .nav-term { color: #f97316 !important; font-weight: 700 !important; background: transparent !important; border: 0 !important; border-radius: 0 !important; padding: .4rem .6rem !important; }

/* === CONTENT AREA === */
.content-wrapper { background: #f0f2f5 !important; }
.content-header { background: #fff !important; border-bottom: 1px solid #e5eaf0 !important; }
.content-header h1 { color: #0f2043 !important; }
.main-footer { background: #fff !important; border-top: 1px solid #e5eaf0 !important; color: #64748b !important; }
.main-footer a { color: #1a56db !important; }
.main-footer a:hover { color: #ea580c !important; }

/* === SIDEBAR MINI / TOGGLED === */
.main-sidebar.sidebar-mini.sidebar-collapse .main-sidebar .nav-sidebar > .nav-item > a > span,
.main-sidebar.sidebar-mini.sidebar-collapse .main-sidebar .nav-sidebar > .nav-item > a > p,
.main-sidebar.sidebar-mini.sidebar-collapse .main-sidebar .nav-sidebar > .nav-item > a > i { display: none; }

/* === SIDEBAR SCROLLBAR === */
.main-sidebar .sidebar::-webkit-scrollbar { width: 4px; }
.main-sidebar .sidebar::-webkit-scrollbar-track { background: transparent; }
.main-sidebar .sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 2px; }

/* === SIDEBAR MENU ITEMS — no transform on the li === */
.main-sidebar.sidebar-dark-primary .nav-sidebar .nav-item { transition: none; }
.main-sidebar.sidebar-dark-primary .sidebar-menu .nav-item { transition: none; }
.main-sidebar.sidebar-dark-primary .nav-treeview .nav-item { transition: none; }

/* === ACTIVE PULSE ANIMATION === */
@keyframes spPulse { 0% { box-shadow: 0 0 0 0 rgba(249,115,22,.5); } 70% { box-shadow: 0 0 0 6px rgba(249,115,22,0); } 100% { box-shadow: 0 0 0 0 rgba(249,115,22,0); } }
.main-sidebar.sidebar-dark-primary .nav-sidebar .nav-item.active > .nav-link { animation: spPulse 1.5s infinite; }

/* === BREADCRUMB === */
.breadcrumb { background: transparent !important; }
.breadcrumb-item a { color: #1a56db !important; }
.breadcrumb-item.active { color: #64748b !important; }

/* === CARDS === */
.card { border: 1px solid #e5eaf0 !important; }
.card-header { background: #f8fafc !important; border-bottom: 1px solid #e5eaf0 !important; }
.card-header h3 { color: #0f2043 !important; }

/* === TABLES === */
.table thead th { background: #1a56db !important; color: #fff !important; border-color: #1a56db !important; }
.table tbody tr:hover { background: #eff6ff !important; }
.table td, .table th { vertical-align: middle; }

/* === BUTTONS — blue ⇄ orange on hover === */
.btn-primary { background-color: #1a56db !important; border-color: #1a56db !important; }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active { background-color: #f97316 !important; border-color: #f97316 !important; color: #fff !important; }
.btn-outline-primary { color: #1a56db !important; border-color: #1a56db !important; }
.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active { background-color: #f97316 !important; border-color: #f97316 !important; color: #fff !important; }
.btn-success { background-color: #16a34a !important; border-color: #16a34a !important; }
.btn-danger { background-color: #dc3545 !important; border-color: #dc3545 !important; }
.btn-warning { background-color: #f97316 !important; border-color: #f97316 !important; color: #fff !important; }
.btn-warning:hover, .btn-warning:focus, .btn-warning:active { background-color: #1a56db !important; border-color: #1a56db !important; color: #fff !important; }
.btn-outline-warning { color: #f97316 !important; border-color: #f97316 !important; }
.btn-outline-warning:hover, .btn-outline-warning:focus, .btn-outline-warning:active { background-color: #1a56db !important; border-color: #1a56db !important; color: #fff !important; }

/* === LINKS — blue ⇄ orange on hover === */
a { transition: color .15s ease; }
a.text-primary, .text-primary a, a.btn-outline-primary { color: #1a56db !important; }
a.text-primary:hover, .text-primary a:hover { color: #f97316 !important; }
a.text-warning, .text-warning a { color: #f97316 !important; }
a.text-warning:hover, .text-warning a:hover { color: #1a56db !important; }
.breadcrumb-item a { color: #1a56db !important; }
.breadcrumb-item a:hover { color: #f97316 !important; }
.main-footer a { color: #1a56db !important; }
.main-footer a:hover { color: #f97316 !important; }
.main-header .navbar-nav .nav-link:hover { color: #f97316 !important; }

/* === FORM ELEMENTS === */
.form-control { border-color: #d1d5db !important; }
.form-control:focus { border-color: #1a56db !important; box-shadow: 0 0 0 .2rem rgba(26,86,219,.25) !important; }
.input-group-text { background: #f8fafc !important; border-color: #d1d5db !important; color: #6b7280 !important; }

/* === INFO BOXES === */
.info-box { border: 1px solid #e5eaf0 !important; }
.info-box .icon { color: #fff !important; }
.info-box .info-box-content .info-box-text { color: #64748b !important; }
.info-box .info-box-content .info-box-number { color: #0f2043 !important; }

/* === SMALL BOXES === */
.small-box { box-shadow: 0 2px 4px rgba(0,0,0,.08) !important; }
.small-box .inner > h3 { color: #fff !important; }
.small-box .icon > i { opacity: .2 !important; }
.small-box a { color: #fff !important; }
.small-box:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.12) !important; }

/* === BADGES === */
.badge-primary { background-color: #1a56db !important; }
.badge-success { background-color: #16a34a !important; }
.badge-danger { background-color: #dc3545 !important; }
.badge-warning { background-color: #f97316 !important; color: #fff !important; }
.badge-info { background-color: #0ea5e9 !important; }

/* === DIRECT CHAT === */
.direct-chat .card-body { background: #f8fafc !important; }
.direct-chat .chat-message.boy .message { background: #1a56db !important; color: #fff !important; border-radius: 10px 10px 10px 0; }
.direct-chat .chat-message.girl .message { background: #f1f5f9 !important; color: #0f2043 !important; border-radius: 10px 10px 0 10px; }

/* === SELECT2 === */
.select2-container--default .select2-selection--single { border-color: #d1d5db !important; }
.select2-container--default .select2-selection--single:focus { border-color: #1a56db !important; }
.select2-container--default.select2-container--focus .select2-selection--single { border-color: #1a56db !important; }

/* === NAV-PILLS (content area) === */
.nav-pills .nav-link.active { background-color: #1a56db !important; }
.nav-pills .nav-link:hover { background-color: #1a56db !important; }

/* === PROGRESS BARS === */
.progress-bar { background-color: #1a56db !important; }
.progress-bar.bg-warning { background-color: #f97316 !important; }

/* === TIMELINE === */
.timeline > .timeline-item > .timeline-body > .box { box-shadow: 0 1px 3px rgba(0,0,0,.08) !important; }
.time { color: #64748b !important; }

/* === CALLOUTS === */
.callout-info { border-left-color: #1a56db !important; background: #eff6ff !important; }
.callout-info .callout-heading { color: #1a56db !important; }

/* === MAILBOX === */
.mailbox-message:hover { background: #f8fafc !important; }

/* === INFO BOX NUMBER === */
.info-box-number { color: #0f2043 !important; }

/* === ALERTS === */
.alert-primary { background: #eff6ff !important; border-color: #1a56db !important; color: #1e40af !important; }
.alert-success { background: #f0fdf4 !important; border-color: #16a34a !important; color: #15803d !important; }
.alert-danger { background: #fef2f2 !important; border-color: #dc3545 !important; color: #b91c1c !important; }
.alert-warning { background: #fff7ed !important; border-color: #f97316 !important; color: #c2410c !important; }
.alert-link { color: #ea580c !important; }

/* === MODAL === */
.modal-header { background: #1a56db !important; color: #fff !important; }
.modal-header .close { color: #fff !important; }
.btn-close { filter: invert(1); }

/* === RESPONSIVE === */
@media (max-width: 767.98px) {
  .main-sidebar { transform: translateX(-100%); }
  .main-sidebar.sidebar-open { transform: translateX(0); }
}

/* === ACTIVE PULSE FIX (no animation on li) === */
.main-sidebar.sidebar-dark-primary .nav-sidebar .nav-item.active { animation: none; }

/* === SCHOOL SWITCHER (topbar) === */
.school-menu { border-radius: .8rem; border: 1px solid #e3e6eb; box-shadow: 0 16px 40px rgba(15,23,42,.18); }
.school-pick { display: flex; align-items: center; gap: .6rem; border-radius: .6rem; padding: .5rem .6rem; font-size: .85rem; color: #0f2043; }
.school-pick:hover { background: #eff6ff; color: #1a56db; }
.school-pick.active { background: linear-gradient(135deg,#1a56db,#0b3d91); color: #fff; }
.school-avatar { width: 32px; height: 32px; border-radius: 50%; background: #eef2ff; color: #1a56db; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; flex-shrink: 0; }
.school-pick.active .school-avatar { background: rgba(255,255,255,.25); color: #fff; }
.school-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; font-weight: 600; }
.school-text small { font-weight: 400; opacity: .7; font-size: .72rem; }
.school-pick.active .school-text small { opacity: .85; }
.school-check { margin-left: auto; color: #f97316; }
.school-pick.active .school-check { color: #fff; }

/* === SHARED HUB UI (communication look, reused on all list pages) === */
.hub-card { border: 0; border-radius: .8rem; color: #fff; box-shadow: 0 6px 16px rgba(15,23,42,.15); transition: transform .15s ease; }
.hub-card:hover { transform: translateY(-3px); }
.hub-card .hub-icon { width: 34px; height: 34px; border-radius: .65rem; background: rgba(255,255,255,.22); display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; flex-shrink: 0; }
.hub-card .hub-count { font-size: 1.25rem; font-weight: 800; }
.hub-card .hub-title { font-weight: 700; font-size: .9rem; }
.hub-card .hub-sub { opacity: .85; font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub-card .hub-link { margin-left: auto; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.95); color: #0f2043; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; }
.hub-card .hub-link:hover { background: #fff; color: #1a56db; }
.hub-orange { background: linear-gradient(135deg,#f97316,#ea580c); }
.hub-blue { background: linear-gradient(135deg,#1a56db,#0b3d91); }
.hub-purple { background: linear-gradient(135deg,#8b5cf6,#6d28d9); }
.hub-green { background: linear-gradient(135deg,#16a34a,#15803d); }
.hub-teal { background: linear-gradient(135deg,#0ea5e9,#0369a1); }
button.hub-card { border: 0; }
button.hub-card.tab-btn { opacity: .75; }
button.hub-card.tab-btn.tab-active { opacity: 1; box-shadow: 0 0 0 3px #fff, 0 0 0 6px #f97316, 0 10px 24px rgba(15,23,42,.25); }
.slim-stat { display: flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid #e3e6eb; border-radius: .7rem; padding: .4rem .6rem; box-shadow: 0 1px 4px rgba(16,24,40,.05); }
.slim-stat .slim-icon { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; flex-shrink: 0; }
.slim-stat strong { display: block; font-size: 1rem; color: #0f2043; line-height: 1.1; }
.slim-stat span.lbl { font-size: .7rem; color: #6b7280; }
