/* General */
body {
  font-size: 14px;
  background-color: #f5f7fa;
}

.card-header {
  font-weight: 600;
  font-size: 0.9rem;
}

.form-label {
  margin-bottom: 2px;
  font-weight: 500;
}

/* Address paste area */
.address-paste-area {
  cursor: text;
  transition: border-color 0.2s;
  background: #fff;
}

.address-paste-area:focus {
  border-color: #0d6efd !important;
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.address-paste-area:empty::before {
  content: attr(data-placeholder);
  color: #999;
}

.address-paste-area img {
  max-height: 150px;
  border-radius: 4px;
}

/* Rates table */
#ratesListView .table th,
#ratesListView .table td,
#ratesComparisonView .table th,
#ratesComparisonView .table td,
#pcRatesListView .table th,
#pcRatesListView .table td,
#pcRatesComparisonView .table th,
#pcRatesComparisonView .table td {
  vertical-align: middle;
  font-size: 0.85rem;
  padding: 0.4rem 0.6rem;
}

.provider-badge {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-block;
}

.provider-shiprocket { background-color: #6c5ce7; color: white; }
.provider-icarry { background-color: #00b894; color: white; }
.provider-delhivery { background-color: #e17055; color: white; }
.provider-shipmozo { background-color: #0984e3; color: white; }
.provider-shipglobal { background-color: #d63031; color: white; }

/* Provider comparison group */
.provider-group {
  border: 1px solid #dee2e6;
  border-radius: 4px;
  overflow: hidden;
  margin: 8px;
}

.provider-group .table {
  margin-bottom: 0;
}

.provider-group .table th {
  font-size: 0.78rem;
  padding: 4px 8px;
}

.provider-group .table td {
  font-size: 0.82rem;
  padding: 5px 8px;
}

/* Tracking section */
#trackingResult {
  font-size: 0.85rem;
}

#trackingResult .timeline {
  border-left: 2px solid #0d6efd;
  padding-left: 15px;
  margin-left: 5px;
}

#trackingResult .timeline-item {
  position: relative;
  margin-bottom: 8px;
  padding-left: 10px;
}

#trackingResult .timeline-item::before {
  content: '';
  position: absolute;
  left: -21px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0d6efd;
}

/* History */
.history-actions .btn {
  padding: 1px 6px;
  font-size: 0.75rem;
}

/* Loading spinner overlay */
.loading-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Table responsive */
.table-responsive {
  max-height: 60vh;
  overflow-y: auto;
}

/* Navbar */
.navbar-brand {
  font-weight: 700;
}

/* Toast notification */
.toast-container {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 10000;
}

/* Booking result */
#bookingResult .card-body p {
  margin-bottom: 4px;
}

/* Shipping mode selector */
#shippingMode {
  border-color: #0d6efd;
}

/* Inline tracking panel */
#inlineTrackingPanel {
  border-color: #0d6efd;
}

#inlineTrackingBody .table {
  font-size: 0.8rem;
}

/* Wallet balance */
.provider-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 3px;
  vertical-align: middle;
}

.wallet-amt {
  font-weight: 600;
}

#walletBalances .badge {
  font-size: 0.78rem;
  padding: 4px 8px;
}

#walletBalances .badge a {
  font-size: 0.85rem;
}

/* Price Checker section */
#priceCheckerSection .card-header {
  font-size: 0.95rem;
}

/* Operation mode toggle */
.btn-group-sm .btn {
  font-size: 0.8rem;
}

/* Book from price checker button */
.book-from-pc-btn {
  font-size: 0.72rem;
  padding: 1px 6px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .container-fluid {
    padding: 0 8px;
  }

  .card-body {
    padding: 8px;
  }

  .table {
    font-size: 0.75rem;
  }

  .provider-group {
    margin: 4px;
  }

  #walletBalances .badge {
    font-size: 0.7rem;
    margin-bottom: 4px;
  }
}
