/* EBA Admin Panel Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

:root {
  --adm-purple:     #6A35A5;
  --adm-blue:       #0E5DB8;
  --adm-cyan:       #18A6F5;
  --adm-grad:       linear-gradient(135deg,#6A35A5,#0E5DB8);
  --adm-sidebar-w:  260px;

  /* Light */
  --adm-bg:         #F0F4FF;
  --adm-sidebar:    #FFFFFF;
  --adm-card:       #FFFFFF;
  --adm-text:       #111827;
  --adm-text2:      #6B7280;
  --adm-placeholder:#6B7280;
  --adm-border:     #E5E7EB;
  --adm-topbar:     #FFFFFF;
  --adm-hover:      #F5F3FF;
  --adm-scrollbar-track: rgba(106,53,165,0.08);
  --adm-scrollbar-thumb: rgba(106,53,165,0.45);
}

/* Complete guide URL cards */
.faq-guide-file-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  overflow: hidden;
  direction: ltr;
}

.faq-guide-file-card > .adm-stat-icon {
  grid-column: 1;
  width: 52px;
  height: 52px;
  font-size: 1.45rem;
}

.faq-guide-file-card > .faq-guide-file-copy {
  grid-column: 2;
}

.faq-guide-file-copy {
  min-width: 0;
  direction: ltr;
  text-align: left;
}

.faq-guide-file-heading,
.faq-guide-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.faq-guide-file-heading {
  margin-bottom: 0.75rem;
}

.faq-guide-file-heading strong {
  color: var(--adm-text);
  font-weight: 800;
}

.faq-guide-link-row {
  justify-content: space-between;
  flex-wrap: wrap;
}

.faq-guide-link-host {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  color: var(--adm-text);
  font-size: 0.84rem;
  font-weight: 700;
  direction: ltr;
  unicode-bidi: isolate;
}

.faq-guide-link-host i {
  color: var(--adm-cyan);
}

.faq-guide-url-preview {
  display: block;
  max-width: 100%;
  margin-top: 0.65rem;
  overflow: hidden;
  color: var(--adm-text2);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
}

.faq-guide-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.55rem;
  color: var(--adm-text2);
  font-size: 0.72rem;
  white-space: nowrap;
}

html[dir="rtl"] .faq-guide-file-card {
  grid-template-columns: minmax(0, 1fr) 56px;
}

html[dir="rtl"] .faq-guide-file-card > .adm-stat-icon {
  grid-column: 2;
}

html[dir="rtl"] .faq-guide-file-card > .faq-guide-file-copy {
  grid-column: 1;
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .faq-guide-file-heading,
html[dir="rtl"] .faq-guide-link-row,
html[dir="rtl"] .faq-guide-updated {
  direction: rtl;
}

.adm-table-search-wrap.faq-guide-log-search {
  position: relative;
  width: min(420px, 100%);
  padding-inline: 0.9rem 2.7rem;
}

.faq-guide-log-search > i {
  position: absolute;
  inset-inline-end: 0.9rem;
  top: 50%;
  margin: 0;
  color: var(--adm-text2);
  font-size: 1rem;
  line-height: 1;
  transform: translateY(-50%);
  pointer-events: none;
}

.faq-guide-log-search .adm-table-search {
  min-width: 0;
  padding: 0;
}

@media (max-width: 575.98px) {
  .faq-guide-file-card {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.9rem;
  }

  .faq-guide-file-card > .adm-stat-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  html[dir="rtl"] .faq-guide-file-card {
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  .faq-guide-file-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.4rem;
  }
}

/* Site traffic */
.adm-nav-nested-dropdown {
  margin: 0.15rem 0;
}

.adm-nav-nested-dropdown > summary {
  list-style: none;
  cursor: pointer;
}

.adm-nav-nested-dropdown > summary::-webkit-details-marker {
  display: none;
}

.adm-nav-nested-submenu {
  display: grid;
  gap: 0.2rem;
  margin: 0.25rem 0 0.25rem 1.15rem;
  padding-inline-start: 0.6rem;
  border-inline-start: 1px solid rgba(124, 58, 237, 0.22);
}

body.rtl .adm-nav-nested-submenu {
  margin-right: 1.15rem;
  margin-left: 0;
}

.site-traffic-page {
  display: grid;
  gap: 1rem;
}

.site-traffic-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem;
}

.site-traffic-head h4 {
  margin: 0.45rem 0 0.25rem;
  font-weight: 900;
  color: var(--adm-text);
}

.site-traffic-head p,
.site-traffic-chart-title p {
  margin: 0;
  color: var(--adm-text2);
  font-weight: 650;
}

.site-traffic-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #6a35a5, #0e9fe3);
  font-weight: 850;
  font-size: 0.82rem;
}

.site-traffic-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.site-traffic-stats .adm-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
}

.site-traffic-stats i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #6a35a5, #0e9fe3);
  box-shadow: 0 12px 28px rgba(14, 159, 227, 0.22);
}

.site-traffic-stats strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--adm-text);
}

.site-traffic-stats span {
  color: var(--adm-text2);
  font-weight: 750;
}

.site-traffic-filter-card {
  padding: 1rem;
}

.site-traffic-filters {
  display: grid;
  grid-template-columns: 180px 180px 180px minmax(220px, 1fr) auto;
  align-items: end;
  gap: 0.8rem;
}

.site-traffic-graph-filters {
  grid-template-columns: 190px 190px minmax(360px, 1fr) auto;
}

.site-traffic-graph-filters.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

.site-traffic-table-filters.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

.site-traffic-page-select-field select {
  min-width: min(100%, 460px);
}

.site-traffic-filter-btn {
  min-width: 112px;
  padding-inline: 1rem !important;
  white-space: nowrap;
}

.site-traffic-filters label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--adm-text);
  font-weight: 800;
}

.site-traffic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.site-traffic-tags span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 999px;
  color: var(--adm-text);
  background: var(--adm-card);
  font-weight: 800;
}

.site-traffic-tags b {
  color: #7c3aed;
}

.site-traffic-table-card {
  padding: 0;
  overflow: hidden;
}

.site-traffic-table {
  margin: 0;
}

.site-traffic-table thead th {
  padding: 1rem;
  color: var(--adm-text);
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(148, 163, 184, 0.2);
  font-weight: 900;
  white-space: nowrap;
}

.site-traffic-table tbody td {
  padding: 0.9rem 1rem;
  color: var(--adm-text);
  border-color: rgba(148, 163, 184, 0.18);
  vertical-align: middle;
}

.site-traffic-table td strong {
  display: block;
  font-weight: 850;
}

.site-traffic-table td small {
  display: block;
  color: var(--adm-text2);
  font-weight: 650;
}

.site-traffic-page-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-width: 720px;
}

.site-traffic-page-chips span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 260px;
  padding: 0.38rem 0.62rem;
  border: 1px solid rgba(14, 93, 184, 0.16);
  border-radius: 999px;
  color: var(--adm-text);
  background: rgba(14, 159, 227, 0.06);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-traffic-page-chips .site-traffic-more-chip {
  color: #6a35a5;
  background: rgba(106, 53, 165, 0.12);
  border-color: rgba(106, 53, 165, 0.22);
}

.site-traffic-country {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  color: var(--adm-text);
  font-weight: 850;
}

.site-traffic-country i {
  color: #f59e0b;
}

.site-traffic-pill {
  display: inline-flex;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  color: #0e5db8;
  background: rgba(14, 159, 227, 0.13);
  border: 1px solid rgba(14, 159, 227, 0.22);
  font-weight: 850;
}

.site-traffic-action-btn {
  color: #0e5db8;
  background: rgba(14, 159, 227, 0.12);
  border: 1px solid rgba(14, 159, 227, 0.22);
}

.site-traffic-modal .modal-content {
  color: var(--adm-text);
  background: var(--adm-card);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  overflow: hidden;
}

.site-traffic-modal .modal-header,
.site-traffic-modal .modal-footer {
  border-color: rgba(148, 163, 184, 0.18);
}

.site-traffic-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.site-traffic-detail-grid span,
.site-traffic-detail-item {
  display: grid;
  gap: 0.18rem;
  padding: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.045);
}

.site-traffic-detail-grid b {
  color: var(--adm-text2);
  font-size: 0.78rem;
}

.site-traffic-detail-list {
  display: grid;
  gap: 0.6rem;
}

.site-traffic-detail-list h6 {
  margin: 0.2rem 0;
  color: var(--adm-text);
  font-weight: 900;
}

.site-traffic-detail-item strong {
  font-weight: 900;
  color: var(--adm-text);
}

.site-traffic-detail-item small,
.site-traffic-detail-item span {
  color: var(--adm-text2);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.site-traffic-detail-item span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.site-traffic-chart-card {
  padding: 1rem;
}

.site-traffic-page-summary-cards {
  display: flex;
  gap: 0.5rem;
  margin: 0.85rem 0 0.6rem;
  padding-bottom: 0.35rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 58, 237, 0.55) rgba(148, 163, 184, 0.12);
}

.site-traffic-page-summary-cards::-webkit-scrollbar {
  height: 7px;
}

.site-traffic-page-summary-cards::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.55);
  border-radius: 999px;
}

.site-traffic-page-summary-cards::-webkit-scrollbar-track {
  background: rgba(148, 163, 184, 0.12);
  border-radius: 999px;
}

.site-traffic-page-summary-card {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  flex: 0 0 178px;
  min-width: 178px;
  padding: 0.5rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--series-color, #0e9fe3) 58%, transparent);
  border-radius: 10px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--series-color, #7c3aed) 20%, transparent), rgba(14, 159, 227, 0.06));
  text-align: left;
  cursor: pointer;
  appearance: none;
  transition: opacity 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.site-traffic-page-summary-card:hover {
  transform: translateY(-1px);
}

.site-traffic-page-summary-card.is-muted {
  opacity: 0.42;
}

.site-traffic-page-summary-card i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 10px;
  color: #fff;
  background: var(--series-color, #0e9fe3);
  box-shadow: 0 10px 24px rgba(14, 159, 227, 0.2);
  font-size: 0.82rem;
}

.site-traffic-page-summary-card div {
  min-width: 0;
}

.site-traffic-page-summary-card strong {
  display: block;
  color: var(--adm-text);
  font-weight: 900;
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-traffic-page-summary-card span {
  display: block;
  margin-top: 0.16rem;
  color: var(--adm-text2);
  font-weight: 750;
  font-size: 0.74rem;
  white-space: nowrap;
}

.site-traffic-page-summary-card b {
  color: var(--series-color, #7c3aed);
}

.site-traffic-page-chart-scroll {
  overflow-x: auto;
  min-height: 700px;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 58, 237, 0.55) rgba(148, 163, 184, 0.12);
}

.site-traffic-page-chart-scroll::-webkit-scrollbar {
  height: 8px;
}

.site-traffic-page-chart-scroll::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.55);
  border-radius: 999px;
}

.site-traffic-page-chart-scroll::-webkit-scrollbar-track {
  background: rgba(148, 163, 184, 0.12);
  border-radius: 999px;
}

.site-traffic-page-chart-scroll > div {
  min-width: 100%;
}

.site-traffic-chart-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.site-traffic-chart-title h5 {
  margin: 0;
  color: var(--adm-text);
  font-weight: 900;
}

.site-traffic-graph-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

#siteTrafficPagesChart,
#siteTrafficPageUsersChart {
  width: 100%;
}

.site-traffic-page-bars-scroll {
  max-height: 430px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-inline-end: 0.35rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(14, 159, 227, 0.65) rgba(148, 163, 184, 0.14);
}

.site-traffic-page-bars-scroll::-webkit-scrollbar {
  width: 8px;
}

.site-traffic-page-bars-scroll::-webkit-scrollbar-track {
  background: rgba(148, 163, 184, 0.14);
  border-radius: 999px;
}

.site-traffic-page-bars-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7c3aed, #0ea5e9);
  border-radius: 999px;
}

.site-traffic-page-bars-chart {
  min-height: 320px;
}

[data-theme="dark"] .site-traffic-table thead th {
  background: linear-gradient(135deg, rgba(106, 53, 165, 0.34), rgba(14, 93, 184, 0.24));
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.2);
}

[data-theme="dark"] .site-traffic-pill {
  color: #bae6fd;
  background: rgba(14, 159, 227, 0.2);
}

[data-theme="dark"] .site-traffic-page .adm-card,
body.dark-mode .site-traffic-page .adm-card,
.dark .site-traffic-page .adm-card {
  background: #101827;
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

[data-theme="dark"] .site-traffic-head,
body.dark-mode .site-traffic-head,
.dark .site-traffic-head {
  background:
    radial-gradient(circle at top right, rgba(14, 159, 227, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(106, 53, 165, 0.14), rgba(15, 23, 42, 0.92)),
    #101827;
}

[data-theme="dark"] .site-traffic-filter-card,
[data-theme="dark"] .site-traffic-table-card,
[data-theme="dark"] .site-traffic-chart-card,
body.dark-mode .site-traffic-filter-card,
body.dark-mode .site-traffic-table-card,
body.dark-mode .site-traffic-chart-card,
.dark .site-traffic-filter-card,
.dark .site-traffic-table-card,
.dark .site-traffic-chart-card {
  background: #111c2e;
  border-color: rgba(148, 163, 184, 0.18);
}

[data-theme="dark"] .site-traffic-filters .form-control,
[data-theme="dark"] .site-traffic-filters .form-select,
body.dark-mode .site-traffic-filters .form-control,
body.dark-mode .site-traffic-filters .form-select,
.dark .site-traffic-filters .form-control,
.dark .site-traffic-filters .form-select {
  color: #e5eefb;
  background-color: #0b1220;
  border-color: rgba(148, 163, 184, 0.22);
}

[data-theme="dark"] .site-traffic-filters .form-control::placeholder,
body.dark-mode .site-traffic-filters .form-control::placeholder,
.dark .site-traffic-filters .form-control::placeholder {
  color: #94a3b8;
}

[data-theme="dark"] .site-traffic-table,
body.dark-mode .site-traffic-table,
.dark .site-traffic-table {
  --bs-table-bg: transparent;
  --bs-table-color: #e5eefb;
  --bs-table-hover-bg: rgba(14, 159, 227, 0.08);
  --bs-table-hover-color: #f8fafc;
}

[data-theme="dark"] .site-traffic-table tbody td,
body.dark-mode .site-traffic-table tbody td,
.dark .site-traffic-table tbody td {
  color: #e5eefb;
  background: #101827;
  border-color: rgba(148, 163, 184, 0.14);
}

[data-theme="dark"] .site-traffic-table tbody tr:hover td,
body.dark-mode .site-traffic-table tbody tr:hover td,
.dark .site-traffic-table tbody tr:hover td {
  background: rgba(14, 159, 227, 0.08);
}

[data-theme="dark"] .site-traffic-page-chips span,
body.dark-mode .site-traffic-page-chips span,
.dark .site-traffic-page-chips span {
  color: #dbeafe;
  background: rgba(14, 159, 227, 0.13);
  border-color: rgba(56, 189, 248, 0.22);
}

[data-theme="dark"] .site-traffic-page-chips .site-traffic-more-chip,
body.dark-mode .site-traffic-page-chips .site-traffic-more-chip,
.dark .site-traffic-page-chips .site-traffic-more-chip {
  color: #ddd6fe;
  background: rgba(124, 58, 237, 0.24);
  border-color: rgba(167, 139, 250, 0.3);
}

[data-theme="dark"] .site-traffic-page-summary-card,
body.dark-mode .site-traffic-page-summary-card,
.dark .site-traffic-page-summary-card {
  background: linear-gradient(135deg, color-mix(in srgb, var(--series-color, #7c3aed) 28%, transparent), rgba(14, 159, 227, 0.13));
  border-color: color-mix(in srgb, var(--series-color, #38bdf8) 62%, transparent);
}

[data-theme="dark"] .site-traffic-detail-grid span,
[data-theme="dark"] .site-traffic-detail-item,
body.dark-mode .site-traffic-detail-grid span,
body.dark-mode .site-traffic-detail-item,
.dark .site-traffic-detail-grid span,
.dark .site-traffic-detail-item {
  background: rgba(14, 159, 227, 0.08);
  border-color: rgba(148, 163, 184, 0.18);
}

[data-theme="dark"] .site-traffic-modal .modal-content,
body.dark-mode .site-traffic-modal .modal-content,
.dark .site-traffic-modal .modal-content {
  color: #e5eefb;
  background: #101827;
  border-color: rgba(148, 163, 184, 0.22);
}

[data-theme="dark"] .site-traffic-modal .modal-header,
[data-theme="dark"] .site-traffic-modal .modal-footer,
body.dark-mode .site-traffic-modal .modal-header,
body.dark-mode .site-traffic-modal .modal-footer,
.dark .site-traffic-modal .modal-header,
.dark .site-traffic-modal .modal-footer {
  background: #0b1220;
  border-color: rgba(148, 163, 184, 0.18);
}

@media (max-width: 991.98px) {
  .site-traffic-head,
  .site-traffic-chart-title {
    flex-direction: column;
  }

  .site-traffic-stats,
  .site-traffic-graph-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-traffic-filters {
    grid-template-columns: 1fr 1fr;
  }

  .site-traffic-graph-filters {
    grid-template-columns: 1fr 1fr;
  }

  .site-traffic-search {
    grid-column: 1 / -1;
  }

  .site-traffic-filter-btn {
    width: fit-content;
  }

  .site-traffic-detail-grid {
    grid-template-columns: 1fr;
  }

  .site-traffic-chart-scroll {
    overflow-x: auto;
  }

  .site-traffic-chart-scroll > div {
    min-width: 760px;
  }

  .site-traffic-graph-grid .site-traffic-chart-card {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(124, 58, 237, 0.65) rgba(148, 163, 184, 0.16);
  }

  .site-traffic-graph-grid .site-traffic-chart-card::-webkit-scrollbar {
    height: 8px;
  }

  .site-traffic-graph-grid .site-traffic-chart-card::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.16);
    border-radius: 999px;
  }

  .site-traffic-graph-grid .site-traffic-chart-card::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.65);
    border-radius: 999px;
  }

  #siteTrafficPagesChart,
  #siteTrafficPageUsersChart {
    min-width: 680px;
  }

  .site-traffic-page-bars-scroll {
    overflow: auto;
  }
}

@media (max-width: 575.98px) {
  .site-traffic-stats,
  .site-traffic-graph-grid,
  .site-traffic-filters {
    grid-template-columns: 1fr;
  }
}

.adm-image-size-note {
  width: fit-content;
  max-width: 100%;
  margin-top: 0.45rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--adm-text2);
  font-size: 0.74rem;
  line-height: 1.55;
}

.adm-image-size-note i {
  flex: 0 0 auto;
  color: var(--adm-cyan, #18A6F5);
  font-size: 0.9rem;
}

html[data-theme="dark"] .adm-image-size-note,
body.dark-mode .adm-image-size-note,
.dark .adm-image-size-note {
  color: #b8c5d8;
}

/* Educational calendar content modal */
.eba-calendar-admin-modal {
  border: 0;
  border-radius: 18px;
  overflow: hidden;
}

.eba-calendar-admin-modal .modal-header,
.eba-calendar-admin-modal .modal-footer {
  padding: 1rem 1.25rem;
  border-color: var(--adm-border);
}

.eba-calendar-admin-modal .modal-body {
  padding: 1.25rem;
}

.eba-calendar-settings-head {
  padding: .65rem 1.15rem;
}

.eba-calendar-settings-head > div {
  padding-inline: .25rem;
}

.eba-calendar-settings-head .adm-btn {
  margin-inline: .2rem;
}

.eba-calendar-lang-panel {
  height: 100%;
  padding: 1rem;
  border: 1px solid var(--adm-border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--adm-card) 92%, var(--adm-primary) 8%);
}

.eba-calendar-lang-panel h6 {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: 1rem;
  font-weight: 850;
  color: var(--adm-text);
}

.eba-calendar-lang-panel .form-label {
  margin-bottom: .4rem;
  font-weight: 750;
  color: var(--adm-text);
}

.eba-calendar-lang-panel .form-control {
  border-radius: 10px;
}

.eba-calendar-visible-check {
  padding: .8rem 1rem;
  border: 1px solid var(--adm-border);
  border-radius: 12px;
  background: var(--adm-card);
  font-weight: 750;
}

/* International Level 3 administration tables */
.eba-l3-admin-section > .eba-l3-admin-head {
  min-height: 104px;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--adm-border);
  background: color-mix(in srgb, var(--adm-card) 94%, var(--adm-primary) 6%);
}

.eba-l3-admin-heading {
  flex: 1 1 560px;
  min-width: 0;
}

.eba-l3-admin-heading h5 {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  color: var(--adm-text);
  line-height: 1.45;
}

.eba-l3-admin-heading h5 i {
  flex: 0 0 auto;
  margin: 0 !important;
}

.eba-l3-admin-heading p {
  max-width: 820px;
  margin-top: .4rem !important;
  line-height: 1.65;
}

.eba-l3-admin-head > .adm-btn {
  flex: 0 0 auto;
  min-height: 42px;
  padding-inline: 1.1rem;
}

@media (max-width: 575.98px) {
  .eba-calendar-settings-head {
    padding: .9rem 1rem;
  }

  .eba-calendar-settings-head .adm-btn {
    width: 100%;
    justify-content: center;
    margin-inline: 0;
  }

  .eba-l3-admin-section > .eba-l3-admin-head {
    min-height: 0;
    padding: 1.1rem;
  }

  .eba-l3-admin-heading {
    flex-basis: 100%;
  }

  .eba-l3-admin-head > .adm-btn {
    width: 100%;
    justify-content: center;
  }
}

/* RTL adjustments when document direction is RTL (e.g., Persian) */
[dir="rtl"] {
  --adm-sidebar-w: 260px; /* keep same width but mirrored */
}

[dir="rtl"] .adm-topbar { right: var(--adm-sidebar-w); left: 0; }
[dir="rtl"] .adm-main { margin-left: 0; margin-right: var(--adm-sidebar-w); width: calc(100% - var(--adm-sidebar-w)); }
[dir="rtl"] .adm-nav-link.active { border-right: none; border-left: 3px solid var(--adm-purple); }
[dir="rtl"] .adm-nav-link { direction: rtl; }
[dir="rtl"] .adm-logo-text { text-align: right; }
[dir="rtl"] .adm-sidebar-user { direction: rtl; }


[data-theme="dark"] {
  --adm-bg:         #0B1220;
  --adm-sidebar:    #111827;
  --adm-card:       #1A2235;
  --adm-text:       #F9FAFB;
  --adm-text2:      #9CA3AF;
  --adm-placeholder:#9CA3AF;
  --adm-border:     #2D3A4A;
  --adm-topbar:     #111827;
  --adm-hover:      #1F2D42;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--adm-bg);
  color: var(--adm-text);
  margin: 0;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}

/* ===== LAYOUT ===== */
.adm-wrap { display: flex; min-height: 100vh; }

/* SIDEBAR */
.adm-sidebar {
  width: var(--adm-sidebar-w);
  background: var(--adm-sidebar);
  border-right: 1px solid var(--adm-border);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1000;
  transition: transform 0.3s, width 0.3s;
  display: flex;
  flex-direction: column;
}

.adm-sidebar::-webkit-scrollbar { width: 4px; }
.adm-sidebar::-webkit-scrollbar-thumb { background: var(--adm-border); border-radius: 2px; }

.adm-logo {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--adm-border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.adm-logo-icon {
  width: 38px; height: 38px;
  background: var(--adm-grad);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 0.75rem;
  flex-shrink: 0;
}

.adm-logo-text { line-height: 1.2; }
.adm-logo-name { font-size: 0.95rem; font-weight: 800; background: var(--adm-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.adm-logo-sub  { font-size: 0.65rem; color: var(--adm-text2); }

.adm-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.adm-nav-body {
  flex: 1;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.adm-nav-group { margin-bottom: 0.25rem; }

.adm-nav-footer {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--adm-border);
}

.adm-sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--adm-bg);
  border: 1px solid var(--adm-border);
  border-radius: 14px;
}

.adm-sidebar-user-avatar {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--adm-grad);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
}

.adm-sidebar-user-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--adm-text);
}

.adm-sidebar-user-role {
  font-size: 0.75rem;
  color: var(--adm-text2);
  text-transform: capitalize;
}

.adm-sidebar-divider {
  margin: 1rem 0;
  height: 1px;
  background: var(--adm-border);
}

.adm-nav-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--adm-text2);
  padding: 0.75rem 1.25rem 0.3rem;
}

.adm-nav-link {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.6rem 1.25rem;
  color: var(--adm-text2);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 0;
  transition: all 0.15s;
  position: relative;
}

.adm-nav-link:hover {
  background: var(--adm-hover);
  color: var(--adm-purple);
}

.adm-nav-link.active {
  background: linear-gradient(90deg, rgba(106,53,165,0.12), rgba(14,93,184,0.08));
  color: var(--adm-purple);
  font-weight: 600;
  border-right: 3px solid var(--adm-purple);
}

.adm-nav-link i { font-size: 1rem; flex-shrink: 0; width: 18px; }

.adm-nav-badge {
  margin-left: auto;
  background: var(--adm-purple);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 50px;
}

.adm-nav-dropdown {
  margin: 0;
}

.adm-nav-dropdown summary {
  list-style: none;
  cursor: pointer;
}

.adm-nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.adm-nav-dropdown .adm-nav-link {
  width: 100%;
}

.adm-nav-chevron {
  margin-left: auto;
  width: auto !important;
  font-size: 0.75rem !important;
  transition: transform 0.38s ease;
}

.adm-nav-dropdown[open] .adm-nav-chevron {
  transform: rotate(-180deg);
}

.adm-nav-submenu {
  padding: 0.25rem 0 0.35rem 2.25rem;
}

.adm-nav-sublink {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1.25rem;
  color: var(--adm-text2);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  transition: color 0.15s ease, background 0.15s ease;
}

.adm-nav-sublink:hover,
.adm-nav-sublink.active {
  color: var(--adm-purple);
  background: var(--adm-hover);
}

.adm-nav-sublink i {
  width: 16px;
  flex: 0 0 16px;
}

/* TOPBAR */
.adm-topbar {
  height: 64px;
  background: var(--adm-topbar);
  border-bottom: 1px solid var(--adm-border);
  position: fixed;
  top: 0;
  left: var(--adm-sidebar-w);
  right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
}

.adm-topbar-title { font-size: 1rem; font-weight: 700; flex: 1; color: var(--adm-text); }
.adm-topbar-actions { display: flex; align-items: center; gap: 0.75rem; }
.adm-language-switcher { min-width: 150px; position: relative; }
.adm-language-toggle {
  width: 100%;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--adm-bg);
  color: var(--adm-text);
  border: 1px solid var(--adm-border);
  border-radius: 10px;
  padding: 0.45rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.adm-language-toggle:hover,
.adm-language-switcher.open .adm-language-toggle {
  background: var(--adm-purple);
  color: #fff;
  border-color: transparent;
}
.adm-language-toggle:focus-visible {
  outline: none;
  border-color: var(--adm-purple);
  box-shadow: 0 0 0 3px rgba(106,53,165,0.18);
}
.adm-language-flag {
  display: block;
  flex: 0 0 1.55rem;
  width: 1.55rem;
  height: 1.05rem;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.32);
}
.adm-language-chevron { font-size: 0.72rem; transition: transform 0.18s ease; }
.adm-language-switcher.open .adm-language-chevron { transform: rotate(180deg); }
.adm-language-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  width: max-content;
  min-width: 170px;
  padding: 0.35rem;
  background: var(--adm-card);
  border: 1px solid var(--adm-border);
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  z-index: 1300;
}
.adm-language-switcher.open .adm-language-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.adm-language-option {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  padding: 0.7rem 0.9rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--adm-text);
  font-size: 0.95rem;
  font-weight: 800;
  text-align: start;
  cursor: pointer;
  white-space: nowrap;
}
.adm-language-option:hover,
.adm-language-option.active {
  background: var(--adm-grad);
  color: #fff;
}

.adm-icon-btn {
  width: 36px; height: 36px;
  background: var(--adm-bg);
  border: 1px solid var(--adm-border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--adm-text2);
  cursor: pointer;
  transition: all 0.15s;
  font-size: 0.95rem;
  text-decoration: none;
}

.adm-icon-btn:hover { background: var(--adm-purple); color: #fff; border-color: transparent; }

.adm-notification-center {
  position: relative;
}

.eba-input-rejected {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.22rem rgba(220, 53, 69, 0.18) !important;
  animation: eba-input-reject 0.24s ease-in-out 2;
}

.eba-security-toast-container {
  position: fixed;
  z-index: 11050;
  left: 50%;
  bottom: 3.5rem;
  width: min(390px, calc(100vw - 2rem));
  transform: translateX(-50%);
  pointer-events: none;
}

.eba-security-toast {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.95rem 1.1rem;
  border-radius: 10px;
  color: #fff;
  background: #9f1d2d;
  box-shadow: 0 18px 44px rgba(75, 10, 22, 0.28);
  font-weight: 700;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.eba-security-toast.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes eba-input-reject {
  0%, 100% { transform: translateX(0); }
  35% { transform: translateX(-4px); }
  70% { transform: translateX(4px); }
}

.adm-notification-toggle {
  position: relative;
}

.adm-notification-badge {
  position: absolute;
  top: -6px;
  inset-inline-end: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--adm-topbar);
  border-radius: 999px;
  color: #fff;
  background: #ef4444;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
}

.adm-notification-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  inset-inline-end: 0;
  width: min(390px, calc(100vw - 2rem));
  max-height: min(70vh, 560px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--adm-text);
  background: var(--adm-card);
  border: 1px solid var(--adm-border);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.28), -12px 16px 35px rgba(106, 53, 165, 0.14), 12px 16px 35px rgba(14, 93, 184, 0.13);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top center;
  transition: opacity 0.16s ease, visibility 0.16s ease, transform 0.16s ease;
  z-index: 1400;
}

.adm-notification-center.open .adm-notification-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.adm-notification-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--adm-border);
  background: linear-gradient(135deg, rgba(106, 53, 165, 0.10), rgba(14, 93, 184, 0.08));
}
.adm-language-option > i:last-child {
  margin-inline-start: auto;
}

.adm-notification-head strong {
  font-size: 0.95rem;
}

.adm-notification-head span {
  color: var(--adm-purple);
  font-size: 0.73rem;
  font-weight: 800;
}

.adm-notification-list {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.adm-notification-footer {
  flex: 0 0 auto;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--adm-border);
  background: var(--adm-card);
  display: grid;
  gap: 0.55rem;
}

.adm-notification-week-toggle {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid color-mix(in srgb, var(--adm-purple) 42%, var(--adm-border));
  border-radius: 9px;
  background: color-mix(in srgb, var(--adm-card) 88%, var(--adm-purple));
  color: var(--adm-purple);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.adm-notification-week-toggle:hover,
.adm-notification-week-toggle.active {
  transform: translateY(-1px);
  color: #fff;
  background: linear-gradient(135deg, var(--adm-purple), var(--adm-blue));
}

.adm-notification-read-all {
  width: 100%;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--adm-purple), var(--adm-blue));
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.adm-notification-read-all:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.adm-notification-read-all:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.adm-notification-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  color: var(--adm-text);
  text-decoration: none;
  border-bottom: 1px solid var(--adm-border);
  transition: background 0.16s ease;
}

.adm-notification-item:hover {
  color: var(--adm-text);
  background: var(--adm-hover);
}

.adm-notification-item.is-read {
  opacity: 0.62;
}

.adm-notification-item.is-read .adm-notification-item-icon {
  filter: saturate(0.35);
}

.adm-notification-item-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #fff;
  background: var(--adm-grad);
  font-size: 1rem;
}

.adm-notification-item-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.adm-notification-item-copy strong,
.adm-notification-item-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adm-notification-item-copy strong {
  font-size: 0.82rem;
}

.adm-notification-item-copy span {
  color: var(--adm-text2);
  font-size: 0.76rem;
}

.adm-notification-item-copy small {
  color: var(--adm-purple);
  font-size: 0.67rem;
  font-weight: 700;
}

.adm-notification-empty {
  padding: 2.5rem 1rem;
  color: var(--adm-text2);
  text-align: center;
  font-size: 0.85rem;
}

.adm-user-menu { position: relative; }

.adm-user-badge {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.35rem 0.85rem;
  background: var(--adm-bg);
  border: 1px solid var(--adm-border);
  border-radius: 10px;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--adm-text);
  text-decoration: none;
  cursor: pointer;
  min-width: 140px;
  justify-content: space-between;
}

.adm-user-dropdown {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  min-width: 190px;
  background: var(--adm-card);
  border: 1px solid var(--adm-border);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
  z-index: 1001;
}

.adm-user-menu.open .adm-user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.adm-user-dropdown a {
  display: block;
  padding: 0.95rem 1rem;
  color: var(--adm-text);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease;
  border-top-right-radius: 20px;
  border-top-left-radius: 20px;
}

.adm-user-dropdown a:hover {
  background: var(--adm-hover);

}

.adm-user-avatar {
  width: 28px; height: 28px;
  background: var(--adm-grad);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.75rem; font-weight: 700;
}

/* MAIN CONTENT */
.adm-main {
  margin-left: var(--adm-sidebar-w);
  margin-top: 64px;
  padding: 2rem;
  min-height: calc(100vh - 64px);
  width: calc(100% - var(--adm-sidebar-w));
  max-width: none;
  min-width: 0;
}

/* CARDS */
.adm-card {
  width: 100%;
  max-width: none;
  margin: 0;
  background: var(--adm-card);
  border: 1px solid var(--adm-border);
  border-radius: 14px;
  overflow: hidden;
}

.adm-card-header {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--adm-border);
  display: flex; align-items: center; gap: 0.75rem;
}

.adm-card-title { font-size: 0.9rem; font-weight: 700; color: var(--adm-text); margin: 0; flex: 1; }

.adm-card-body { padding: 1.5rem; }

/* STAT CARDS */
.adm-stat {
  background: var(--adm-card);
  border: 1px solid var(--adm-border);
  border-radius: 14px;
  min-height: 118px;
  padding: 1.05rem 1.25rem;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 1rem;
}

.adm-stat::before {
  content: none;
}

.adm-stat.purple::before { background: var(--adm-grad); }
.adm-stat.blue::before   { background: linear-gradient(90deg,#0E5DB8,#18A6F5); }
.adm-stat.green::before  { background: linear-gradient(90deg,#10B981,#34D399); }
.adm-stat.red::before    { background: linear-gradient(90deg,#EF4444,#F87171); }

.adm-stat-icon {
  width: 76px; height: 76px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.15rem;
  margin-bottom: 0;
  grid-row: 1 / span 2;
}

.adm-stat.purple .adm-stat-icon {
  background: linear-gradient(135deg, rgba(106,53,165,0.18), rgba(14,93,184,0.10));
  color: #7C3AED;
}

.adm-stat.blue .adm-stat-icon {
  background: linear-gradient(135deg, rgba(14,93,184,0.18), rgba(24,166,245,0.12));
  color: #0E5DB8;
}

.adm-stat.green .adm-stat-icon {
  background: linear-gradient(135deg, rgba(16,185,129,0.18), rgba(52,211,153,0.12));
  color: #059669;
}

.adm-stat.red .adm-stat-icon {
  background: linear-gradient(135deg, rgba(239,68,68,0.18), rgba(248,113,113,0.12));
  color: #DC2626;
}

html[data-theme="dark"] .adm-stat.purple .adm-stat-icon,
body.dark-mode .adm-stat.purple .adm-stat-icon,
.dark .adm-stat.purple .adm-stat-icon {
  background: linear-gradient(135deg, rgba(124,58,237,0.26), rgba(14,93,184,0.18));
  color: #A78BFA;
}

html[data-theme="dark"] .adm-stat.blue .adm-stat-icon,
body.dark-mode .adm-stat.blue .adm-stat-icon,
.dark .adm-stat.blue .adm-stat-icon {
  background: linear-gradient(135deg, rgba(14,93,184,0.28), rgba(24,166,245,0.18));
  color: #38BDF8;
}

html[data-theme="dark"] .adm-stat.green .adm-stat-icon,
body.dark-mode .adm-stat.green .adm-stat-icon,
.dark .adm-stat.green .adm-stat-icon {
  background: linear-gradient(135deg, rgba(16,185,129,0.26), rgba(20,184,166,0.18));
  color: #34D399;
}

html[data-theme="dark"] .adm-stat.red .adm-stat-icon,
body.dark-mode .adm-stat.red .adm-stat-icon,
.dark .adm-stat.red .adm-stat-icon {
  background: linear-gradient(135deg, rgba(239,68,68,0.25), rgba(244,63,94,0.16));
  color: #FB7185;
}

.adm-stat-val  { justify-self: end; font-size: 2rem; font-weight: 800; color: var(--adm-text); line-height: 1.1; margin-bottom: 0.15rem; }
.adm-stat-lbl  { justify-self: end; font-size: 0.8rem; color: var(--adm-text2); text-align: right; }

[dir="rtl"] .adm-stat,
html[lang="fa"] .adm-stat {
  grid-template-columns: minmax(0, 1fr) auto;
}

[dir="rtl"] .adm-stat-icon,
html[lang="fa"] .adm-stat-icon {
  grid-column: 2;
}

[dir="rtl"] .adm-stat-val,
[dir="rtl"] .adm-stat-lbl,
html[lang="fa"] .adm-stat-val,
html[lang="fa"] .adm-stat-lbl {
  justify-self: start;
  text-align: left;
}

/* TABLES */
.adm-table, .adm-table.table { width: 100% !important; min-width: 100% !important; border-collapse: collapse; font-size: 0.85rem; background: transparent; }
.adm-table.table { background-color: transparent; }
.adm-table.table th, .adm-table.table td { background-color: transparent; }
.adm-table th { background: var(--adm-bg); padding: 0.75rem 1rem; text-align: left; font-weight: 700; font-size: 0.75rem; letter-spacing: 0.5px; text-transform: uppercase; color: var(--adm-text2); border-bottom: 1px solid var(--adm-border); }
.adm-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--adm-border); color: var(--adm-text); vertical-align: middle; white-space: normal; }
.adm-table tr:last-child td { border-bottom: none; }
.adm-table tr:hover td { background: none; }
.adm-table a { word-break: break-all; }
.adm-table.table.table-striped tbody tr:nth-of-type(odd) th,
.adm-table.table.table-striped tbody tr:nth-of-type(odd) td {
  background-color: rgba(106,53,165,0.04);
}
[data-theme="dark"] .adm-table.table.table-striped tbody tr:nth-of-type(odd) th,
[data-theme="dark"] .adm-table.table.table-striped tbody tr:nth-of-type(odd) td {
  background-color: rgba(255,255,255,0.06);
}
.table-responsive { width: 100% !important; min-width: 0; margin: 0; }

/* STATUS BADGES */
.adm-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
}

.adm-badge.pending   { background: rgba(245,158,11,0.12); color: #D97706; }
.adm-badge.approved  { background: rgba(16,185,129,0.12); color: #10B981; }
.adm-badge.rejected  { background: rgba(239,68,68,0.12);  color: #EF4444; }
.adm-badge.active    { background: rgba(16,185,129,0.12); color: #10B981; }
.adm-badge.inactive  { background: rgba(107,114,128,0.12);color: #6B7280; }
.adm-badge.neutral   { background: rgba(107,114,128,0.12);color: #6B7280; }
.adm-badge.unread    { background: rgba(14,93,184,0.12);  color: #0E5DB8; }
.adm-badge.read      { background: rgba(107,114,128,0.12);color: #6B7280; }

/* FORMS */
.adm-form-group { margin-bottom: 1.1rem; }
.adm-form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--adm-text2); margin-bottom: 0.35rem; }
.adm-form-group .form-control,
.adm-form-group .form-select {
  background: var(--adm-bg); border: 1.5px solid var(--adm-border);
  border-radius: 8px; color: var(--adm-text); padding: 0.6rem 0.85rem; font-size: 0.875rem;
  width: 100%; transition: border-color 0.15s, box-shadow 0.15s;
}
.adm-form-group .form-control:focus,
.adm-form-group .form-select:focus {
  outline: none; border-color: var(--adm-purple);
  box-shadow: 0 0 0 3px rgba(106,53,165,0.12);
  background: var(--adm-card);
}

/* Payment gateway settings modal */
.payment-settings-modal .modal-dialog {
  max-width: min(1140px, calc(100vw - 2rem));
}

.payment-settings-modal .adm-modal-content {
  max-height: min(86vh, 760px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--adm-purple) 18%, var(--adm-border));
  border-radius: 16px;
  background: var(--adm-card);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
}

.payment-settings-modal .modal-header,
.payment-settings-modal .modal-footer {
  flex: 0 0 auto;
  background:
    linear-gradient(135deg, rgba(117, 56, 182, 0.08), rgba(24, 166, 245, 0.08)),
    var(--adm-card);
  border-color: var(--adm-border);
}

.payment-settings-modal .modal-title {
  color: var(--adm-text);
}

.payment-settings-modal .modal-body {
  max-height: calc(min(86vh, 760px) - 150px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.25rem 1rem 1.1rem;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--adm-card) 92%, #fff), var(--adm-card));
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--adm-purple) 62%, var(--adm-blue)) color-mix(in srgb, var(--adm-border) 36%, transparent);
}

.payment-settings-modal .modal-body::-webkit-scrollbar {
  width: 6px;
}

.payment-settings-modal .modal-body::-webkit-scrollbar-track {
  background: color-mix(in srgb, var(--adm-border) 28%, transparent);
  border-radius: 999px;
}

.payment-settings-modal .modal-body::-webkit-scrollbar-thumb {
  background: var(--adm-grad);
  border-radius: 999px;
}

.payment-settings-modal .adm-form-group {
  margin-bottom: 0.95rem;
}

.payment-settings-modal .adm-form-group label {
  color: var(--adm-text2);
  font-weight: 800;
}

.payment-settings-modal .adm-form-group .form-control,
.payment-settings-modal .adm-form-group .form-select {
  min-height: 44px;
  color: var(--adm-text);
  background: color-mix(in srgb, var(--adm-card) 86%, var(--adm-bg));
  border-color: color-mix(in srgb, var(--adm-border) 82%, var(--adm-purple));
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.payment-settings-modal .adm-form-group .form-control:focus,
.payment-settings-modal .adm-form-group .form-select:focus {
  color: var(--adm-text);
  background: var(--adm-card);
  border-color: var(--adm-purple);
  box-shadow: 0 0 0 3px rgba(117, 56, 182, 0.14);
}

.payment-settings-modal hr {
  opacity: 1;
  border-color: var(--adm-border);
  margin: 0.7rem 0;
}

[data-theme="dark"] .payment-settings-modal .adm-modal-content,
body.dark-mode .payment-settings-modal .adm-modal-content,
.dark .payment-settings-modal .adm-modal-content {
  background: var(--adm-card);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

[data-theme="dark"] .payment-settings-modal .modal-header,
[data-theme="dark"] .payment-settings-modal .modal-footer,
body.dark-mode .payment-settings-modal .modal-header,
body.dark-mode .payment-settings-modal .modal-footer,
.dark .payment-settings-modal .modal-header,
.dark .payment-settings-modal .modal-footer {
  background:
    linear-gradient(135deg, rgba(117, 56, 182, 0.16), rgba(24, 166, 245, 0.13)),
    var(--adm-card);
}

[data-theme="dark"] .payment-settings-modal .modal-body,
body.dark-mode .payment-settings-modal .modal-body,
.dark .payment-settings-modal .modal-body {
  background:
    linear-gradient(180deg, rgba(117, 56, 182, 0.06), rgba(24, 166, 245, 0.04)),
    var(--adm-card);
}

[data-theme="dark"] .payment-settings-modal .adm-form-group .form-control,
[data-theme="dark"] .payment-settings-modal .adm-form-group .form-select,
body.dark-mode .payment-settings-modal .adm-form-group .form-control,
body.dark-mode .payment-settings-modal .adm-form-group .form-select,
.dark .payment-settings-modal .adm-form-group .form-control,
.dark .payment-settings-modal .adm-form-group .form-select {
  color: #f8fafc;
  background: rgba(7, 14, 28, 0.94);
  border-color: rgba(148, 163, 184, 0.28);
}

@media (max-width: 767.98px) {
  .payment-settings-modal .modal-dialog {
    max-width: calc(100vw - 1rem);
    margin-inline: 0.5rem;
  }

  .payment-settings-modal .modal-body {
    max-height: calc(100vh - 170px);
    padding-inline: 0.85rem;
  }
}

.adm-slider-preview,
.adm-upload-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.85rem;
  margin-top: 0.75rem;
}

.adm-slider-preview-item,
.adm-upload-preview-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(107,114,128,0.16);
  background: var(--adm-bg);
  min-height: 120px;
}

.adm-slider-preview-item img,
.adm-upload-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.adm-slider-preview-label {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,23,42,0.8);
  color: #fff;
  border-radius: 999px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.adm-slider-preview-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  text-align: center;
  color: #6b7280;
  font-size: 0.8rem;
  background: rgba(255,255,255,0.72);
}

.adm-upload-preview-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  gap: 0.55rem;
}

.adm-upload-preview-name {
  font-size: 0.78rem;
  color: var(--adm-text2);
  text-align: center;
  word-break: break-word;
}

/* BUTTONS */
button,
.btn,
.adm-btn {
  border-radius: 10px !important;
}
.adm-form-group .form-control::placeholder,
.modal-content .form-control::placeholder,
input.form-control::placeholder,
textarea.form-control::placeholder {
  color: var(--adm-placeholder);
  opacity: 1;
}

.adm-btn        { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 1.1rem; border-radius: 10px; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all 0.15s; border: none; text-decoration: none; }
.adm-btn-primary{ background: var(--adm-grad); color: #fff; box-shadow: 0 2px 8px rgba(106,53,165,0.3); }
.adm-btn-primary:hover { opacity: 0.9; transform: translateY(-1px); color: #fff; }
.adm-btn-outline{ background: transparent; color: var(--adm-purple); border: 1.5px solid var(--adm-purple); }
.adm-btn-outline:hover { background: var(--adm-grad); color: #fff; border-color: transparent; }
.adm-btn-warning{ background: #F59E0B; color: #fff; box-shadow: 0 2px 8px rgba(245,158,11,0.25); }
.adm-btn-warning:hover { background: #D97706; color: #fff; transform: translateY(-1px); }
.adm-btn-danger { background: rgba(239,68,68,0.1); color: #EF4444; border: 1.5px solid rgba(239,68,68,0.3); }
.adm-btn-danger:hover { background: #EF4444; color: #fff; }
.adm-btn-success{ background: rgba(16,185,129,0.1); color: #10B981; border: 1.5px solid rgba(16,185,129,0.3); }
.adm-btn-success:hover{ background: #10B981; color: #fff; }
.adm-btn-sm     { padding: 0.35rem 0.75rem; font-size: 0.78rem; }

html[data-theme="dark"] .adm-btn-outline:not(:hover) i,
html[data-theme="dark"] .adm-table-export-btn:not(:hover) i,
html[data-theme="dark"] .adm-table-search-wrap > i,
html[data-theme="dark"] .adm-nav-link.active:not(:hover) i,
html[data-theme="dark"] .adm-nav-sublink.active:not(:hover) i,
html[data-theme="dark"] .adm-card-header > i,
html[data-theme="dark"] .adm-quick-link i,
html[data-theme="dark"] .adm-notification-head span,
html[data-theme="dark"] .adm-notification-week-toggle:not(:hover):not(.active),
html[data-theme="dark"] .smtp-manager-page .adm-mini-eyebrow,
html[data-theme="dark"] .smtp-manager-page code,
html[data-theme="dark"] .org-admin-member-preview strong,
html[data-theme="dark"] .org-admin-member-preview span,
html[data-theme="dark"] .org-chart-assignment-box h6 i,
body.dark-mode .adm-btn-outline:not(:hover) i,
body.dark-mode .adm-table-export-btn:not(:hover) i,
body.dark-mode .adm-table-search-wrap > i,
body.dark-mode .adm-nav-link.active:not(:hover) i,
body.dark-mode .adm-nav-sublink.active:not(:hover) i,
body.dark-mode .adm-card-header > i,
body.dark-mode .adm-quick-link i,
body.dark-mode .adm-notification-head span,
body.dark-mode .adm-notification-week-toggle:not(:hover):not(.active),
body.dark-mode .smtp-manager-page .adm-mini-eyebrow,
body.dark-mode .smtp-manager-page code,
body.dark-mode .org-admin-member-preview strong,
body.dark-mode .org-admin-member-preview span,
body.dark-mode .org-chart-assignment-box h6 i,
.dark .adm-btn-outline:not(:hover) i,
.dark .adm-table-export-btn:not(:hover) i,
.dark .adm-table-search-wrap > i,
.dark .adm-nav-link.active:not(:hover) i,
.dark .adm-nav-sublink.active:not(:hover) i,
.dark .adm-card-header > i,
.dark .adm-quick-link i,
.dark .adm-notification-head span,
.dark .adm-notification-week-toggle:not(:hover):not(.active),
.dark .smtp-manager-page .adm-mini-eyebrow,
.dark .smtp-manager-page code,
.dark .org-admin-member-preview strong,
.dark .org-admin-member-preview span,
.dark .org-chart-assignment-box h6 i {
  color: transparent !important;
  background: linear-gradient(135deg, #fff 0%, var(--eba-cyan-light, #7dd3fc) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

html[data-theme="dark"] .adm-btn-outline:not(:hover),
body.dark-mode .adm-btn-outline:not(:hover),
.dark .adm-btn-outline:not(:hover) {
  color: #eaf9ff;
  -webkit-text-fill-color: currentColor;
  border-color: color-mix(in srgb, var(--adm-cyan) 62%, var(--adm-purple));
}

html[data-theme="dark"] .adm-nav-link.active:not(:hover),
html[data-theme="dark"] .adm-nav-sublink.active:not(:hover),
body.dark-mode .adm-nav-link.active:not(:hover),
body.dark-mode .adm-nav-sublink.active:not(:hover),
.dark .adm-nav-link.active:not(:hover),
.dark .adm-nav-sublink.active:not(:hover) {
  color: #eaf9ff;
  -webkit-text-fill-color: currentColor;
}

/* SEARCH BAR */
.adm-search { position: relative; }
.adm-search input { padding-left: 2.25rem; }
.adm-search i { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--adm-text2); font-size: 0.875rem; }

/* PAGINATION */
.adm-pagination { display: flex; gap: 0.3rem; align-items: center; }
.adm-pagination a, .adm-pagination span {
  min-width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; font-size: 0.8rem; font-weight: 600; text-decoration: none;
  border: 1px solid var(--adm-border); color: var(--adm-text2); transition: all 0.15s;
}
.adm-pagination a:hover { background: var(--adm-grad); color: #fff; border-color: transparent; }
.adm-pagination .current { background: var(--adm-grad); color: #fff; border-color: transparent; }
.adm-pagination .disabled { opacity: 0.45; pointer-events: none; }
.eba-pagination-nav,
.eba-pagination-control,
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
}

.eba-pagination-control,
.pagination {
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.eba-pagination-nav[dir="rtl"] .pagination,
.eba-pagination-control[dir="rtl"],
html[dir="rtl"] .adm-pagination,
html[dir="rtl"] .pagination {
  direction: ltr;
}

.eba-pagination-nav[dir="ltr"] .pagination,
.eba-pagination-control[dir="ltr"],
html[dir="ltr"] .adm-pagination,
html[dir="ltr"] .pagination {
  direction: ltr;
}

.pagination .page-link {
  min-width: 40px;
  min-height: 40px;
  padding: 0.55rem 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  line-height: 1;
}

/* ALERT */
.adm-alert { padding: 0.85rem 1.1rem; border-radius: 10px; font-size: 0.85rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.6rem; }
.adm-alert-success { background: rgba(16,185,129,0.12); color: #065F46; border: 1px solid rgba(16,185,129,0.2); }
.adm-alert-error   { background: rgba(239,68,68,0.12);  color: #991B1B; border: 1px solid rgba(239,68,68,0.2); }
.adm-alert-info    { background: rgba(14,93,184,0.10); color: #0E5DB8; border: 1px solid rgba(14,93,184,0.18); }
[data-theme="dark"] .adm-alert-success { color: #34D399; }
[data-theme="dark"] .adm-alert-error   { color: #F87171; }
[data-theme="dark"] .adm-alert-info    { color: #7DD3FC; }

.adm-toast-container {
  z-index: 11080;
  top: auto !important;
  bottom: 4.25rem !important;
  left: 50% !important;
  right: auto !important;
  width: min(460px, calc(100vw - 2rem));
  transform: translateX(-50%);
  padding: 0 !important;
  display: grid;
  gap: 0.75rem;
  pointer-events: none;
}

.adm-bootstrap-toast {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.24), 0 0 0 1px rgba(255, 255, 255, 0.16);
  pointer-events: auto;
  backdrop-filter: blur(14px);
}

.adm-bootstrap-toast .toast-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 0;
  color: #fff;
  padding: 0.85rem 1rem;
}

.adm-bootstrap-toast .toast-header > strong {
  margin: 0 !important;
  margin-inline-end: 0 !important;
  font-weight: 800;
}

.adm-bootstrap-toast .toast-header > small,
.adm-bootstrap-toast .toast-header > i {
  margin: 0 !important;
  flex: 0 0 auto;
}

.adm-bootstrap-toast .toast-body {
  padding: 0.95rem 1rem 1rem;
  font-weight: 700;
  line-height: 1.75;
}

.adm-toast-error .toast-header { background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%); }
.adm-toast-error .toast-body {
  background: #F8D7DA;
  color: #842029;
}

.adm-toast-success .toast-header { background: linear-gradient(135deg, #047857 0%, #0e9f6e 100%); }
.adm-toast-success .toast-body {
  background: #D1FAE5;
  color: #065F46;
}

.adm-toast-warning .toast-header { background: linear-gradient(135deg, #92400e 0%, #d97706 100%); }
.adm-toast-warning .toast-body {
  background: #FEF3C7;
  color: #78350F;
}

.adm-toast-info .toast-header { background: var(--adm-grad); }
.adm-toast-info .toast-body {
  background: #E0F2FE;
  color: #0F3F61;
}

.adm-bootstrap-toast .btn-close {
  flex: 0 0 auto;
  margin: 0 !important;
  margin-inline-start: auto !important;
  filter: invert(1) grayscale(100%) brightness(200%);
  opacity: 1;
}

.adm-toast-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 0.85rem 1rem 1rem;
  background: #F3F4F6;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.adm-toast-action {
  min-width: 74px;
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 10px;
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.adm-toast-action:hover {
  transform: translateY(-1px);
}

.adm-toast-action-primary {
  background: linear-gradient(135deg, #6d3bd1, #0876d8);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(13, 110, 253, 0.22);
}

.adm-toast-action-secondary {
  background: rgba(255, 255, 255, 0.92);
  color: #374151;
}

.adm-toast-warning .adm-toast-actions {
  background: #F3F4F6;
}

[data-bs-theme="dark"] .adm-toast-actions,
html[data-theme="dark"] .adm-toast-actions,
body[data-theme="dark"] .adm-toast-actions,
body.dark-mode .adm-toast-actions,
.dark .adm-toast-actions {
  background: #111827;
  border-top-color: rgba(148, 163, 184, 0.18);
}

[data-bs-theme="dark"] .adm-toast-action-secondary,
html[data-theme="dark"] .adm-toast-action-secondary,
body[data-theme="dark"] .adm-toast-action-secondary,
body.dark-mode .adm-toast-action-secondary,
.dark .adm-toast-action-secondary {
  background: #0b1220;
  color: #e5e7eb;
}

html[dir="rtl"] .adm-bootstrap-toast {
  direction: rtl;
  text-align: right;
}

html[dir="ltr"] .adm-bootstrap-toast {
  direction: ltr;
  text-align: left;
}

@media (max-width: 575.98px) {
  .adm-toast-container {
    bottom: 1.75rem !important;
  }

  .adm-bootstrap-toast .toast-header,
  .adm-bootstrap-toast .toast-body {
    padding-inline: 0.9rem;
  }
}

@media (min-width: 1200px) {
  .current-student-edit-dialog {
    max-width: min(1180px, calc(100vw - 48px));
  }
}

.adm-complaint-dialog {
  max-width: min(920px, calc(100vw - 2rem));
}

.modal-content.adm-complaint-modal {
  max-width: 100%;
}

.complaint-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.25rem;
  align-items: start;
}

.complaint-modal-layout-view {
  grid-template-columns: 1fr;
}

.complaint-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.complaint-info-item,
.complaint-message-box {
  background: var(--adm-bg);
  border: 1px solid var(--adm-border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
}

.complaint-info-item span {
  display: block;
  color: var(--adm-text2);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.complaint-info-item strong {
  display: block;
  color: var(--adm-text);
  font-size: 0.95rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.complaint-info-item small {
  display: block;
  color: var(--adm-text2);
  font-size: 0.78rem;
  margin-top: 0.2rem;
  overflow-wrap: anywhere;
}

.complaint-message-box {
  margin-top: 0.9rem;
}

.complaint-message-box strong {
  color: var(--adm-text);
}

.complaint-message-box p {
  color: var(--adm-text);
  overflow-wrap: anywhere;
}

.complaint-modal-form {
  background: rgba(106,53,165,0.04);
  border: 1px solid var(--adm-border);
  border-radius: 10px;
  padding: 1rem;
}

.complaint-contact-settings-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.complaint-contact-settings-layout .complaint-modal-form {
  width: 100%;
}

.complaint-contact-settings-layout .adm-form-group label {
  display: block;
  line-height: 1.45;
}

.complaint-contact-settings-layout .row > [class*="col-"] {
  width: 100%;
}

.complaint-contact-settings-layout .form-control,
.complaint-contact-settings-layout .form-select {
  width: 100%;
  min-height: 44px;
}

.complaint-contact-settings-layout textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

@media (max-width: 991.98px) {
  .complaint-modal-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .complaint-modal-grid {
    grid-template-columns: 1fr;
  }
}

/* SIDEBAR TOGGLE */
.adm-sidebar-toggle { display: none; background: none; border: none; font-size: 1.2rem; color: var(--adm-text); cursor: pointer; padding: 0.3rem; }
.adm-sidebar-close-btn {
  display: none;
  margin-left: auto;
  background: transparent;
  border: none;
  color: var(--adm-text2);
  font-size: 1.1rem;
  cursor: pointer;
}
.adm-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 950;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.adm-sidebar-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* RESPONSIVE */
@media (max-width:1199px) {
  .adm-sidebar {
    width: min(360px, 92vw);
    display: flex !important;
    transform: translateX(-105%);
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.34s ease;
    will-change: transform;
  }
  .adm-sidebar.open,
  .adm-sidebar.collapse.show {
    transform: translateX(0);
  }
  .adm-sidebar.collapse:not(.show) { display: flex !important; }
  .adm-sidebar-close-btn { display: inline-flex; }
  .adm-topbar { left: 0; }
  .adm-main { margin-left: 0; width: 100%; padding: 1.5rem 1rem 2rem; }
  .adm-sidebar-toggle { display: flex; }
}

@media (min-width:1200px) {
  .adm-sidebar.collapse { display: flex !important; }
}

@media (max-width:991px) {
  .adm-topbar { padding: 0.8rem 1rem; }
  .adm-main { padding: 1rem 0.9rem 1.5rem; }
}

@media (max-width:767px) {
  .adm-topbar { height: auto; align-items: center; padding: 0.75rem 0.85rem; gap: 0.75rem; }
  .adm-topbar-title { display: none; }
  .adm-topbar-actions { width: 100%; justify-content: flex-end; flex-wrap: nowrap; gap: 0.65rem; }
  .adm-user-menu { display: none; }
  .adm-language-switcher {
    display: block;
    min-width: 0;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
  }
  .adm-language-toggle {
    width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 0;
    border-radius: 14px;
  }
  .adm-language-toggle span,
  .adm-language-chevron { display: none; }
  .adm-language-toggle i:first-child { font-size: 1.32rem; }
  .adm-language-menu {
    top: calc(100% + 0.75rem);
    right: 50%;
    min-width: 148px;
    padding: 0.45rem;
    border-radius: 14px;
    transform: translate(50%, -8px) scale(0.98);
    transform-origin: top center;
  }
  .adm-language-switcher.open .adm-language-menu {
    transform: translate(50%, 0) scale(1);
  }
  .adm-language-option {
    min-height: 52px;
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }
  .adm-sidebar-toggle {
    display: flex;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--adm-bg);
    border: 1px solid var(--adm-border);
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  .adm-sidebar-toggle i { font-size: 1.3rem; }
  .adm-icon-btn { width: 46px; height: 46px; }
  .adm-sidebar { width: min(420px, 100vw); max-width: 100%; }
  .adm-nav-link { padding: 0.75rem 1rem; font-size: 0.82rem; }
  .adm-logo { padding: 0.9rem 1rem 0.9rem; }
  .adm-card-header { flex-wrap: wrap; align-items: flex-start; gap: 0.85rem; padding: 1rem; }
  .adm-card-body { padding: 1rem; }
  .adm-main > .d-flex.align-items-center.justify-content-between.mb-4 {
    align-items: flex-start !important;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .adm-main > .d-flex.align-items-center.justify-content-between.mb-4 > .adm-btn {
    width: auto;
    max-width: 100%;
    white-space: normal;
  }
  .adm-table,
  .adm-table.table {
    min-width: 680px !important;
  }
}

/* mobile spacing and overlay fixes */
@media (max-width:767px) {
  .adm-main { margin-top: 72px; }
  .adm-sidebar { z-index: 1100; box-shadow: 0 12px 40px rgba(2,6,23,0.2); }
  .adm-sidebar.collapse { display: flex !important; }
  .adm-sidebar.collapse.show,
  .adm-sidebar.open { display: flex !important; }
}

/* Topbar action item spacing depending on direction */
html[dir="ltr"] .adm-topbar-actions > * { margin-left: 0.5rem; margin-right: 0; }
html[dir="rtl"] .adm-topbar-actions > * { margin-right: 0.5rem; margin-left: 0; }

/* Ensure sidebar overlays from correct side on small screens */
@media (max-width:1199px) {
  html[dir="ltr"] .adm-sidebar { left: 0; right: auto; transform: translateX(-105%); }
  html[dir="rtl"] .adm-sidebar { right: 0; left: auto; transform: translateX(105%); }
  html[dir="ltr"] .adm-sidebar.open,
  html[dir="ltr"] .adm-sidebar.collapse.show,
  html[dir="rtl"] .adm-sidebar.open,
  html[dir="rtl"] .adm-sidebar.collapse.show { transform: translateX(0); }
}

/* MODAL */
.adm-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 1rem; }
.adm-modal-overlay.open { display: flex; }
.adm-modal,
.modal-content.adm-modal { background: var(--adm-card); border-radius: 16px; max-width: 640px; width: 100%; max-height: 95vh; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.25); border: 1px solid rgba(106,53,165,0.14); display: flex; flex-direction: column; }
.adm-modal-header,
.modal-content.adm-modal .modal-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid rgba(106,53,165,0.12); display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.adm-modal-body,
.modal-content.adm-modal .modal-body   { padding: 1.5rem; overflow-y: auto; flex: 1 1 auto; max-height: calc(90vh - 160px); }
.adm-modal-footer,
.modal-content.adm-modal .modal-footer { padding: 1.1rem 1.5rem;margin-bottom: 0.20rem; border-top: 1px solid rgba(106,53,165,0.12); display: flex; gap: 0.75rem; justify-content: flex-end; }
.modal-content.adm-modal .modal-header > .d-flex { min-width: 0; }
.modal-content.adm-modal .modal-title { min-width: 0; overflow-wrap: anywhere; }

.smtp-manager-page .adm-icon-chip {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--adm-gradient);
  box-shadow: 0 14px 28px rgba(106, 53, 165, 0.22);
  font-size: 1.35rem;
  flex: 0 0 auto;
}

.smtp-manager-page .adm-mini-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--adm-purple);
  font-weight: 800;
  font-size: 0.78rem;
}

.smtp-manager-page .smtp-settings-modal {
  max-width: min(920px, calc(100vw - 2rem));
}

.smtp-manager-page .smtp-settings-modal .adm-modal-header,
.smtp-manager-page .smtp-settings-modal .adm-modal-footer {
  flex-shrink: 0;
}

.smtp-manager-page .smtp-settings-modal .adm-modal-body {
  max-height: calc(90vh - 160px);
  overflow-y: auto;
}

.smtp-manager-page code {
  color: var(--adm-purple);
  background: rgba(106, 53, 165, 0.08);
  border: 1px solid rgba(106, 53, 165, 0.14);
  border-radius: 8px;
  padding: 0.25rem 0.45rem;
  font-weight: 700;
}

.volunteer-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.volunteer-detail-item {
  min-width: 0;
  min-height: 82px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--adm-border);
  border-radius: 10px;
  background: var(--adm-bg);
}

.volunteer-detail-item span {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--adm-text2);
  font-size: 0.72rem;
  font-weight: 700;
}

.volunteer-detail-item strong,
.volunteer-detail-item p {
  display: block;
  margin: 0;
  color: var(--adm-text);
  font-size: 0.88rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.volunteer-detail-wide {
  grid-column: 1 / -1;
  min-height: 112px;
}

.volunteer-view-btn {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  justify-content: center;
  padding: 0 !important;
}

.volunteer-view-icon {
  width: 1rem;
  height: 1rem;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#volunteerDetailsModal.show {
  overflow-x: hidden;
  overflow-y: auto;
}
.modal-header .btn-close { opacity: 0.8; transition: opacity 0.2s ease; margin: 0 !important; flex: 0 0 auto; }
.modal-header .btn-close:hover { opacity: 1; }
[data-theme="dark"] .modal-header .btn-close { filter: invert(1) brightness(1.2); }

.modal-content .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.modal-content .modal-header > :not(.btn-close) {
  min-width: 0;
}

.modal-content .modal-title {
  overflow-wrap: anywhere;
}

html[dir="rtl"] .modal-content .modal-header,
html[lang="fa"] .modal-content .modal-header {
  direction: rtl;
  text-align: right;
}

html[dir="ltr"] .modal-content .modal-header,
html[lang="en"] .modal-content .modal-header {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] .modal-content .modal-header .btn-close,
html[lang="fa"] .modal-content .modal-header .btn-close,
html[dir="ltr"] .modal-content .modal-header .btn-close,
html[lang="en"] .modal-content .modal-header .btn-close {
  flex: 0 0 auto;
  margin: 0 !important;
  opacity: 0.86;
}

html[dir="rtl"] .modal-content .modal-footer,
html[lang="fa"] .modal-content .modal-footer {
  direction: rtl;
  justify-content: flex-start;
  text-align: right;
}

html[dir="ltr"] .modal-content .modal-footer,
html[lang="en"] .modal-content .modal-footer {
  direction: ltr;
  justify-content: flex-end;
  text-align: left;
}

.adm-table { width: 100%; min-width: 100%; border-collapse: separate; border-spacing: 0; }
.adm-table th, .adm-table td { padding: 0.95rem 1rem; vertical-align: middle; }
.adm-table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: color-mix(in srgb, var(--adm-card) 92%, var(--adm-purple));
  color: var(--adm-text);
  font-weight: 700;
  box-shadow: inset 0 -1px 0 var(--adm-border), 0 8px 18px rgba(15, 23, 42, 0.06);
}
.adm-table tbody tr:hover td { background: rgba(106,53,165,0.05); }
.adm-table td { color: var(--adm-text); }
.adm-table th:last-child,
.adm-table td:last-child {
  width: 1%;
  min-width: 150px;
  white-space: nowrap;
}

.adm-table td:last-child > .d-flex,
.adm-table td:last-child .d-flex {
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 0.45rem !important;
}

.adm-table td:last-child form {
  display: inline-flex !important;
  margin: 0;
}

.adm-table td:last-child .adm-btn,
.adm-table td:last-child .adm-badge,
.adm-table td:last-child .btn,
.adm-table td:last-child button,
.adm-table td:last-child a {
  flex: 0 0 auto;
}
.adm-table .text-wrap { max-width: 280px; word-break: break-word; }
.adm-card { width: 100%; }
.table-responsive {
  width: 100%;
  overflow: auto;
  max-height: min(72vh, 760px);
  border-radius: 0 0 14px 14px;
}

.adm-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--adm-border);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: color-mix(in srgb, var(--adm-card) 94%, var(--adm-purple));
}

.adm-table-search-wrap {
  width: min(460px, 100%);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 0.9rem;
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--adm-purple) 46%, var(--adm-border));
  border-radius: 10px;
  background: color-mix(in srgb, var(--adm-bg) 88%, var(--adm-card));
  color: var(--adm-text2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28), 0 10px 24px rgba(15,23,42,0.04);
}

.adm-table-search-wrap:focus-within {
  border-color: color-mix(in srgb, var(--adm-blue) 58%, var(--adm-purple));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35), 0 0 0 3px rgba(106, 53, 165, 0.14);
}

[data-theme="dark"] .adm-table-search-wrap {
  border-color: color-mix(in srgb, var(--adm-cyan, #18A6F5) 62%, var(--adm-purple, #6a35a5));
  background: rgba(2, 6, 23, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 0 0 1px rgba(24,166,245,0.14), 0 12px 28px rgba(0,0,0,0.16);
}

[data-theme="dark"] .adm-table-search-wrap:focus-within {
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.09), 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.adm-table-search {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--adm-text);
  font-size: 0.88rem;
}

.adm-table-search::placeholder {
  color: var(--adm-text2);
  opacity: 0.78;
}

.adm-table-toolbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
}

.adm-table-export-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(106, 53, 165, 0.35);
  border-radius: 10px;
  background: color-mix(in srgb, var(--adm-card) 82%, var(--adm-purple));
  color: var(--adm-purple);
  font-weight: 800;
  font-size: 0.76rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.adm-table-export-btn:hover {
  transform: translateY(-1px);
  border-color: transparent;
  background: var(--adm-grad);
  color: #fff;
}

[data-theme="dark"] .adm-table-export-btn:not(:hover),
body.dark-mode .adm-table-export-btn:not(:hover),
.dark .adm-table-export-btn:not(:hover) {
  color: #eaf9ff;
  -webkit-text-fill-color: currentColor;
  border-color: color-mix(in srgb, var(--adm-cyan, #18A6F5) 62%, var(--adm-purple, #6a35a5));
  background: rgba(117, 56, 182, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 10px 24px rgba(0,0,0,0.12);
}

html[dir="rtl"] .adm-table-search {
  text-align: right;
}

html[dir="ltr"] .adm-table-search {
  text-align: left;
}

.adm-sidebar,
.adm-nav-body,
.adm-modal,
.table-responsive,
.modal-content.adm-modal {
  scrollbar-width: thin;
  scrollbar-color: var(--adm-scrollbar-thumb) var(--adm-scrollbar-track);
}

.adm-sidebar::-webkit-scrollbar,
.adm-nav-body::-webkit-scrollbar,
.adm-modal::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar,
.modal-content.adm-modal::-webkit-scrollbar { width: 5px; height: 5px; }
.adm-sidebar::-webkit-scrollbar-thumb,
.adm-nav-body::-webkit-scrollbar-thumb,
.adm-modal::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb,
.modal-content.adm-modal::-webkit-scrollbar-thumb { background: var(--adm-scrollbar-thumb); border-radius: 999px; }
.adm-sidebar::-webkit-scrollbar-track,
.adm-nav-body::-webkit-scrollbar-track,
.adm-modal::-webkit-scrollbar-track,
.table-responsive::-webkit-scrollbar-track,
.modal-content.adm-modal::-webkit-scrollbar-track { background: var(--adm-scrollbar-track); }

@media (max-width:767px) {
  .adm-table-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .adm-table-search-wrap,
  .adm-table-toolbar-actions {
    width: 100%;
  }

  .adm-table-export-btn {
    flex: 1 1 0;
  }
}

/* CHART PLACEHOLDER */
.adm-chart-area { background: var(--adm-bg); border-radius: 10px; padding: 1.5rem; min-height: 200px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--adm-border); color: var(--adm-text2); font-size: 0.875rem; }

/* AVATAR */
.adm-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--adm-grad); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 0.8rem; }
.adm-avatar-img {
  object-fit: cover;
  padding: 0 !important;
  background: transparent !important;
  border: 1px solid var(--adm-border);
}

/* QUICK LINKS */
.adm-quick-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; padding: 1.25rem 1rem; background: var(--adm-bg); border: 1px solid var(--adm-border); border-radius: 12px; text-decoration: none; color: var(--adm-text); font-size: 0.8rem; font-weight: 600; transition: all 0.2s; text-align: center; }
.adm-quick-link i { font-size: 1.5rem; color: var(--adm-purple); }
.adm-quick-link:hover { background: var(--adm-grad); color: #fff; border-color: transparent; }
.adm-quick-link:hover i { color: #fff; }

.hero-admin-preview {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--adm-bg);
  border: 1px solid var(--adm-border);
  border-radius: 10px;
  overflow: hidden;
}

.hero-admin-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-slider-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: flex-start;
  margin-top: 0.75rem;
}

.home-slider-controls {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.home-slider-controls .adm-icon-btn {
  width: 42px;
  height: 42px;
}

.home-slider-controls .adm-icon-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.home-slider-viewport {
  overflow: hidden;
  width: 100%;
}

.home-slider-grid {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.35s ease;
  will-change: transform;
}

.home-slider-item {
  flex: 0 0 calc((100% - 3rem) / 3);
  min-width: 0;
}

.hero-admin-preview-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--adm-text2);
  background: color-mix(in srgb, var(--adm-card) 82%, var(--adm-purple));
  border-style: dashed;
  font-size: 0.85rem;
  font-weight: 700;
}

.adm-scroll-body {
  max-height: 68vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--adm-purple) transparent;
}

.adm-scroll-body::-webkit-scrollbar {
  width: 6px;
}

.adm-scroll-body::-webkit-scrollbar-thumb {
  background: var(--adm-grad);
  border-radius: 999px;
}

.adm-actions-nowrap {
  flex-wrap: nowrap !important;
  white-space: nowrap;
}

@media (max-width: 1199.98px) {
  .home-slider-item {
    flex-basis: calc((100% - 1.5rem) / 2);
  }
}

@media (max-width: 767.98px) {
  .home-slider-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-slider-controls {
    margin-inline-start: 0;
    justify-content: flex-end;
  }

  .home-slider-item {
    flex-basis: 100%;
  }
}

.adm-tabs {
  gap: 0.5rem;
  flex-wrap: wrap;
}

.adm-tabs .nav-link {
  color: var(--adm-text2);
  border: 1px solid var(--adm-border);
  background: var(--adm-card);
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

.adm-tabs .nav-link.active {
  color: #fff;
  border-color: transparent;
  background: var(--adm-grad);
}

/* RTL final overrides: placed at end to ensure they override earlier LTR rules */
html[dir="rtl"] {
  direction: rtl;
}
html[dir="rtl"] .adm-sidebar {
  left: auto;
  right: 0;
  border-left: 1px solid var(--adm-border);
  border-right: none;
}
html[dir="rtl"] .adm-topbar {
  left: 0 !important;
  right: var(--adm-sidebar-w) !important;
}
html[dir="rtl"] .adm-main {
  margin-left: 0 !important;
  margin-right: var(--adm-sidebar-w) !important;
  width: calc(100% - var(--adm-sidebar-w)) !important;
}
html[dir="rtl"] .adm-nav-link.active {
  border-right: none !important;
  border-left: 3px solid var(--adm-purple) !important;
}
html[dir="rtl"] .adm-nav-badge { margin-left: 0 !important; margin-right: auto !important; }
html[dir="rtl"] .adm-nav-body { padding-right: 0.25rem; padding-left: 0; }
html[dir="rtl"] .adm-logo-text, html[dir="rtl"] .adm-nav-link { text-align: right; direction: rtl; }
html[dir="rtl"] .adm-nav-chevron { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .adm-nav-submenu { padding: 0.25rem 2.25rem 0.35rem 0; }
html[dir="rtl"] .adm-nav-sublink { direction: rtl; text-align: right; }
html[dir="rtl"] .adm-user-dropdown { right: auto; left: 0; }
html[dir="rtl"] .adm-language-menu {
  right: auto;
  left: 0;
  transform-origin: top left;
}
html[dir="rtl"] .adm-language-option {
  direction: rtl;
}
html[dir="rtl"] .adm-sidebar-close-btn {
  position: absolute;
  left: 1rem;
  right: auto;
  margin: 0;
  top: 50%;
  transform: translateY(-50%);
}
html[dir="rtl"] .adm-logo {
  padding-left: 3.25rem;
}
html[dir="ltr"] .adm-sidebar-close-btn {
  margin-left: auto;
}
html[dir="rtl"] body { font-family: 'Vazirmatn', 'Inter', sans-serif; }
html[dir="rtl"] .adm-form-group label,
html[dir="rtl"] .form-label,
html[dir="rtl"] .form-text { text-align: right; }
html[dir="rtl"] .adm-form-group .form-control,
html[dir="rtl"] .adm-form-group .form-select,
html[dir="rtl"] .modal-content .form-control,
html[dir="rtl"] .modal-content .form-select { text-align: right; }
html[dir="rtl"] .modal-content.adm-modal .modal-header,
html[dir="rtl"] .modal-content .modal-header {
  direction: rtl;
}
html[dir="rtl"] .modal-content.adm-modal .modal-header > .d-flex,
html[dir="rtl"] .modal-content .modal-header > .d-flex {
  justify-content: flex-start;
}
html[dir="rtl"] .modal-content.adm-modal .modal-header .btn-close,
html[dir="rtl"] .modal-content .modal-header .btn-close {
  margin: 0 !important;
}

@media (max-width:1199px) {
  html[dir="rtl"] .adm-topbar {
    left: 0 !important;
    right: 0 !important;
  }
  html[dir="rtl"] .adm-main {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }
}

@media (max-width:767px) {
  html[dir="rtl"] .adm-language-menu,
  html[dir="ltr"] .adm-language-menu {
    left: auto;
    right: 50%;
    transform-origin: top center;
  }
  html[dir="rtl"] .adm-language-switcher.open .adm-language-menu,
  html[dir="ltr"] .adm-language-switcher.open .adm-language-menu {
    transform: translate(50%, 0) scale(1);
  }
  .modal-dialog {
    margin: 0.75rem;
  }
  .modal-content.adm-modal,
  .modal-content {
    max-height: calc(100vh - 1.5rem);
    border-radius: 14px;
  }
  .modal-content.adm-modal .modal-header,
  .modal-content .modal-header {
    padding: 1rem;
  }
  .modal-content.adm-modal .modal-body,
  .modal-content .modal-body {
    padding: 1rem;
    max-height: calc(100vh - 150px);
  }
  .modal-content.adm-modal .modal-footer,
  .modal-content .modal-footer {
    padding: 0.9rem 1rem;
    flex-wrap: wrap;
  }
}
.school-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 0.85rem;
}

.school-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 0.85rem;
}

.school-edit-item {
  border: 1px solid var(--adm-border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  background: var(--adm-bg);
  margin-bottom: 0;
}

.school-edit-item label {
  display: block;
  color: var(--adm-text2);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.school-edit-item textarea.form-control {
  min-height: 96px;
  resize: vertical;
}

.school-detail-item {
  border: 1px solid var(--adm-border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  background: var(--adm-bg);
}

.school-detail-item span {
  display: block;
  color: var(--adm-text2);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.school-detail-item strong {
  display: block;
  color: var(--adm-text);
  font-size: 0.88rem;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.admin-step-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.modal-dialog.adm-step-dialog {
  max-width: min(1180px, calc(100vw - 2rem));
}

.modal-content.adm-step-modal {
  width: 100%;
  max-width: 100%;
}

.modal-content.adm-step-modal .modal-header {
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.modal-content.adm-step-modal .modal-header > .d-flex {
  flex: 1 1 auto;
}

.admin-modal-header-tabs {
  flex: 1 1 100%;
  order: 3;
  overflow-x: auto;
  padding-bottom: 0.1rem;
}

.admin-modal-header-tabs:empty {
  display: none;
}

.admin-modal-header-tabs .admin-step-tabs {
  margin-bottom: 0;
  min-width: max-content;
}

.admin-edit-primary-fields.d-none {
  display: none !important;
}

.modal-content.adm-step-modal .modal-body {
  max-height: calc(90vh - 210px);
  overflow-y: auto;
}

.admin-step-tab {
  border: 1px solid var(--adm-border);
  background: var(--adm-bg);
  color: var(--adm-text2);
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.admin-step-tab.active {
  background: var(--adm-grad);
  color: #fff;
  border-color: transparent;
}

.admin-step-panel {
  display: none;
}

.admin-step-panel.active {
  display: block;
}

.departments-admin-content .hero-admin-preview {
  max-width: 520px;
  aspect-ratio: 16 / 9;
  max-height: 220px;
  background: rgba(255, 255, 255, 0.04);
}

.departments-admin-content .hero-admin-preview img {
  object-fit: contain;
}

.departments-admin-content textarea.form-control {
  min-height: 140px;
}

.department-admin-avatar {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--adm-border);
}

.department-admin-avatar-empty {
  background: var(--adm-grad);
  color: #fff;
  font-weight: 900;
}

.legal-admin-textarea {
  min-height: 340px;
  line-height: 1.75;
  resize: vertical;
}

.legal-admin-source-textarea {
  min-height: 120px;
  line-height: 1.7;
  resize: vertical;
  font-size: 0.9rem;
}

@media (max-width: 767.98px) {
  .adm-notification-menu {
    position: fixed;
    top: 70px;
    inset-inline: 0.75rem;
    width: auto;
    max-height: calc(100dvh - 90px);
  }

  .volunteer-details-grid {
    grid-template-columns: 1fr;
  }

  .volunteer-detail-wide {
    grid-column: auto;
  }
  .school-detail-grid {
    grid-template-columns: 1fr;
  }
  .school-edit-grid {
    grid-template-columns: 1fr;
  }
}
.adm-table thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--adm-card, #ffffff);
  box-shadow: inset 0 -1px 0 var(--adm-border, rgba(148, 163, 184, 0.24));
  text-align: center;
}

[data-bs-theme="dark"] .adm-table thead th,
html[data-theme="dark"] .adm-table thead th,
body[data-theme="dark"] .adm-table thead th,
body.dark-mode .adm-table thead th,
.dark .adm-table thead th {
  background: #101827;
  color: #f8fafc;
}

.current-student-table-wrap {
  max-height: 68vh;
  overflow: auto;
  position: relative;
  isolation: isolate;
  scrollbar-width: thin;
  scrollbar-color: #7c3aed rgba(124, 58, 237, 0.12);
}

.current-student-table-wrap .adm-current-students-table,
.current-student-table-wrap .adm-current-schools-table {
  border-collapse: separate;
  border-spacing: 0;
}

.current-student-table-wrap .adm-current-students-table th,
.current-student-table-wrap .adm-current-students-table td,
.current-student-table-wrap .adm-current-schools-table th,
.current-student-table-wrap .adm-current-schools-table td {
  text-align: center !important;
  vertical-align: middle;
}

.current-student-table-wrap .adm-current-students-table tbody td,
.current-student-table-wrap .adm-current-schools-table tbody td {
  position: relative;
  z-index: 1;
}

.current-student-table-wrap .adm-current-students-table thead th,
.current-student-table-wrap .adm-current-schools-table thead th {
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  color: var(--adm-text, #0f172a);
  box-shadow: 0 1px 0 var(--adm-border, rgba(148, 163, 184, 0.24)), 0 8px 14px rgba(15, 23, 42, 0.06);
}

[data-bs-theme="dark"] .current-student-table-wrap .adm-current-students-table thead th,
html[data-theme="dark"] .current-student-table-wrap .adm-current-students-table thead th,
body[data-theme="dark"] .current-student-table-wrap .adm-current-students-table thead th,
body.dark-mode .current-student-table-wrap .adm-current-students-table thead th,
.dark .current-student-table-wrap .adm-current-students-table thead th,
[data-bs-theme="dark"] .current-student-table-wrap .adm-current-schools-table thead th,
html[data-theme="dark"] .current-student-table-wrap .adm-current-schools-table thead th,
body[data-theme="dark"] .current-student-table-wrap .adm-current-schools-table thead th,
body.dark-mode .current-student-table-wrap .adm-current-schools-table thead th,
.dark .current-student-table-wrap .adm-current-schools-table thead th {
  background: linear-gradient(180deg, #182235 0%, #101827 100%) !important;
  color: #f8fafc !important;
  box-shadow: 0 1px 0 rgba(148, 163, 184, 0.22), 0 8px 14px rgba(0, 0, 0, 0.22);
}

.current-student-table-wrap::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

.current-student-table-wrap::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #7c3aed, #0ea5e9);
  border-radius: 10px;
}

.current-student-table-wrap::-webkit-scrollbar-track {
  background: rgba(124, 58, 237, 0.08);
}

.current-student-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--adm-border, rgba(148, 163, 184, 0.22));
  background: color-mix(in srgb, var(--adm-card, #fff) 92%, #7c3aed 8%);
}

.current-student-toolbar-main,
.current-student-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.current-student-toolbar-main {
  flex: 1 1 auto;
  min-width: min(100%, 520px);
}

.current-student-toolbar-actions {
  justify-content: flex-end;
}

.current-student-toolbar .adm-search {
  width: min(100%, 340px);
  min-width: 260px;
  height: 44px;
  border: 1px solid rgba(124, 58, 237, 0.42);
  background: var(--adm-card, #fff);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  margin-inline-end: auto;
}

.current-student-toolbar .adm-search input {
  height: 100%;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--adm-text, #0f172a);
}

.current-student-toolbar .adm-search i {
  color: var(--adm-purple, #6d3bd1);
}

[data-bs-theme="dark"] .current-student-toolbar .adm-search,
html[data-theme="dark"] .current-student-toolbar .adm-search,
body[data-theme="dark"] .current-student-toolbar .adm-search,
body.dark-mode .current-student-toolbar .adm-search,
.dark .current-student-toolbar .adm-search {
  background: #0b1220;
  border-color: rgba(167, 139, 250, 0.48);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

[data-bs-theme="dark"] .current-student-toolbar select,
html[data-theme="dark"] .current-student-toolbar select,
body[data-theme="dark"] .current-student-toolbar select,
body.dark-mode .current-student-toolbar select,
.dark .current-student-toolbar select {
  background-color: #0b1220;
  border-color: rgba(167, 139, 250, 0.48);
  color: #f8fafc;
}

.current-student-toolbar select {
  min-width: 190px;
  max-width: 230px;
  height: 40px;
  border-radius: 10px;
  border-color: rgba(124, 58, 237, 0.35);
  background-color: var(--adm-card, #fff);
  color: var(--adm-text, #0f172a);
}

@media (min-width: 992px) {
  .current-student-toolbar-main,
  .current-student-toolbar-actions {
    flex-wrap: nowrap !important;
  }
}

.current-student-export,
.adm-current-delete-all,
.current-student-upload-open {
  min-height: 40px;
  border-radius: 10px !important;
  border: 1px solid rgba(124, 58, 237, 0.34) !important;
  background: color-mix(in srgb, var(--adm-card, #fff) 88%, #7c3aed 12%) !important;
  color: var(--adm-purple, #6d3bd1) !important;
  box-shadow: none !important;
}

.current-student-upload-open {
  background: var(--adm-grad, linear-gradient(135deg, #6d3bd1, #0876d8)) !important;
  border-color: transparent !important;
  color: #fff !important;
}

.current-student-export:hover,
.adm-current-delete-all:hover {
  border-color: rgba(14, 165, 233, 0.55) !important;
  color: #0b76d8 !important;
  transform: translateY(-1px);
}

.adm-current-delete-all {
  border-color: rgba(239, 68, 68, 0.35) !important;
  color: #ef4444 !important;
}

html[data-theme="dark"] .current-student-export,
body[data-theme="dark"] .current-student-export,
body.dark-mode .current-student-export,
.dark .current-student-export {
  background: rgba(124, 58, 237, 0.18) !important;
  border-color: rgba(167, 139, 250, 0.55) !important;
  color: #d8b4fe !important;
}

html[data-theme="dark"] .current-student-export i,
body[data-theme="dark"] .current-student-export i,
body.dark-mode .current-student-export i,
.dark .current-student-export i {
  color: #d8b4fe !important;
}

.adm-actions-nowrap {
  white-space: nowrap;
  flex-wrap: nowrap !important;
}

.current-student-table-wrap .adm-actions-nowrap .adm-icon-btn {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
}

.current-student-table-wrap .adm-actions-nowrap form {
  display: inline-flex !important;
  margin: 0;
}

.current-student-inline-upload-hidden {
  display: none !important;
}

.current-student-progress {
  height: 12px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.14);
  overflow: hidden;
}

.current-student-progress .progress-bar {
  background: linear-gradient(135deg, #7c3aed, #0ea5e9);
  font-size: 10px;
  font-weight: 800;
}

.current-student-upload-open,
.adm-current-delete-all {
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .current-student-toolbar,
  .current-student-toolbar-main,
  .current-student-toolbar-actions {
    align-items: stretch;
  }

  .current-student-toolbar .adm-search,
  .current-student-toolbar select,
  .current-student-upload-open,
  .current-student-toolbar-actions,
  .current-student-toolbar-actions .adm-btn {
    width: 100%;
    max-width: none;
  }
}

.adm-table-toolbar:not(.current-student-toolbar):has(+ .adm-current-students-table),
.admin-table-toolbar:not(.current-student-toolbar):has(+ .adm-current-students-table),
.table-toolbar:not(.current-student-toolbar):has(+ .adm-current-students-table) {
  display: none !important;
}

.current-student-table-wrap .adm-current-students-page-table {
  border-collapse: separate;
  border-spacing: 0;
}

.current-student-table-wrap .adm-current-students-page-table th,
.current-student-table-wrap .adm-current-students-page-table td {
  text-align: center !important;
  vertical-align: middle;
}

.current-student-table-wrap .adm-current-students-page-table tbody td {
  position: relative;
  z-index: 1;
}

.current-student-table-wrap .adm-current-students-page-table thead th {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  color: var(--adm-text, #0f172a) !important;
  box-shadow: 0 1px 0 var(--adm-border, rgba(148, 163, 184, 0.24)), 0 8px 14px rgba(15, 23, 42, 0.06);
}

[data-bs-theme="dark"] .current-student-table-wrap .adm-current-students-page-table thead th,
html[data-theme="dark"] .current-student-table-wrap .adm-current-students-page-table thead th,
body[data-theme="dark"] .current-student-table-wrap .adm-current-students-page-table thead th,
body.dark-mode .current-student-table-wrap .adm-current-students-page-table thead th,
.dark .current-student-table-wrap .adm-current-students-page-table thead th {
  background: linear-gradient(180deg, #182235 0%, #101827 100%) !important;
  color: #f8fafc !important;
  box-shadow: 0 1px 0 rgba(148, 163, 184, 0.22), 0 8px 14px rgba(0, 0, 0, 0.22);
}

.current-student-pagination-shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-top: 1px solid var(--adm-border, rgba(148, 163, 184, 0.22));
  background: color-mix(in srgb, var(--adm-card, #fff) 94%, #7c3aed 6%);
}

.current-student-page-info {
  color: var(--adm-text2, #64748b);
  font-size: 0.86rem;
  font-weight: 700;
}

.current-student-pagination-wrap {
  margin-inline-start: auto;
}

.current-student-pagination {
  gap: 6px;
  flex-wrap: wrap;
}

.current-student-pagination .page-link {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px !important;
  border: 1px solid rgba(124, 58, 237, 0.32);
  background: var(--adm-card, #fff);
  color: var(--adm-purple, #6d3bd1);
  font-weight: 800;
  box-shadow: none;
}

.current-student-pagination .page-item.active .page-link {
  background: var(--adm-grad, linear-gradient(135deg, #6d3bd1, #0876d8));
  border-color: transparent;
  color: #fff;
}

.current-student-pagination .page-item.disabled .page-link {
  opacity: 0.48;
  pointer-events: none;
}

[data-bs-theme="dark"] .current-student-pagination-shell,
html[data-theme="dark"] .current-student-pagination-shell,
body[data-theme="dark"] .current-student-pagination-shell,
body.dark-mode .current-student-pagination-shell,
.dark .current-student-pagination-shell {
  background: color-mix(in srgb, #0b1220 84%, #7c3aed 16%);
}

[data-bs-theme="dark"] .current-student-pagination .page-link,
html[data-theme="dark"] .current-student-pagination .page-link,
body[data-theme="dark"] .current-student-pagination .page-link,
body.dark-mode .current-student-pagination .page-link,
.dark .current-student-pagination .page-link {
  background: #101827;
  border-color: rgba(167, 139, 250, 0.42);
  color: #d8c8ff;
}

@media (max-width: 767.98px) {
  .current-student-pagination-shell,
  .current-student-pagination-wrap {
    justify-content: center;
    text-align: center;
    width: 100%;
    margin-inline-start: 0;
  }
}

/* Strong sticky table headers for every admin table */
.table-responsive {
  position: relative;
}

.adm-table thead {
  position: sticky;
  top: 0;
  z-index: 80;
}

.adm-table thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 81 !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  color: var(--adm-text, #0f172a) !important;
  background-clip: padding-box;
  box-shadow:
    inset 0 -1px 0 var(--adm-border, rgba(148, 163, 184, 0.24)),
    0 10px 22px rgba(15, 23, 42, 0.08) !important;
  text-align: center !important;
}

.adm-table tbody td {
  position: relative;
  z-index: 1;
}

[data-bs-theme="dark"] .adm-table thead th,
html[data-theme="dark"] .adm-table thead th,
body[data-theme="dark"] .adm-table thead th,
body.dark-mode .adm-table thead th,
.dark .adm-table thead th {
  background: linear-gradient(180deg, #182235 0%, #101827 100%) !important;
  color: #f8fafc !important;
  box-shadow:
    inset 0 -1px 0 rgba(148, 163, 184, 0.24),
    0 12px 24px rgba(0, 0, 0, 0.24) !important;
}

.exam-receipt-preview {
  width: min(100%, 560px);
  margin-top: 0.45rem;
  margin-inline: auto;
  padding: 0.45rem;
  border: 1px solid var(--adm-border, rgba(148, 163, 184, 0.24));
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.exam-receipt-preview img {
  display: block;
  width: 100%;
  max-height: none;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

html[data-theme="dark"] .exam-receipt-preview,
body.dark-mode .exam-receipt-preview,
.dark .exam-receipt-preview {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}
/* Section settings tabs */
.section-settings-inner-tabs,
.adm-team-tabs {
  align-items: center;
}

.adm-team-tabbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.adm-team-tab-heading {
  min-width: min(100%, 320px);
  margin-inline-start: auto;
  text-align: end;
}

[dir="ltr"] .adm-team-tab-heading,
html[lang="en"] .adm-team-tab-heading {
  text-align: left;
}

.adm-team-tab-title {
  display: none;
  padding: 0.25rem 0;
}

.adm-team-tab-title h5,
.adm-team-members-header h4,
.adm-team-applications-header h5 {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  line-height: 1.35;
}

.adm-team-tab-title h5 > i,
.adm-team-members-header h4 > i,
.adm-team-applications-header h5 > i {
  margin: 0 !important;
  flex: 0 0 auto;
}

.adm-team-applications-header {
  padding: 1rem 1rem 0.1rem;
}

.adm-team-applications-card .table-responsive {
  margin-top: 0.75rem;
}

.adm-team-tab-title.is-active {
  display: block;
}

.adm-team-tab-title p {
  color: var(--adm-text2);
  font-size: 0.85rem;
}

.section-settings-inner-tabs .nav-link,
.adm-team-tabs .nav-link {
  border: 1px solid var(--adm-border);
  border-radius: 10px;
  color: var(--adm-text2);
  background: var(--adm-card);
  font-weight: 800;
  font-size: 0.86rem;
  padding: 0.72rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.section-settings-inner-tabs .nav-link:hover,
.adm-team-tabs .nav-link:hover,
.section-settings-inner-tabs .nav-link.active,
.adm-team-tabs .nav-link.active {
  color: #fff;
  border-color: transparent;
  background: var(--adm-grad);
  box-shadow: 0 12px 28px rgba(106, 53, 165, 0.24);
  transform: translateY(-1px);
}

.section-settings-inner-content > .tab-pane {
  outline: none;
}

html[data-theme="dark"] .section-settings-inner-tabs .nav-link,
html[data-theme="dark"] .adm-team-tabs .nav-link,
body.dark-mode .section-settings-inner-tabs .nav-link,
body.dark-mode .adm-team-tabs .nav-link {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--adm-text2);
}

html[data-theme="dark"] .section-settings-inner-tabs .nav-link:hover,
html[data-theme="dark"] .adm-team-tabs .nav-link:hover,
html[data-theme="dark"] .section-settings-inner-tabs .nav-link.active,
html[data-theme="dark"] .adm-team-tabs .nav-link.active,
body.dark-mode .section-settings-inner-tabs .nav-link:hover,
body.dark-mode .adm-team-tabs .nav-link:hover,
body.dark-mode .section-settings-inner-tabs .nav-link.active,
body.dark-mode .adm-team-tabs .nav-link.active {
  color: #fff;
  background: var(--adm-grad);
  border-color: transparent;
}

@media (max-width: 767.98px) {
  .adm-team-tabbar {
    align-items: stretch;
  }

  .adm-team-tab-heading {
    width: 100%;
    margin-inline-start: 0;
    text-align: start;
  }
}

/* Student graphs */
.student-graphs-page {
  --graph-blue: #2563eb;
  --graph-purple: #7c3aed;
  --graph-green: #10b981;
  --graph-amber: #f59e0b;
}

.student-graphs-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--adm-border, rgba(148, 163, 184, 0.24));
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(37, 99, 235, 0.08)),
    var(--adm-card, #fff);
}

.student-graphs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
  color: var(--adm-purple, #7c3aed);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.student-graphs-hero p {
  color: var(--adm-text2, #64748b);
  font-weight: 600;
}

.student-graphs-filter {
  min-width: min(100%, 260px);
}

.student-graphs-filter label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--adm-text2, #64748b);
  font-size: 0.78rem;
  font-weight: 800;
}

.student-graph-stat {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  height: 100%;
  padding: 1rem;
  border: 1px solid var(--adm-border, rgba(148, 163, 184, 0.24));
  border-radius: 12px;
  background: var(--adm-card, #fff);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.student-graph-stat > span {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  border-radius: 12px;
  color: #fff;
  background: var(--adm-grad, linear-gradient(135deg, #7c3aed, #2563eb));
}

.student-graph-stat strong {
  display: block;
  color: var(--adm-text, #0f172a);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.1;
}

.student-graph-stat small {
  display: block;
  margin-top: 0.2rem;
  color: var(--adm-text2, #64748b);
  font-weight: 800;
}

.student-graph-card {
  height: 100%;
  overflow: hidden;
}

.student-graph-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.15rem 0;
}

.school-graph-filter-head {
  align-items: flex-end;
}

.student-graph-card-head h5 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: var(--adm-text, #0f172a);
  font-size: 1rem;
  font-weight: 900;
}

.student-graph-card-head h5 i {
  color: var(--adm-purple, #7c3aed);
}

.student-graph-card-head p {
  margin: 0.3rem 0 0;
  color: var(--adm-text2, #64748b);
  font-size: 0.83rem;
  font-weight: 600;
}

.student-graph-count {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  background: rgba(124, 58, 237, 0.1);
  color: var(--adm-purple, #7c3aed);
  font-size: 0.78rem;
  font-weight: 900;
}

.student-graph-canvas-wrap {
  position: relative;
  height: 330px;
  padding: 1rem 1rem 1.15rem;
}

.school-province-canvas-wrap {
  height: 430px;
}

.school-chart-scroll-inner {
  position: relative;
  width: 100%;
  min-width: 100%;
  height: 100%;
}

[data-graph-card="current_schools"] .school-province-canvas-wrap {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  margin: 0 1rem 1rem;
  padding: 0.9rem 1rem 1.2rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.school-graph-province-filter {
  min-width: min(100%, 260px);
  margin-inline-start: auto;
}

.school-graph-province-filter label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--adm-text2, #64748b);
  font-size: 0.78rem;
  font-weight: 850;
}

.student-graph-canvas-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

.student-graph-empty {
  position: absolute;
  inset: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.45rem;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  border-radius: 12px;
  background: color-mix(in srgb, var(--adm-card, #fff) 88%, #f8fafc 12%);
  color: var(--adm-text2, #64748b);
  font-weight: 800;
  pointer-events: none;
}

.student-graph-empty i {
  font-size: 1.8rem;
  color: var(--adm-purple, #7c3aed);
}

.student-graphs-page.is-loading .student-graph-card {
  opacity: 0.72;
}

.school-request-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0.9rem 1.15rem 0;
}

.school-request-status-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 999px;
  padding: 0.48rem 0.75rem;
  background: rgba(124, 58, 237, 0.08);
  color: var(--adm-text2, #64748b);
  font-size: 0.8rem;
  font-weight: 800;
}

.school-request-status-row strong {
  color: var(--adm-purple, #7c3aed);
  font-size: 0.95rem;
  font-weight: 950;
}

.school-province-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  max-height: 158px;
  overflow: auto;
  padding: 0 1.15rem 1.15rem;
}

.school-province-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 999px;
  padding: 0.42rem 0.7rem;
  background: var(--adm-card, #fff);
  color: var(--adm-text, #0f172a);
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.school-province-chip:hover {
  border-color: rgba(124, 58, 237, 0.45);
  transform: translateY(-1px);
}

.school-province-chip span {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 999px;
}

.school-province-chip em {
  font-style: normal;
  color: var(--adm-purple, #7c3aed);
  font-weight: 950;
}

.school-province-chip.is-muted {
  opacity: 0.42;
}

.school-province-chip.is-muted strong,
.school-province-chip.is-muted em {
  text-decoration: line-through;
}

.team-analytics-card {
  padding: 1.1rem 1.15rem 1rem;
}

.team-analytics-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.team-analytics-head h5 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: var(--adm-text, #0f172a);
  font-weight: 850;
}

.team-analytics-head h5 i {
  color: var(--adm-purple, #7c3aed);
}

.team-analytics-head p {
  margin: 0.35rem 0 0;
  color: var(--adm-text2, #64748b);
  font-size: 0.84rem;
  font-weight: 650;
}

.team-analytics-stats {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.team-analytics-stats span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.48rem 0.75rem;
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.1);
  color: var(--adm-text2, #64748b);
  font-size: 0.8rem;
  font-weight: 850;
}

.team-analytics-stats strong {
  color: var(--adm-purple, #7c3aed);
  font-size: 1rem;
}

.team-analytics-chart-wrap {
  min-height: 365px;
}

.team-analytics-chart-wrap .apexcharts-toolbar {
  color: #94a3b8;
}

.donation-graph-card {
  padding: 1.1rem 1.15rem 1rem;
}

.donation-graph-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.donation-graph-head h5 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: var(--adm-text, #0f172a);
  font-weight: 850;
}

.donation-graph-head h5 i {
  color: #10b981;
}

.donation-graph-head p {
  margin: 0.35rem 0 0;
  color: var(--adm-text2, #64748b);
  font-size: 0.84rem;
  font-weight: 650;
}

.donation-graph-stats {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.donation-graph-stats span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.48rem 0.75rem;
  border: 1px solid rgba(16, 185, 129, 0.24);
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--adm-text2, #64748b);
  font-size: 0.8rem;
  font-weight: 850;
}

.donation-graph-stats strong {
  color: #10b981;
  font-size: 1rem;
}

.donation-currency-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0.1rem 0.5rem 0.9rem;
}

.donation-currency-summary span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 36px;
  padding: 0.42rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--donation-currency-color) 38%, rgba(148, 163, 184, 0.25));
  border-radius: 8px;
  background: color-mix(in srgb, var(--donation-currency-color) 14%, transparent);
  color: var(--adm-text, #0f172a);
  font-size: 0.8rem;
  font-weight: 850;
}

.donation-currency-summary i {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border-radius: 999px;
  background: var(--donation-currency-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--donation-currency-color) 18%, transparent);
}

.donation-currency-summary strong {
  color: var(--donation-currency-color);
  font-weight: 950;
}

.donation-currency-summary b {
  color: var(--adm-text, #0f172a);
  font-weight: 950;
}

.donation-graph-chart-wrap {
  min-height: 410px;
}

.donation-apex-tooltip {
  display: grid;
  gap: 0.25rem;
  padding: 0.7rem 0.8rem;
  background: rgba(15, 23, 42, 0.96);
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.28);
}

.donation-apex-tooltip strong {
  font-size: 0.82rem;
}

.donation-apex-tooltip span {
  font-size: 0.78rem;
  color: #cbd5e1;
}

.donation-apex-tooltip small {
  color: #94a3b8;
  font-weight: 700;
}

.complaint-graph-card {
  padding: 1.1rem 1.15rem 1rem;
}

.complaint-graph-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.complaint-graph-head h5 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: var(--adm-text, #0f172a);
  font-weight: 850;
}

.complaint-graph-head h5 i {
  color: #ef4444;
}

.complaint-graph-head p {
  margin: 0.35rem 0 0;
  color: var(--adm-text2, #64748b);
  font-size: 0.84rem;
  font-weight: 650;
}

.complaint-graph-stats {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.complaint-graph-stats span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.48rem 0.75rem;
  border: 1px solid rgba(239, 68, 68, 0.24);
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.1);
  color: var(--adm-text2, #64748b);
  font-size: 0.8rem;
  font-weight: 850;
}

.complaint-graph-stats strong {
  color: #ef4444;
  font-size: 1rem;
}

.complaint-graph-chart-wrap {
  display: flex;
  align-items: stretch;
  gap: 0.85rem;
  min-height: 390px;
}

.complaint-graph-category-axis {
  width: min(190px, 24%);
  flex: 0 0 min(190px, 24%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
  padding: 4.2rem 0.25rem 2.3rem 0;
  color: var(--adm-text, #0f172a);
  font-size: 0.78rem;
  font-weight: 850;
}

.complaint-graph-category-axis span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  color: var(--adm-text, #0f172a);
}

.complaint-graph-category-axis i {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border-radius: 999px;
  background: var(--complaint-category-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--complaint-category-color) 18%, transparent);
}

.complaint-graph-category-axis + #complaintZoomableTimeseriesChart,
#complaintZoomableTimeseriesChart {
  flex: 1 1 auto;
  min-width: 0;
}

.complaint-apex-tooltip {
  display: grid;
  gap: 0.25rem;
  padding: 0.7rem 0.8rem;
  background: rgba(15, 23, 42, 0.96);
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.28);
}

.complaint-apex-tooltip strong {
  font-size: 0.82rem;
}

.complaint-apex-tooltip span {
  font-size: 0.78rem;
  color: #cbd5e1;
}

.complaint-apex-tooltip small {
  color: #94a3b8;
  font-weight: 700;
}

html[data-theme="dark"] .student-graphs-hero,
body.dark-mode .student-graphs-hero,
.dark .student-graphs-hero,
html[data-theme="dark"] .student-graph-stat,
body.dark-mode .student-graph-stat,
.dark .student-graph-stat {
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(37, 99, 235, 0.12)),
    #101827;
}

html[data-theme="dark"] .student-graph-empty,
body.dark-mode .student-graph-empty,
.dark .student-graph-empty {
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(148, 163, 184, 0.24);
}

html[data-theme="dark"] .school-province-chip,
body.dark-mode .school-province-chip,
.dark .school-province-chip {
  background: #101827;
  border-color: rgba(148, 163, 184, 0.22);
}

@media (max-width: 767.98px) {
  .student-graphs-hero,
  .student-graph-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .school-graph-province-filter {
    width: 100%;
    margin-inline-start: 0;
  }

  .student-graphs-filter {
    width: 100%;
  }

  .student-graph-count {
    justify-content: center;
    width: 100%;
  }

  .student-graph-canvas-wrap {
    height: 280px;
    padding-inline: 0.65rem;
  }

  .school-province-canvas-wrap {
    height: 360px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(124, 58, 237, 0.65) rgba(148, 163, 184, 0.16);
  }

  .school-province-canvas-wrap::-webkit-scrollbar {
    height: 8px;
  }

  .school-province-canvas-wrap::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.16);
    border-radius: 999px;
  }

  .school-province-canvas-wrap::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.65);
    border-radius: 999px;
  }

  .school-chart-scroll-inner {
    min-width: 760px;
  }

  .school-request-status-row,
  .school-province-legend {
    padding-inline: 0.8rem;
  }

  .team-analytics-head {
    flex-direction: column;
  }

  .team-analytics-chart-wrap {
    overflow-x: auto;
  }

  .team-analytics-chart-wrap > div {
    min-width: 760px;
  }

  .donation-graph-head {
    flex-direction: column;
  }

  .donation-graph-chart-wrap {
    overflow-x: auto;
  }

  .donation-graph-chart-wrap > div {
    min-width: 820px;
  }

  .complaint-graph-head {
    flex-direction: column;
  }

  .complaint-graph-chart-wrap {
    overflow-x: auto;
  }

  .complaint-graph-category-axis {
    min-width: 150px;
    flex-basis: 150px;
  }

  .complaint-graph-chart-wrap > #complaintZoomableTimeseriesChart {
    min-width: 860px;
  }
}
/* Contact message details modal */
.adm-detail-box {
  border: 1px solid var(--adm-border);
  border-radius: 10px;
  background: var(--adm-bg);
  padding: 1rem;
}

.adm-detail-box small {
  display: block;
  color: var(--adm-text2);
  font-size: .76rem;
  font-weight: 800;
  margin-bottom: .35rem;
}

.adm-detail-box strong,
.adm-detail-box p {
  color: var(--adm-text);
}
.contact-message-actions {
  min-width: 160px;
}

.contact-message-action-btn {
  width: 34px;
  min-height: 34px;
  padding-inline: 0 !important;
  justify-content: center;
  gap: .35rem !important;
  white-space: nowrap;
}

.contact-message-action-btn i {
  font-size: .9rem;
  line-height: 1;
}

.contact-message-action-btn span {
  display: inline-block;
  line-height: 1;
}

/* Organization chart admin */
.org-admin-team-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--adm-purple), var(--adm-blue));
  box-shadow: 0 10px 24px rgba(106, 53, 165, .18);
}

.org-admin-member-preview {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}

.org-admin-member-preview strong {
  color: var(--adm-purple);
  font-weight: 900;
}

.org-admin-member-preview span {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(106, 53, 165, .18);
  color: var(--adm-purple);
  background: rgba(106, 53, 165, .08);
}

.org-admin-member-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.org-chart-assignment-box {
  padding: 1rem;
  border: 1px solid var(--adm-border);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(106, 53, 165, .08), rgba(14, 159, 227, .06)),
    var(--adm-card);
}

.org-chart-assignment-box h6 {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--adm-text);
}

.org-chart-assignment-box h6 i {
  color: var(--adm-purple);
}

.org-chart-assignment-box small {
  color: var(--adm-text2);
  font-weight: 750;
}

.org-chart-assignment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: .6rem;
}

.org-chart-assignment-check {
  cursor: pointer;
  margin: 0;
}

.org-chart-assignment-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.org-chart-assignment-check span {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .7rem;
  border: 1px solid rgba(106, 53, 165, .18);
  border-radius: 10px;
  background: var(--adm-card);
  color: var(--adm-text);
  font-weight: 850;
  transition: .18s ease;
}

.org-chart-assignment-check span i {
  color: var(--adm-purple);
}

.org-chart-assignment-check input:checked + span {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--adm-purple), var(--adm-blue));
  box-shadow: 0 12px 26px rgba(106, 53, 165, .22);
}

.org-chart-assignment-check input:checked + span i {
  color: #fff;
}

/* Admin banners modal */
.admin-banner-modal .modal-dialog {
  max-width: min(1120px, calc(100vw - 1.5rem));
}

.admin-banner-modal .modal-content {
  max-height: calc(100vh - 2rem);
  overflow: hidden;
  border-radius: 18px;
}

.admin-banner-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(100vh - 2rem);
}

.admin-banner-modal .modal-header,
.admin-banner-modal .modal-footer {
  flex: 0 0 auto;
  background: var(--adm-card);
  border-color: var(--adm-border);
  z-index: 2;
}

.admin-banner-modal .modal-header {
  align-items: flex-start;
}

.admin-banner-modal .btn-close {
  flex: 0 0 auto;
  margin: 0 !important;
}

.admin-banner-modal-title {
  min-width: 0;
  padding-inline-end: 1rem;
}

.admin-banner-modal-title .modal-title {
  margin: 0;
  color: var(--adm-text);
  font-weight: 900;
}

.admin-banner-modal-title small {
  display: block;
  margin-top: 0.25rem;
  color: var(--adm-text2);
  line-height: 1.65;
}

.admin-banner-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(100vh - 12rem);
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--adm-scrollbar-thumb) var(--adm-scrollbar-track);
}

.admin-banner-modal-body::-webkit-scrollbar {
  width: 8px;
}

.admin-banner-modal-body::-webkit-scrollbar-track {
  background: var(--adm-scrollbar-track);
  border-radius: 999px;
}

.admin-banner-modal-body::-webkit-scrollbar-thumb {
  background: var(--adm-scrollbar-thumb);
  border-radius: 999px;
}

.admin-banner-modal .modal-footer {
  gap: 0.75rem;
}

html[dir="rtl"] .admin-banner-modal,
html[lang="fa"] .admin-banner-modal {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .admin-banner-modal-title,
html[lang="fa"] .admin-banner-modal-title {
  padding-inline-end: 0;
  padding-inline-start: 1rem;
}

html[dir="ltr"] .admin-banner-modal,
html[lang="en"] .admin-banner-modal {
  direction: ltr;
  text-align: left;
}

@media (max-width: 575.98px) {
  .admin-banner-modal .modal-dialog {
    max-width: calc(100vw - 1rem);
    margin: 0.5rem auto;
  }

  .admin-banner-modal .modal-content,
  .admin-banner-form {
    max-height: calc(100vh - 1rem);
  }

  .admin-banner-modal-body {
    max-height: calc(100vh - 13rem);
    padding: 1rem;
  }

  .admin-banner-modal .modal-footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .admin-banner-modal .modal-footer .adm-btn {
    width: 100%;
    justify-content: center;
  }
}
.eba-recaptcha-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 1rem 0;
  padding: .25rem 0;
  overflow-x: auto;
  direction: ltr;
}

.eba-recaptcha-wrap .g-recaptcha {
  transform-origin: center;
}

.adm-recaptcha-list {
  display: grid;
  gap: .75rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.adm-recaptcha-list li {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--adm-text);
  font-size: .88rem;
  font-weight: 700;
}

.adm-recaptcha-list i {
  color: #18A6F5;
}

@media (max-width: 360px) {
  .eba-recaptcha-wrap .g-recaptcha {
    transform: scale(.9);
  }
}

/* Role guard: post users may create/update content but must not delete records. */
body.admin-role-post .adm-btn-danger,
body.admin-role-post .adm-icon-danger,
body.admin-role-post .adm-current-delete-all,
body.admin-role-post .current-student-delete-all,
body.admin-role-post .current-school-delete-all,
body.admin-role-post .js-current-school-delete,
body.admin-role-post [data-delete-api-credential],
body.admin-role-post button[name="delete"],
body.admin-role-post button[value="delete"],
body.admin-role-post button[class*="delete"],
body.admin-role-post [data-confirm*="Delete"],
body.admin-role-post [data-confirm*="delete"],
body.admin-role-post [data-confirm*="حذف"],
body.admin-role-post form:has(input[name="action"][value*="delete"]) {
  display: none !important;
}

/* Shared chatbot-style hover shadow for admin buttons only. */
:where(
  button,
  input[type="button"],
  input[type="submit"],
  input[type="reset"],
  a.btn,
  a[class*="btn"],
  .adm-btn,
  .adm-icon-btn,
  [role="button"]
):not(.btn-close):not(.accordion-button):not(.navbar-toggler):hover {
  box-shadow: 0 12px 32px rgba(62, 150, 251, 0.686) !important;
}

/* Admin activity audit */
.admin-activity-page {
  display: grid;
  gap: 1.25rem;
}

.admin-activity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem;
}

.admin-activity-head h4 {
  margin: .65rem 0 .35rem;
  color: var(--adm-text);
  font-weight: 900;
}

.admin-activity-head p {
  margin: 0;
  color: var(--adm-text2);
  line-height: 1.8;
}

.admin-activity-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .85rem;
  border: 1px solid rgba(24, 166, 245, .45);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(110, 61, 207, .22), rgba(24, 166, 245, .14));
  color: var(--adm-text);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.admin-activity-eyebrow i {
  color: #18A6F5;
}

.admin-activity-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.admin-activity-stat {
  display: grid;
  gap: .35rem;
  padding: 1.15rem;
}

.admin-activity-stat i {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--adm-purple), var(--adm-blue));
  box-shadow: 0 14px 28px rgba(24, 166, 245, .2);
}

.admin-activity-stat span {
  color: var(--adm-text2);
  font-size: .86rem;
  font-weight: 800;
}

.admin-activity-stat strong {
  color: var(--adm-text);
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 950;
}

.admin-activity-panel {
  overflow: hidden;
  padding: 0;
}

.admin-activity-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--adm-border);
  background: linear-gradient(135deg, rgba(110, 61, 207, .12), rgba(24, 166, 245, .07));
}

.admin-activity-panel-head h5 {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 .25rem;
  color: var(--adm-text);
  font-weight: 900;
}

.admin-activity-panel-head h5 i {
  color: #18A6F5;
}

.admin-activity-panel-head p {
  margin: 0;
  color: var(--adm-text2);
}

.admin-activity-user-filter {
  display: grid;
  gap: .4rem;
  min-width: min(320px, 100%);
  margin: 0;
}

.admin-activity-user-filter span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--adm-text2);
  font-size: .78rem;
  font-weight: 900;
}

.admin-activity-user-filter span i {
  color: var(--adm-cyan);
}

.admin-activity-user-filter .form-select {
  min-height: 44px;
  border: 1px solid color-mix(in srgb, var(--adm-cyan) 42%, var(--adm-border));
  border-radius: 10px;
  background-color: var(--adm-input-bg, var(--adm-card));
  color: var(--adm-text);
  font-weight: 800;
  box-shadow: none;
}

[dir="rtl"] .admin-activity-user-filter span,
[dir="rtl"] .admin-activity-user-filter .form-select {
  text-align: right;
}

[dir="ltr"] .admin-activity-user-filter span,
[dir="ltr"] .admin-activity-user-filter .form-select {
  text-align: left;
}

.admin-activity-modal .adm-modal {
  border-radius: 18px;
  overflow: hidden;
}

.admin-activity-modal .modal-header {
  align-items: flex-start;
  gap: 1rem;
  border-color: var(--adm-border);
  background: linear-gradient(135deg, var(--adm-purple), var(--adm-blue));
  color: #fff;
}

.admin-activity-modal .modal-header small,
.admin-activity-modal .modal-title {
  color: #fff;
}

.admin-activity-modal .modal-header small {
  display: block;
  margin-bottom: .3rem;
  opacity: .9;
  font-weight: 800;
}

.admin-activity-modal .btn-close {
  flex: 0 0 auto;
  margin: 0 !important;
  filter: invert(1);
  opacity: .9;
}

.admin-activity-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  margin-bottom: 1rem;
}

.admin-activity-modal-grid > div {
  padding: .85rem;
  border: 1px solid var(--adm-border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--adm-card) 88%, var(--adm-bg) 12%);
}

.admin-activity-modal-grid span {
  display: block;
  margin-bottom: .25rem;
  color: var(--adm-text2);
  font-size: .78rem;
  font-weight: 800;
}

.admin-activity-modal-grid strong {
  display: block;
  color: var(--adm-text);
  overflow-wrap: anywhere;
}

.admin-activity-json-label {
  display: block;
  margin: .85rem 0 .4rem;
  color: var(--adm-text);
  font-weight: 900;
}

.admin-activity-json {
  max-height: 220px;
  overflow: auto;
  padding: .95rem;
  border: 1px solid var(--adm-border);
  border-radius: 12px;
  background: var(--adm-bg);
  color: var(--adm-text);
  direction: ltr;
  text-align: left;
  white-space: pre-wrap;
  scrollbar-width: thin;
  scrollbar-color: var(--adm-scrollbar-thumb) var(--adm-scrollbar-track);
}

.admin-activity-json::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.admin-activity-json::-webkit-scrollbar-track {
  background: var(--adm-scrollbar-track);
}

.admin-activity-json::-webkit-scrollbar-thumb {
  background: var(--adm-scrollbar-thumb);
  border-radius: 999px;
}

.admin-activity-note {
  min-width: min(320px, 100%);
}

.admin-activity-empty {
  display: grid;
  justify-items: center;
  gap: .5rem;
  padding: 2.5rem 1.25rem;
  text-align: center;
}

.admin-activity-empty i {
  color: #18A6F5;
  font-size: 2rem;
}

.admin-activity-empty h5 {
  margin: 0;
  color: var(--adm-text);
  font-weight: 900;
}

.admin-activity-empty p {
  margin: 0;
  color: var(--adm-text2);
}

.admin-activity-graph-list {
  display: grid;
  gap: 1rem;
}

.admin-activity-chart-card {
  margin-bottom: 1rem;
}

.admin-activity-chart-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1.35rem 1.15rem 1.65rem;
  direction: ltr;
  scrollbar-width: thin;
  scrollbar-color: var(--adm-scrollbar-thumb) var(--adm-scrollbar-track);
}

.admin-activity-chart-scroll::-webkit-scrollbar {
  height: 9px;
}

.admin-activity-chart-scroll::-webkit-scrollbar-track {
  background: var(--adm-scrollbar-track);
  border-radius: 999px;
}

.admin-activity-chart-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--adm-purple), var(--adm-cyan));
  border-radius: 999px;
}

#adminActivityStackedAreaChart {
  min-height: 500px;
}

.admin-activity-chart-controls {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: .8rem;
  flex-wrap: wrap;
}

.admin-activity-chart-card .apexcharts-legend {
  padding: .45rem 1rem 1rem;
  gap: .35rem;
  transform: translateY(-.2rem);
}

.admin-activity-chart-card .apexcharts-xaxis-title text,
.admin-activity-chart-card .apexcharts-yaxis-title text {
  font-weight: 900;
}

.admin-activity-chart-card .apexcharts-canvas,
.admin-activity-chart-card .apexcharts-svg {
  overflow: visible;
}

.admin-activity-chart-card .apexcharts-tooltip {
  overflow: visible;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.admin-chart-bs-tooltip {
  opacity: 1;
  pointer-events: none;
}

.admin-chart-bs-tooltip .tooltip-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .45rem .55rem;
  min-width: 150px;
  max-width: 230px;
  padding: .65rem .8rem;
  border: 1px solid color-mix(in srgb, var(--adm-border) 70%, var(--adm-cyan) 30%);
  border-radius: 10px;
  background: color-mix(in srgb, var(--adm-card) 92%, var(--adm-cyan) 8%);
  color: var(--adm-text);
  box-shadow: 0 16px 36px rgba(15, 23, 42, .22);
  text-align: start;
}

.admin-chart-bs-tooltip .tooltip-inner small {
  grid-column: 1 / -1;
  color: var(--adm-muted);
  font-weight: 800;
}

.admin-chart-tip-dot {
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 12%, transparent);
}

.admin-activity-chart-card .apexcharts-menu {
  border: 1px solid var(--adm-border);
  border-radius: 10px;
  background: var(--adm-card);
  color: var(--adm-text);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .18);
}

.admin-activity-chart-card .apexcharts-menu-item:hover {
  background: color-mix(in srgb, var(--adm-card) 82%, var(--adm-cyan) 18%);
}

.admin-activity-rank {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
}

.admin-activity-rank-main {
  display: flex;
  align-items: center;
  gap: .9rem;
  min-width: 0;
  flex: 1;
}

.admin-activity-rank-avatar {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--adm-purple), var(--adm-blue));
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(24, 166, 245, .22);
}

.admin-activity-rank-text {
  min-width: 0;
  flex: 1;
}

.admin-activity-rank-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .6rem;
}

.admin-activity-rank-title strong {
  color: var(--adm-text);
  font-weight: 950;
}

.admin-activity-rank-title span,
.admin-activity-rank-count span,
.admin-activity-rank-count small {
  color: var(--adm-text2);
  font-size: .8rem;
  font-weight: 800;
}

.admin-activity-bar {
  height: 12px;
  overflow: hidden;
  border: 1px solid var(--adm-border);
  border-radius: 999px;
  background: var(--adm-bg);
}

.admin-activity-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--adm-purple), var(--adm-blue));
  box-shadow: 0 0 18px rgba(24, 166, 245, .28);
}

.admin-activity-mini-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .7rem;
}

.admin-activity-mini-badges span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .38rem .6rem;
  border: 1px solid var(--adm-border);
  border-radius: 999px;
  color: var(--adm-text2);
  background: color-mix(in srgb, var(--adm-card) 88%, var(--adm-bg) 12%);
  font-size: .76rem;
  font-weight: 800;
}

.admin-activity-mini-badges i {
  color: #18A6F5;
}

.admin-activity-rank-count {
  min-width: 118px;
  text-align: center;
  padding: .75rem;
  border: 1px solid var(--adm-border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--adm-card) 88%, var(--adm-bg) 12%);
}

.admin-activity-rank-count strong {
  display: block;
  color: var(--adm-text);
  font-size: 1.55rem;
  font-weight: 950;
}

.admin-activity-rank-count small {
  display: block;
  margin-top: .25rem;
}

@media (max-width: 991.98px) {
  .admin-activity-head,
  .admin-activity-panel-head,
  .admin-activity-rank {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-activity-user-filter {
    width: 100%;
  }

  .admin-activity-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-activity-rank-count {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .admin-activity-stats,
  .admin-activity-modal-grid {
    grid-template-columns: 1fr;
  }

  .admin-activity-head,
  .admin-activity-panel-head,
  .admin-activity-rank {
    padding: 1rem;
  }

  .admin-activity-chart-scroll {
    padding: .85rem .85rem 1rem;
  }

  .admin-activity-rank-main,
  .admin-activity-rank-title {
    align-items: flex-start;
    flex-direction: column;
  }
}

.tooltip.eba-bs-tooltip {
  --bs-tooltip-opacity: 1;
  --bs-tooltip-max-width: min(280px, calc(100vw - 2rem));
  --bs-tooltip-bg: #f4f9ff;
  --bs-tooltip-color: #0f172a;
  --bs-tooltip-border-radius: 10px;
  --bs-tooltip-padding-x: .75rem;
  --bs-tooltip-padding-y: .52rem;
  --bs-tooltip-font-size: .78rem;
  --eba-tooltip-border: rgba(24, 166, 245, .42);
  --eba-tooltip-arrow-border: var(--eba-tooltip-border);
  --eba-tooltip-arrow-bg: var(--bs-tooltip-bg);
  font-family: var(--adm-font, var(--font-main, Vazirmatn, "Segoe UI", sans-serif));
  pointer-events: none;
  z-index: 11000;
}

.tooltip.eba-bs-tooltip .tooltip-arrow {
  overflow: visible;
}

.tooltip.eba-bs-tooltip .tooltip-arrow::before {
  width: .62rem;
  height: .62rem;
  margin: 0;
  background: var(--eba-tooltip-arrow-bg);
  border: 0;
  filter: none;
}

.tooltip.eba-bs-tooltip.bs-tooltip-top .tooltip-arrow::before,
.tooltip.eba-bs-tooltip[data-popper-placement^="top"] .tooltip-arrow::before {
  left: 50%;
  top: -.31rem;
  transform: translateX(-50%) rotate(45deg);
  border-right: 1px solid var(--eba-tooltip-arrow-border);
  border-bottom: 1px solid var(--eba-tooltip-arrow-border);
}

.tooltip.eba-bs-tooltip.bs-tooltip-bottom .tooltip-arrow::before,
.tooltip.eba-bs-tooltip[data-popper-placement^="bottom"] .tooltip-arrow::before {
  left: 50%;
  bottom: -.31rem;
  transform: translateX(-50%) rotate(45deg);
  border-left: 1px solid var(--eba-tooltip-arrow-border);
  border-top: 1px solid var(--eba-tooltip-arrow-border);
}

.tooltip.eba-bs-tooltip.bs-tooltip-start .tooltip-arrow::before,
.tooltip.eba-bs-tooltip[data-popper-placement^="left"] .tooltip-arrow::before {
  left: -.31rem;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  border-right: 1px solid var(--eba-tooltip-arrow-border);
  border-top: 1px solid var(--eba-tooltip-arrow-border);
}

.tooltip.eba-bs-tooltip.bs-tooltip-end .tooltip-arrow::before,
.tooltip.eba-bs-tooltip[data-popper-placement^="right"] .tooltip-arrow::before {
  right: -.31rem;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  border-left: 1px solid var(--eba-tooltip-arrow-border);
  border-bottom: 1px solid var(--eba-tooltip-arrow-border);
}

[data-tooltip]::before,
[data-tooltip]::after {
  content: none !important;
  display: none !important;
}

.tooltip.eba-bs-tooltip .tooltip-inner {
  color: var(--bs-tooltip-color);
  background: var(--bs-tooltip-bg);
  border: 1px solid var(--eba-tooltip-border);
  border-radius: var(--bs-tooltip-border-radius);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28), 0 10px 28px rgba(24, 166, 245, .14);
  font-weight: 800;
  line-height: 1.55;
  text-align: center;
}

html[data-theme="dark"] .tooltip.eba-bs-tooltip,
body.dark-mode .tooltip.eba-bs-tooltip {
  --bs-tooltip-bg: #111827;
  --bs-tooltip-color: #fff;
  --eba-tooltip-border: rgba(125, 211, 252, .42);
  --eba-tooltip-arrow-border: var(--eba-tooltip-border);
}

html[dir="rtl"] .tooltip.eba-bs-tooltip .tooltip-inner,
body.rtl .tooltip.eba-bs-tooltip .tooltip-inner {
  direction: rtl;
}

html[dir="ltr"] .tooltip.eba-bs-tooltip .tooltip-inner,
body.ltr .tooltip.eba-bs-tooltip .tooltip-inner {
  direction: ltr;
}

.news-links-admin-grid {
  display: grid;
  gap: 0.8rem;
}

.news-link-admin-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 0.75rem;
  border: 1px solid var(--adm-border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--adm-card) 86%, var(--adm-bg));
}

.news-link-admin-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.65rem;
}

.news-link-admin-url-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 0.65rem;
}

.news-link-admin-number {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--adm-grad);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.news-published-date-field {
  max-width: 260px;
}

@media (max-width: 991.98px) {
  .news-link-admin-url-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
