/**
 * Processing Progress Styles
 */

.processing-progress {
  margin: 20px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #007bff;
}

.processing-progress.progress-error {
  border-left-color: #dc3545;
  background: #fff5f5;
}

.processing-progress.progress-completed {
  border-left-color: #28a745;
  background: #f0fff4;
}

.processing-progress h3 {
  margin: 0 0 15px 0;
  font-size: 18px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.processing-progress.progress-completed h3 .fa-spinner {
  display: none;
}

.processing-progress.progress-completed h3::before {
  content: '\f058'; /* fa-check-circle */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: #28a745;
}

.progress-status {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  font-weight: 500;
}

.progress-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.progress-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 8px;
  align-items: center;
}

.progress-label {
  grid-column: 1;
  grid-row: 1;
  font-size: 13px;
  color: #555;
  font-weight: 500;
}

.progress-label .session-id {
  color: #888;
  font-weight: normal;
  font-size: 12px;
  margin-left: 5px;
}

.progress-label .total-in-db {
  color: #666;
  font-weight: normal;
  font-size: 12px;
  margin-left: 8px;
  font-style: italic;
}

.progress-percentage {
  grid-column: 2;
  grid-row: 1;
  font-size: 14px;
  font-weight: 600;
  color: #007bff;
  min-width: 45px;
  text-align: right;
}

.progress-bar-container {
  grid-column: 1 / -1;
  grid-row: 2;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #007bff, #0056b3);
  border-radius: 4px;
  transition: width 0.3s ease;
  animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.processing-progress.progress-completed .progress-bar {
  background: linear-gradient(90deg, #28a745, #1e7e34);
  animation: none;
}

.processing-progress.progress-error .progress-bar {
  background: linear-gradient(90deg, #dc3545, #c82333);
  animation: none;
}

.progress-error-message {
  margin-top: 15px;
  padding: 12px;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  color: #721c24;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-error-message i {
  color: #dc3545;
}

/* Responsive design */
@media (max-width: 768px) {
  .processing-progress {
    padding: 15px;
  }

  .progress-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .progress-percentage {
    grid-column: 1;
    grid-row: 2;
    text-align: left;
  }

  .progress-bar-container {
    grid-row: 3;
  }
}
