/* =============================================
   SaldoPage.css
   ============================================= */

/* --- Background halaman --- */
.saldo-bg {
  background-color: #f5f5f5;
  min-height: 100vh;
  padding-bottom: 2rem;
}

/* --- Header saldo (gradient orange) --- */
.saldo-header {
  background: linear-gradient(180deg, #ff5200 0%, #d64400 100%);
  color: white;
  padding-bottom: 3.5rem;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .saldo-header {
    border-radius: 20px;
    padding-bottom: 4rem;
  }
}

/* Watermark icon background */
.saldo-bg-pattern {
  position: absolute;
  top: -50px;
  right: -50px;
  font-size: 15rem;
  opacity: 0.1;
  transform: rotate(-20deg);
  color: white;
  pointer-events: none;
  line-height: 1;
}

/* Balance center */
.saldo-balance-wrapper {
  text-align: center;
  padding: 1rem 0;
}

.saldo-balance-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.saldo-balance-amount {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0.25rem 0 0;
  color: white;
}

.saldo-tertahan-badge {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  font-size: 0.8rem;
  color: white;
}

/* --- Action card (Tarik Dana / Rekening Bank) --- */
.saldo-action-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  margin-top: -40px;
  position: relative;
  z-index: 10;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .saldo-action-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-top: -50px;
  }
}

.saldo-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  width: 100%;
  transition: transform 0.2s;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.saldo-action-btn:hover,
.saldo-action-btn:active {
  transform: scale(0.95);
  color: #ff5200;
}

.saldo-action-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.icon-withdraw {
  background-color: #e3f2fd;
  color: #0d6efd;
}

.icon-bank {
  background-color: #e8f5e9;
  color: #2e7d32;
}

/* --- PIN Alert --- */
.saldo-pin-alert {
  background-color: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.saldo-pin-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  color: #dc3545;
  font-size: 1.1rem;
}

/* --- Desktop panel (riwayat) --- */
.saldo-panel {
  background: white;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid #eee;
  height: 100%;
}

/* --- Breadcrumb --- */
.saldo-breadcrumb {
  margin-bottom: 1.5rem;
}

/* --- Transaksi items --- */
.saldo-trans-item {
  background: white;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #f0f0f0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.saldo-trans-item:hover {
  border-color: #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.saldo-trans-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Amount colors */
.saldo-amount-plus {
  color: #198754;
  font-weight: 600;
  font-size: 0.95rem;
}

.saldo-amount-minus {
  color: #dc3545;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Status colors */
.saldo-status-pending  { color: #fd7e14; font-weight: 700; font-size: 0.75rem; }
.saldo-status-process  { color: #0d6efd; font-weight: 700; font-size: 0.75rem; }
.saldo-status-success  { color: #198754; font-weight: 700; font-size: 0.75rem; }
.saldo-status-failed   { color: #dc3545; font-weight: 700; font-size: 0.75rem; }

/* Mobile sub-header back button */
.saldo-mobile-back {
  background: none;
  border: none;
  color: white;
  font-size: 1.4rem;
  padding: 0;
  margin-right: 12px;
  cursor: pointer;
  line-height: 1;
}
