/* Wallet Page Specific Styles */

.page-title {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

/* Wallet Balance Card */
.wallet-balance-card {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--danger-color) 100%);
  color: white;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.balance-info {
  flex: 1;
}

.balance-label {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.balance-amount {
  font-size: 3rem;
  font-weight: bold;
  margin: 0;
}

/* Quick Add Section */
.quick-add-section {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.quick-add-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.quick-add-btn {
  padding: 1rem;
  border: 2px solid var(--primary-color);
  background: white;
  color: var(--primary-color);
  border-radius: var(--border-radius);
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.quick-add-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Table Responsive */
.table-responsive {
  overflow-x: auto;
}

/* Transaction Badge */
.transaction-credit {
  color: var(--success-color);
  font-weight: 600;
}

.transaction-debit {
  color: var(--danger-color);
  font-weight: 600;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  color: var(--text-dark);
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-dark);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--danger-color);
}

.modal-body {
  padding: 1.5rem;
}

.modal-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #6c757d;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .wallet-balance-card {
    flex-direction: column;
    text-align: center;
  }

  .balance-amount {
    font-size: 2.5rem;
  }

  .wallet-balance-card .btn {
    width: 100%;
  }

  .quick-add-buttons {
    grid-template-columns: repeat(2, 1fr);
  }

  .table {
    font-size: 0.875rem;
  }
}
