/* Add File Modal */

.add-file-modal .modal-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.add-file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.add-file-card {
  background: white;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.add-file-card .card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.add-file-summary-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.add-file-summary-stat {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  background: #f8fafc;
}

.add-file-summary-label {
  font-size: 12px;
  text-transform: uppercase;
  color: #6b7280;
  letter-spacing: 0.05em;
}

.add-file-summary-value {
  font-size: 24px;
  font-weight: 600;
  color: #111827;
}

.add-file-dropzone {
  border: 2px dashed #c7d2fe;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  background: #f5f7ff;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.add-file-dropzone.active {
  border-color: #6366f1;
  background: #eef2ff;
}

.add-file-dropzone h3 {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}

.add-file-dropzone p {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 16px;
}

.add-file-selected-card {
  background: white;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.add-file-selected-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.add-file-selected-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.add-file-selected-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.add-file-table-container {
  max-height: 320px;
  overflow: auto;
}

.add-file-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.add-file-table th,
.add-file-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
}

.add-file-table th {
  background: #f8fafc;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.add-file-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.add-file-status-chip.ready {
  background: #dcfce7;
  color: #166534;
}

.add-file-status-chip.pending {
  background: #fef3c7;
  color: #92400e;
}

.add-file-status-chip.error {
  background: #fee2e2;
  color: #b91c1c;
}

.add-file-status-chip.available {
  background: #dbeafe;
  color: #1d4ed8;
}

.add-file-source-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 12px;
}

.add-file-source-chip.new {
  background: #e0f2fe;
  color: #0369a1;
}

.add-file-source-chip.existing {
  background: #e4e4e7;
  color: #3f3f46;
}

.add-file-source-chip.customer {
  background: #ede9fe;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.add-file-empty {
  padding: 32px 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 15px;
}

@media (max-width: 640px) {
  .add-file-grid {
    grid-template-columns: 1fr;
  }

  .add-file-selected-actions {
    width: 100%;
  }

  .add-file-selected-actions button {
    flex: 1;
  }
}
