/* ==============================================================================
   ZANAJIRA THEME STYLESHEET (Bootstrap 5 + Custom Material Overrides)
   Designed for Zanzibar Civil Service Commission Recruitment Portal
   Matches target specification and 13 reference screenshots.
   ============================================================================== */

:root {
  /* Theme Tokens */
  --zj-font: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --zj-bg-page: #FAFAFA;
  --zj-card-bg: #FFFFFF;
  --zj-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  --zj-card-radius: 4px;

  --zj-header-band-bg: #F2F2F2;
  --zj-header-band-height: 64px;
  --zj-header-title-color: #212121;
  --zj-header-title-size: 20px;
  --zj-header-title-weight: 500;

  --zj-teal-primary: #0E7AA3;
  --zj-teal-hover: #0c698c;
  --zj-teal-active: #0a5976;

  --zj-table-header-bg: #C8CDD6;
  --zj-table-header-color: #1A2A4A;
  --zj-table-body-color: #1F3354;
  --zj-table-row-border: 1px solid #DDDDDD;
  --zj-table-row-height: 49px;
  --zj-table-header-height: 46px;

  --zj-link-blue: #1565C0;
  --zj-paperclip-indigo: #3F51B5;
  --zj-delete-red: #E53935;
  --zj-pink-accent: #E91E63;
  --zj-dark-btn: #1E2430;
  --zj-footer-border: 1px solid #E0E0E0;

  --zj-sidebar-width: 210px;
  --zj-topbar-height: 57px;
}

/* Base Body Styles */
body.zanajira-portal,
.zanajira-portal {
  font-family: var(--zj-font) !important;
  background-color: var(--zj-bg-page) !important;
  color: #212121;
  font-size: 13.5px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==============================================================================
   TOP NAVIGATION BAR (White, 57px, thin bottom border, right aligned links)
   ============================================================================== */
.zanajira-topbar {
  background-color: #FFFFFF !important;
  height: var(--zj-topbar-height);
  border-bottom: 1px solid #E0E0E0 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 1020;
}

.zanajira-topbar .navbar-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.zanajira-topbar .nav-links-right {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.zanajira-topbar .nav-link-item {
  color: #333333;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease-in-out;
  display: inline-flex;
  align-items: center;
  padding: 4px 0;
}

.zanajira-topbar .nav-link-item:hover {
  color: var(--zj-link-blue);
}

.zanajira-topbar .nav-link-item.active {
  color: var(--zj-link-blue) !important;
  font-weight: 600;
}

.zanajira-topbar .nav-link-logout {
  background: none;
  border: none;
  padding: 0;
  color: #333333;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s ease-in-out;
}

.zanajira-topbar .nav-link-logout:hover {
  color: var(--zj-delete-red);
}

/* ==============================================================================
   PORTAL LAYOUT (Sidebar + Main Content)
   ============================================================================== */
.zanajira-portal-layout {
  display: flex;
  width: 100%;
  max-width: 1880px;
  margin: 0 auto;
  padding: 16px 20px 32px 20px;
  gap: 20px;
  flex: 1 0 auto;
}

/* Left Sidebar */
.zanajira-sidebar {
  width: var(--zj-sidebar-width);
  flex: 0 0 var(--zj-sidebar-width);
}

.zanajira-sidebar-avatar-card {
  width: 200px;
  height: 200px;
  margin: 0 auto 12px auto;
  border: 1px dotted #B0BEC5;
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 2px;
}

.zanajira-sidebar-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zanajira-sidebar-avatar-placeholder {
  font-size: 80px;
  color: #CFD8DC;
}

/* Sidebar Menu Buttons */
.zanajira-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zanajira-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 36px;
  background-color: #FFFFFF;
  color: #212121;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.18);
  transition: all 0.15s ease-in-out;
  text-align: center;
  padding: 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zanajira-menu-btn:hover {
  background-color: #F8F9FA;
  color: #111111;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
}

.zanajira-menu-btn.active {
  background-color: var(--zj-teal-primary) !important;
  color: #FFFFFF !important;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* Main Content Area */
.zanajira-main-content {
  flex: 1 1 auto;
  min-width: 0;
}

/* Header Band */
.zanajira-header-band {
  background-color: var(--zj-header-band-bg);
  min-height: var(--zj-header-band-height);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--zj-card-radius) var(--zj-card-radius) 0 0;
  border-bottom: 1px solid #E0E0E0;
}

.zanajira-page-title {
  font-size: var(--zj-header-title-size);
  font-weight: var(--zj-header-title-weight);
  color: var(--zj-header-title-color) !important;
  margin: 0;
  line-height: 1.2;
}

/* Ensure any header titles or icons inside header bands never become white on light background */
.zanajira-header-band .zanajira-page-title,
.zanajira-header-band .zanajira-page-title.text-white,
.zanajira-header-band h1:not([class*="text-dark"]):not([class*="text-primary"]),
.zanajira-header-band h2:not([class*="text-dark"]):not([class*="text-primary"]),
.zanajira-header-band h3:not([class*="text-dark"]):not([class*="text-primary"]) {
  color: var(--zj-header-title-color) !important;
}

.zanajira-header-band i.text-white:not(.btn *):not(.badge *) {
  color: var(--zj-teal-primary) !important;
}

/* Content Card */
.zanajira-card {
  background-color: var(--zj-card-bg);
  border-radius: var(--zj-card-radius);
  box-shadow: var(--zj-card-shadow);
  border: none;
  margin-bottom: 24px;
  overflow: hidden;
}

.zanajira-card-body {
  padding: 16px 20px;
}

/* Teal Action Buttons */
.btn-zj-teal,
.zanajira-btn-teal {
  background-color: var(--zj-teal-primary) !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 4px !important;
  font-weight: 500 !important;
  font-size: 13.5px !important;
  padding: 6px 16px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.15s ease-in-out !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-zj-teal:hover,
.zanajira-btn-teal:hover {
  background-color: var(--zj-teal-hover) !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25) !important;
}

.zanajira-btn-add {
  min-width: 88px;
  height: 36px;
  font-weight: 600 !important;
}

.zanajira-btn-edit {
  min-width: 64px;
  height: 34px;
  font-size: 12.5px !important;
  padding: 4px 12px !important;
}

/* Dark Button (Browse...) */
.zanajira-btn-dark {
  background-color: var(--zj-dark-btn) !important;
  color: #FFFFFF !important;
  border-radius: 3px !important;
  border: none !important;
  padding: 5px 14px !important;
  font-size: 12.5px !important;
  cursor: pointer;
}

.zanajira-btn-dark:hover {
  background-color: #2b3345 !important;
  color: #FFFFFF !important;
}

/* ==============================================================================
   TABLES (Material Style: #C8CDD6 header, thin white separators, navy text)
   ============================================================================== */
.zanajira-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
  font-size: 13px;
}

.zanajira-table thead tr {
  background-color: var(--zj-table-header-bg) !important;
  height: var(--zj-table-header-height);
}

.zanajira-table thead th {
  background-color: var(--zj-table-header-bg) !important;
  color: var(--zj-table-header-color) !important;
  font-weight: 700 !important;
  font-size: 12.5px !important;
  padding: 10px 14px !important;
  vertical-align: middle !important;
  border-right: 1px solid #FFFFFF !important;
  border-bottom: none !important;
  white-space: nowrap;
}

.zanajira-table thead th:last-child {
  border-right: none !important;
}

.zanajira-table tbody tr {
  border-bottom: var(--zj-table-row-border);
  min-height: var(--zj-table-row-height);
  background-color: #FFFFFF;
  transition: background-color 0.1s ease-in-out;
}

.zanajira-table tbody tr:hover {
  background-color: #FAFCFF;
}

.zanajira-table tbody td {
  color: var(--zj-table-body-color) !important;
  padding: 10px 14px !important;
  vertical-align: middle !important;
  font-size: 13px;
  border-top: none;
}

.zanajira-table .empty-row {
  text-align: center;
  font-style: italic;
  color: #757575;
  padding: 24px 14px !important;
}

/* Links & Icons in Table */
.zanajira-link-blue {
  color: var(--zj-link-blue) !important;
  text-decoration: none;
}

.zanajira-link-blue:hover {
  text-decoration: underline;
}

.zanajira-paperclip-link {
  color: var(--zj-link-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
}

.zanajira-paperclip-link i {
  color: var(--zj-paperclip-indigo);
  font-size: 14px;
}

.zanajira-paperclip-link:hover {
  text-decoration: underline;
}

.zanajira-delete-icon-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--zj-delete-red);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  transition: opacity 0.15s ease-in-out;
}

.zanajira-delete-icon-btn:hover {
  opacity: 0.8;
}

/* ==============================================================================
   MATERIAL PAGINATION (Items per page, select 10, 1 - 5 of 5, 4 chevrons)
   ============================================================================== */
.zanajira-pagination-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 16px;
  font-size: 12.5px;
  color: #616161;
  gap: 16px;
  border-top: 1px solid #EEEEEE;
}

.zanajira-pagination-select-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zanajira-pagination-select {
  border: none;
  border-bottom: 1px solid #9E9E9E;
  background: transparent;
  font-size: 12.5px;
  color: #424242;
  padding: 2px 4px;
  outline: none;
  cursor: pointer;
}

.zanajira-pagination-range {
  color: #424242;
  font-weight: 500;
}

.zanajira-pagination-arrows {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zanajira-pagination-btn {
  background: none;
  border: none;
  padding: 4px;
  color: #757575;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  transition: all 0.15s ease-in-out;
}

.zanajira-pagination-btn:hover:not(:disabled) {
  background-color: #EEEEEE;
  color: #212121;
}

.zanajira-pagination-btn:disabled {
  color: #BDBDBD;
  cursor: not-allowed;
}

/* ==============================================================================
   INLINE FORMS & UNDERLINED INPUTS (Material Style)
   ============================================================================== */
.zanajira-underlined-select,
.zanajira-underlined-input {
  border: none !important;
  border-bottom: 1px solid #9E9E9E !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  padding: 6px 0 !important;
  font-size: 13.5px !important;
  color: #212121 !important;
  box-shadow: none !important;
}

.zanajira-underlined-select:focus,
.zanajira-underlined-input:focus {
  border-bottom-color: var(--zj-teal-primary) !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Circular Radio Buttons */
.zanajira-radio-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.zanajira-radio-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #333333;
  cursor: pointer;
  margin: 0;
}

.zanajira-radio-input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #9E9E9E;
  border-radius: 50%;
  outline: none;
  cursor: pointer;
  position: relative;
  margin: 0;
  transition: border-color 0.15s ease-in-out;
}

.zanajira-radio-input:checked {
  border-color: var(--zj-teal-primary);
}

.zanajira-radio-input:checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  background-color: var(--zj-teal-primary);
  border-radius: 50%;
}

/* Search input with pink magnifier */
.zanajira-search-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 100%;
  max-width: 320px;
}

.zanajira-search-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #B0BEC5;
  background: transparent;
  padding: 6px 28px 6px 4px;
  font-size: 13.5px;
  outline: none;
}

.zanajira-search-input:focus {
  border-bottom-color: var(--zj-pink-accent);
}

.zanajira-search-icon {
  position: absolute;
  right: 6px;
  color: var(--zj-pink-accent);
  font-size: 15px;
  pointer-events: none;
}

/* ==============================================================================
   CHANGE PASSWORD CARD (Centered ~446px, #1A56DB submit button)
   ============================================================================== */
.zanajira-change-password-card {
  max-width: 446px;
  margin: 20px auto 40px auto;
  background-color: #FFFFFF;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.zanajira-input-pill {
  background-color: #F8F9FA !important;
  border: 1px solid #CED4DA !important;
  border-radius: 6px !important;
  height: 42px !important;
  padding: 8px 12px !important;
  font-size: 13.5px !important;
}

.zanajira-input-pill:focus {
  background-color: #FFFFFF !important;
  border-color: #1A56DB !important;
  box-shadow: 0 0 0 2px rgba(26, 86, 219, 0.15) !important;
}

.btn-zj-submit-blue {
  background-color: #1A56DB !important;
  color: #FFFFFF !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  height: 42px;
  border: none !important;
  transition: background-color 0.15s ease-in-out !important;
}

.btn-zj-submit-blue:hover {
  background-color: #1646b5 !important;
}

/* ==============================================================================
   FOOTER (White, 1px top border, 60px high, 13px medium text)
   ============================================================================== */
.zanajira-footer {
  background-color: #FFFFFF !important;
  border-top: var(--zj-footer-border);
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 20px;
  font-size: 13px;
  font-weight: 500;
  color: #424242;
  margin-top: auto;
  width: 100%;
}

/* ==============================================================================
   RESPONSIVENESS (Offcanvas under lg)
   ============================================================================== */
@media (max-width: 991.98px) {
  .zanajira-portal-layout {
    flex-direction: column;
    padding: 12px 14px 24px 14px;
  }
  
  .zanajira-sidebar {
    width: 100%;
    flex: auto;
  }
  
  .zanajira-topbar .nav-links-right {
    gap: 16px;
    font-size: 12px;
  }
}

/* ==============================================================================
   ZANAJIRA ADMIN & OFFICER PORTAL SIDEBAR (Visual Fidelity to Target Screenshot)
   ============================================================================== */
.admin-layout {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
  width: 100%;
  background-color: #F8FAFC;
  margin-top: 0;
}

.admin-sidebar {
  flex: 0 0 240px;
  width: 240px;
  min-width: 240px;
  background: linear-gradient(180deg, #183c66 0%, #15457c 35%, #125193 70%, #10599f 100%) !important;
  color: #e2eaf5;
  padding: 1.25rem 0.85rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  align-self: flex-start;
  max-height: 100vh;
  overflow-y: auto;
  z-index: 1020;
}

.admin-sidebar::-webkit-scrollbar {
  width: 4px;
}
.admin-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

.admin-sidebar-brand {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-nav-group-toggle,
.admin-sidebar .admin-nav-link {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 12px;
  border-radius: 4px;
  color: #e2eaf5 !important;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  background: transparent;
  border: none;
  transition: background 0.15s ease, color 0.15s ease;
}

/* Remove any duplicate ::after generated by older stylesheets */
.admin-sidebar .admin-nav-group-toggle::after {
  display: none !important;
  content: none !important;
}

.admin-nav-group-toggle:hover,
.admin-sidebar .admin-nav-link:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

.admin-nav-group-toggle.active,
.admin-sidebar .admin-nav-link.active {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

/* Active left-rail indicator: gold bar anchoring the current section */
.admin-nav-item {
  position: relative;
}

.admin-nav-group-toggle.active::before,
.admin-sidebar .admin-nav-link.active::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 20%;
  bottom: 20%;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #fbbf24, #d97706);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.55);
}

/* Contextual badges (attention counts) */
.admin-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.admin-badge--warn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b192c;
  box-shadow: 0 1px 5px rgba(217, 119, 6, 0.45);
}

.admin-badge--count {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #e2e8f0;
}

/* Active submenu dot: right-hand marker for the open page */
.admin-submenu-dot {
  margin-left: auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
  flex-shrink: 0;
}

.admin-icon {
  font-size: 15px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.9);
}

.admin-label {
  font-size: 13.5px;
}

.admin-chevron {
  font-size: 11px;
  margin-left: auto;
  transition: transform 0.2s ease-in-out;
  color: rgba(255, 255, 255, 0.75);
}

.admin-nav-group-toggle[aria-expanded="true"] .admin-chevron {
  transform: rotate(-90deg);
}

.admin-submenu {
  padding-left: 24px;
}

.admin-submenu-link {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 4px;
  color: #cddbee !important;
  font-size: 12.5px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.admin-submenu-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08);
}

.admin-submenu-link.active {
  color: #f59e0b !important;
  font-weight: 600;
  background: rgba(245, 158, 11, 0.12);
}

.admin-content {
  flex: 1 1 auto;
  min-width: 0;
  padding: 1.5rem 2rem 3rem;
  background-color: #F8FAFC;
}


/* --- Dashboard: recruitment pipeline funnel --- */
.admin-funnel-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.28rem 0;
}

.admin-funnel-label {
  flex: 0 0 108px;
  font-size: 0.74rem;
  color: var(--aj-text-muted, #64748b);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-funnel-track {
  flex: 1 1 auto;
  height: 16px;
  background: var(--aj-border-subtle, #e2e8f0);
  border-radius: 999px;
  overflow: hidden;
}

.admin-funnel-bar {
  height: 100%;
  min-width: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--aj-blue-600, #2563eb), #38bdf8);
  transition: width 0.5s ease;
}

.admin-funnel-value {
  flex: 0 0 44px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--aj-text-main, #1e293b);
}

/* --- Dashboard: open advert deadlines --- */
.admin-deadline-list li {
  padding: 0.45rem 0;
}

.admin-deadline-list li + li {
  border-top: 1px solid var(--aj-border-subtle, #e2e8f0);
}

.admin-deadline-days {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--aj-border-subtle, #e2e8f0);
  color: var(--aj-text-main, #1e293b);
}

.admin-deadline-days.admin-deadline--soon {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
}

.admin-deadline-days.admin-deadline--urgent {
  background: rgba(239, 68, 68, 0.14);
  color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
  animation: admin-pulse 2s infinite;
}

@keyframes admin-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@media (prefers-reduced-motion: reduce) {
  .admin-deadline-days.admin-deadline--urgent { animation: none; }
}

/* --- Dashboard: quick actions --- */
.admin-quick-action {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--aj-border, #dbe3ee);
  color: var(--aj-text-main, #1e293b);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  background: #fff;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.admin-quick-action:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: var(--aj-blue-700, #1d4ed8);
  transform: translateY(-1px);
}

/* --- Smart pagination footer --- */
.admin-pagination {
  background: #f8fafc;
  border-top: 1px solid var(--aj-border, #dbe3ee);
  border-radius: 0 0 1rem 1rem;
}

.admin-page-size {
  width: auto;
  min-width: 4.5rem;
}

.admin-page-size-form select:focus {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* --- Sortable table headers --- */
th[data-sort] {
  user-select: none;
  white-space: nowrap;
}

th[data-sort]::after {
  content: "\F26E"; /* bootstrap-icons: bi-arrow-down-up (neutral, both directions) */
  font-family: "bootstrap-icons";
  font-size: 0.62rem;
  margin-left: 0.3rem;
  opacity: 0.35;
  vertical-align: middle;
}

th[data-sort]:hover {
  background: rgba(37, 99, 235, 0.06);
}

th[data-sort-dir="asc"]::after,
th[data-sort-dir="desc"]::after {
  content: none;
}

/* --- Sticky table header on scrollable lists --- */
.table-modern thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
  box-shadow: inset 0 -1px 0 var(--aj-border, #dbe3ee);
}

/* --- Empty state rows --- */
.admin-empty-row svg,
.admin-empty-row .bi {
  font-size: 1.6rem;
  opacity: 0.35;
  display: block;
  margin: 0 auto 0.25rem;
}
