/*
 * Aurora Emerald Fintech Theme (2026)
 * Frontend-only visual redesign layer for user/admin/auth surfaces.
 */

:root {
  --fb-bg: #f4fbf8;
  --fb-bg-alt: #edf5f2;
  --fb-surface: rgba(255, 255, 255, 0.9);
  --fb-surface-solid: #ffffff;
  --fb-border: #d8e9e2;
  --fb-border-strong: #bdd7cb;
  --fb-text: #11241f;
  --fb-muted: #5e756d;
  --fb-heading: #122d25;

  --fb-primary: #12a36f;
  --fb-primary-2: #0b8a5d;
  --fb-accent: #1ecf97;
  --fb-slate: #203c46;
  --fb-slate-2: #162e36;
  --fb-info: #2b8fb5;
  --fb-success: #0ca678;
  --fb-danger: #d94857;
  --fb-warning: #e0a936;

  --fb-shadow-sm: 0 8px 20px rgba(18, 55, 44, 0.08);
  --fb-shadow-md: 0 16px 40px rgba(18, 55, 44, 0.12);
  --fb-shadow-lg: 0 30px 64px rgba(12, 35, 29, 0.14);

  --fb-radius-sm: 12px;
  --fb-radius-md: 16px;
  --fb-radius-lg: 24px;
  --fb-radius-pill: 999px;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #a8cfc0 #e8f4ef;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: #e8f4ef;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7ec5ab, #4fa188);
  border-radius: 999px;
}

html,
body {
  min-height: 100%;
  background:
    radial-gradient(circle at 12% -8%, rgba(30, 207, 151, 0.16) 0%, rgba(30, 207, 151, 0) 38%),
    radial-gradient(circle at 88% 8%, rgba(43, 143, 181, 0.1) 0%, rgba(43, 143, 181, 0) 32%),
    linear-gradient(180deg, var(--fb-bg) 0%, var(--fb-bg-alt) 100%) fixed;
  color: var(--fb-text);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: 0.01em;
}

a {
  color: var(--fb-primary);
  transition: color .24s ease;
}

a:hover {
  color: var(--fb-primary-2);
}

#load_screen,
.loader {
  background: rgba(17, 32, 31, 0.92) !important;
}

.main-content {
  animation: pageSlide .42s cubic-bezier(.22, 1, .36, 1);
}

@keyframes pageSlide {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.layout-px-spacing {
  padding-top: 92px !important;
  padding-left: 26px !important;
  padding-right: 26px !important;
}

/* ---------- Top navbar ---------- */
.header-container,
.header.navbar,
.navbar {
  background: rgba(255, 255, 255, 0.78) !important;
  border-bottom: 1px solid rgba(173, 210, 195, 0.45);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 25px rgba(17, 49, 39, 0.08);
}

.fintech-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--fb-radius-pill);
  background: linear-gradient(135deg, rgba(18, 163, 111, 0.14), rgba(43, 143, 181, 0.12));
  border: 1px solid rgba(18, 163, 111, 0.2);
}

.fintech-brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fb-accent), var(--fb-primary));
  box-shadow: 0 0 0 4px rgba(30, 207, 151, 0.15);
}

.fintech-brand span {
  font-size: 13px;
  font-weight: 700;
  color: var(--fb-heading);
}

/* ---------- Sidebar ---------- */
.sidebar-wrapper,
.sidebar-theme,
#sidebar,
#compactSidebar,
#compact_submenuSidebar {
  background:
    radial-gradient(circle at 22% 0%, rgba(30, 207, 151, 0.22) 0%, rgba(30, 207, 151, 0) 34%),
    linear-gradient(180deg, #203942 0%, #1b323b 45%, #152930 100%) !important;
}

.profile-info .user-info h5,
.profile-info .user-info p,
.user-profile-section h5,
.user-profile-section p {
  color: #edf5f2 !important;
}

#sidebar .menu-categories .menu>a,
#compactSidebar .menu-categories .menu>a,
.submenu-sidebar .submenu-list li a {
  color: #cde2da !important;
  margin: 5px 9px;
  border-radius: 12px;
  transition: all .22s ease;
}

#sidebar .menu-categories .menu>a:hover,
#compactSidebar .menu-categories .menu>a:hover,
#sidebar .menu-categories .menu.active>a,
#compactSidebar .menu-categories .menu.active>a,
.submenu-sidebar .submenu-list li a:hover {
  color: #ffffff !important;
  background: linear-gradient(135deg, rgba(30, 207, 151, .3), rgba(43, 143, 181, .34)) !important;
  transform: translateX(3px);
}

/* ---------- Surfaces ---------- */
.widget,
.card,
.widget-content-area,
.component-card,
.statbox,
.box,
.account-content .info,
.user-profile,
.dropdown-menu,
.modal-content,
.widget-account-invoice-two .widget-content,
.widget-account-invoice-three,
.widget-chart-three,
.widget-one,
.widget-two,
.widget-three,
.widget-card-four {
  background: var(--fb-surface) !important;
  border: 1px solid var(--fb-border) !important;
  border-radius: var(--fb-radius-md) !important;
  box-shadow: var(--fb-shadow-sm) !important;
  backdrop-filter: blur(4px);
}

.widget:hover,
.card:hover,
.widget-account-invoice-three:hover {
  box-shadow: var(--fb-shadow-md) !important;
}

.widget-heading,
.widget-header,
.page-header {
  border-bottom: 1px solid #e6f2ed !important;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.page-title h3,
.w-title,
.value {
  color: var(--fb-heading) !important;
  font-weight: 700 !important;
}

p,
label,
.form-text,
.dataTables_info,
.table td,
.table th,
.w-numeric-title,
.w-summary-info h6,
.w-summary-details p {
  color: var(--fb-muted);
}

/* ---------- Buttons ---------- */
.btn,
button,
.form-wizard-next-btn,
.form-wizard-previous-btn,
.form-wizard-submit {
  border-radius: 12px !important;
  font-weight: 600 !important;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease !important;
}

.btn:hover,
button:hover,
.form-wizard-next-btn:hover,
.form-wizard-previous-btn:hover,
.form-wizard-submit:hover {
  transform: translateY(-1px);
  filter: saturate(1.05);
}

.btn-primary,
.form-wizard-next-btn,
.form-wizard-submit {
  color: #fff !important;
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--fb-primary), var(--fb-primary-2)) !important;
  box-shadow: 0 12px 25px rgba(18, 163, 111, 0.28) !important;
}

.btn-success {
  color: #fff !important;
  border-color: transparent !important;
  background: linear-gradient(135deg, #0cb87e, #0a9567) !important;
}

.btn-danger {
  color: #fff !important;
  border-color: transparent !important;
  background: linear-gradient(135deg, #df5a6f, #c13852) !important;
}

.form-wizard-previous-btn,
.btn-outline-primary,
.btn-outline-secondary {
  background: #fff !important;
  color: var(--fb-slate) !important;
  border: 1px solid #c9ddd3 !important;
}

/* ---------- Forms ---------- */
.form-control,
.custom-file-container__custom-file__custom-file-control,
.select2-container--default .select2-selection--single,
.bootstrap-select>.dropdown-toggle,
textarea,
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="tel"],
select {
  border: 1px solid #cfe2d9 !important;
  border-radius: 12px !important;
  background: #f9fdfb !important;
  color: #183128 !important;
  min-height: 44px;
  transition: all .2s ease;
}

.form-control:focus,
.bootstrap-select>.dropdown-toggle:focus,
textarea:focus,
input:focus,
select:focus {
  border-color: var(--fb-primary) !important;
  box-shadow: 0 0 0 3px rgba(18, 163, 111, 0.15) !important;
  background: #fff !important;
}

.input-group-text,
.custom-file-label {
  border-color: #d4e7de !important;
  background: #f4fbf8 !important;
}

/* ---------- Tables ---------- */
.table {
  border-collapse: separate;
  border-spacing: 0;
}

.table thead th {
  background: #edf7f3;
  color: #315b4d;
  border-bottom: 1px solid #d7ebe2 !important;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.table td {
  border-top: 1px solid #e6f2ed !important;
  color: #2c4a41;
  font-weight: 500;
}

.table-hover tbody tr:hover {
  background: rgba(18, 163, 111, 0.055);
}

.dataTables_wrapper .dataTables_filter input {
  margin-left: .5rem;
  width: 250px;
}

.pagination .page-item .page-link,
.dataTables_paginate .paginate_button a {
  border-radius: 10px !important;
  margin: 0 4px;
  border-color: #d7e8e1 !important;
}

/* ---------- Alerts / badges ---------- */
.badge,
.alert,
.custom-alert-1,
.toast,
.snackbar-container {
  border-radius: 12px !important;
}

.badge-primary {
  background: var(--fb-primary) !important;
}

.badge-success {
  background: #0faa75 !important;
}

/* ---------- Footer ---------- */
.footer-wrapper {
  border-top: 1px solid #d5e8e0;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
}

/* ---------- New shared design blocks ---------- */
.fintech-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 20px 22px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(18, 163, 111, .92) 0%, rgba(15, 126, 93, .95) 58%, rgba(30, 126, 156, .92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: var(--fb-shadow-lg);
}

.fintech-page-header h2,
.fintech-page-header h3,
.fintech-page-header p {
  color: #fff !important;
  margin: 0;
}

.fintech-page-header p {
  opacity: 0.92;
}

.fintech-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--fb-radius-pill);
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.fintech-stat-card {
  border-radius: 16px;
  padding: 16px;
  border: 1px solid #d9ebe4;
  background: linear-gradient(165deg, #ffffff 5%, #f4fbf8 100%);
}

/* ---------- Auth surfaces ---------- */
body.form,
.form-container.outer,
.auth-shell {
  background:
    radial-gradient(circle at 15% 20%, rgba(30, 207, 151, 0.18), transparent 35%),
    radial-gradient(circle at 85% 10%, rgba(43, 143, 181, 0.12), transparent 38%),
    linear-gradient(145deg, #f2faf7, #e8f2ef) !important;
}

.form-form-wrap,
.form-content,
.auth-card {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid #d8e9e2 !important;
  border-radius: 20px !important;
  box-shadow: 0 24px 60px rgba(15, 46, 38, 0.13) !important;
}

.form-content h1,
.auth-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--fb-heading) !important;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  padding: 30px;
}

.auth-subtitle {
  color: var(--fb-muted);
  margin-top: 8px;
}

.auth-input {
  width: 100%;
  border: 1px solid #cfe2d9;
  border-radius: 12px;
  min-height: 44px;
  padding: 0 14px;
  background: #fbfefd;
  color: #1a3129;
}

.auth-input:focus {
  outline: none;
  border-color: var(--fb-primary);
  box-shadow: 0 0 0 3px rgba(18, 163, 111, 0.14);
}

.auth-btn {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--fb-primary), var(--fb-primary-2));
  box-shadow: 0 12px 24px rgba(18, 163, 111, 0.24);
}

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

/* ---------- Signup wizard facelift ---------- */
.wizard-section {
  padding: 22px;
}

.wizard-content-left {
  background:
    radial-gradient(circle at 14% 24%, rgba(255, 255, 255, 0.3) 0%, transparent 34%),
    linear-gradient(160deg, #1e5a51, #163f39 72%) !important;
  border-radius: 20px 0 0 20px;
}

.wizard-content-left h1 {
  color: #f4fbf8 !important;
  font-weight: 800;
  text-align: center;
  max-width: 380px;
}

.form-wizard {
  border-radius: 0 20px 20px 0;
  background: rgba(255, 255, 255, 0.95);
}

.form-wizard .form-wizard-steps li span {
  background: #e7f4ef;
  color: #2f5e50;
}

.form-wizard .form-wizard-steps li.active span,
.form-wizard .form-wizard-steps li.activated span {
  background: linear-gradient(135deg, var(--fb-primary), #1a8f9e);
  color: #fff;
}

/* ---------- PIN keypad ---------- */
.pin-keypad {
  display: grid;
  gap: 10px;
}

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

.pin-key {
  border: 1px solid #cde2d8 !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: #21453a !important;
  font-weight: 700;
  min-height: 42px;
}

.pin-key:hover {
  background: #eaf7f2 !important;
}

.pin-submit {
  margin-top: 10px;
  width: 100%;
}

/* ---------- Responsive polish ---------- */
@media (max-width: 991px) {
  .layout-px-spacing {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .sidebar-wrapper {
    box-shadow: 0 0 0 9999px rgba(15, 35, 32, 0.4);
  }
}

@media (max-width: 768px) {
  .widget,
  .card,
  .component-card,
  .widget-content-area,
  .fintech-page-header {
    border-radius: 14px !important;
  }

  .btn,
  .form-wizard-next-btn,
  .form-wizard-previous-btn,
  .form-wizard-submit {
    width: 100%;
    margin-bottom: 10px;
  }

  .wizard-content-left {
    border-radius: 20px 20px 0 0;
    min-height: 180px;
  }

  .form-wizard {
    border-radius: 0 0 20px 20px;
  }
}
