:root {
  --brand-blue: #0757b8;
  --brand-blue-deep: #063f87;
  --brand-blue-soft: #e8f6ff;
  --brand-yellow: #ffc928;
  --brand-yellow-soft: #fff6d6;
  --ink: #172033;
  --muted: #667085;
  --line: #dbe4f0;
  --surface: #ffffff;
  --app-bg: #eaf7ff;
  --sky-row: #f1f9ff;
  --sky-row-alt: #e7f4ff;
  --sky-panel: #eef9ff;
}

html {
  scroll-behavior: smooth;
}

body,
.content-wrapper {
  background:
    linear-gradient(180deg, #f7fcff 0%, var(--app-bg) 210px),
    var(--app-bg);
  color: var(--ink);
}

a {
  color: var(--brand-blue);
}

a:hover {
  color: var(--brand-blue-deep);
}

.admin-theme .wrapper {
  background: var(--app-bg);
}

.admin-topbar {
  min-height: 62px;
  border-bottom: 1px solid rgba(7, 87, 184, 0.12);
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
}

.admin-topbar .nav-link {
  color: var(--ink);
}

.nav-icon-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin: 4px 0;
}

.nav-icon-btn:hover,
.logout-link:hover {
  background: var(--brand-blue-soft);
}

.logout-link {
  border-radius: 8px;
  margin: 4px 10px 4px 0;
}

.admin-sidebar {
  background: linear-gradient(180deg, #053f88 0%, #062c63 100%);
  box-shadow: 14px 0 35px rgba(7, 87, 184, 0.18);
}

.admin-brand {
  min-height: 62px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.04);
}

.admin-brand .brand-image {
  width: 38px;
  height: 38px;
  object-fit: cover;
  background: #fff;
  opacity: 1;
  padding: 3px;
}

.admin-brand .brand-text {
  color: #fff;
  letter-spacing: 0;
  white-space: normal;
  line-height: 1.15;
}

.admin-user-panel {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.admin-user-panel .info a {
  color: #fff;
  font-weight: 600;
}

.admin-sidebar .nav-sidebar .nav-link {
  min-height: 42px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  margin: 2px 8px;
}

.admin-sidebar .nav-sidebar .nav-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0;
  margin-right: 8px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
}

.admin-sidebar .nav-sidebar .nav-link p {
  white-space: normal;
  line-height: 1.25;
}

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

.admin-sidebar .nav-sidebar .nav-link:hover .nav-icon {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.admin-sidebar .nav-sidebar .nav-link.active {
  background: #ffffff;
  color: var(--brand-blue-deep);
  box-shadow: 0 10px 22px rgba(7, 87, 184, 0.2);
}

.admin-sidebar .nav-sidebar .nav-link.active .nav-icon {
  color: #ffffff;
  background: var(--brand-blue);
}

.content-header {
  padding: 14px 15px 8px;
}

.content-header h1 {
  color: var(--ink);
  font-size: clamp(1.2rem, 1rem + 0.6vw, 1.65rem);
  font-weight: 800;
}

.breadcrumb {
  background: transparent;
  font-size: 0.92rem;
}

.card,
.modal-content,
.table,
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select,
.form-control {
  border-radius: 8px;
}

.card,
.modal-content {
  border: 1px solid rgba(7, 87, 184, 0.1);
  background: var(--sky-panel);
  box-shadow: 0 12px 30px rgba(7, 87, 184, 0.08);
}

.card-header {
  background: #f8fcff;
  border-bottom-color: var(--line);
}

.btn-primary,
.bg-primary {
  background: var(--brand-blue) !important;
  border-color: var(--brand-blue) !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--brand-blue-deep) !important;
  border-color: var(--brand-blue-deep) !important;
}

.btn-warning,
.badge-warning {
  background: var(--brand-yellow) !important;
  border-color: var(--brand-yellow) !important;
  color: #1d2939 !important;
}

.form-control:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 0.2rem rgba(7, 87, 184, 0.16);
}

.table thead th {
  border-bottom: 0;
  color: #172033 !important;
  background: #dff1ff;
}

.table td,
.table th {
  vertical-align: middle;
}

.table tbody td {
  color: #0f172a;
  background-color: transparent;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: var(--sky-row);
}

.table-striped tbody tr:nth-of-type(even),
.table tbody tr {
  background-color: var(--sky-row-alt);
}

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

.page-item.active .page-link {
  background-color: var(--brand-blue);
  border-color: var(--brand-blue);
}

.content {
  padding: 0 8px 14px;
}

.admin-page-fluid {
  padding-left: 0;
  padding-right: 0;
}

.admin-data-card {
  border: 0;
  overflow: hidden;
}

.admin-data-card.card-primary.card-outline {
  border-top: 3px solid var(--brand-blue);
}

.admin-data-card-header {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 14px;
}

.admin-data-card-header .card-title {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.admin-data-card-header .card-tools {
  margin-left: auto;
}

.admin-search-group {
  width: min(300px, 42vw);
}

.admin-search-group .form-control,
.admin-search-group .btn {
  height: 34px;
}

.btn,
.page-link {
  border-radius: 8px;
  font-weight: 700;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.admin-icon-btn {
  width: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-soft-btn {
  min-width: 34px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-color: var(--line);
  color: var(--brand-blue);
  box-shadow: 0 6px 14px rgba(16, 24, 40, 0.06);
}

.admin-soft-btn:hover {
  color: var(--brand-blue-deep);
  background: var(--brand-blue-soft);
  border-color: rgba(7, 87, 184, 0.2);
}

.admin-filter-btn {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-color: rgba(7, 87, 184, 0.35);
  color: var(--brand-blue);
  background: #fff;
  box-shadow: 0 8px 18px rgba(7, 87, 184, 0.08);
}

.admin-filter-btn:hover {
  color: #fff;
  background: var(--brand-blue);
  border-color: var(--brand-blue);
}

.admin-table-toolbar {
  min-height: 44px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f8fcff 0%, #edf8ff 100%);
}

.admin-compact-table {
  margin-bottom: 0;
  color: #0f172a;
  font-size: 0.8rem;
}

.admin-compact-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 7px 9px;
  font-size: 0.75rem;
  font-weight: 900;
  white-space: nowrap;
  letter-spacing: 0;
  border-top: 0;
}

.admin-compact-table tbody td {
  padding: 5px 9px;
  line-height: 1.15;
  border-top: 1px solid #e7edf5;
  white-space: nowrap;
}

.admin-compact-table.table-striped tbody tr:nth-of-type(odd) {
  background-color: var(--sky-row);
}

.admin-compact-table.table-striped tbody tr:nth-of-type(even) {
  background-color: var(--sky-row-alt);
}

.admin-compact-table.table-hover tbody tr:hover {
  background-color: #d8efff;
}

.admin-compact-table tbody tr[style*="background-color"] {
  background-color: #eaf4ff !important;
}

.admin-compact-table .icheck-primary {
  min-height: 20px;
}

.admin-compact-table .icheck-primary label {
  margin-bottom: 0;
  font-weight: 800;
}

.admin-row-action {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-color: var(--brand-yellow);
  color: #a86c00;
  background: #fffaf0;
}

.admin-row-action:hover {
  color: #1d2939;
  background: var(--brand-yellow);
  border-color: var(--brand-yellow);
}

.admin-data-card-footer {
  padding: 8px 12px;
  background: #f8fcff;
  border-top: 1px solid var(--line);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-stat-card {
  position: relative;
  min-height: 150px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(7, 87, 184, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(224, 243, 255, 0.94)),
    var(--sky-panel);
  box-shadow: 0 18px 40px rgba(7, 87, 184, 0.11);
  overflow: hidden;
}

.dashboard-stat-card::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -48px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(7, 87, 184, 0.08);
}

.dashboard-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(7, 87, 184, 0.16);
}

.dashboard-stat-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-blue), #2aa7df);
  box-shadow: 0 12px 22px rgba(7, 87, 184, 0.2);
}

.dashboard-stat-content {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.dashboard-stat-content span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-stat-content strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: clamp(1.4rem, 1rem + 1.3vw, 2.15rem);
  font-weight: 900;
  line-height: 1.08;
}

.dashboard-stat-content p {
  margin: 10px 0 0;
  color: #475467;
  font-size: 0.92rem;
  font-weight: 600;
}

@media (max-width: 1199.98px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .dashboard-stat-card {
    min-height: 132px;
    padding: 16px;
  }

  .dashboard-stat-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }
}

.admin-filter-card .card-body {
  padding: 14px;
}

.admin-filter-card label {
  color: #172033;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.admin-filter-card .form-control {
  min-height: 36px;
  font-size: 0.88rem;
}

.admin-reset-btn {
  min-height: 34px;
  padding: 7px 12px;
  border-color: #cbd5e1;
  background: #fff;
  color: #334155;
}

.admin-reset-btn:hover {
  color: #172033;
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.admin-sort-link {
  color: #172033 !important;
  font-weight: 900;
}

.admin-table-btn {
  min-height: 28px;
  padding: 4px 8px;
  font-size: 0.76rem;
}

.admin-kyc-table th,
.admin-kyc-table td {
  min-height: 30px;
}

.pagination {
  margin-bottom: 0;
}

.pagination .page-link {
  min-width: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 2px;
  border-color: var(--line);
  color: var(--brand-blue);
}

.pagination .page-item.disabled .page-link {
  color: #98a2b3;
  background: #f8fafc;
}

.app-loader,
.content.overlay-wrapper > .overlay {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.96), rgba(232, 246, 255, 0.92) 38%, rgba(214, 238, 255, 0.9) 100%);
  backdrop-filter: blur(12px);
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.app-loader.is-hidden,
.content.overlay-wrapper > .overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-shell {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 210px;
  padding: 18px 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(7, 87, 184, 0.14);
  box-shadow: 0 24px 55px rgba(7, 87, 184, 0.18);
}

.loader-mark {
  position: relative;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
}

.loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid #d8efff;
  border-top-color: var(--brand-blue);
  border-right-color: #2aa7df;
  animation: admin-loader-spin 0.8s linear infinite;
}

.loader-core {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), #49b9f2);
  box-shadow: 0 0 0 8px rgba(7, 87, 184, 0.08);
  animation: admin-loader-pulse 1.1s ease-in-out infinite;
}

.loader-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.loader-text {
  color: var(--brand-blue-deep);
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 0;
}

.loader-dots {
  display: inline-flex;
  gap: 5px;
}

.loader-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-blue);
  opacity: 0.35;
  animation: admin-loader-dot 1s ease-in-out infinite;
}

.loader-dots i:nth-child(2) {
  animation-delay: 0.14s;
}

.loader-dots i:nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes admin-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes admin-loader-pulse {
  0%,
  100% {
    transform: scale(0.86);
    opacity: 0.88;
  }

  50% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes admin-loader-dot {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }

  50% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.admin-login-page {
  min-height: 100vh;
  padding: 24px;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 201, 40, 0.18), transparent 28%),
    linear-gradient(135deg, #f7fbff 0%, #eaf3ff 48%, #fff8dd 100%);
}

.admin-login-wrap {
  width: min(1060px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 430px);
  gap: 28px;
  align-items: stretch;
}

.admin-login-panel,
.admin-login-card {
  border-radius: 8px;
  border: 1px solid rgba(7, 87, 184, 0.12);
  box-shadow: 0 22px 55px rgba(7, 87, 184, 0.14);
}

.admin-login-panel {
  min-height: 520px;
  padding: clamp(28px, 4vw, 54px);
  color: #fff;
  background:
    linear-gradient(145deg, rgba(7, 87, 184, 0.96), rgba(4, 45, 102, 0.98)),
    url("../dist/img/photo2.png") center/cover;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.admin-login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-login-brand img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  padding: 6px;
}

.admin-login-brand span {
  display: block;
  color: var(--brand-yellow);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.admin-login-brand h1,
.admin-login-copy h2 {
  margin: 0;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0;
}

.admin-login-copy h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

.admin-login-copy p {
  max-width: 520px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

.admin-login-box {
  width: 100%;
  align-self: center;
}

.admin-login-card {
  overflow: hidden;
}

.admin-login-card .login-card-body {
  padding: clamp(26px, 4vw, 38px);
}

.login-box-msg {
  color: var(--ink);
  font-weight: 800;
  font-size: 1.15rem;
}

.admin-input-group .form-control,
.admin-input-group .input-group-text {
  min-height: 48px;
  border-color: var(--line);
}

.admin-input-group .input-group-text {
  color: var(--brand-blue);
  background: var(--brand-blue-soft);
}

.admin-login-btn {
  min-height: 42px;
  font-weight: 800;
}

@media (max-width: 991.98px) {
  .admin-login-wrap {
    grid-template-columns: 1fr;
  }

  .admin-login-panel {
    min-height: 300px;
  }
}

@media (max-width: 575.98px) {
  .admin-login-page {
    padding: 14px;
  }

  .admin-login-panel {
    min-height: 240px;
  }

  .admin-login-card .row {
    gap: 12px;
  }

  .admin-login-card .col-8,
  .admin-login-card .col-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
