.sidebar.sidebar.collapsed ~ .order-container {
  margin-left: 60px;
}

.order-container {
  max-width: 1500px;
  margin: auto;
  margin-left: 220px;
  transition: margin-left 0.5s ease;
}

.page-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #222;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 25px;
}

.controls input,
.controls select {
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  width: 100%;
  max-width: 300px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.order-card {
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  border-left: 5px solid #007bff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.order-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.order-card h3 {
  margin: 0 0 10px;
  color: #333;
}

.order-card p {
  margin: 6px 0;
  color: #555;
}

.badge {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: white;
}

.badge.delivered {
  background: #28a745;
}
.badge.shipped {
  background: #007bff;
}
.badge.pending {
  background: #6c757d;
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 500px;
  margin: 10% auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.close {
  float: right;
  font-size: 22px;
  cursor: pointer;
}

#fleetSelect {
  width: 100%;
  padding: 8px;
  margin: 15px 0;
}

/* Background overlay */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease-in-out;
}

/* Modal box */
.modal-content.glassy {
  background: rgba(255, 255, 255);
  /* backdrop-filter: blur(20px); */
  padding: 20px 25px;
  border-radius: 15px;
  max-width: 500px;
  margin: 8% auto;
  color: #000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-in-out;
}

/* Modal header */
.modal-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 600;
  text-align: center;
}

/* Details section */
.modal-body {
  display: grid;
  gap: 12px;
}
.modal-body .detail-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 10px 15px;
  border-radius: 8px;
}
.modal-body strong {
  color: #000;
  font-size: bold;
}

/* Close button */
.close {
  float: right;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  color: #007bff;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
