/* =========================================================================
   Swipepy — User Dashboard Stylesheet (Matching Modern FinTech UI)
   ========================================================================= */

:root {
  --dash-bg: #f8fafc;
  --dash-card-bg: #ffffff;
  --dash-border: #e2e8f0;
  --dash-navy: #0f172a;
  --dash-navy-light: #1e293b;
  --dash-text-dark: #0f172a;
  --dash-text-muted: #64748b;
  --dash-primary: #2563eb;
  --dash-emerald: #10b981;
  --dash-orange: #ea580c;
}

body.dashboard-body {
  background-color: var(--dash-bg);
  min-height: 100vh;
  color: var(--dash-text-dark);
  font-family: var(--font-body, 'Inter', -apple-system, sans-serif);
}

/* Navbar specific to dashboard */
.dash-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--dash-border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.dash-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 24px;
  max-width: 1240px;
  margin: 0 auto;
}

.dash-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.dash-nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--dash-text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.dash-nav-links a:hover,
.dash-nav-links a.active {
  color: var(--dash-primary);
}

.user-profile-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

/* Dashboard Container */
.dash-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* Header Bar */
.dash-header {
  margin-bottom: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.dash-header-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.account-subtitle {
  font-size: 13.5px;
  color: var(--dash-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.account-subtitle .dot {
  font-size: 10px;
  opacity: 0.5;
}

.account-subtitle .badge-google {
  color: #64748b;
  font-weight: 500;
}

.dash-title {
  font-family: var(--font-head, 'Plus Jakarta Sans', sans-serif);
  font-size: 32px;
  font-weight: 800;
  color: var(--dash-text-dark);
  letter-spacing: -0.5px;
  margin: 0;
}

.btn-new-transfer {
  background: var(--dash-navy);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-new-transfer:hover {
  background: var(--dash-navy-light);
  transform: translateY(-1px);
  color: #fff;
}

/* 2-Column Layout */
.dash-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 28px;
  align-items: start;
}

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

/* Section Headings */
.dash-section-title {
  font-family: var(--font-head, 'Plus Jakarta Sans', sans-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--dash-text-dark);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* My Cards - Link First Card Box */
.card-dashed-box {
  background: #fffdfb;
  border: 1.5px dashed #fed7aa;
  border-radius: 18px;
  padding: 36px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 230px;
  transition: all 0.2s ease;
  margin-bottom: 28px;
}

.card-dashed-box:hover {
  border-color: #f97316;
  background: #fffbf7;
  transform: translateY(-2px);
}

.card-add-circle {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.25);
}

.card-dashed-box h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dash-text-dark);
  margin: 0 0 8px;
}

.card-dashed-box p {
  font-size: 13.5px;
  color: var(--dash-text-muted);
  line-height: 1.45;
  max-width: 250px;
  margin: 0 0 18px;
}

.btn-link-now {
  background: var(--dash-navy);
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  border-radius: 24px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-link-now:hover {
  background: var(--dash-navy-light);
  transform: scale(1.02);
}

/* Saved Card Preview (when linked) */
.saved-card-display {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: 18px;
  padding: 22px;
  color: #fff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.saved-card-display::after {
  content: '';
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
}

.saved-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.saved-card-scheme {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.saved-card-num {
  font-family: var(--font-mono, monospace);
  font-size: 17px;
  letter-spacing: 2px;
  margin-bottom: 20px;
  font-weight: 600;
}

.saved-card-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #94a3b8;
}

.saved-card-bottom b {
  color: #ffffff;
  display: block;
  font-size: 13.5px;
  margin-top: 2px;
}

/* Quick Actions Grid */
.quick-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.quick-action-item {
  background: #ffffff;
  border: 1px solid var(--dash-border);
  border-radius: 16px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: var(--dash-text-dark);
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.quick-action-item:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}

.quick-action-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
}

.icon-send {
  background: #ffedd5;
  color: #ea580c;
}

.icon-card {
  background: #eff6ff;
  color: #2563eb;
}

.icon-bills {
  background: #fdf2f8;
  color: #db2777;
}

.icon-more {
  background: #ecfdf5;
  color: #059669;
}

.quick-action-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--dash-text-dark);
}

/* Right Column Metrics */
.metrics-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .metrics-row {
    grid-template-columns: 1fr;
  }
}

/* Available Limit Dark Card */
.metric-card-dark {
  background: linear-gradient(145deg, #0f172a, #1e293b);
  border-radius: 20px;
  padding: 24px 26px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
}

.metric-card-dark .card-header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.metric-card-dark .metric-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #94a3b8;
}

.metric-card-dark .wallet-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 18px;
}

.metric-card-dark .metric-val {
  font-family: var(--font-head, 'Plus Jakarta Sans', sans-serif);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
  color: #ffffff;
}

.metric-card-dark .limit-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  margin-bottom: 12px;
  overflow: hidden;
}

.metric-card-dark .limit-progress-fill {
  height: 100%;
  width: 0%;
  background: #3b82f6;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.metric-card-dark .limit-footer-text {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #94a3b8;
}

/* Total Volume White Card */
.metric-card-white {
  background: #ffffff;
  border: 1px solid var(--dash-border);
  border-radius: 20px;
  padding: 24px 26px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-card-white .card-header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.metric-card-white .metric-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dash-text-muted);
}

.metric-card-white .volume-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  font-size: 18px;
}

.metric-card-white .metric-val {
  font-family: var(--font-head, 'Plus Jakarta Sans', sans-serif);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--dash-text-dark);
  margin-bottom: 18px;
}

.metric-card-white .status-active {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #10b981;
  font-size: 13px;
  font-weight: 600;
}

/* Quick Fee Check Widget */
.quick-fee-card {
  background: #ffffff;
  border: 1px solid var(--dash-border);
  border-radius: 18px;
  padding: 18px 24px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.fee-calc-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.fee-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.fee-calc-left h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dash-text-dark);
  margin: 0 0 2px;
}

.fee-calc-left p {
  font-size: 13px;
  color: var(--dash-text-muted);
  margin: 0;
}

.fee-calc-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.fee-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 6px 12px;
}

.fee-input-wrap .cur {
  font-weight: 700;
  font-size: 14px;
  color: #475569;
  margin-right: 4px;
}

.fee-input-wrap input {
  border: none;
  background: transparent;
  font-family: var(--font-mono, monospace);
  font-size: 15px;
  font-weight: 600;
  color: var(--dash-text-dark);
  width: 110px;
  outline: none;
}

.fee-result-block {
  text-align: right;
}

.fee-result-block .label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dash-text-muted);
  letter-spacing: 0.5px;
  display: block;
}

.fee-result-block .val {
  font-family: var(--font-mono, monospace);
  font-size: 17px;
  font-weight: 700;
  color: #10b981;
}

.btn-fee-send {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--dash-navy);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 17px;
  transition: all 0.15s ease;
}

.btn-fee-send:hover {
  background: #2563eb;
  transform: scale(1.05);
}

/* Recent Transactions Card */
.recent-txns-card {
  background: #ffffff;
  border: 1px solid var(--dash-border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.recent-txns-empty {
  padding: 48px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.empty-icon-box {
  font-size: 42px;
  color: #cbd5e1;
  margin-bottom: 12px;
}

.recent-txns-empty h4 {
  font-size: 15.5px;
  font-weight: 600;
  color: #64748b;
  margin: 0 0 4px;
}

.recent-txns-empty p {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
}

/* Recent Transaction Rows */
.txn-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
}

.txn-item-row:last-child {
  border-bottom: none;
}

.txn-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.txn-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  background: #f1f5f9;
  color: #475569;
}

.txn-icon.st-success {
  background: #ecfdf5;
  color: #10b981;
}

.txn-icon.st-hold {
  background: #fffbeb;
  color: #f59e0b;
}

.txn-info h5 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--dash-text-dark);
  margin: 0 0 3px;
}

.txn-info small {
  font-size: 12px;
  color: var(--dash-text-muted);
}

.txn-item-right {
  text-align: right;
}

.txn-amount {
  font-family: var(--font-mono, monospace);
  font-size: 15px;
  font-weight: 700;
  color: var(--dash-text-dark);
}

.txn-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
  margin-top: 4px;
}

.badge-success {
  background: #ecfdf5;
  color: #065f46;
}

.badge-hold {
  background: #fffbeb;
  color: #92400e;
}

.badge-pending {
  background: #eff6ff;
  color: #1e40af;
}

/* Modal overlay */
.dash-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.dash-modal.on {
  opacity: 1;
  visibility: visible;
}

.dash-modal-content {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  padding: 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  transform: translateY(16px);
  transition: transform 0.2s ease;
}

.dash-modal.on .dash-modal-content {
  transform: translateY(0);
}

.dash-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 20px;
  color: #64748b;
  cursor: pointer;
}
