/* ZamZam SchoolPay — Bootstrap 5 theme (#038080) */
:root {
  --zz-primary: #038080;
  --zz-primary-dark: #026666;
  --zz-primary-light: #e6f5f5;
  --zz-text: #212529;
  --zz-muted: #6c757d;
  --zz-border: #dee2e6;
  --zz-body-bg: #f8f9fa;

  --bs-primary: #038080;
  --bs-primary-rgb: 3, 128, 128;
  --bs-link-color: #038080;
  --bs-link-hover-color: #026666;
  --bs-border-radius: 0.375rem;
  --bs-border-radius-sm: 0.25rem;
  --bs-border-radius-lg: 0.5rem;
  --bs-body-bg: #f8f9fa;
  --bs-font-sans-serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --zz-surface: #f4fafa;
  --zz-surface-elevated: #ffffff;
}

body {
  color: var(--zz-text);
}

.btn-primary {
  --bs-btn-bg: var(--zz-primary);
  --bs-btn-border-color: var(--zz-primary);
  --bs-btn-hover-bg: var(--zz-primary-dark);
  --bs-btn-hover-border-color: var(--zz-primary-dark);
  --bs-btn-active-bg: var(--zz-primary-dark);
  --bs-btn-active-border-color: var(--zz-primary-dark);
  --bs-btn-disabled-bg: var(--zz-primary);
  --bs-btn-disabled-border-color: var(--zz-primary);
}

.btn-outline-primary {
  --bs-btn-color: var(--zz-primary);
  --bs-btn-border-color: var(--zz-primary);
  --bs-btn-hover-bg: var(--zz-primary);
  --bs-btn-hover-border-color: var(--zz-primary);
  --bs-btn-active-bg: var(--zz-primary-dark);
  --bs-btn-active-border-color: var(--zz-primary-dark);
}

.form-control:focus,
.form-select:focus {
  border-color: #86d0d0;
  box-shadow: 0 0 0 0.25rem rgba(3, 128, 128, 0.15);
}

.pagination .page-item.active .page-link {
  background-color: var(--zz-primary);
  border-color: var(--zz-primary);
}

.text-primary {
  color: var(--zz-primary) !important;
}

.breadcrumb-item a {
  color: var(--zz-primary);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: var(--zz-primary-dark);
  text-decoration: underline;
}

.zz-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--bs-border-radius);
  background-color: var(--zz-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.zz-page {
  min-height: calc(100vh - 8rem);
}

.zz-footer {
  background-color: #fff;
}

/* Landing / auth pages */
.zz-landing {
  min-height: 100vh;
  background-color: var(--zz-primary-dark);
}

.zz-landing-hero {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.12) 0, transparent 42%),
    radial-gradient(circle at 85% 80%, rgba(0, 0, 0, 0.18) 0, transparent 45%),
    linear-gradient(145deg, #026666 0%, #038080 45%, #04a0a0 100%);
  position: relative;
  overflow: hidden;
}

.zz-landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.14) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(0, 0, 0, 0.08) 1px, transparent 1.5px);
  background-size: 28px 28px, 28px 28px;
  background-position: 0 0, 14px 14px;
  opacity: 0.7;
  pointer-events: none;
}

.zz-landing-card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.zz-landing-logo {
  display: block;
  max-width: 280px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.zz-landing-card .card-body {
  padding: 2.5rem 2rem 1.5rem;
}

.zz-landing-card .list-group-item {
  font-weight: 600;
  color: var(--zz-primary);
  border-color: var(--zz-border);
}

.zz-landing-card .list-group-item:hover {
  background-color: var(--zz-primary-light);
  color: var(--zz-primary-dark);
}

/* 404 */
.zz-404 {
  min-height: 100vh;
  background: var(--zz-primary);
}

.zz-error-code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.04em;
}

.zz-404-message {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.25rem;
  font-weight: 500;
}

/* Admin shell */
.zz-admin-body {
  background-color: var(--zz-surface);
  font-family: var(--bs-font-sans-serif);
}

.zz-admin {
  --zz-admin-sidebar-width: 260px;
  display: flex;
  min-height: 100vh;
}

.zz-admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: var(--zz-admin-sidebar-width);
  height: 100vh;
  color: #fff;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.14) 0, transparent 38%),
    radial-gradient(circle at 88% 88%, rgba(0, 0, 0, 0.22) 0, transparent 42%),
    linear-gradient(165deg, #025858 0%, #038080 52%, #049a9a 100%);
  box-shadow: 0.25rem 0 1.5rem rgba(2, 102, 102, 0.15);
  overflow: hidden;
}

.zz-admin-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.11) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(0, 0, 0, 0.12) 1px, transparent 1.5px);
  background-size: 24px 24px, 24px 24px;
  background-position: 0 0, 12px 12px;
  opacity: 0.75;
  pointer-events: none;
}

.zz-admin-sidebar-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100vh;
}

.zz-admin-sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem 1rem 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.zz-admin-sidebar-brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  color: #fff;
}

.zz-admin-sidebar-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.65rem;
  border-radius: 0.5rem;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.zz-admin-sidebar-logo {
  display: block;
  max-height: 1.75rem;
  width: auto;
}

.zz-school-brand-link--logo-only {
  flex: 1;
  justify-content: center;
}

.zz-admin-sidebar-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.zz-admin-sidebar-brand-name {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zz-admin-sidebar-brand-sub {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.65;
}

.zz-admin-sidebar-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--bs-border-radius);
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}

.zz-admin-sidebar-label {
  padding: 0.5rem 0.75rem 0.35rem;
  margin: 0;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.zz-admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0.75rem 1rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.zz-admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--bs-border-radius);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.925rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.zz-admin-sidebar-link:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.zz-admin-sidebar-link.active {
  background-color: rgba(2, 102, 102, 0.55);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--zz-primary-light);
}

.zz-admin-sidebar-toggle-btn {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.zz-admin-sidebar-caret {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  margin-left: auto;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.zz-admin-sidebar-caret svg {
  width: 100%;
  height: 100%;
}

.zz-admin-sidebar-toggle-btn[aria-expanded="true"] .zz-admin-sidebar-caret {
  transform: rotate(180deg);
}

.zz-admin-sidebar-submenu {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.15rem 0 0.15rem 2.6rem;
}

.zz-admin-sidebar-sublink {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: var(--bs-border-radius);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.zz-admin-sidebar-sublink:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.zz-admin-sidebar-sublink.active {
  background-color: rgba(2, 102, 102, 0.55);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--zz-primary-light);
}

.zz-admin-sidebar-icon {
  display: inline-flex;
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  opacity: 0.85;
}

.zz-admin-sidebar-link.active .zz-admin-sidebar-icon {
  opacity: 1;
}

.zz-admin-sidebar-icon svg {
  width: 100%;
  height: 100%;
}

.zz-admin-sidebar-footer {
  margin-top: auto;
  flex-shrink: 0;
  padding: 1rem 1.25rem 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(2, 56, 56, 0.35) 0%, rgba(2, 40, 40, 0.72) 100%);
  backdrop-filter: blur(6px);
}

.zz-admin-sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.zz-admin-sidebar-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: var(--zz-primary-light);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.zz-admin-sidebar-user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.zz-admin-sidebar-user-role {
  font-size: 0.7rem;
  opacity: 0.6;
  color: #fff;
}

.zz-admin-sidebar-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--bs-border-radius);
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

.zz-admin-sidebar-logout:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.zz-admin-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1035;
  background-color: rgba(2, 56, 56, 0.45);
  backdrop-filter: blur(2px);
}

.zz-admin-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  margin-left: var(--zz-admin-sidebar-width);
}

.zz-admin-topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 1030;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--zz-surface-elevated);
  border-bottom: 1px solid rgba(3, 128, 128, 0.1);
}

.zz-admin-sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: var(--bs-border-radius);
  background: var(--zz-surface);
  color: var(--zz-primary-dark);
  cursor: pointer;
}

.zz-admin-sidebar-toggle:hover {
  background: rgba(3, 128, 128, 0.08);
}

.zz-admin-topbar-title {
  flex: 1;
  font-size: 1rem;
  font-weight: 700;
  color: var(--zz-primary-dark);
}

.zz-admin-content {
  flex: 1;
  padding: 2rem 2rem 2.5rem;
}

/* Page headers & surfaces (elearning-inspired) */
.zz-page-header {
  margin-bottom: 1.75rem;
}

.zz-page-header--split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.zz-page-title {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--zz-primary-dark);
  line-height: 1.2;
}

.zz-page-subtitle {
  margin: 0;
  font-size: 1rem;
  color: var(--zz-muted);
}

.zz-back-link {
  color: var(--zz-primary);
  text-decoration: none;
  font-weight: 500;
}

.zz-back-link:hover {
  color: var(--zz-primary-dark);
  text-decoration: underline;
}

.zz-text-theme-dark {
  color: var(--zz-primary-dark);
}

.zz-surface-card {
  background: var(--zz-surface-elevated);
  border: 1px solid rgba(3, 128, 128, 0.1);
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(2, 102, 102, 0.04);
}

.zz-form-box {
  max-width: 960px;
}

.zz-list-toolbar-card {
  margin-bottom: 1.25rem;
}

.zz-search-form__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.zz-search-form__search {
  flex: 1;
  min-width: min(100%, 14rem);
}

.zz-search-form__filter {
  flex-shrink: 0;
  min-width: 9rem;
}

.zz-search-form__filter .form-select {
  min-width: 9rem;
}

.zz-filter-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--zz-muted);
  margin-bottom: 0.25rem;
}

.zz-list-summary {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--zz-muted);
}

.zz-table-wrap {
  background: var(--zz-surface-elevated);
  border-radius: 0.75rem;
  border: 1px solid rgba(3, 128, 128, 0.1);
  overflow: hidden;
}

.zz-admin-table thead th {
  background: rgba(3, 128, 128, 0.05);
  color: var(--zz-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(3, 128, 128, 0.1);
  white-space: nowrap;
}

.zz-admin-table td,
.zz-admin-table th {
  vertical-align: middle;
  padding: 0.85rem 1rem;
}

.zz-badge-active {
  background: rgba(25, 135, 84, 0.12);
  color: #157347;
  font-weight: 600;
}

.zz-badge-inactive {
  background: rgba(255, 193, 7, 0.18);
  color: #946c00;
  font-weight: 600;
}

.zz-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.zz-pagination__info {
  font-size: 0.85rem;
  color: var(--zz-muted);
  padding: 0 0.5rem;
}

.zz-stat-label {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--zz-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.zz-stat-value {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--zz-primary-dark);
}

.zz-dash-stat {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.zz-dash-stat .zz-stat-value {
  font-size: 1.5rem;
  line-height: 1.2;
}

.zz-dash-unit {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--zz-muted);
  margin-left: 0.25rem;
}

.zz-dash-hint {
  font-size: 0.75rem;
  color: var(--zz-muted);
}

.zz-dash-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
}

.zz-dash-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.zz-dash-icon--primary {
  background: var(--zz-primary-light);
  color: var(--zz-primary-dark);
}

.zz-dash-icon--success {
  background: rgba(25, 135, 84, 0.12);
  color: #157347;
}

.zz-dash-icon--warning {
  background: rgba(255, 193, 7, 0.18);
  color: #946c00;
}

.zz-dash-icon--danger {
  background: rgba(220, 53, 69, 0.12);
  color: #dc3545;
}

.zz-dash-overdue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(3, 128, 128, 0.1);
  border-radius: 0.6rem;
  color: var(--zz-text);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.zz-dash-overdue:hover {
  background: var(--zz-primary-light);
  border-color: rgba(3, 128, 128, 0.25);
}

.zz-dash-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(3, 128, 128, 0.12);
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--zz-text);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.zz-dash-chip:hover {
  background: var(--zz-primary-light);
  border-color: rgba(3, 128, 128, 0.25);
}

.zz-slug {
  font-size: 0.8125rem;
  color: var(--zz-primary-dark);
  background: var(--zz-primary-light);
  padding: 0.15rem 0.45rem;
  border-radius: 0.25rem;
}

.zz-school-id-slug {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: flex-start;
}

.zz-school-id {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--zz-muted);
  line-height: 1.2;
}

.zz-school-id-slug .zz-slug {
  font-size: 0.75rem;
}

/* School detail tabs & inline edit */
.zz-school-tabs {
  border-bottom-color: rgba(3, 128, 128, 0.15);
  margin-bottom: 0;
}

.zz-school-tabs .nav-link {
  color: var(--zz-muted);
  font-weight: 500;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 0.65rem 1rem;
}

.zz-school-tabs .nav-link:hover {
  color: var(--zz-primary-dark);
  border-bottom-color: rgba(3, 128, 128, 0.25);
}

.zz-school-tabs .nav-link.active {
  color: var(--zz-primary-dark);
  background: transparent;
  border-bottom-color: var(--zz-primary);
  font-weight: 600;
}

.zz-school-tab-panel {
  padding-top: 1.25rem;
}

.zz-edit-groups {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.zz-edit-group {
  background: var(--zz-surface-elevated);
  border: 1px solid rgba(3, 128, 128, 0.1);
  border-radius: 0.75rem;
  overflow: hidden;
}

.zz-edit-group--readonly {
  background: rgba(230, 245, 245, 0.35);
}

.zz-edit-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid rgba(3, 128, 128, 0.08);
  background: linear-gradient(180deg, #fff, rgba(244, 250, 250, 0.6));
}

.zz-edit-group.is-editing .zz-edit-group__header {
  border-bottom-color: rgba(3, 128, 128, 0.12);
}

.zz-edit-group__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--zz-primary-dark);
}

.zz-edit-group__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--zz-primary);
  text-decoration: none;
  font-weight: 600;
  padding: 0;
}

.zz-edit-group__toggle:hover {
  color: var(--zz-primary-dark);
}

.zz-edit-group.is-editing .zz-edit-group__toggle {
  display: none;
}

.zz-edit-group__body,
.zz-edit-group__view,
.zz-edit-group__edit {
  padding: 1.15rem;
}

.zz-edit-group__edit {
  background: #fff;
}

.zz-clickable-row {
  cursor: pointer;
}

.zz-clickable-row:hover {
  background-color: rgba(3, 128, 128, 0.04);
}

.zz-table-link {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.zz-table-link:hover {
  color: var(--zz-primary);
  text-decoration: underline;
}

.zz-stat-card {
  padding: 1.25rem;
}

.zz-detail-list {
  margin: 0;
}

.zz-detail-list__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(3, 128, 128, 0.08);
}

.zz-detail-list__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.zz-detail-list__row:first-child {
  padding-top: 0;
}

.zz-detail-list__row dt {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--zz-muted);
  flex-shrink: 0;
}

.zz-detail-list__row dd {
  margin: 0;
  text-align: right;
  font-size: 0.9375rem;
  color: var(--zz-text);
}

.zz-school-logo-thumb {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  border-radius: var(--bs-border-radius-sm);
  border: 1px solid var(--zz-border);
  background: #fff;
}

.zz-school-logo-preview {
  max-width: 10rem;
  border-radius: var(--bs-border-radius);
  border: 1px solid var(--zz-border);
  background: #fff;
}

/* Logo upload dropzone */
.zz-upload-field {
  margin-bottom: 0.25rem;
}

.zz-logo-dropzone {
  position: relative;
  border: 2px dashed rgba(3, 128, 128, 0.28);
  border-radius: 0.75rem;
  background: linear-gradient(180deg, rgba(230, 245, 245, 0.5), rgba(255, 255, 255, 0.9));
  min-height: 160px;
  max-width: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.zz-logo-dropzone:hover,
.zz-logo-dropzone.is-dragover {
  border-color: var(--zz-primary);
  background: rgba(230, 245, 245, 0.85);
  box-shadow: inset 0 0 0 1px rgba(3, 128, 128, 0.08);
}

.zz-logo-dropzone.is-filled {
  border-style: solid;
  border-color: rgba(3, 128, 128, 0.18);
  background: #1a1a1a;
  cursor: default;
  min-height: 0;
}

.zz-logo-dropzone.is-filled:hover {
  box-shadow: none;
}

.zz-logo-dropzone__empty {
  text-align: center;
  padding: 1.25rem 1rem;
  pointer-events: none;
}

.zz-logo-dropzone__icon {
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 auto 0.65rem;
  border-radius: 50%;
  background: rgba(3, 128, 128, 0.1);
  color: var(--zz-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.zz-logo-dropzone__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--zz-primary-dark);
  margin-bottom: 0.2rem;
}

.zz-logo-dropzone__meta {
  font-size: 0.75rem;
  color: var(--zz-muted);
  line-height: 1.4;
  margin: 0;
}

.zz-logo-dropzone__preview {
  position: relative;
  width: 100%;
  display: none;
}

.zz-logo-dropzone.is-filled .zz-logo-dropzone__empty {
  display: none;
}

.zz-logo-dropzone.is-filled .zz-logo-dropzone__preview {
  display: block;
}

.zz-logo-dropzone__preview img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #111;
}

.zz-logo-dropzone__overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0.7rem;
  background: linear-gradient(transparent, rgba(2, 40, 40, 0.88));
}

.zz-logo-dropzone__filename {
  font-size: 0.72rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.zz-logo-dropzone__actions {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.zz-logo-dropzone__btn {
  border: none;
  border-radius: 0.35rem;
  padding: 0.3rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.92);
  color: var(--zz-primary-dark);
}

.zz-logo-dropzone__btn:hover {
  background: #fff;
}

.zz-logo-dropzone input[type="file"] {
  display: none;
}

/* Crop modal */
.zz-crop-modal {
  position: fixed;
  inset: 0;
  z-index: 1060;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.zz-crop-modal.is-open {
  display: flex;
}

.zz-crop-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 56, 56, 0.55);
  backdrop-filter: blur(4px);
}

.zz-crop-modal__panel {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  background: #fff;
  border-radius: 0.85rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(2, 102, 102, 0.25);
}

.zz-crop-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--zz-border);
}

.zz-crop-modal__body {
  flex: 1;
  min-height: 280px;
  max-height: 55vh;
  background: #1a1a1a;
  overflow: hidden;
}

.zz-crop-modal__body img {
  display: block;
  max-width: 100%;
}

.zz-crop-modal__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--zz-border);
  background: var(--zz-surface);
}

.zz-crop-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--zz-border);
}

@media (max-width: 991.98px) {
  .zz-admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.22s ease;
  }

  .zz-admin.zz-admin--sidebar-open .zz-admin-sidebar {
    transform: translateX(0);
  }

  .zz-admin.zz-admin--sidebar-open .zz-admin-sidebar-backdrop {
    display: block;
  }

  .zz-admin-sidebar-close,
  .zz-admin-topbar {
    display: flex;
  }

  .zz-admin-main {
    margin-left: 0;
  }

  .zz-admin-content {
    padding: 1.25rem 1rem 2rem;
  }

  .zz-page-header--split {
    flex-direction: column;
  }
}

.zz-import-sticky-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 0.75rem 1rem;
}

.zz-import-table .form-control-sm,
.zz-import-table .form-select-sm {
  min-width: 6rem;
}

.zz-import-row--error {
  background-color: rgba(220, 53, 69, 0.06);
}

.zz-import-error-detail td {
  border-top: none !important;
  padding-top: 0 !important;
}
