/**
 * Transformation Approval Card Styles (Phase 7)
 * Modern, clean design for data cleaning approval UI
 */

.transformation-approval-card {
  background: #7F65EB;
  border-radius: 16px;
  padding: 24px;
  margin: 16px 0;
  box-shadow: 0 8px 24px rgba(112, 85, 226, 0.15);
  animation: slideInUp 0.3s ease-out;
  max-width: 600px;
}

.transformation-approval-card.completed {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.transformation-approval-card.error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.transformation-approval-card.rejected {
  opacity: 0.5;
}

/* Header */
.approval-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  color: white;
}

.approval-icon {
  font-size: 32px;
  line-height: 1;
}

.approval-title h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: white;
}

.approval-subtitle {
  margin: 4px 0 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

/* Impact Summary */
.impact-summary {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.impact-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

.impact-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.impact-value {
  font-size: 16px;
  font-weight: 600;
  color: white;
}

.impact-value.warning {
  color: #fbbf24;
}

/* Sections */
.approval-section {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.section-icon {
  font-size: 18px;
}

.section-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

/* Operations List */
.operations-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.operation-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
  border-left: 3px solid #7055E2;
  transition: all 0.2s ease;
}

.operation-item:hover {
  background: #f3f4f6;
}

.operation-number {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #7055E2;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.operation-content {
  flex: 1;
}

.operation-description {
  font-size: 14px;
  color: #1f2937;
  margin-bottom: 4px;
  font-weight: 500;
}

.operation-meta {
  font-size: 12px;
  color: #6b7280;
}

.operation-status {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
}

.operation-status.executing {
  color: #7055E2;
}

.operation-status.completed {
  color: #10b981;
}

.operation-status.failed {
  color: #ef4444;
}

/* Preview Section */
.preview-section {
  background: rgba(255, 255, 255, 0.95);
}

.preview-content {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.6;
}

.preview-summary {
  white-space: pre-line;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

/* Actions */
.approval-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.btn-approve,
.btn-reject,
.btn-retry {
  flex: 1;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-approve {
  background: white;
  color: #7055E2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-approve:hover:not(:disabled) {
  background: #f9fafb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-approve:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-reject {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-reject:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.3);
}

.btn-reject:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-retry {
  background: white;
  color: #ef4444;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-retry:hover {
  background: #f9fafb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Status Messages */
.executing-status,
.success-status,
.error-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

.executing-status {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.success-status {
  background: rgba(16, 185, 129, 0.2);
  color: white;
}

.error-status {
  background: rgba(239, 68, 68, 0.2);
  color: white;
}

/* Spinners */
.spinner,
.spinner-small {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner {
  width: 16px;
  height: 16px;
}

.spinner-small {
  width: 12px;
  height: 12px;
  border-width: 2px;
}

/* Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Responsive */
@media (max-width: 600px) {
  .transformation-approval-card {
    padding: 16px;
    margin: 12px 0;
  }

  .impact-summary {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .approval-actions {
    flex-direction: column;
  }

  .btn-approve,
  .btn-reject {
    width: 100%;
  }
}
