body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #f0f5ff;
  color: #111;
}

.top-bar {
  background: #0f172a;
  color: white;
  padding: 16px;
  text-align: center;
  font-weight: bold;
}

.container {
  max-width: 420px;
  margin: auto;
  padding: 16px;
}

.filter-box {
  margin-bottom: 16px;
}

select {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-size: 15px;
}

.transaction-card {
  background: white;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.transaction-card:hover {
  transform: translateY(-2px);
  transition: 0.2s;
}

.transaction-info {
  display: flex;
  flex-direction: column;
}

.transaction-info span {
  font-size: 13px;
  color: #64748b;
}

.transaction-amount {
  font-weight: bold;
  font-size: 16px;
}

.status-pending {
  color: #f59e0b; /* orange */
}

.status-completed {
  color: #10b981; /* green */
}

.status-failed {
  color: #ef4444; /* red */
}

/* Service colors for left border */
.transaction-card.data {
  border-left: 5px solid #1e40af;
}
.transaction-card.airtime {
  border-left: 5px solid #f97316;
}
.transaction-card.tv {
  border-left: 5px solid #8b5cf6;
}
.transaction-card.electricity {
  border-left: 5px solid #22c55e;
}
.transaction-card.social {
  border-left: 5px solid #ec4899;
}
.transaction-card.gift {
  border-left: 5px solid #facc15;
}
.transaction-card.education {
  border-left: 5px solid #3b82f6;
}

/* Receipt Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background-color: #fff;
  margin: 8% auto;
  padding: 20px;
  border-radius: 12px;
  max-width: 400px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.closeBtn {
  color: #333;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.closeBtn:hover {
  color: #ef4444;
}

#receiptDetails {
  margin-top: 10px;
  font-size: 14px;
}

#receiptDetails span {
  display: block;
  margin-bottom: 6px;
  color: #555;
}

#printReceipt {
  margin-top: 12px;
  width: 100%;
  padding: 10px;
  background-color: #1e40af;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

.status-success {
  color: green;
  font-weight: bold;
}

.status-failed {
  color: red;
  font-weight: bold;
}

.status-pending {
  color: goldenrod; /* yellow-ish */
  font-weight: bold;
}

/* Optional: add border color for the cards too */
.transaction-card {
  border: 1px solid #ccc;
  padding: 10px;
  margin: 8px 0;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.transaction-card .transaction-info span {
  margin-left: 8px;
}
