/* Payment Request Dashboard - theme aware */
:root {
  --pr-card-radius: 20px;
  --pr-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.pr-dashboard { margin-top: 24px; margin-bottom: 48px; }

/* Balance card */
.balance-card {
  border-radius: var(--pr-card-radius);
  box-shadow: var(--pr-shadow);
  padding: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-color-dark), var(--primary-color));
}
.balance-card .balance-label { opacity: 0.9; font-size: 0.95rem; }
.balance-card .balance-value { font-size: 1.8rem; font-weight: 700; }
.balance-card .threshold-value { font-weight: 600; }

.balance-card .progress-wrap { margin: 12px 0 16px; }
.balance-card .progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.25);
}
.balance-card .progress-bar {
  background-color: #ffd66b; /* warm accent on primary */
  border-radius: 999px;
}

/* Cashout button: make available globally and inside balance-card */
.cashout-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--primary-color);
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
  border: none;
  text-decoration: none;
}
.cashout-btn i { font-size: 16px; }
.cashout-btn[disabled], .cashout-btn.disabled {
  background: #e0e0e0;
  color: #9aa0a6;
  box-shadow: none;
  cursor: not-allowed;
}
.cashout-btn.logout-btn { /* red variant for destructive/logout action */
  color: #dc3545; /* bootstrap danger */
}
.cashout-btn.logout-btn-solid { /* solid red destructive variant */
  background: #dc3545;
  color: #fff;
  box-shadow: 0 6px 14px rgba(220,53,69,0.35);
}
.cashout-btn.logout-btn-solid:hover,
.cashout-btn.logout-btn-solid:focus {
  background: #bb2d3b; /* darker danger */
  color: #fff;
}
.cashout-btn.logout-btn-solid[disabled],
.cashout-btn.logout-btn-solid.disabled {
  background: #e9a5ae;
  color: #fff;
  box-shadow: none;
}
.balance-card .cashout-btn { /* keep scope for specificity within balance card */ }

/* Stats list */
.stats-card {
  border-radius: var(--pr-card-radius);
  box-shadow: var(--pr-shadow);
  background: var(--background-color);
  padding: 18px;
}
.stats-title { font-size: 1.4rem; font-weight: 700; color: var(--text-color); margin-bottom: 12px; }

.stats-item {
  border-radius: 16px;
  background: var(--background-color);
  border: 1px solid var(--border-color);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.02);
}
.stats-item + .stats-item { margin-top: 12px; }
.stats-item .left { display: flex; align-items: center; gap: 14px; }
.stats-item .icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--primary-color);
  background: var(--primary-color-light);
}
.stats-item .amount { font-size: 1.4rem; font-weight: 700; color: var(--text-color); }
.stats-item .label { color: var(--text-color-light); font-weight: 500; }
.stats-item .chev { color: var(--text-color-light); }

@media (max-width: 576px) {
  .balance-card { padding: 16px; }
  .balance-card .balance-value { font-size: 1.6rem; }
  .stats-item { padding: 14px; }
}

/* Request form styled like stats */
.form-card.stats-card { padding: 18px; }
.stats-field {
  border-radius: 16px;
  background: var(--background-color);
  border: 1px solid var(--border-color);
  padding: 14px;
  margin-bottom: 12px;
}
.stats-field label { font-weight: 600; color: var(--text-color); }
.stats-field .form-text { color: var(--text-color-light); }
.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: none;
  background: var(--primary-color);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--pr-shadow);
}
.submit-btn:disabled { opacity: 0.7; cursor: not-allowed; }

/* History list styled like stats */
.history-card.stats-card { padding: 18px; }
.history-item .badge { margin-left: 10px; }
.history-item.pending .icon { color: #ffc107; }
.history-item.approved .icon { color: #17a2b8; }
.history-item.paid .icon { color: #28a745; }
.history-item.rejected .icon { color: #dc3545; }
