/* CSS for User List - Catalog Style */

/* Table Container */
#users-table {
  margin-top: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-family: 'Domine', Georgia, 'Times New Roman', Times, serif;
  font-size: 16px;
}

/* ========== HEADER STYLING (Dark Blue like Catalog) ========== */
#users-table .tabulator-header {
  background-color: var(--color-base) !important;
  border-bottom: none;
}

#users-table .tabulator-header .tabulator-col {
  background-color: var(--color-base) !important;
  color: white !important;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

#users-table .tabulator-header .tabulator-col:hover {
  background-color: #1a1f4a !important;
}

#users-table .tabulator-header .tabulator-col .tabulator-col-content {
  padding: 8px 16px;
  font-size: 110%;
}

/* Sort arrows - white on dark background */
#users-table .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=ascending] .tabulator-arrow {
  border-bottom-color: white;
}

#users-table .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=descending] .tabulator-arrow {
  border-top-color: white;
}

/* Header filter inputs */
#users-table .tabulator-header .tabulator-header-filter input {
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 4px 8px;
  height: 30px;
  font-size: 14px;
}

/* ========== CELL STYLING ========== */
#users-table .tabulator-row .tabulator-cell {
  padding: 8px 16px;
  border-right: 1px solid #e5e5e5;
}

/* Alternating row colors (optional - uncomment if desired) */
/* 
#users-table .tabulator-row:nth-child(even) {
  background-color: #f9f9f9;
}
*/

/* ========== FOOTER STYLING (Dark Blue like Catalog) ========== */
#users-table .tabulator-footer {
  background-color: var(--color-base) !important;
  border-top: none;
}

#users-table .tabulator-footer .tabulator-paginator label {
  color: white !important;
}

#users-table .tabulator-footer .tabulator-paginator .tabulator-page {
  padding: 8px 12px;
  background-color: white;
  color: #222;
  border: none;
  margin: 0 2px;
  border-radius: 4px;
}

#users-table .tabulator-footer .tabulator-paginator .tabulator-page:hover {
  background-color: #e0e0e0;
}

#users-table .tabulator-footer .tabulator-paginator .tabulator-page.active {
  background-color: white;
  color: #d00;
  font-weight: bold;
}

#users-table .tabulator-footer .tabulator-page-size {
  width: 4rem;
  padding: 4px;
  border-radius: 4px;
  border: none;
}

/* ========== ACTIONS COLUMN ========== */
.actions-cell {
  display: flex;
  gap: 8px;
  justify-content: center;
  width: 100%;
}

.btn.small {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  background-color: transparent;
}

/* View Button - Outline Style */
.btn.view {
  color: #14183f;
  border-color: #14183f;
}

.btn.view:hover {
  background-color: #14183f;
  color: white;
}

/* Edit Button - Outline Style */
.btn.edit {
  color: #3b82f6;
  border-color: #3b82f6;
}

.btn.edit:hover {
  background-color: #3b82f6;
  color: white;
}

/* Delete Button - Outline Style */
.btn.delete {
  color: #ef4444;
  border-color: #ef4444;
}

.btn.delete:hover {
  background-color: #ef4444;
  color: white;
}