* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f4f7fb;
  color: #222;
}

.container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 500px;
  background: white;
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

h1 {
  margin-bottom: 8px;
  font-size: 28px;
}

.subtitle {
  color: #666;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

input,
select {
  width: 100%;
  padding: 14px;
  border: 1px solid #d0d7e2;
  border-radius: 8px;
  font-size: 16px;
}

input:focus,
select:focus {
  outline: none;
  border-color: #2b7cff;
}

.btn-primary {
  width: 100%;
  padding: 14px;
  border: none;
  background: #2b7cff;
  color: white;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
}

.btn-primary:hover {
  opacity: 0.95;
}

#message {
  margin-bottom: 18px;
  font-weight: 600;
}

.success {
  color: green;
}

.error {
  color: red;
}
/* Driver wallet transaction cards */
.wallet-tx-card {
  border: 1px solid #e5e7eb;
  border-left: 6px solid #d1d5db;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.wallet-tx-card.credit-card {
  border-left-color: #16a34a;
}

.wallet-tx-card.debit-card {
  border-left-color: #dc2626;
}

.wallet-tx-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.tx-title {
  font-weight: 900;
  font-size: 18px;
  color: #111827;
}

.tx-date {
  color: #64748b;
  font-size: 14px;
  margin-top: 4px;
}

.tx-amount {
  font-weight: 900;
  font-size: 20px;
  white-space: nowrap;
}

.tx-amount.credit {
  color: #15803d;
}

.tx-amount.debit {
  color: #b91c1c;
}

.tx-meta {
  margin-top: 12px;
  color: #334155;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .wallet-tx-top {
    flex-direction: column;
  }

  .tx-amount {
    font-size: 22px;
  }
}

/* Trip navigation buttons */
.trip-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.nav-link-btn {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 800;
}

.btn-secondary.nav-link-btn {
  background: #0f172a;
  color: #ffffff;
}

/* Earnings collapsible panel */
.earnings-panel {
  margin-top: 10px;
}

.earnings-panel summary {
  cursor: pointer;
  background: #eef2ff;
  color: #0f172a;
  padding: 16px 18px;
  border-radius: 14px;
  font-size: 22px;
  font-weight: 900;
  list-style: none;
}

.earnings-panel summary::-webkit-details-marker {
  display: none;
}

.earnings-panel summary::after {
  content: "Show";
  float: right;
  font-size: 16px;
  background: #0f172a;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 999px;
}

.earnings-panel[open] summary::after {
  content: "Hide";
}

.earnings-content {
  margin-top: 20px;
}


.trip-alert-banner {
  padding: 18px;
  margin: 16px 0;
  border-radius: 14px;
  background: #fff3cd;
  border: 2px solid #ffcc00;
  font-size: 22px;
  font-weight: 800;
  color: #7a5200;
  animation: tripAlertPulse 1s infinite alternate;
}

@keyframes tripAlertPulse {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.02);
  }
}
