/* assets/css/pages/progress.css - Final with persistent upload and thicker bar */

/* Progress Bar */
.modal-header {
  margin-bottom: var(--spacing-lg);
}

.progress-bar {
  position: relative;
  height: 6px; /* Made thicker from 4px */
  background: var(--color-border);
  border-radius: var(--radius-full);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  overflow: hidden;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
  width: 0%; /* Start at 0% */
}

.progress-fill.step-0 {
  width: 0%;
}

.progress-fill.step-1 {
  width: 33.33%;
}

.progress-fill.step-2 {
  width: 66.66%;
}

.progress-fill.step-3 {
  width: 100%;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-top: var(--spacing-sm);
}

.progress-step {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  font-weight: var(--font-weight-semibold);
  position: relative;
  padding: var(--spacing-xs) 0;
}

.progress-step.active {
  color: var(--color-primary);
}

.progress-step.completed {
  color: var(--color-success);
}

/* Multi-step Modal */
.modal-step {
  display: none;
}

.modal-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-description {
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-lg);
  font-size: var(--font-size-base);
}

/* Documents Section in Modal */
.documents-section {
  margin-bottom: var(--spacing-lg);
}

/* Modal Documents Grid */
.modal-documents-grid {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: var(--spacing-md);
  max-height: 250px;
  overflow-y: auto;
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.modal-documents-grid.has-documents {
  display: grid;
}

.modal-document-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
}

.modal-document-preview {
  width: 60px;
  height: 75px;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.modal-document-preview .file-preview {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: var(--spacing-xs);
}

.modal-document-preview .file-label {
  position: absolute;
  bottom: 2px;
  font-size: 9px;
  font-weight: var(--font-weight-bold);
  color: white;
  text-transform: uppercase;
}

.modal-document-name {
  font-size: var(--font-size-xs);
  text-align: center;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remove-doc-btn {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--color-danger);
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
  box-shadow: var(--shadow-sm);
}

.remove-doc-btn svg {
  width: 12px;
  height: 12px;
  color: white;
}

.remove-doc-btn:hover {
  transform: scale(1.1);
}

/* Modal Initial Dropzone */
.modal-dropzone-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  border: 3px dashed var(--color-primary);
  border-radius: var(--radius-lg);
  background: var(--color-primary-lighter);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-dropzone-initial .dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--spacing-lg);
  pointer-events: none;
}

.modal-dropzone-initial .dropzone-icon-small {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
}

.modal-dropzone-initial .dropzone-text-small {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
}

.modal-dropzone-initial:hover {
  background: #e8f5e9;
  transform: scale(1.01);
}

.modal-dropzone-initial.dragover {
  background: #c8e6c9;
  transform: scale(1.02);
}

.modal-dropzone-persistent .dropzone-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  pointer-events: none;
}

.dropzone-icon-small {
  width: 32px;
  height: 32px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.dropzone-text-small {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
}

/* Button variations for skip */
.modal-actions {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: flex-end;
  margin-top: var(--spacing-lg);
  flex-wrap: wrap;
}

.modal-actions .btn:not(.btn-primary):not(.btn-danger) {
  background: var(--color-bg-secondary);
}