/* =========================
   GLOBAL STYLES
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

body {
  background: #f5f7fb;
  color: #111827;
}

a {
  text-decoration: none;
}

/* =========================
   HEADER
========================= */
.app-header {
  /* Deep professional blue */
  background: linear-gradient(135deg, #0b3aa6, #062b7a);
  padding: 14px;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  color: #fff;
}

.app-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.app-user-info .name {
  font-weight: 700;
  font-size: 14px;
}

.app-user-info .role {
  font-size: 12px;
  opacity: 0.9;
}

.app-balance span {
  font-size: 12px;
  opacity: 0.92;
}

.app-balance strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
}

/* =========================
   HEADER ACTION BUTTONS
========================= */
.app-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.app-action {
  flex: 1;
  text-align: center;
  background: #ffffff;
  /* Deeper blue text for contrast */
  color: #062b7a;
  padding: 10px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(11, 58, 166, 0.12);
}

/* =========================
   PAGE CONTENT
========================= */
.app-content {
  padding: 14px;
}

/* =========================
   SERVICES GRID
========================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.service-card {
  background: #fff;
  border-radius: 18px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  font-size: 12px;
  font-weight: 600;
  color: #111827;
  border: 1px solid rgba(2, 6, 23, 0.06);
}

.service-card img {
  width: 32px;
  height: 32px;
  margin-bottom: 6px;
}

/* =========================
   FORMS
========================= */
.app-form label {
  font-size: 12px;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.app-form input,
.app-form select {
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  margin-bottom: 12px;
  font-size: 13px;
  background: #ffffff;
}

.app-form input:focus,
.app-form select:focus {
  outline: none;
  border-color: rgba(11, 58, 166, 0.55);
  box-shadow: 0 0 0 3px rgba(11, 58, 166, 0.12);
}

.app-form button {
  width: 100%;
  /* Deep blue */
  background: #0b3aa6;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(11, 58, 166, 0.25);
}

.app-form button:active {
  transform: translateY(1px);
}

/* =========================
   STATS BOX
========================= */
.app-stats {
  margin-top: 20px;
}

.stats-box {
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stat-item {
  background: #f9fafb;
  padding: 10px;
  border-radius: 14px;
  font-size: 12px;
  border: 1px solid rgba(2, 6, 23, 0.05);
}

.stat-item strong {
  display: block;
  font-size: 14px;
  margin-top: 2px;
}

/* =========================
   WALLET HISTORY STYLES
========================= */
.history-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(2, 6, 23, 0.06);
}

.history-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-title {
  font-size: 14px;
  font-weight: 700;
}

.history-amount {
  font-size: 14px;
  font-weight: 700;
}

.history-amount.credit {
  color: #16a34a;
}

.history-amount.debit {
  color: #dc2626;
}

.history-meta {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

.history-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #6b7280;
  margin-top: 6px;
}

.status.success {
  color: #16a34a;
  font-weight: 600;
}

.status.pending {
  color: #f59e0b;
  font-weight: 600;
}

.status.failed {
  color: #dc2626;
  font-weight: 600;
}

/* =========================
   BOTTOM NAVIGATION
========================= */
.app-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
}

.nav-item {
  text-align: center;
  font-size: 11px;
  color: #6b7280;
}

.nav-item.active {
  color: #0b3aa6; /* deep blue active */
  font-weight: 800;
}

.nav-icon {
  display: block;
  font-size: 18px;
}
