/* Import History Page Styles */

.import-history-container {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.import-history-container .header {
  margin-bottom: 2rem;
}

.import-history-container h1 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text, #0f172a);
  margin-bottom: 0.5rem;
}

.import-history-container .subtitle {
  font-size: 1rem;
  color: var(--muted, #6b7280);
}

/* Empty State */

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background-color: var(--bg-secondary, #f9fafb);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 0.5rem;
}

.empty-state-content {
  max-width: 400px;
  margin: 0 auto;
}

.empty-state-message {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text, #0f172a);
  margin-bottom: 0.5rem;
}

.empty-state-description {
  font-size: 1rem;
  color: var(--muted, #6b7280);
  margin-bottom: 1.5rem;
}

.empty-state .btn {
  display: inline-block;
}

/* Batch List */

.import-batch-list {
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: var(--bg, #ffffff);
}

.batch-list-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.5fr;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  background-color: var(--bg-secondary, #f9fafb);
  border-bottom: 1px solid var(--border, #e5e7eb);
  font-weight: 600;
  color: var(--text, #0f172a);
  font-size: 0.875rem;
}

.batch-list-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.5fr;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border, #e5e7eb);
  align-items: center;
}

.batch-list-row:last-child {
  border-bottom: none;
}

.batch-list-row:hover {
  background-color: var(--bg-secondary, #f9fafb);
}

.batch-date-col {
  display: flex;
  flex-direction: column;
}

.batch-date {
  font-size: 0.95rem;
  color: var(--text, #0f172a);
  font-weight: 500;
}

.batch-counts-col {
  display: flex;
  flex-direction: column;
}

.batch-count {
  font-size: 0.95rem;
  color: var(--text, #0f172a);
}

.batch-actions-col {
  display: flex;
  justify-content: flex-end;
}

.action-links {
  display: flex;
  gap: 1rem;
}

.action-link {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.action-link-details {
  background-color: var(--primary, #3b82f6);
  color: white;
  border-color: var(--primary, #3b82f6);
}

.action-link-details:hover {
  background-color: var(--primary-600, #1d4ed8);
  border-color: var(--primary-600, #1d4ed8);
}

.action-link-delete {
  background-color: transparent;
  color: var(--danger, #ef4444);
  border-color: var(--danger, #ef4444);
}

.action-link-delete:hover {
  background-color: #fecaca;
  border-color: var(--danger, #ef4444);
}

/* Pagination */

.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem;
  border-top: 1px solid var(--border, #e5e7eb);
  background-color: var(--bg-secondary, #f9fafb);
}

.pagination-link {
  padding: 0.5rem 1rem;
  background-color: var(--primary, #3b82f6);
  color: white;
  text-decoration: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.pagination-link:hover {
  background-color: var(--primary-600, #1d4ed8);
}

.pagination-info {
  color: var(--muted, #6b7280);
  font-size: 0.875rem;
}

/* Responsive Design */

@media (max-width: 768px) {
  .import-history-container {
    padding: 1rem;
  }

  .import-history-container h1 {
    font-size: 1.5rem;
  }

  .batch-list-header {
    display: none;
  }

  .batch-list-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .batch-date-col,
  .batch-counts-col {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem;
  }

  .batch-date-col::before {
    content: "Date";
    font-weight: 600;
    color: var(--text, #0f172a);
  }

  .batch-counts-col::before {
    font-weight: 600;
    color: var(--text, #0f172a);
  }

  .batch-counts-col:nth-of-type(2)::before {
    content: "Contacts";
  }

  .batch-counts-col:nth-of-type(3)::before {
    content: "Companies";
  }

  .batch-actions-col {
    grid-column: 1;
    border-top: 1px solid var(--border, #e5e7eb);
    padding-top: 1rem;
    margin-top: 1rem;
    justify-content: flex-start;
  }

  .action-links {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  .action-link {
    width: 100%;
    text-align: center;
  }

  .pagination-controls {
    flex-direction: column;
    gap: 1rem;
  }

  .pagination-link {
    width: 100%;
  }
}
