/* BidBridge Custom Styles */

.card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Step Indicator */
#step-indicator {
  display: flex;
  align-items: center;
  overflow-x: auto;
}

.step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #9ca3af;
  white-space: nowrap;
  font-weight: 500;
}

.step.active {
  color: #2563eb;
}

.step.completed {
  color: #16a34a;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: #e5e7eb;
  font-size: 0.7rem;
  font-weight: 700;
}

.step.active .step-num {
  background: #2563eb;
  color: white;
}

.step.completed .step-num {
  background: #16a34a;
  color: white;
}

.step-line {
  flex: 1;
  height: 2px;
  background: #e5e7eb;
  min-width: 1rem;
}

/* File List Items */
.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
}

.file-item .file-name {
  font-weight: 500;
  color: #374151;
}

.file-item .file-size {
  font-size: 0.75rem;
  color: #9ca3af;
}

.file-item .file-remove {
  color: #ef4444;
  cursor: pointer;
  font-size: 0.875rem;
}

/* Processing Log */
.process-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.process-step .icon {
  flex-shrink: 0;
  width: 1.25rem;
  text-align: center;
}

.process-step.pending .icon { color: #9ca3af; }
.process-step.running .icon { color: #2563eb; }
.process-step.done .icon { color: #16a34a; }
.process-step.error .icon { color: #ef4444; }

/* Review Table */
.review-table {
  width: 100%;
  border-collapse: collapse;
}

.review-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem;
  border-bottom: 2px solid #e5e7eb;
}

.review-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.875rem;
  vertical-align: top;
}

.review-table tr:hover {
  background: #f9fafb;
}

.confidence-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.confidence-high {
  background: #dcfce7;
  color: #166534;
}

.confidence-medium {
  background: #fef9c3;
  color: #854d0e;
}

.confidence-low {
  background: #fee2e2;
  color: #991b1b;
}

/* Cost code select in review */
.cost-code-select {
  width: 100%;
  padding: 0.375rem 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.8rem;
  background: white;
}

.cost-code-select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* Flagged issue */
.issue-card {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border-left: 4px solid #f59e0b;
  background: #fffbeb;
  font-size: 0.875rem;
}

/* Tab styles */
.vendor-tab {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid transparent;
  transition: all 0.15s;
}

.vendor-tab:hover {
  background: #e5e7eb;
}

.vendor-tab.active {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
}

/* Loading spinner */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  animation: spin 1s linear infinite;
  display: inline-block;
}
