/* Custom Category Table Styles */
.table-container {
  max-height: 400px;
  overflow-y: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  margin-top: 20px;
  position: relative;
}

#categoriesTable {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

#categoriesTable thead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: white;
}

#categoriesTable th {
  padding: 16px;
  font-weight: 600;
  color: var(--primary-color);
  text-align: left;
  border-bottom: 2px solid var(--primary-color);
  background: white;
}

#categoriesTable td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

#categoriesTable tr:hover {
  background-color: rgba(99, 102, 241, 0.02);
}

.actions-column {
  width: 180px;
  text-align: center;
}

.action-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.edit-button, .delete-button {
  padding: 8px 16px;
  border-radius: var(--border-radius);
  font-weight: 500;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.edit-button {
  background-color: #60a5fa;
  color: white;
}

.delete-button {
  background-color: #f87171;
  color: white;
}

.edit-button:hover {
  background-color: #3b82f6;
  transform: translateY(-1px);
}

.delete-button:hover {
  background-color: #ef4444;
  transform: translateY(-1px);
}

/* No categories message styling */
.no-data {
  padding: 30px;
  text-align: center;
  color: var(--text-secondary);
  background: rgba(99, 102, 241, 0.02);
  border-radius: var(--border-radius);
  border: 1px dashed rgba(99, 102, 241, 0.2);
  margin: 20px 0;
}

.no-data p:first-child {
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-primary);
}

/* Make sure the Add Category section stands out */
.add-category-form {
  background: white;
  padding: 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
  border: 1px solid rgba(99, 102, 241, 0.1);
}