/* PaySystem - Payment Specific Styles */

/* Payment Gateway Cards */
.payment-gateway-card {
  border: 2px solid #e9ecef;
  border-radius: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
  background: #fff;
}

.payment-gateway-card:hover {
  border-color: #007bff;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,123,255,0.15);
}

.payment-gateway-card.selected {
  border-color: #007bff;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.payment-gateway-card .gateway-logo {
  max-height: 60px;
  width: auto;
  margin: 0 auto;
  display: block;
}

/* Payment Status Indicators */
.status-indicator {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-created {
  background: #e3f2fd;
  color: #1976d2;
}

.status-pending {
  background: #fff3e0;
  color: #f57c00;
}

.status-success {
  background: #e8f5e8;
  color: #2e7d32;
}

.status-failed {
  background: #ffebee;
  color: #c62828;
}

.status-cancelled {
  background: #f3e5f5;
  color: #7b1fa2;
}

/* Payment Amount Display */
.payment-amount {
  font-size: 2rem;
  font-weight: 700;
  color: #007bff;
  text-align: center;
  margin: 1rem 0;
}

.payment-amount .currency {
  font-size: 1.2rem;
  color: #6c757d;
  margin-left: 0.5rem;
}

/* QR Code Display */
.qr-code-container {
  text-align: center;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 15px;
  margin: 1rem 0;
}

.qr-code-container img {
  max-width: 200px;
  border: 3px solid #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Payment Progress */
.payment-progress {
  background: #fff;
  border-radius: 15px;
  padding: 2rem;
  margin: 1rem 0;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.progress-step {
  display: flex;
  align-items: center;
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.progress-step.active {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-left: 4px solid #007bff;
}

.progress-step.completed {
  background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
  border-left: 4px solid #4caf50;
}

.progress-step .step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-weight: bold;
  color: white;
}

.progress-step.active .step-icon {
  background: #007bff;
}

.progress-step.completed .step-icon {
  background: #4caf50;
}

.progress-step.pending .step-icon {
  background: #6c757d;
}

/* Payment Form Enhancements */
.payment-form .form-group {
  margin-bottom: 1.5rem;
}

.payment-form .form-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
}

.payment-form .form-control {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.payment-form .form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
  transform: translateY(-2px);
}

/* Payment Summary */
.payment-summary {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  padding: 1.5rem;
  margin: 1rem 0;
}

.payment-summary .summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #dee2e6;
}

.payment-summary .summary-item:last-child {
  border-bottom: none;
  font-weight: 700;
  font-size: 1.1rem;
  color: #007bff;
}

/* Payment History */
.payment-history {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.payment-history .history-item {
  padding: 1rem;
  border-bottom: 1px solid #e9ecef;
  transition: background-color 0.3s ease;
}

.payment-history .history-item:hover {
  background: #f8f9fa;
}

.payment-history .history-item:last-child {
  border-bottom: none;
}

/* Payment Notifications */
.payment-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1050;
  min-width: 300px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Payment Loading States */
.payment-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 15px;
  margin: 1rem 0;
}

.payment-loading .spinner {
  width: 3rem;
  height: 3rem;
  border: 4px solid #e9ecef;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Payment Error States */
.payment-error {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  border: 2px solid #f44336;
  border-radius: 15px;
  padding: 1.5rem;
  margin: 1rem 0;
  color: #c62828;
}

.payment-error .error-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

/* Responsive Payment Styles */
@media (max-width: 768px) {
  .payment-amount {
    font-size: 1.5rem;
  }
  
  .qr-code-container {
    padding: 1rem;
  }
  
  .qr-code-container img {
    max-width: 150px;
  }
  
  .payment-progress {
    padding: 1rem;
  }
  
  .progress-step {
    padding: 0.75rem;
  }
  
  .payment-notification {
    left: 10px;
    right: 10px;
    min-width: auto;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .payment-gateway-card {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
  }
  
  .payment-gateway-card:hover {
    border-color: #63b3ed;
  }
  
  .payment-summary {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: #e2e8f0;
  }
  
  .payment-history {
    background: #2d3748;
    color: #e2e8f0;
  }
  
  .payment-history .history-item {
    border-color: #4a5568;
  }
  
  .payment-history .history-item:hover {
    background: #4a5568;
  }
}
