body, html {
  height: 100%;
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #121212;
  color: #f1f1f1;
}

/* Map */
#map {
  height: 100%;
  width: 100%;
  background-color: #ffffff;
}

/* Floating container */
#map-ui-container {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 90%;
  max-width: 600px;
}

/* Search Container */
#search-container {
  background-color: rgba(30, 30, 30, 0.85);
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  margin-bottom: 10px;
}

#destination, #currentAddress {
  width: 100%;
  padding: 10px;
  border: 1px solid #444;
  background-color: #1f1f1f;
  color: #f1f1f1;
  border-radius: 4px;
  box-sizing: border-box;
}

/* Suggestions */
#suggestions {
  border-top: 1px solid #333;
  margin-top: 10px;
  max-height: 200px;
  overflow-y: auto;
  display: none;
}

#suggestions .item {
  padding: 8px 0;
  cursor: pointer;
  border-bottom: 1px solid #333;
  color: #f1f1f1;
}

#suggestions .item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Info Card */
#infoCard {
  background: rgba(8, 165, 222, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(8, 165, 222, 0.5);
  color: #f1f1f1;
  padding: 16px 20px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(8,165,222,0.3);
  display: none;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
  margin-bottom: 15px;
  cursor: pointer;
}

#infoCard:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(8,165,222,0.5);
}

#infoCard .card-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

#infoCard .card-details div {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: #cdefff;
  font-weight: 500;
}

#infoCard .card-details div span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Add icons for better look */
#distanceText::before {
  content: "📍";
  font-size: 1.1em;
}

#etaText::before {
  content: "⏱️";
  font-size: 1.1em;
}

/* Price Styling */
#priceText {
  font-size: 1.6em;
  font-weight: 700;
  color: #117A3A;
}

/* Offer Button */
#offerButton {
  background: linear-gradient(90deg, #117A3A, #117A3A);
  border: none;
  color: white;
  font-weight: 600;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#offerButton:hover {
  background: linear-gradient(90deg, #117A3A, #117A3A);
  box-shadow: 0 0 15px rgba(8,165,222,0.5);
}

/* Hidden Offer Input */
#offerInputArea {
  display: none;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

#offerInputArea input {
  flex: 1;
  padding: 10px;
  border: 1px solid rgba(8,165,222,0.4);
  background-color: rgba(0,0,0,0.3);
  color: #fff;
  border-radius: 8px;
  outline: none;
}

#offerInputArea input:focus {
  border-color: #08a5de;
  box-shadow: 0 0 8px rgba(8,165,222,0.6);
}

#offerInputArea button {
  background: #08a5de;
  border: none;
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

#offerInputArea button:hover {
  background: #00bfff;
}

/* Vehicle Options */
.vehicle-options {
  display: flex;
  justify-content: space-around;
  margin-bottom: 10px;
}

.vehicle-card {
  background-color: rgba(40, 40, 40, 0.8);
  padding: 5px;
  border-radius: 10px;
  width: 50px;
  height: 50px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.vehicle-card img {
  width: 50px;
  height: 50px;
}

.vehicle-card span {
  display: block;
  font-weight: bold;
  font-size: 12px;
  color: #ddd;
}

.vehicle-card.selected {
  background-color: #08a5de;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* Package Details */
#packageDetails {
  background-color: rgba(30, 30, 30, 0.85);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  display: none;
}

#packageDetails input {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  box-sizing: border-box;
  border: 1px solid #444;
  border-radius: 4px;
  background-color: #1f1f1f;
  color: #f1f1f1;
}

#packageDetails button {
  padding: 10px 15px;
  margin-right: 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#submitPackage {
  background-color: #117A3A;
  color: white;
}

#cancelPackage {
  background-color: #f44336;
  color: white;
}

/* Search bar */
.search-bar {
  text-align: center;
  margin: 20px;
  color: #f1f1f1;
}

/* === Modern Alert Popup === */
#customAlertOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-alert {
  background: transparent;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
  text-align: center;
  padding: 25px;
  width: 89%;
  max-width: 380px;
  font-family: 'Poppins', sans-serif;
  color: #f1f1f1;
  animation: fadeInUp 0.4s ease;
}

.alert-logo {
  width: 70px;
}

.alert-title {
  font-size: 1.3em;
  color: #08a5de;
  margin-bottom: 8px;
  font-weight: 600;
}

.alert-details p {
  margin: 5px 0;
  font-size: 0.95em;
}
.alert-price {
  margin: 15px 0;
  text-align: center;
}

.alert-price label {
  font-weight: 500;
  color: #ccc;
  display: block;
  margin-bottom: 5px;
}

.price-input-box {
  display: flex;
  justify-content: center; /* centers the box horizontally */
  align-items: center;
  border: 2px solid #08a5de;
  border-radius: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.05);
  width: 60px; /* fixed width */
  margin: 0 auto; /* centers the box container */
}

.price-input-box span {
  font-weight: 600;
  color: #08a5de;
  margin-right: 5px;
  font-size: 1.1em;
}

#priceInput {
  border: none;
  outline: none;
  font-size: 1em;
  width: 100%;
  background: transparent;
  color: #fff;
  text-align: center; /* center text inside the input */
}

.alert-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  gap: 10px;
}

.alert-btn {
  flex: 1;
  border: none;
  padding: 10px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.primary-btn {
  background: #041107;
  color: white;
}

.primary-btn:hover {
  background: #041107;
}

.secondary-btn {
  background: #041107;
  color: #f1f1f1;
}

.secondary-btn:hover {
  background: #041107;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Animated Stylish Debit Card Interface */
.user-card {
  position: relative;
  width: 100%;
  height: flex;
  border-radius: 20px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
  margin: 40px auto;
  margin-top:-15px;
  background: linear-gradient(
    135deg,
    rgba(10, 40, 20, 0.95),
    rgba(5, 20, 10, 0.75)
  );
box-shadow: 0 50px 60px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(1px);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInCard 1s ease forwards;
  transition: all 0.4s ease;
}

/* Fade in animation */
@keyframes fadeInCard {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Shimmering animated gradient background */
.user-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    rgba(255,255,255,0.1),
    rgba(255,255,255,0.3),
    rgba(255,255,255,0.1),
    rgba(255,255,255,0.3)
  );
  animation: rotateShimmer 6s linear infinite;
  z-index: 1;
  opacity: 0.15;
}

@keyframes rotateShimmer {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Card hover effects */
.user-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 40px rgba(17, 122, 58, 0.5);
}

/* Inner content layering */
.user-card * {
  position: relative;
  z-index: 2;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.card-logo {
  width: 50px;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.5));
}

.card-chip {
  width: 40px;
  height: 30px;
  border-radius: 6px;
  background: linear-gradient(145deg, #f1c40f, #d4ac0d);
  box-shadow: 0 0 10px rgba(241,196,15,0.4);
  animation: pulseChip 2s infinite alternate;
}

@keyframes pulseChip {
  0% { box-shadow: 0 0 5px rgba(241,196,15,0.2); }
  100% { box-shadow: 0 0 15px rgba(241,196,15,0.8); }
}

.card-body {
  padding: 0 20px;
}

.card-balance span {
  font-size: 12px;
  opacity: 0.8;
}

.card-balance h2 {
  margin: 5px 0 10px;
  font-size: 26px;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.card-number {
  letter-spacing: 3px;
  font-size: 18px;
  opacity: 0.9;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 15px 20px;
}

.card-footer span {
  font-size: 10px;
  opacity: 0.7;
  display: block;
}

.card-footer strong {
  font-size: 14px;
  letter-spacing: 0.5px;
}

.card-holder, .card-expiry, .card-phone {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Add subtle glowing edges */
.user-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 0 25px rgba(17,122,58,0.4);
  pointer-events: none;
}
