/* Modern Order Card Styles */
.order-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #f3f4f6;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  overflow: hidden;
}

.order-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

/* Card Header */
.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  background: linear-gradient(135deg, #fef9f3 0%, #ffffff 100%);
  border-bottom: 1px solid #f3f4f6;
}

.order-card-title {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.order-price-badge {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: "El Messiri", serif;
  color: #cd743d;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.order-price-badge::before {
  content: "💰";
  font-size: 1.2rem;
}

.order-date {
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 500;
}

.order-status {
  display: flex;
  align-items: flex-start;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-icon::before {
  content: "⏳";
}

.status-pending {
  background-color: #fef3c7;
  color: #92400e;
}

.status-processing {
  background-color: #dbeafe;
  color: #1e40af;
}

.status-processing .status-icon::before {
  content: "🔄";
}

.status-shipped {
  background-color: #d1fae5;
  color: #065f46;
}

.status-shipped .status-icon::before {
  content: "🚚";
}

.status-delivered {
  background-color: #dcfce7;
  color: #166534;
}

.status-delivered .status-icon::before {
  content: "✅";
}

.status-cancelled {
  background-color: #fee2e2;
  color: #991b1b;
}

.status-cancelled .status-icon::before {
  content: "❌";
}

/* Order Info */
.order-info {
  padding: 1rem 1.5rem;
  background-color: #f9fafb;
  border-bottom: 1px solid #f3f4f6;
}

.order-number {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.order-label {
  color: #6b7280;
  font-weight: 500;
}

.order-value {
  font-weight: 600;
  color: #374151;
  background-color: #e5e7eb;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-family: monospace;
}

/* Customer Info (Admin) */
.customer-info {
  padding: 1.25rem 1.5rem;
  background-color: #fef7f0;
  border-bottom: 1px solid #f3f4f6;
}

.customer-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #cd743d;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.customer-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-left: 1.5rem;
}

.customer-email {
  color: #cd743d;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.customer-email:hover {
  color: #a0541f;
  text-decoration: underline;
}

.customer-address {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Products Section */
.order-products {
  padding: 1.25rem 1.5rem;
}

.products-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.products-count {
  color: #6b7280;
  font-weight: 400;
  font-size: 0.85rem;
}

.products-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.product-item:hover {
  background-color: #f3f4f6;
}

.product-image {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
  border: 2px solid #e5e7eb;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.product-item:hover .product-image img {
  transform: scale(1.05);
}

.product-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-name {
  font-weight: 600;
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.3;
}

.product-pricing {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.product-unit-price {
  color: #6b7280;
  background-color: #e5e7eb;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.product-quantity {
  color: #374151;
  font-weight: 500;
}

.product-total-price {
  color: #cd743d;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Admin Actions */
.order-actions {
  padding: 1.25rem 1.5rem;
  background-color: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

.action-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background-color: #ffffff;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.action-btn:hover {
  background-color: #f3f4f6;
  border-color: #9ca3af;
  transform: translateY(-1px);
}

.btn-view {
  border-color: #60a5fa;
  color: #2563eb;
}

.btn-view:hover {
  background-color: #eff6ff;
  border-color: #3b82f6;
}

.btn-edit {
  border-color: #fbbf24;
  color: #d97706;
}

.btn-edit:hover {
  background-color: #fffbeb;
  border-color: #f59e0b;
}

.btn-icon {
  font-style: normal;
}

/* Responsive Design */
@media (max-width: 768px) {
  .order-card {
    margin-bottom: 1rem;
    border-radius: 8px;
  }
  
  .order-card-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
  }
  
  .order-price-badge {
    font-size: 1.3rem;
  }
  
  .product-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
  }
  
  .product-image {
    width: 50px;
    height: 50px;
  }
  
  .product-pricing {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .action-btn {
    width: 100%;
    justify-content: center;
  }
  
  .customer-details {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .order-card-header,
  .order-info,
  .customer-info,
  .order-products,
  .order-actions {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .order-price-badge {
    font-size: 1.2rem;
  }
} 