/**
 * Archived Contacts View Styles
 * Requirements: 16.1, 16.2, 16.3
 */

.archived-contacts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 10px;
}

.archived-contacts-header h2 {
  margin: 0;
  font-size: 24px;
  color: var(--text-primary, #1f2937);
}

.archived-contacts-actions {
  display: flex;
  gap: 10px;
}

.btn-bulk-restore {
  padding: 8px 16px;
  background-color: var(--primary-color, #3b82f6);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.btn-bulk-restore:hover:not(:disabled) {
  background-color: var(--primary-hover, #2563eb);
}

.btn-bulk-restore:disabled {
  background-color: #d1d5db;
  cursor: not-allowed;
}

.archived-contacts-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
  background-color: white;
}

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

.archived-contacts-table thead {
  background-color: var(--table-header-bg, #f9fafb);
  border-bottom: 2px solid var(--border-color, #e5e7eb);
}

.archived-contacts-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary, #6b7280);
  white-space: nowrap;
}

.archived-contacts-table tbody tr {
  border-bottom: 1px solid var(--border-color, #e5e7eb);
  transition: background-color 0.15s;
}

.archived-contacts-table tbody tr:hover {
  background-color: var(--table-row-hover, #f9fafb);
}

.archived-contacts-table tbody tr.empty-state:hover {
  background-color: transparent;
}

.archived-contacts-table td {
  padding: 12px 16px;
  color: var(--text-primary, #1f2937);
}

.archived-contacts-table .btn-restore {
  padding: 6px 12px;
  background-color: var(--success-color, #10b981);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: background-color 0.2s;
}

.archived-contacts-table .btn-restore:hover {
  background-color: var(--success-hover, #059669);
}

.select-all-checkbox,
.contact-checkbox {
  cursor: pointer;
  width: 16px;
  height: 16px;
}

.select-all-checkbox:disabled,
.contact-checkbox:disabled {
  cursor: not-allowed;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .archived-contacts-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .archived-contacts-table {
    font-size: 12px;
  }

  .archived-contacts-table th,
  .archived-contacts-table td {
    padding: 8px 12px;
  }

  .btn-bulk-restore {
    width: 100%;
  }
}
