.admin-auth-side {
  background:
    radial-gradient(circle at top, rgba(115, 103, 240, 0.12), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(242, 247, 255, 0.98));
}

.admin-page-hero {
  background:
    radial-gradient(circle at top right, rgba(115, 103, 240, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 255, 0.98));
  border: 1px solid rgba(115, 103, 240, 0.08);
}

.admin-metric-card {
  border: 1px solid rgba(115, 103, 240, 0.08);
  box-shadow: 0 0.5rem 1.25rem rgba(34, 48, 62, 0.04);
}

.admin-surface-card {
  border: 1px solid rgba(115, 103, 240, 0.08);
  box-shadow: 0 0.75rem 1.5rem rgba(34, 48, 62, 0.05);
}

.admin-surface-card .card-header {
  border-bottom-color: rgba(115, 103, 240, 0.08);
}

.admin-detail-grid .admin-code-block {
  margin-top: 0.5rem;
}

.admin-auth-toolbar {
  position: fixed;
  inset-inline-end: 1.5rem;
  top: 1.5rem;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-auth-copy {
  max-width: 32rem;
}

[data-bs-theme="dark"] .admin-auth-side {
  background:
    radial-gradient(circle at top, rgba(115, 103, 240, 0.22), transparent 36%),
    linear-gradient(135deg, rgba(34, 48, 62, 0.96), rgba(24, 34, 48, 0.98));
}

[data-bs-theme="dark"] .admin-page-hero {
  background:
    radial-gradient(circle at top right, rgba(115, 103, 240, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(34, 48, 62, 0.96), rgba(25, 35, 49, 0.98));
  border-color: rgba(115, 103, 240, 0.18);
}

[data-bs-theme="dark"] .admin-surface-card {
  border-color: rgba(115, 103, 240, 0.16);
  box-shadow: 0 0.75rem 1.5rem rgba(15, 20, 26, 0.2);
}

[data-bs-theme="dark"] .admin-surface-card .card-header {
  border-bottom-color: rgba(115, 103, 240, 0.16);
}

.admin-brand-logo {
  display: block;
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.admin-auth-illustration {
  max-height: 26rem;
}

.admin-stat-card {
  border: 1px solid rgba(115, 103, 240, 0.08);
}

.admin-navbar-title h5 {
  font-size: 1rem;
}

.admin-menu-summary .avatar-initial {
  box-shadow: 0 0.35rem 0.85rem rgba(115, 103, 240, 0.18);
}

.admin-menu-locked .menu-link {
  opacity: 0.72;
}

.permission-locked {
  cursor: not-allowed;
}

.admin-code-block {
  display: block;
  padding: 0.75rem 1rem;
  background: rgba(34, 48, 62, 0.04);
  border-radius: 0.75rem;
  word-break: break-all;
}

.admin-code-area {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.85rem;
}

.admin-otp-input {
  letter-spacing: 0.4rem;
  font-weight: 700;
}

.admin-locked-illustration {
  max-height: 18rem;
}

.admin-document-note {
  padding: 0.85rem 1rem;
  background: rgba(255, 159, 67, 0.12);
  color: #8f5e00;
  border-bottom: 1px solid rgba(255, 159, 67, 0.18);
}

.admin-document-frame {
  width: 100%;
  min-height: 78vh;
  border: 0;
  background: #f8f8fb;
}

[data-bs-theme="dark"] .admin-document-frame {
  background: #1f2a37;
}

.dropdown-notifications .list-group-item a {
  color: inherit;
}

.dropdown-notifications .list-group-item h6,
.dropdown-notifications .list-group-item small {
  word-break: break-word;
}

html[dir="rtl"] .admin-code-area,
html[dir="rtl"] .admin-code-block,
html[dir="rtl"] code {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] .admin-auth-toolbar {
  inset-inline-end: auto;
  inset-inline-start: 1.5rem;
}

@media print {
  .layout-menu,
  .layout-navbar,
  .content-footer,
  .btn,
  .layout-overlay,
  .drag-target {
    display: none !important;
  }

  .layout-page,
  .content-wrapper,
  .container-xxl {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 767.98px) {
  .admin-auth-toolbar {
    top: 1rem;
    inset-inline-end: 1rem;
  }

  html[dir="rtl"] .admin-auth-toolbar {
    inset-inline-start: 1rem;
  }
}
