/* مؤشر التقدم */
.progress-bar {
  margin: 20px 0 30px 0;
  padding: 20px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.progress-steps.wpmg-form {
  max-width: 500px;
  margin: 20px auto;
  padding: 20px;
  border: 1px solid #ddd;
  background: #fafafa;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wpmg-form h3 {
  margin-top: 0;
  color: #0073aa;
  text-align: center;
  border-bottom: 2px solid #0073aa;
  padding-bottom: 10px;
}

.wpmg-form label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
  color: #333;
}

.wpmg-form small {
  display: block;
  margin-top: 5px;
  color: #666;
  font-size: 12px;
}

.wpmg-form input, .wpmg-form button {
  width: 100%;
  padding: 12px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.wpmg-form input:focus {
  border-color: #0073aa;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,115,170,0.1);
}

.wpmg-form button {
  background: #0073aa;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s;
}

.wpmg-form button:hover {
  background: #005a87;
}

.wpmg-confirm {
  max-width: 600px;
  margin: 20px auto;
  padding: 25px;
  border: 2px solid #4CAF50;
  background: #f0fff0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wpmg-confirm h3 {
  margin-top: 0;
  color: #4CAF50;
  text-align: center;
}

.order-details {
  background: #fff;
  padding: 15px;
  margin: 15px 0;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.order-details p {
  margin: 8px 0;
}

.wallet-info {
  background: #e7f3ff !important;
  padding: 15px !important;
  border: 1px solid #0073aa !important;
  margin: 15px 0 !important;
  border-radius: 4px;
}

.wallet-info h4 {
  margin-top: 0;
  color: #0073aa;
}

.wallet-info p {
  margin: 10px 0;
}

.status-display {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  padding: 15px;
  margin: 15px 0;
  border-radius: 4px;
}

.status-display p {
  margin: 0;
  font-size: 16px;
}

.wpmg-error {
  background: #ffecec !important;
  border: 1px solid #ff0000 !important;
  padding: 10px !important;
  margin: 10px 0 !important;
  color: #cc0000 !important;
  border-radius: 4px;
}

/* مؤشر التقدم */
.progress-bar {
  margin: 20px 0 30px 0;
  padding: 20px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.progress-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #e9ecef;
  z-index: 1;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  background: #f8f9fa;
  padding: 0 10px;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e9ecef;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.step-label {
  font-size: 12px;
  color: #6c757d;
  text-align: center;
  font-weight: 500;
  line-height: 1.2;
}

.step.active .step-number {
  background: #28a745;
  color: white;
  transform: scale(1.1);
}

.step.active .step-label {
  color: #28a745;
  font-weight: bold;
}

/* زر تأكيد الدفع */
.payment-confirmation {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  padding: 20px;
  margin: 20px 0;
  border-radius: 8px;
  text-align: center;
}

.confirm-payment-btn {
  background: #28a745 !important;
  color: white !important;
  padding: 15px 30px !important;
  font-size: 16px !important;
  font-weight: bold !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3) !important;
  width: auto !important;
}

.confirm-payment-btn:hover {
  background: #218838 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4) !important;
}

/* حالات الطلب */
.status-pending {
  color: #ffc107;
  font-weight: bold;
}

.status-confirming {
  color: #17a2b8;
  font-weight: bold;
}

.status-verified {
  color: #28a745;
  font-weight: bold;
}

.status-sent {
  color: #6f42c1;
  font-weight: bold;
}

.status-completed {
  color: #28a745;
  font-weight: bold;
}

/* Spinner للتحميل */
.loading-spinner {
  display: inline-block;
  animation: spin 1s linear infinite;
  margin-left: 8px;
  font-size: 14px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* معاينة الحساب */
#calculation-preview {
  background: #f9f9f9 !important;
  padding: 10px !important;
  margin: 10px 0 !important;
  border: 1px dashed #28a745 !important;
  border-radius: 4px;
  text-align: center;
}

#calculation-preview p {
  margin: 0 !important;
  color: #28a745 !important;
  font-size: 16px !important;
}

/* تحسينات إضافية للموبايل */
@media (max-width: 768px) {
  .progress-steps {
    flex-direction: column;
    gap: 15px;
  }
  
  .progress-steps::before {
    display: none;
  }
  
  .step {
    flex-direction: row;
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    padding: 10px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
  }
  
  .step-number {
    margin-bottom: 0;
    margin-left: 10px;
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
  
  .step-label {
    text-align: right;
    font-size: 14px;
    flex: 1;
  }
  
  .wpmg-form, .wpmg-confirm {
    margin: 10px;
    padding: 15px;
  }
  
  .confirm-payment-btn {
    width: 100% !important;
    padding: 20px !important;
  }
}

/* تنسيق إضافي للوحة التحكم */
.wp-list-table .column-id {
  width: 60px;
}

.wp-list-table .column-amount {
  width: 100px;
}

.wp-list-table .column-email {
  width: 150px;
}

.wp-list-table .column-status {
  width: 120px;
}

.wp-list-table .column-actions {
  width: 160px;
}

.wp-list-table select {
  font-size: 12px;
}