/* =====================================================================
   Union Capital Lending — Auth & Dashboard Styles
   ===================================================================== */

/* ── Variables (inherit site palette) ──────────────────────────────── */
:root {
  --auth-navy:   #0c1a2e;
  --auth-blue:   #1a6fef;
  --auth-blue-d: #1558c0;
  --auth-green:  #16a34a;
  --auth-red:    #dc2626;
  --auth-amber:  #d97706;
  --auth-gray-50:  #f8fafc;
  --auth-gray-100: #f1f5f9;
  --auth-gray-200: #e2e8f0;
  --auth-gray-400: #94a3b8;
  --auth-gray-500: #64748b;
  --auth-gray-600: #475569;
  --auth-gray-700: #334155;
  --auth-gray-800: #1e293b;
  --auth-radius:   10px;
  --auth-shadow:   0 4px 24px rgba(0,0,0,.08);
  --auth-shadow-lg:0 12px 48px rgba(0,0,0,.12);
}

/* ── Reset for auth pages ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body.auth-body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--auth-gray-50);
  color: var(--auth-gray-800);
  min-height: 100vh;
}

/* ═══════════════════════════════════════════════════════════════════
   LOGIN PAGE — SPLIT SCREEN
═══════════════════════════════════════════════════════════════════ */
.auth-wrap {
  display: flex;
  min-height: 100vh;
}

/* ── Left Panel ─────────────────────────────────────────────────────── */
.auth-left {
  width: 42%;
  min-height: 100vh;
  background: linear-gradient(160deg, #0c1a2e 0%, #0d2247 50%, #0c1a2e 100%);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 40px 48px;
}

.auth-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(26,111,239,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,111,239,.06) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.auth-left::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,111,239,.15) 0%, transparent 70%);
  pointer-events: none;
}

.auth-left-logo {
  position: relative;
  z-index: 1;
  margin-bottom: 52px;
  display: inline-block;
}

.auth-left-logo img { height: 40px; filter: brightness(0) invert(1); }

.auth-left-body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-left-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(26,111,239,.2);
  border: 1px solid rgba(26,111,239,.35);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  margin-bottom: 20px;
  width: fit-content;
}

.auth-left-tag .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: ucl-pulse 2s ease infinite;
}

@keyframes ucl-pulse {
  0%,100% { opacity:1; box-shadow:0 0 0 0 rgba(74,222,128,.4); }
  50%      { opacity:.6; box-shadow:0 0 0 6px rgba(74,222,128,0); }
}

.auth-left-body h1 {
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 14px;
}

.auth-left-body h1 em {
  font-style: normal;
  color: #60a5fa;
}

.auth-left-body > p {
  font-size: 14.5px;
  color: rgba(255,255,255,.55);
  line-height: 1.65;
  margin: 0 0 32px;
}

.auth-trust-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-trust-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255,255,255,.75);
  font-weight: 500;
}

.auth-trust-list li svg {
  width: 18px; height: 18px;
  color: #4ade80;
  flex-shrink: 0;
}

.auth-quote-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 20px 22px;
  margin-top: auto;
}

.auth-quote-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 10px;
}

.auth-quote-stars svg {
  width: 14px; height: 14px;
  fill: #fbbf24;
}

.auth-quote-text {
  font-size: 13.5px;
  color: rgba(255,255,255,.7);
  line-height: 1.6;
  font-style: italic;
  margin: 0 0 14px;
}

.auth-quote-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-quote-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.2);
}

.auth-quote-who strong { display:block; font-size:13px; color:#fff; font-weight:700; }
.auth-quote-who span   { font-size:11.5px; color:rgba(255,255,255,.45); }

.auth-left-footer {
  position: relative;
  z-index: 1;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.auth-left-badge {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.35);
  display: flex;
  align-items: center;
  gap: 5px;
}

.auth-left-badge svg { width:12px; height:12px; }

/* ── Right Panel ────────────────────────────────────────────────────── */
.auth-right {
  flex: 1;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: #fff;
}

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

.auth-card-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--auth-gray-500);
  font-weight: 500;
  margin-bottom: 28px;
  text-decoration: none;
  transition: color .15s;
}

.auth-card-back:hover { color: var(--auth-blue); }
.auth-card-back svg { width: 16px; height: 16px; }

/* ── Tab Switcher ───────────────────────────────────────────────────── */
.auth-tabs {
  display: flex;
  background: var(--auth-gray-100);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 32px;
  gap: 4px;
}

.auth-tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  background: transparent;
  color: var(--auth-gray-500);
  font-family: inherit;
}

.auth-tab.active {
  background: #fff;
  color: var(--auth-navy);
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

/* ── Panel (sign-in / sign-up) ──────────────────────────────────────── */
.auth-panel { display: none; }
.auth-panel.active { display: block; }

.auth-panel-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--auth-navy);
  margin: 0 0 4px;
}

.auth-panel-sub {
  font-size: 14px;
  color: var(--auth-gray-500);
  margin: 0 0 28px;
  line-height: 1.5;
}

/* ── Form Fields ────────────────────────────────────────────────────── */
.auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.auth-field {
  margin-bottom: 18px;
}

.auth-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--auth-gray-700);
  margin-bottom: 7px;
}

.auth-label-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--auth-blue);
  text-decoration: none;
}

.auth-label-link:hover { text-decoration: underline; }

.auth-label-opt {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--auth-gray-400);
  margin-left: 4px;
}

.auth-input-wrap {
  position: relative;
}

.auth-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--auth-gray-200);
  border-radius: var(--auth-radius);
  font-size: 14.5px;
  font-family: inherit;
  color: var(--auth-gray-800);
  background: #fff;
  transition: border .18s, box-shadow .18s;
  outline: none;
  -webkit-appearance: none;
}

.auth-input:focus {
  border-color: var(--auth-blue);
  box-shadow: 0 0 0 3px rgba(26,111,239,.12);
}

.auth-input.has-icon { padding-right: 44px; }

.auth-input.field-error {
  border-color: var(--auth-red);
  box-shadow: 0 0 0 3px rgba(220,38,38,.1);
}

.auth-input.field-ok {
  border-color: var(--auth-green);
}

/* Password toggle */
.auth-pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--auth-gray-400);
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 4px;
  transition: color .15s;
}

.auth-pw-toggle:hover { color: var(--auth-gray-700); }
.auth-pw-toggle svg { width: 18px; height: 18px; }

/* Field error message */
.auth-err {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  font-size: 12px;
  color: var(--auth-red);
  font-weight: 500;
}

.auth-err svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ── Password Strength ──────────────────────────────────────────────── */
.pw-strength-wrap {
  margin-top: 8px;
}

.pw-strength-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--auth-gray-200);
  overflow: hidden;
  margin-bottom: 4px;
}

.pw-strength-fill {
  height: 100%;
  border-radius: 2px;
  transition: width .3s ease, background .3s ease;
  width: 0%;
}

.pw-strength-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--auth-gray-400);
}

.pw-s0 .pw-strength-fill { width:  0%; background: var(--auth-gray-200); }
.pw-s1 .pw-strength-fill { width: 25%; background: var(--auth-red); }
.pw-s2 .pw-strength-fill { width: 50%; background: var(--auth-amber); }
.pw-s3 .pw-strength-fill { width: 75%; background: #eab308; }
.pw-s4 .pw-strength-fill { width:100%; background: var(--auth-green); }

/* ── Section Divider ────────────────────────────────────────────────── */
.auth-section-title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--auth-gray-400);
  margin: 24px 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--auth-gray-100);
}

/* ── Checkbox ───────────────────────────────────────────────────────── */
.auth-check-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.auth-check {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--auth-gray-300, #cbd5e1);
  border-radius: 5px;
  cursor: pointer;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: var(--auth-blue);
}

.auth-check-text {
  font-size: 13px;
  color: var(--auth-gray-600);
  line-height: 1.5;
}

.auth-check-text a {
  color: var(--auth-blue);
  font-weight: 600;
  text-decoration: none;
}

.auth-check-text a:hover { text-decoration: underline; }

/* ── Submit Button ──────────────────────────────────────────────────── */
.auth-submit {
  width: 100%;
  padding: 14px;
  background: var(--auth-blue);
  color: #fff;
  border: none;
  border-radius: var(--auth-radius);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(26,111,239,.3);
}

.auth-submit:hover {
  background: var(--auth-blue-d);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,111,239,.4);
}

.auth-submit:active { transform: translateY(0); }

.auth-submit svg { width: 18px; height: 18px; }

.auth-submit.loading {
  pointer-events: none;
  opacity: .7;
}

.auth-submit.loading::before {
  content: '';
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: auth-spin .6s linear infinite;
  margin-right: 8px;
}

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

/* ── Bottom Switch ──────────────────────────────────────────────────── */
.auth-switch {
  text-align: center;
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--auth-gray-500);
}

.auth-switch a {
  color: var(--auth-blue);
  font-weight: 700;
  text-decoration: none;
  margin-left: 4px;
}

.auth-switch a:hover { text-decoration: underline; }

/* ── Alert Banner ───────────────────────────────────────────────────── */
.auth-alert {
  padding: 12px 16px;
  border-radius: var(--auth-radius);
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.auth-alert svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }

.auth-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.auth-alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

/* ── Error shake animation ──────────────────────────────────────────── */
.auth-shake {
  animation: auth-shake .4s ease;
}

@keyframes auth-shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}

/* ── Secure note ────────────────────────────────────────────────────── */
.auth-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--auth-gray-400);
  margin-top: 16px;
}

.auth-secure-note svg { width: 13px; height: 13px; }

/* ═══════════════════════════════════════════════════════════════════
   DASHBOARD
═══════════════════════════════════════════════════════════════════ */
body.dash-body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--auth-gray-50);
  color: var(--auth-gray-800);
}

.dash-wrap {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ────────────────────────────────────────────────────────── */
.dash-sidebar {
  width: 248px;
  min-height: 100vh;
  background: var(--auth-navy);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  overflow-y: auto;
}

.dash-sidebar-logo {
  padding: 24px 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.dash-sidebar-logo img {
  height: 34px;
  filter: brightness(0) invert(1);
}

.dash-nav {
  padding: 16px 12px;
  flex: 1;
}

.dash-nav-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: rgba(255,255,255,.3);
  padding: 12px 12px 6px;
}

.dash-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: all .18s;
  margin-bottom: 2px;
}

.dash-nav a svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
}

.dash-nav a:hover {
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.9);
}

.dash-nav a.active {
  background: rgba(26,111,239,.25);
  color: #fff;
}

.dash-nav a.active svg { color: #60a5fa; }

.dash-nav-divider {
  height: 1px;
  background: rgba(255,255,255,.07);
  margin: 12px 12px;
}

.dash-sidebar-user {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--auth-blue), #0d47a1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.dash-sidebar-user-info strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.dash-sidebar-user-info span {
  font-size: 11px;
  color: rgba(255,255,255,.4);
}

/* ── Main Content ───────────────────────────────────────────────────── */
.dash-main {
  margin-left: 248px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ── Top Bar ────────────────────────────────────────────────────────── */
.dash-topbar {
  background: #fff;
  border-bottom: 1px solid var(--auth-gray-200);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.dash-topbar-left h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--auth-navy);
  margin: 0;
}

.dash-topbar-left span {
  font-size: 12.5px;
  color: var(--auth-gray-400);
  display: block;
  margin-top: 1px;
}

.dash-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-topbar-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: var(--auth-blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: background .15s;
}

.dash-topbar-btn:hover { background: var(--auth-blue-d); }
.dash-topbar-btn svg { width: 15px; height: 15px; }

.dash-topbar-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--auth-blue), #0d47a1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  cursor: default;
}

/* ── Content Area ───────────────────────────────────────────────────── */
.dash-content {
  padding: 32px;
  flex: 1;
}

/* ── Welcome Banner ─────────────────────────────────────────────────── */
.dash-welcome {
  background: linear-gradient(135deg, var(--auth-navy) 0%, #0d2247 100%);
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  overflow: hidden;
  position: relative;
}

.dash-welcome::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(26,111,239,.07) 1px,transparent 1px),
    linear-gradient(90deg,rgba(26,111,239,.07) 1px,transparent 1px);
  background-size: 28px 28px;
}

.dash-welcome-text { position: relative; z-index: 1; }

.dash-welcome-text h2 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px;
}

.dash-welcome-text p {
  font-size: 13.5px;
  color: rgba(255,255,255,.55);
  margin: 0;
}

.dash-welcome-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.dash-btn-white {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 20px;
  background: #fff;
  color: var(--auth-navy);
  border: none;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
}

.dash-btn-white:hover { background: var(--auth-gray-100); transform: translateY(-1px); }
.dash-btn-white svg { width: 16px; height: 16px; }

.dash-btn-ghost {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 20px;
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
}

.dash-btn-ghost:hover { background: rgba(255,255,255,.16); }
.dash-btn-ghost svg { width: 16px; height: 16px; }

/* ── Notice Banner ──────────────────────────────────────────────────── */
.dash-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 13.5px;
  color: #92400e;
}

.dash-notice svg { width: 18px; height: 18px; flex-shrink: 0; color: #d97706; }
.dash-notice strong { font-weight: 700; }
.dash-notice a { color: #92400e; font-weight: 600; text-decoration: underline; }

/* ── Stat Cards ─────────────────────────────────────────────────────── */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.dash-stat {
  background: #fff;
  border: 1px solid var(--auth-gray-200);
  border-radius: 12px;
  padding: 20px 22px;
  transition: box-shadow .2s, transform .2s;
}

.dash-stat:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  transform: translateY(-2px);
}

.dash-stat-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.dash-stat-icon svg { width: 20px; height: 20px; }

.dash-stat-icon-blue   { background: #eff6ff; color: var(--auth-blue); }
.dash-stat-icon-green  { background: #f0fdf4; color: var(--auth-green); }
.dash-stat-icon-amber  { background: #fffbeb; color: var(--auth-amber); }
.dash-stat-icon-purple { background: #f5f3ff; color: #7c3aed; }

.dash-stat-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--auth-navy);
  line-height: 1;
  margin-bottom: 4px;
}

.dash-stat-label {
  font-size: 13px;
  color: var(--auth-gray-500);
  font-weight: 500;
}

/* ── Card ───────────────────────────────────────────────────────────── */
.dash-card {
  background: #fff;
  border: 1px solid var(--auth-gray-200);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
}

.dash-card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--auth-gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--auth-navy);
  margin: 0;
}

.dash-card-action {
  font-size: 13px;
  font-weight: 600;
  color: var(--auth-blue);
  text-decoration: none;
}

.dash-card-action:hover { text-decoration: underline; }

.dash-card-body { padding: 24px; }

/* ── Applications Table ─────────────────────────────────────────────── */
.dash-table {
  width: 100%;
  border-collapse: collapse;
}

.dash-table th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--auth-gray-400);
  padding: 0 16px 12px;
  border-bottom: 1px solid var(--auth-gray-100);
}

.dash-table td {
  padding: 14px 16px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--auth-gray-100);
  vertical-align: middle;
}

.dash-table tr:last-child td { border-bottom: none; }

.dash-table tr:hover td { background: var(--auth-gray-50); }

.loan-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--auth-gray-100);
  color: var(--auth-gray-700);
}

/* ── Status Badges ──────────────────────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.status-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.status-approved  { background: #f0fdf4; color: var(--auth-green); }
.status-funded    { background: #eff6ff; color: var(--auth-blue); }
.status-review    { background: #fffbeb; color: var(--auth-amber); }
.status-denied    { background: #fef2f2; color: var(--auth-red); }
.status-docs      { background: #fdf4ff; color: #7e22ce; }

/* ── Empty State ────────────────────────────────────────────────────── */
.dash-empty {
  text-align: center;
  padding: 52px 24px;
}

.dash-empty-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--auth-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.dash-empty-icon svg {
  width: 30px; height: 30px;
  color: var(--auth-gray-400);
}

.dash-empty h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--auth-navy);
  margin: 0 0 6px;
}

.dash-empty p {
  font-size: 13.5px;
  color: var(--auth-gray-500);
  margin: 0 0 20px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.dash-empty-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--auth-blue);
  color: #fff;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s, transform .15s;
}

.dash-empty-btn:hover { background: var(--auth-blue-d); transform: translateY(-1px); }
.dash-empty-btn svg { width: 16px; height: 16px; }

/* ── Quick Links ────────────────────────────────────────────────────── */
.dash-quick-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
}

.dash-quick-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--auth-gray-50);
  border: 1px solid var(--auth-gray-200);
  border-radius: 10px;
  text-decoration: none;
  transition: all .18s;
  cursor: pointer;
  border-left: 3px solid var(--auth-blue);
}

.dash-quick-link:hover {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transform: translateY(-1px);
}

.dash-quick-link-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--auth-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-quick-link-icon svg { width: 18px; height: 18px; color: #fff; }

.dash-quick-link-text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--auth-navy);
  margin-bottom: 1px;
}

.dash-quick-link-text span {
  font-size: 12px;
  color: var(--auth-gray-500);
}

/* ── Mobile (hamburger) sidebar ─────────────────────────────────────── */
.dash-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--auth-navy);
}

.dash-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 99;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media(max-width: 1100px) {
  .dash-stats { grid-template-columns: repeat(2,1fr); }
  .dash-quick-grid { grid-template-columns: repeat(2,1fr); }
}

@media(max-width: 900px) {
  .dash-sidebar {
    transform: translateX(-100%);
    transition: transform .25s ease;
  }
  .dash-sidebar.open {
    transform: translateX(0);
  }
  .dash-sidebar-overlay.open { display: block; }
  .dash-main { margin-left: 0; }
  .dash-mobile-toggle { display: flex; }
  .dash-welcome { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media(max-width: 768px) {
  .auth-left { display: none; }
  .auth-right { padding: 32px 20px; }
  .auth-wrap { min-height: 100vh; }
  .auth-card { max-width: 100%; }
  .auth-row { grid-template-columns: 1fr; gap: 0; }
  .dash-content { padding: 20px; }
  .dash-topbar { padding: 0 20px; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .dash-quick-grid { grid-template-columns: 1fr; }
  .dash-welcome-actions { flex-direction: column; width: 100%; }
}

@media(max-width: 480px) {
  .dash-stats { grid-template-columns: 1fr; }
}

/* ── Auth mobile header (shown when left panel is hidden) ───────────── */
.auth-mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.auth-mobile-logo img { height: 32px; }

.auth-mobile-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--auth-gray-500);
  text-decoration: none;
  font-weight: 500;
}

.auth-mobile-back svg { width: 15px; height: 15px; }

@media(max-width: 768px) {
  .auth-mobile-header { display: flex; }
}
