/* payment-success.component.scss */
.payment-result-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.success-card, .loading-card, .error-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
  text-align: center;
  border: 1px solid #e0e0e0;
}

.success-header {
  margin-bottom: 2.5rem;
}

.success-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
  animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.error-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #f44336, #d32f2f);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 1rem;
}

h1 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  color: #34495e;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  font-weight: 600;
}

.success-message {
  color: #7f8c8d;
  font-size: 1.2rem;
  margin-bottom: 0;
  line-height: 1.6;
}

.transaction-details {
  text-align: left;
  margin-bottom: 2.5rem;
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.details-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  border-left: 4px solid #4CAF50;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.detail-item:hover {
  transform: translateY(-2px);
}

.label {
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.95rem;
}

.value {
  color: #34495e;
  font-weight: 500;
  text-align: right;
  word-break: break-word;
  max-width: 60%;
}

.amount {
  color: #27ae60;
  font-weight: 700;
  font-size: 1.2rem;
}

.status-success {
  color: #27ae60;
  font-weight: 700;
  text-transform: uppercase;
  background: #d4edda;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.dispensing-status {
  background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
  border: 2px solid #2196F3;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  text-align: center;
}

.dispensing-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.dispensing-note {
  color: #1976D2;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0.5rem 0 0 0;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 160px;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  color: #495057;
  border: 2px solid #dee2e6;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #e9ecef, #dee2e6);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.loading-card {
  padding: 3rem;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #4CAF50;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

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

// Responsive Design
@media (max-width: 768px) {
  .payment-result-container {
    margin: 1rem;
    padding: 0;
  }
  
  .success-card, .loading-card, .error-card {
    padding: 1.5rem;
  }
  
  .action-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .btn-primary, .btn-secondary {
    min-width: 100%;
  }
  
  .detail-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .value {
    text-align: left;
    max-width: 100%;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .success-icon {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
  }
}

@media print {
  .action-buttons {
    display: none;
  }
  
  .payment-result-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
  }
  
  .success-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}