/* ===== PROFILE WALLET/DEPOSIT STYLES ===== */

/* ===== Wallet Container ===== */
.wallet-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* ===== Wallet Balance Card ===== */
.wallet-balance-card {
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.15) 0%, rgba(0, 204, 255, 0.15) 100%);
  border: 2px solid rgba(0, 255, 255, 0.3);
  border-radius: 20px;
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.wallet-balance-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.balance-header {
  position: relative;
  z-index: 1;
}

.balance-header h3 {
  font-size: 16px;
  color: #aaa;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.balance-header h3 i {
  color: #00ffff;
  font-size: 20px;
}

.balance-display {
  margin-bottom: 25px;
}

.balance-amount {
  font-size: 48px;
  font-weight: bold;
  background: linear-gradient(135deg, #00ffff, #00ccff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  position: relative;
  z-index: 1;
}

/* ===== Wallet Actions ===== */
.wallet-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  position: relative;
  z-index: 1;
}

.btn-wallet-action {
  padding: 15px 25px;
  border-radius: 15px;
  border: none;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.btn-wallet-action::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-wallet-action:hover::before {
  width: 300px;
  height: 300px;
}

.btn-wallet-action i {
  font-size: 20px;
  position: relative;
  z-index: 1;
}

.btn-wallet-action span {
  position: relative;
  z-index: 1;
}

.btn-topup {
  background: linear-gradient(135deg, #2ed573, #26de81);
  color: #000;
  box-shadow: 0 5px 20px rgba(46, 213, 115, 0.3);
}

.btn-topup:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(46, 213, 115, 0.5);
}

.btn-withdraw {
  background: linear-gradient(135deg, #ffc107, #ffed4e);
  color: #000;
  box-shadow: 0 5px 20px rgba(255, 193, 7, 0.3);
}

.btn-withdraw:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 193, 7, 0.5);
}

/* ===== Held Deposit Item ===== */
.held-deposit-item {
  transition: all 0.3s ease;
}

.held-deposit-item:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 20px rgba(255, 193, 7, 0.2);
}

/* ===== History Item ===== */
.history-item:hover {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(0, 255, 255, 0.3);
  transform: translateX(5px);
}

/* ===== Quick Withdraw Button ===== */
.quick-withdraw-btn {
  padding: 10px;
  background: rgba(255, 193, 7, 0.1);
  border: 2px solid rgba(255, 193, 7, 0.3);
  border-radius: 10px;
  color: #ffc107;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quick-withdraw-btn:hover {
  background: rgba(255, 193, 7, 0.2);
  border-color: #ffc107;
  transform: translateY(-2px);
}

.quick-withdraw-btn:active {
  transform: translateY(0);
}

/* ===== Select Styling for Bank Modal ===== */
.form-group-modal select {
  width: 100%;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  transition: 0.3s;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300ffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  padding-right: 40px;
}

.form-group-modal select:focus {
  outline: none;
  border-color: #00ffff;
  background: rgba(255, 255, 255, 0.15);
}

.form-group-modal select option {
  background: #1a1a2e;
  color: #fff;
  padding: 10px;
}

/* ===== Responsive Wallet Styles ===== */
@media (max-width: 768px) {
  .balance-amount {
    font-size: 36px;
  }

  .wallet-actions {
    grid-template-columns: 1fr;
  }

  .wallet-balance-card {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .balance-amount {
    font-size: 28px;
  }

  .btn-wallet-action {
    padding: 12px 20px;
    font-size: 14px;
  }

  .btn-wallet-action i {
    font-size: 18px;
  }
}

/* ===== Animation for Cards ===== */
.wallet-balance-card,
.info-section {
  animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Tooltip for Balance ===== */
.balance-display {
  position: relative;
}

.balance-display::after {
  content: 'Saldo tersedia untuk penarikan';
  position: absolute;
  bottom: -25px;
  left: 0;
  font-size: 12px;
  color: #aaa;
  font-weight: normal;
}

/* ===== Status Badge in History ===== */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.success {
  background: rgba(46, 213, 115, 0.2);
  color: #2ed573;
}

.status-badge.processing {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}

.status-badge.failed {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
}

/* ===== Empty State Styling ===== */
.wallet-container .empty-state {
  background: rgba(0, 0, 0, 0.3);
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 50px 30px;
  text-align: center;
}

.wallet-container .empty-state i {
  font-size: 60px;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 20px;
}

.wallet-container .empty-state h4 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 10px;
}

.wallet-container .empty-state p {
  color: #aaa;
  font-size: 14px;
  line-height: 1.6;
}

/* ===== Scrollbar Styling for History ===== */
#deposit-history-list,
#held-deposits-list {
  max-height: 500px;
  overflow-y: auto;
  padding-right: 5px;
}

#deposit-history-list::-webkit-scrollbar,
#held-deposits-list::-webkit-scrollbar {
  width: 6px;
}

#deposit-history-list::-webkit-scrollbar-track,
#held-deposits-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

#deposit-history-list::-webkit-scrollbar-thumb,
#held-deposits-list::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #00ffff, #00ccff);
  border-radius: 10px;
}

#deposit-history-list::-webkit-scrollbar-thumb:hover,
#held-deposits-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #00ccff, #00aacc);
}

/* ===== Loading State ===== */
.wallet-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
  color: #00ffff;
}

.wallet-loading i {
  font-size: 32px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== Success Animation ===== */
@keyframes successPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.success-animation {
  animation: successPulse 0.5s ease;
}

/* ===== Info Banner ===== */
.wallet-info-banner {
  background: rgba(0, 191, 255, 0.1);
  border: 2px solid rgba(0, 191, 255, 0.3);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 25px;
}

.wallet-info-banner h4 {
  color: #00bfff;
  font-size: 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallet-info-banner ul {
  color: #aaa;
  font-size: 13px;
  line-height: 1.8;
  margin: 0;
  padding-left: 20px;
}

.wallet-info-banner ul li {
  margin-bottom: 8px;
}

/* ===== Print Styles ===== */
@media print {
  .wallet-actions,
  .btn-wallet-action,
  .quick-withdraw-btn {
    display: none !important;
  }

  .wallet-balance-card {
    border: 2px solid #ddd;
    box-shadow: none;
  }

  .balance-amount {
    -webkit-text-fill-color: #000;
    color: #000;
  }
}