/* Order History Page Styles */
.order-history-area {
  background: #f8f9fa;
  min-height: 100vh;
}

.order-history-header .page-title {
  color: #2c3e50;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.order-history-header .page-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
}

/* Order Details Header Styling - match order history and override flex */
.order-details-area .order-header.text-center {
  display: block !important;
  border-bottom: none !important;
  text-align: center !important;
}

.order-details-area .order-header .page-title {
  color: #2c3e50;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.order-details-area .order-header .page-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

/* Empty State */
.empty-orders-state {
  background: white;
  border-radius: 15px;
  padding: 4rem 2rem;
  box-shadow: 0 5px 25px rgba(0,0,0,0.08);
  margin: 2rem 0;
}

.empty-orders-state .empty-icon {
  margin-bottom: 2rem;
}

.empty-orders-state h3 {
  color: #6c757d;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.empty-orders-state p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Order Cards */
.order-card {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 5px 25px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.order-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 35px rgba(0,0,0,0.12);
}

.order-header {
  display: flex;
  justify-content: between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e9ecef;
}

.order-info {
  flex: 1;
}

.order-number {
  color: #2c3e50;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
}

.order-date {
  color: #6c757d;
  font-size: 0.9rem;
}

.order-header .badge {
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Order Body */
.order-body {
  flex: 1;
  margin-bottom: 1.5rem;
}

.order-summary {
  margin-bottom: 1.5rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.summary-item .label {
  color: #6c757d;
  font-size: 0.9rem;
}

.summary-item .value {
  color: #2c3e50;
  font-size: 0.9rem;
}

/* Items Preview */
.items-preview .items-title {
  color: #2c3e50;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.items-list {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 0.75rem;
}

.item-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.item-preview:last-child {
  margin-bottom: 0;
}

.item-name {
  color: #2c3e50;
  flex: 1;
  margin-right: 1rem;
}

.item-quantity {
  color: #6c757d;
  font-weight: 500;
}

.more-items {
  font-style: italic;
  color: #6c757d !important;
}

/* Order Actions */
.order-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.order-actions .btn {
  flex: 1;
  border-radius: 8px;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.order-actions .btn-outline-primary {
  border-color: #76a713;
  color: #76a713;
}

.order-actions .btn-outline-primary:hover {
  background-color: #76a713;
  border-color: #76a713;
  color: white;
}

.order-actions .btn-outline-secondary:hover {
  background-color: #6c757d;
  border-color: #6c757d;
  color: white;
}

/* Badge Colors */
.badge-success {
  background-color: #28a745;
  color: white;
}

.badge-danger {
  background-color: #dc3545;
  color: white;
}

.badge-info {
  background-color: #17a2b8;
  color: white;
}

.badge-warning {
  background-color: #ffc107;
  color: #212529;
}

.badge-primary {
  background-color: #76a713;
  color: white;
}

/* Loading and Error States */
.order-history-loading,
.order-history-error {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.order-history-error .error-icon {
  font-size: 4rem;
  margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .order-history-header .page-title {
    font-size: 2rem;
  }
  
  .order-card {
    padding: 1.25rem;
  }
  
  .order-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .order-header .badge {
    margin-top: 0.5rem;
  }
  
  .order-actions {
    flex-direction: column;
  }
  
  .order-actions .btn {
    margin-bottom: 0.5rem;
  }
  
  .order-actions .btn:last-child {
    margin-bottom: 0;
  }
  
  .empty-orders-state {
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 576px) {
  .order-history-area {
    padding: 2rem 0;
  }
  
  .order-history-header .page-title {
    font-size: 1.75rem;
  }
  
  .empty-orders-state .empty-icon {
    font-size: 4rem !important;
  }
}