/* Student directory ------------------------------------------------------- */
.student-list-page {
  --sl-ink: #14213d;
  --sl-muted: #71809a;
  --sl-line: #e7ebf2;
  --sl-bg: #f5f7fb;
  --sl-blue: #3157d5;
  --sl-blue-dark: #2544ae;
  min-height: 100vh;
  color: var(--sl-ink);
  background: var(--sl-bg);
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
}

.student-list-page .sl-shell {
  width: 100%;
  max-width: 1580px;
  margin: 0 auto;
  padding: 30px 30px 45px;
}

.student-list-page .sl-hero {
  position: relative;
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  overflow: hidden;
  margin-bottom: 20px;
  padding: 27px 31px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(118deg, #173d91 0%, #3157d5 60%, #16a7c3 125%);
  box-shadow: 0 17px 40px rgba(38, 75, 174, .19);
}

.student-list-page .sl-hero::before,
.student-list-page .sl-hero::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
}
.student-list-page .sl-hero::before { right: 105px; bottom: -165px; width: 320px; height: 320px; }
.student-list-page .sl-hero::after { top: -105px; right: -40px; width: 235px; height: 235px; background: rgba(255,255,255,.035); }
.student-list-page .sl-hero-copy { position: relative; z-index: 1; }
.student-list-page .sl-breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 10px; font-weight: 600; }
.student-list-page .sl-breadcrumb a { color: rgba(255,255,255,.68); }
.student-list-page .sl-breadcrumb a:hover { color: #fff; text-decoration: none; }
.student-list-page .sl-breadcrumb i { color: rgba(255,255,255,.42); }
.student-list-page .sl-breadcrumb span { color: #fff; }
.student-list-page .sl-hero h1 { margin: 0; color: #fff; font-size: clamp(24px, 2.4vw, 34px); font-weight: 700; letter-spacing: -.035em; line-height: 1.15; }
.student-list-page .sl-hero p { max-width: 610px; margin: 8px 0 0; color: rgba(255,255,255,.7); font-size: 12px; line-height: 1.6; }
.student-list-page .sl-add-btn { position: relative; z-index: 1; display: inline-flex; min-height: 43px; flex: 0 0 auto; align-items: center; justify-content: center; gap: 9px; padding: 10px 16px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; color: #22439e; background: #fff; box-shadow: 0 9px 25px rgba(5,23,67,.16); font-size: 11.5px; font-weight: 700; transition: transform .18s ease, box-shadow .18s ease; }
.student-list-page .sl-add-btn:hover { color: #17357f; text-decoration: none; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(5,23,67,.22); }

.student-list-page .sl-alert { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 12px 14px; border: 1px solid; border-radius: 12px; font-size: 11.5px; font-weight: 600; }
.student-list-page .sl-alert span { flex: 1; }
.student-list-page .sl-alert button { padding: 0 3px; border: 0; color: currentColor; background: transparent; font-size: 19px; line-height: 1; cursor: pointer; opacity: .65; }
.student-list-page .sl-alert-success { color: #067647; border-color: #abefc6; background: #ecfdf3; }
.student-list-page .sl-alert-error { color: #b42318; border-color: #fecdca; background: #fef3f2; }

.student-list-page .sl-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.student-list-page .sl-stat { display: flex; min-width: 0; align-items: center; gap: 14px; padding: 17px 18px; border: 1px solid var(--sl-line); border-radius: 16px; background: #fff; box-shadow: 0 8px 25px rgba(20,33,61,.05); }
.student-list-page .sl-stat-icon { display: grid; width: 43px; height: 43px; flex: 0 0 43px; place-items: center; border-radius: 12px; color: var(--stat-color); background: var(--stat-bg); font-size: 16px; }
.student-list-page .sl-stat > div { min-width: 0; }
.student-list-page .sl-stat small { display: block; overflow: hidden; color: #8894a8; font-size: 9px; font-weight: 700; letter-spacing: .07em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.student-list-page .sl-stat strong { display: block; margin-top: 4px; color: var(--sl-ink); font-size: 22px; font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
.student-list-page .sl-stat p { overflow: hidden; margin: 4px 0 0; color: #9aa4b5; font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.student-list-page .sl-stat-blue { --stat-color: #3157d5; --stat-bg: #eef2ff; }
.student-list-page .sl-stat-green { --stat-color: #079455; --stat-bg: #ecfdf3; }
.student-list-page .sl-stat-amber { --stat-color: #dc6803; --stat-bg: #fff6e8; }
.student-list-page .sl-stat-violet { --stat-color: #7a5af8; --stat-bg: #f2f0ff; }

.student-list-page .sl-card { overflow: hidden; border: 1px solid var(--sl-line); border-radius: 19px; background: #fff; box-shadow: 0 12px 35px rgba(20,33,61,.065); }
.student-list-page .sl-card-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 23px; border-bottom: 1px solid #edf0f5; }
.student-list-page .sl-card-head h2 { margin: 0; color: var(--sl-ink); font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.student-list-page .sl-card-head p { margin: 4px 0 0; color: #929daf; font-size: 10.5px; }
.student-list-page .sl-record-count { display: inline-flex; align-items: baseline; gap: 4px; padding: 6px 10px; border-radius: 999px; color: #6d7b93; background: #f1f4f9; font-size: 9.5px; font-weight: 600; white-space: nowrap; }
.student-list-page .sl-record-count strong { color: var(--sl-blue); font-size: 11px; }

.student-list-page .sl-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 22px; border-bottom: 1px solid #edf0f5; background: #fbfcfe; }
.student-list-page .sl-search-wrap { position: relative; width: min(390px, 100%); }
.student-list-page .sl-search-wrap i { position: absolute; top: 50%; left: 13px; color: #95a0b2; font-size: 12px; transform: translateY(-50%); }
.student-list-page .sl-search-wrap input { width: 100%; height: 39px; padding: 8px 13px 8px 35px; outline: 0; border: 1px solid #dfe4ec; border-radius: 10px; color: var(--sl-ink); background: #fff; font-size: 11px; transition: border-color .18s, box-shadow .18s; }
.student-list-page .sl-search-wrap input::placeholder { color: #a3acba; }
.student-list-page .sl-search-wrap input:focus { border-color: #91a5e9; box-shadow: 0 0 0 3px rgba(49,87,213,.09); }
.student-list-page .sl-toolbar-right { display: flex; align-items: center; gap: 9px; }
.student-list-page .sl-page-size { display: flex; height: 39px; align-items: center; gap: 8px; margin: 0; padding: 0 7px 0 11px; border: 1px solid #dfe4ec; border-radius: 10px; color: #7d899d; background: #fff; font-size: 10px; font-weight: 600; }
.student-list-page .sl-page-size select { min-width: 55px; outline: 0; border: 0; color: #41506a; background: transparent; font-size: 10.5px; cursor: pointer; }
.student-list-page .sl-delete-selected { display: inline-flex; height: 39px; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid #fecdca; border-radius: 10px; color: #b42318; background: #fff; font-size: 10.5px; font-weight: 700; cursor: pointer; transition: background .18s, color .18s; }
.student-list-page .sl-delete-selected b { display: grid; min-width: 19px; height: 19px; place-items: center; border-radius: 6px; background: #fee4e2; font-size: 9px; }
.student-list-page .sl-delete-selected:hover:not(:disabled) { color: #fff; background: #d92d20; border-color: #d92d20; }
.student-list-page .sl-delete-selected:hover:not(:disabled) b { background: rgba(255,255,255,.18); }
.student-list-page .sl-delete-selected:disabled { color: #aeb6c3; border-color: #e5e8ee; background: #f5f6f8; cursor: not-allowed; }
.student-list-page .sl-delete-selected:disabled b { background: #e9ecf1; }

.student-list-page .sl-table-wrap { width: 100%; overflow-x: auto; }
.student-list-page table.sl-table { width: 100%; min-width: 990px; margin: 0 !important; border: 0; border-collapse: collapse !important; }
.student-list-page .sl-table thead th { padding: 12px 13px; border: 0 !important; border-bottom: 1px solid #e7ebf2 !important; color: #7e8ba1; background: #fff; font-size: 9px; font-weight: 700; letter-spacing: .065em; text-transform: uppercase; white-space: nowrap; }
.student-list-page .sl-table thead th::after { opacity: .35; }
.student-list-page .sl-table tbody td { padding: 12px 13px; border: 0 !important; border-bottom: 1px solid #edf0f5 !important; color: #596780; background: #fff !important; font-size: 10.5px; vertical-align: middle; }
.student-list-page .sl-table tbody tr { transition: background .15s ease; }
.student-list-page .sl-table tbody tr:hover td { background: #fafbfe !important; }
.student-list-page .sl-table tbody tr:last-child td { border-bottom: 0 !important; }
.student-list-page .sl-check-cell { width: 43px !important; text-align: center; }
.student-list-page .sl-row-number { width: 46px; color: #9aa5b6 !important; font-size: 10px !important; }

.student-list-page .sl-checkbox { position: relative; display: inline-grid; width: 17px; height: 17px; margin: 0; place-items: center; cursor: pointer; }
.student-list-page .sl-checkbox input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.student-list-page .sl-checkbox span { display: block; width: 16px; height: 16px; border: 1.5px solid #cbd2dd; border-radius: 5px; background: #fff; transition: background .15s, border-color .15s; }
.student-list-page .sl-checkbox input:checked + span,
.student-list-page .sl-checkbox input:indeterminate + span { border-color: var(--sl-blue); background: var(--sl-blue); }
.student-list-page .sl-checkbox input:checked + span::after { display: block; width: 4px; height: 8px; margin: 2px 0 0 5px; content: ""; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.student-list-page .sl-checkbox input:focus-visible + span { box-shadow: 0 0 0 3px rgba(49,87,213,.15); }

.student-list-page .sl-student-cell { display: flex; min-width: 210px; align-items: center; gap: 10px; }
.student-list-page .sl-avatar { display: grid; width: 37px; height: 37px; flex: 0 0 37px; place-items: center; border-radius: 11px; font-size: 10px; font-weight: 700; }
.student-list-page .sl-avatar-1 { color: #3157d5; background: #eef2ff; }
.student-list-page .sl-avatar-2 { color: #087a91; background: #e9fafd; }
.student-list-page .sl-avatar-3 { color: #067647; background: #ecfdf3; }
.student-list-page .sl-avatar-4 { color: #b54708; background: #fff4e5; }
.student-list-page .sl-avatar-5 { color: #6941c6; background: #f4f0ff; }
.student-list-page .sl-student-cell > div,
.student-list-page .sl-contact { min-width: 0; }
.student-list-page .sl-student-cell strong { display: block; overflow: hidden; max-width: 190px; color: #24324c; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.student-list-page .sl-student-cell small,
.student-list-page .sl-contact small { display: block; overflow: hidden; max-width: 210px; margin-top: 3px; color: #98a2b3; font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.student-list-page .sl-enrollment { display: inline-block; padding: 5px 8px; border-radius: 7px; color: #3654a8; background: #f1f4fc; font-family: Consolas, monospace; font-size: 9.5px; font-weight: 600; white-space: nowrap; }
.student-list-page .sl-contact strong { display: block; color: #4f5e76; font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.student-list-page .sl-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 700; text-transform: capitalize; white-space: nowrap; }
.student-list-page .sl-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.student-list-page .sl-status-active { color: #067647; background: #ecfdf3; }
.student-list-page .sl-status-inactive { color: #b42318; background: #fef3f2; }
.student-list-page .sl-actions-heading { text-align: right !important; }
.student-list-page .sl-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.student-list-page .sl-action { display: grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; padding: 0; border: 1px solid; border-radius: 9px; font-size: 11px; cursor: pointer; transition: color .15s, background .15s, transform .15s; }
.student-list-page .sl-action:hover { text-decoration: none; transform: translateY(-1px); }
.student-list-page .sl-action-view { color: #3157d5; border-color: #d8e0fa; background: #f4f6fd; }
.student-list-page .sl-action-edit { color: #087a91; border-color: #cbeef4; background: #f0fbfc; }
.student-list-page .sl-action-delete { color: #b42318; border-color: #fecdca; background: #fef3f2; }
.student-list-page .sl-action-view:hover { color: #fff; border-color: #3157d5; background: #3157d5; }
.student-list-page .sl-action-edit:hover { color: #fff; border-color: #0796b1; background: #0796b1; }
.student-list-page .sl-action-delete:hover { color: #fff; border-color: #d92d20; background: #d92d20; }

.student-list-page .sl-table-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 21px; border-top: 1px solid #edf0f5; }
.student-list-page .sl-table-footer .dataTables_info { float: none; padding: 0; color: #8793a6; font-size: 10px; }
.student-list-page .sl-table-footer .dataTables_paginate { float: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.student-list-page .sl-table-footer .paginate_button { display: grid; min-width: 31px; height: 31px; margin: 0 !important; place-items: center; padding: 0 8px !important; border: 1px solid #e1e5ec !important; border-radius: 8px !important; color: #65738a !important; background: #fff !important; box-shadow: none !important; font-size: 10px; }
.student-list-page .sl-table-footer .paginate_button.current,
.student-list-page .sl-table-footer .paginate_button.current:hover { color: #fff !important; border-color: var(--sl-blue) !important; background: var(--sl-blue) !important; }
.student-list-page .sl-table-footer .paginate_button:hover:not(.disabled):not(.current) { color: var(--sl-blue) !important; border-color: #bdc9ed !important; background: #f5f7fd !important; }
.student-list-page .sl-table-footer .paginate_button.disabled { opacity: .4; cursor: not-allowed !important; }

.student-list-page .sl-empty { padding: 52px 20px 57px; text-align: center; }
.student-list-page .sl-empty > span { display: grid; width: 58px; height: 58px; margin: 0 auto 14px; place-items: center; border-radius: 17px; color: #6078bf; background: #eef2fb; font-size: 20px; }
.student-list-page .sl-empty h3 { margin: 0; color: #33425d; font-size: 14px; font-weight: 700; }
.student-list-page .sl-empty p { margin: 6px 0 15px; color: #939eaf; font-size: 10.5px; }
.student-list-page .sl-empty a { display: inline-flex; padding: 8px 13px; border-radius: 9px; color: #fff; background: var(--sl-blue); font-size: 10.5px; font-weight: 700; }
.student-list-page .sl-empty a:hover { background: var(--sl-blue-dark); text-decoration: none; }

@media (max-width: 1199px) {
  .student-list-page .sl-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 767px) {
  .student-list-page .sl-shell { padding: 20px 14px 32px; }
  .student-list-page .sl-hero { min-height: 0; align-items: flex-start; padding: 23px 20px; }
  .student-list-page .sl-hero p { font-size: 10.5px; }
  .student-list-page .sl-add-btn { width: 42px; height: 42px; min-height: 42px; padding: 0; }
  .student-list-page .sl-add-btn span { display: none; }
  .student-list-page .sl-stats { gap: 10px; }
  .student-list-page .sl-stat { gap: 10px; padding: 13px; }
  .student-list-page .sl-stat-icon { width: 37px; height: 37px; flex-basis: 37px; }
  .student-list-page .sl-stat strong { font-size: 18px; }
  .student-list-page .sl-stat p { display: none; }
  .student-list-page .sl-card-head { padding: 18px 16px; }
  .student-list-page .sl-toolbar { align-items: stretch; flex-direction: column; padding: 13px 15px; }
  .student-list-page .sl-search-wrap { width: 100%; }
  .student-list-page .sl-toolbar-right { justify-content: space-between; }
  .student-list-page .sl-delete-selected { flex: 1; justify-content: center; }
  .student-list-page .sl-table-footer { align-items: flex-start; flex-direction: column; padding: 13px 15px; }
  .student-list-page .sl-table-footer .dataTables_paginate { align-self: flex-end; }
}

@media (max-width: 430px) {
  .student-list-page .sl-stats { grid-template-columns: 1fr; }
  .student-list-page .sl-stat p { display: block; }
  .student-list-page .sl-page-size span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .student-list-page *, .student-list-page *::before, .student-list-page *::after { transition: none !important; }
}
