html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  background-color: #fff;
  color: #212529;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Header logo styling */
.navbar-brand img {
  max-height: 40px;
}

.navbar .btn {
  font-size: 1.25rem;
}

/* Footer styling */
.footer {
  font-size: 0.9rem;
}

/* Pagination styling */
.pagination-container {
  margin-top: 2rem;
  padding: 1rem 0;
}

.pagination-container .page-link {
  padding: 0.75rem 1rem;
}

/* Delivery Cards Enhanced Styling */
.delivery-card {
  border: 1px solid #e9ecef;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.delivery-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-color: #007bff;
}

.delivery-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 1rem;
  border-radius: 12px 12px 0 0;
  border-bottom: 1px solid #dee2e6;
}

.delivery-body {
  padding: 1rem;
}

.status-badge {
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Touch-friendly Action Buttons */
.touch-action-btn {
  min-height: 36px;
  min-width: 36px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  border-width: 1.5px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.touch-action-btn:hover,
.touch-action-btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.touch-action-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.card-footer {
  background-color: #f8f9fa !important;
  border-top: 1px solid #dee2e6 !important;
  border-radius: 0 0 12px 12px;
}

/* Improve touch targets for mobile */
@media (max-width: 768px) {
  .touch-action-btn {
    min-height: 44px;
    min-width: 44px;
    font-size: 0.8rem;
  }
  
  .delivery-card {
    margin-bottom: 1rem;
  }
  
  .card-footer .d-flex {
    gap: 0.5rem !important;
  }
}

/* Modal Enhancements */
.modal-dialog {
  max-width: 600px;
}

.modal-content {
  border-radius: 15px;
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  border-radius: 15px 15px 0 0;
  padding: 1.25rem 1.5rem;
}

.modal-header .btn-close {
  filter: invert(1);
  opacity: 0.8;
}

.modal-header .btn-close:hover {
  opacity: 1;
}

.modal-body {
  padding: 1.5rem;
}

.delivery-info-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 4px solid #007bff;
}

.delivery-info-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.delivery-info-value {
  font-size: 1rem;
  color: #212529;
  font-weight: 500;
}

.delivery-actions {
  background: #f8f9fa;
  padding: 1rem 1.5rem;
  border-radius: 0 0 15px 15px;
  border-top: 1px solid #dee2e6;
}

.btn-group-delivery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-delivery {
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.btn-delivery:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn-delivery.btn-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border-color: #28a745;
}

.btn-delivery.btn-outline-success {
  border-color: #28a745;
  color: #28a745;
}

.btn-delivery.btn-outline-success:hover {
  background: #28a745;
  color: white;
}

.btn-delivery.btn-warning {
  background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
  border-color: #ffc107;
  color: #212529;
}

.btn-delivery.btn-danger {
  background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
  border-color: #dc3545;
}

.btn-delivery.btn-outline-primary {
  border-color: #007bff;
  color: #007bff;
}

.btn-delivery.btn-outline-primary:hover {
  background: #007bff;
  color: white;
}
