/* ==================== General Order Cards ==================== */
.order-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.order-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0d6efd;
  margin-bottom: 1rem;
  border-bottom: 2px solid #0d6efd;
  padding-bottom: 4px;
}

/* ==================== Customer Map ==================== */
.map-container {
  margin-top: 1rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  height: 200px; /* Compact height */
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
  transition: transform 0.2s ease;
}

.map-container iframe:hover {
  transform: scale(1.02);
}

/* ==================== Orders Table ==================== */
.orders-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.orders-table th,
.orders-table td {
  padding: 12px 15px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

.orders-table th {
  background: #0d6efd;
  color: #fff;
  font-weight: 600;
}

.orders-table tbody tr:hover {
  background-color: #f1f7ff;
  transition: background 0.2s ease-in-out;
}

/* ==================== Order Summary ==================== */
.order-summary h3 {
  color: #0d6efd;
  font-weight: 600;
  margin-bottom: 1rem;
}

.status-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  display: inline-block;
}

/* Status Colors */
.status-badge.pending { background: #ffc107; color: #000; }
.status-badge.processing { background: #0dcaf0; color: #fff; }
.status-badge.shipped { background: #0d6efd; color: #fff; }
.status-badge.delivered { background: #198754; color: #fff; }
.status-badge.cancelled { background: #dc3545; color: #fff; }

/* Payment Screenshot */
.payment-screenshot {
  margin-top: 1rem;
  text-align: center;
}

.payment-screenshot h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.payment-screenshot img {
  max-width: 200px;   /* smaller than before */
  width: 100%;
  border-radius: 8px; /* slightly smaller radius */
  border: 1px solid #ddd;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05); /* lighter shadow */
  object-fit: cover;
  transition: transform 0.2s ease;
}

.payment-screenshot img:hover {
  transform: scale(1.05);
}

/* Summary Buttons - Centered Primary */
.summary-buttons {
  margin-top: 1rem;
  display: flex;
  justify-content: center; /* center horizontally */
  flex-wrap: wrap;
  gap: 0.5rem;
}

.summary-buttons .btn-modern {
  flex: none; /* only take needed width */
  padding: 0.4rem 0.8rem; /* compact */
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.25s ease;
  text-align: center;
}

.summary-buttons .btn-primary {
  background: #0d6efd;
  color: #fff;
}

.summary-buttons .btn-primary:hover {
  background: #0b5ed7;
  transform: translateY(-1px);
}

.summary-buttons .btn-secondary {
  background: #6c757d;
  color: #fff;
}

.summary-buttons .btn-secondary:hover {
  background: #5c636a;
  transform: translateY(-1px);
}

/* Mobile Adjustment */
@media (max-width: 576px) {
  .summary-buttons {
    flex-direction: column;
    align-items: center; /* center buttons on mobile */
    gap: 0.4rem;
  }
  .summary-buttons .btn-modern {
    width: 100%; /* full width on mobile */
  }
}


/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
  .order-card {
    padding: 1rem;
  }
  .map-container {
    height: 180px;
  }
  .payment-screenshot img {
    max-width: 100%;
  }
  .summary-buttons {
    flex-direction: column;
  }
  .summary-buttons .btn-modern {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .orders-table th,
  .orders-table td {
    font-size: 0.85rem;
    padding: 8px 10px;
  }
}

.payment-screenshot {
  margin-top: 20px;
  text-align: center;
}

.payment-screenshot h5 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.payment-screenshot img {
  max-width: 300px;     /* limit width */
  max-height: 200px;    /* limit height */
  width: auto;          /* maintain aspect ratio */
  height: auto;         /* maintain aspect ratio */
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  object-fit: contain;  /* ensures image fits inside the box without stretching */
}
