.data-table-container {
  width: 100%;
  overflow-x: auto;
  position: relative;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.data-table thead {
  background: #f9fafb;
  border-bottom: 2px solid #e5e7eb;
}

.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  color: #374151;
  white-space: nowrap;
}

.data-table-sortable {
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s;
}

.data-table-sortable:hover {
  background: #f3f4f6;
}

.data-table-header-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.data-table-sort-icon {
  color: #9ca3af;
  font-size: 12px;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
  color: #1f2937;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* Striped rows */
.data-table-striped tbody tr:nth-child(even) {
  background: #f9fafb;
}

/* Hoverable rows */
.data-table-hoverable tbody tr {
  transition: background-color 0.15s;
}

.data-table-hoverable tbody tr:hover {
  background: #f3f4f6;
}

/* Clickable rows */
.data-table-row-clickable {
  cursor: pointer;
}

/* Selected rows */
.data-table-row-selected {
  background: #dbeafe !important;
}

/* Alignment */
.data-table-align-left {
  text-align: left;
}

.data-table-align-center {
  text-align: center;
}

.data-table-align-right {
  text-align: right;
}

/* Select column */
.data-table-select-col {
  width: 40px;
  text-align: center;
}

.data-table-select-col input[type="checkbox"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
}

/* Actions column */
.data-table-actions-col {
  width: 120px;
  text-align: right;
}

/* Loading state */
.data-table-loading-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e5e7eb;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.data-table-loading-overlay p {
  margin-top: 16px;
  color: #6b7280;
  font-size: 14px;
}

/* Empty state */
.data-table-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.data-table-empty p {
  color: #6b7280;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .data-table th,
  .data-table td {
    padding: 8px 12px;
    font-size: 13px;
  }

  .data-table-header-content {
    gap: 4px;
  }
}
