/* Font imports removed - now using centralized font system */

/* Design system variables now imported from /shared/css/design-system.css */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-color: var(--bg-secondary);
}


/* ==========================================================================
   DATABASE SECTION
   ========================================================================== */

.database-section {
  margin-top: 3.5rem;
}

/* Enhanced mobile spacing for fixed navbar */
@media (max-width: 768px) {
  .database-section {
    margin-top: 4rem;
    padding: 1.5rem 0;
  }
}

.search-section {
  margin-bottom: 1rem;
}

.search-section h2 {
  margin-bottom: 1rem;
}

.search-container {
  position: relative;
  width: 500px;
  margin: 0 auto;
}

/* Responsive search input sizing */
@media (min-width: 769px) and (max-width: 1199px) {
  .search-container {
    width: 600px;
  }
}

@media (min-width: 1200px) {
  .search-container {
    width: 750px;
  }
}

@media (min-width: 1400px) {
  .search-container {
    width: 800px;
  }
}

.search-container i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.search-input {
  width: 100%;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  font-size: 1rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: all var(--transition-base);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.1), 0 4px 8px rgba(0, 0, 0, 0.1);
}

.search-input::placeholder {
  color: var(--text-tertiary);
}


/* ==========================================================================
   HEADING STYLES (Consistent with homepage)
   ========================================================================== */

.section-heading-main {
  color: var(--text-primary) !important;
  font-weight: 700 !important;
  font-size: clamp(1.5rem, 4vw, 2rem) !important;
  text-align: center !important;
  text-transform: uppercase !important;
  margin-bottom: 0 !important;
}

.section-heading-sub {
  color: var(--text-primary) !important;
  font-weight: 600 !important;
  font-size: clamp(1.2rem, 3vw, 1.5rem) !important;
  text-align: center !important;
  margin-bottom: var(--space-4) !important;
}

/* ==========================================================================
   LOADING STATES & ANIMATIONS
   ========================================================================== */

.table-loading {
  position: relative;
  min-height: 300px;
}

.table-loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  z-index: 10;
  backdrop-filter: blur(2px);
  border-radius: var(--radius-lg);
}

.table-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid var(--border-light);
  border-top: 3px solid var(--color-primary);
  border-radius: 50%;
  animation: tableSpinner 1s linear infinite;
  z-index: 11;
}

@keyframes tableSpinner {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-secondary);
  font-size: 0.9rem;
  z-index: 12;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }
}

/* Enhanced Button Animations */
.btn {
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn.btn-success {
  background-color: var(--color-success) !important;
  border-color: var(--color-success) !important;
  color: white !important;
}

.btn.btn-success:disabled {
  background-color: var(--color-success) !important;
  border-color: var(--color-success) !important;
  opacity: 0.8;
  cursor: not-allowed;
}

/* ==========================================================================
   DATABASE-SPECIFIC LAYOUT STYLES (Extracted from inline styles)
   ========================================================================== */

.table-container {
  background: var(--bg-primary);
  box-shadow: var(--shadow-lg);
  margin: 0;
  padding: 3rem 2rem;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.table-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.controls-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Enhanced column visibility dropdown */
#columnVisibilityDropdown {
  border: 1px solid var(--border-medium);
  background: var(--bg-primary);
  color: var(--text-primary);
}

#columnVisibilityDropdown:hover {
  background: var(--bg-secondary);
  border-color: var(--color-primary);
}

#column-visibility-menu {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  min-width: 300px;
  width: auto;
}

#column-visibility-menu .dropdown-header {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#column-visibility-menu .dropdown-item {
  padding: 0.5rem 1rem;
  color: var(--text-primary);
  transition: all var(--transition-base);
  border: none;
  background: transparent;
}

#column-visibility-menu .dropdown-item:hover {
  background: var(--bg-secondary);
  color: var(--color-primary);
}

#column-visibility-menu .dropdown-item i {
  width: 1.2rem;
  margin-right: 0.5rem;
  color: var(--color-primary);
}

#column-visibility-menu .dropdown-item:hover i {
  color: var(--color-primary);
}

/* Form check styling within column visibility menu */
#column-visibility-menu .form-check {
  padding: 0.5rem 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#column-visibility-menu .form-check-input {
  margin: 0;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
}

#column-visibility-menu .form-check-label {
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
  color: var(--text-primary);
  margin: 0;
  flex: 1;
  line-height: 1.2;
}

#column-visibility-menu .dropdown-item-text {
  padding: 0.75rem 1rem;
  margin: 0;
  background: transparent;
  display: block;
  width: 100%;
}

#column-visibility-menu .dropdown-item-text:hover {
  background-color: var(--bg-secondary);
}

#column-visibility-menu .form-check-input:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

#column-visibility-menu .form-check-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(var(--color-primary-rgb), 0.25);
}

.export-controls .dropdown-menu {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  min-width: 220px;
}

.export-controls .dropdown-item {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.export-controls .dropdown-item:hover {
  background-color: var(--color-gray-50);
  color: var(--color-primary);
}

.export-controls .dropdown-item i {
  width: 1rem;
  text-align: center;
  opacity: 0.7;
}

.export-controls .dropdown-item small {
  margin-left: auto;
  font-size: 0.75rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN & MOBILE OPTIMIZATIONS
   ========================================================================== */

/* Mobile responsive button text */
.btn-text {
  display: inline;
}

/* Keep Clear Filters text visible on mobile */
#clear-filters .btn-text {
  display: inline !important;
}

@media (max-width: 768px) {
  .page-header {
    padding: 1.5rem 0;
  }

  .dataset-stats {
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .database-section {
    padding: 1rem 0;
  }

  .table-container {
    padding: 1rem;
    border-radius: var(--radius-base);
  }

  .table-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }

  .table-controls {
    justify-content: center;
    gap: 0.75rem;
  }

  .search-container {
    max-width: 100% !important;
    margin: 0 !important;
  }

  .search-input {
    font-size: 0.9rem;
  }

  .export-controls .dropdown-menu {
    min-width: 200px;
  }

  #column-visibility-menu {
    min-width: 250px;
    font-size: 0.85rem;
  }

  #column-visibility-menu .form-check-label {
    font-size: 0.85rem;
  }

  .btn-text {
    display: none;
  }

  /* Ensure all control buttons behave consistently */
  .table-controls .btn {
    min-width: 44px;
    width: auto;
    flex: 0 0 auto;
  }

  /* Columns button should also hide text on mobile */
  #columnVisibilityDropdown .btn-text {
    display: none;
  }

  /* Keep Clear Filters text visible even on mobile */
  #clear-filters .btn-text {
    display: inline !important;
  }

  .btn {
    min-width: 44px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .dataset-stats {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .stat-item {
    flex-direction: row;
    gap: 0.75rem;
  }

  .stat-number {
    font-size: 1.25rem;
  }

  .table-container {
    padding: 0.75rem;
    margin: 0 -0.5rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .controls-group {
    flex: 0 0 auto;
  }

  .export-controls {
    flex: 0 0 auto;
  }

  .export-controls .dropdown button {
    min-width: 44px;
    width: auto;
    justify-content: center;
  }
}

/* Tabulator table container */
#database-table {
  margin-top: 1rem;
}

/* ==========================================================================
   PRIORITY 1: ENHANCED TABULATOR STYLING
   ========================================================================== */

/* Enhanced header menu styling */
.tabulator .tabulator-header .tabulator-col .tabulator-header-menu-button {
  opacity: 0.6;
  transition: opacity var(--transition-base);
}

.tabulator .tabulator-header .tabulator-col:hover .tabulator-header-menu-button {
  opacity: 1;
}

/* Column resize guide */
.tabulator .tabulator-col-resize-guide {
  background: var(--color-primary);
  opacity: 0.8;
}

/* Enhanced header filters */
.tabulator .tabulator-header-filter input {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.375rem 0.75rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: all var(--transition-base);
}

.tabulator .tabulator-header-filter input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(var(--color-primary-rgb), 0.1);
  outline: none;
}

.tabulator .tabulator-header-filter select {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.375rem 0.75rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: all var(--transition-base);
}

.tabulator .tabulator-header-filter select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(var(--color-primary-rgb), 0.1);
  outline: none;
}

/* Enhanced row selection styling */
.tabulator .tabulator-row.tabulator-selected {
  background: rgba(var(--color-primary-rgb), 0.1);
  border-left: 3px solid var(--color-primary);
}

.tabulator .tabulator-row.tabulator-selected:hover {
  background: rgba(var(--color-primary-rgb), 0.15);
}

/* Better row hover effects */
.tabulator .tabulator-row:hover {
  background: var(--bg-secondary);
  transition: background-color var(--transition-base);
}

/* Frozen column styling */
.tabulator .tabulator-col.tabulator-frozen {
  background: rgba(var(--bg-secondary), 0.8);
  backdrop-filter: blur(8px);
  border-right: 2px solid var(--border-medium);
}

.tabulator .tabulator-col.tabulator-frozen.tabulator-frozen-left {
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
}

/* Enhanced pagination styling */
.tabulator .tabulator-footer .tabulator-paginator {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-light);
  padding: 1rem;
}

.tabulator .tabulator-footer .tabulator-page {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  margin: 0 0.125rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.tabulator .tabulator-footer .tabulator-page:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.tabulator .tabulator-footer .tabulator-page.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* Enhanced sort arrows */
.tabulator .tabulator-header .tabulator-col .tabulator-arrow {
  border-color: var(--color-primary);
}

/* Responsive table enhancements */
.tabulator .tabulator-responsive-collapse {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: 0.75rem;
}

.tabulator .tabulator-responsive-collapse-toggle {
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.tabulator .tabulator-responsive-collapse-toggle:hover {
  background: var(--color-primary-dark);
  transform: scale(1.05);
}

/* Number formatting improvements */
.tabulator .tabulator-cell[data-type="number"] {
  text-align: right;
  font-feature-settings: 'tnum' 1;
}

/* Loading state for individual cells */
.tabulator .tabulator-cell.tabulator-loading {
  background: linear-gradient(90deg, transparent, rgba(var(--color-primary-rgb), 0.1), transparent);
  background-size: 200% 100%;
  animation: cellShimmer 1.5s infinite;
}

@keyframes cellShimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

/* Loading overlay styles */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(248, 250, 252, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--color-gray-200);
  border-top: 3px solid var(--color-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Modern Table Styling - Enhanced for Better Readability */
.table-responsive {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-base);
  margin: 1rem 0.75rem;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid var(--border-light);
}

.table {
  margin: 0;
  font-size: 0.9rem;
}

.table thead th {
  background: var(--color-gray-50);
  border-bottom: 1px solid var(--color-gray-200);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1.25rem 1rem;
  white-space: nowrap;
  position: relative;
}

.table thead th:first-child {
  padding-left: 1.5rem;
}

.table thead th:last-child {
  padding-right: 1.5rem;
}

.table tbody tr {
  transition: all var(--transition-fast);
  border: none;
}

.table tbody tr:hover {
  background-color: var(--color-gray-50);
  transform: none;
}

.table tbody tr:nth-child(even) {
  background-color: rgba(248, 250, 252, 0.5);
}

.table tbody tr:nth-child(even):hover {
  background-color: var(--color-gray-100);
}

.table tbody td {
  color: var(--text-secondary);
  padding: 1rem;
  border-bottom: 1px solid var(--color-gray-100);
  border-top: none;
  vertical-align: middle;
  line-height: 1.5;
}

.table tbody td:first-child {
  padding-left: 1.5rem;
  font-weight: 500;
}

.table tbody td:last-child {
  padding-right: 1.5rem;
}

/* Bootstrap Table Controls Modernization */
.bootstrap-table .fixed-table-toolbar {
  padding: 1.5rem 1rem 1rem 1rem;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--color-gray-100);
}

.bootstrap-table .fixed-table-toolbar .bs-bars {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.bootstrap-table .fixed-table-toolbar .search {
  display: flex;
  align-items: center;
}

.bootstrap-table .fixed-table-toolbar .columns {
  display: flex;
  align-items: center;
}

.bootstrap-table .fixed-table-toolbar .search input {
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-base);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
  background: var(--bg-primary);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  height: 1.25rem !important;
  line-height: 1.2;
}

.bootstrap-table .fixed-table-toolbar .search input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Bootstrap Table button overrides - inherits from design-system.css */
.bootstrap-table button,
.bootstrap-table .btn,
.bootstrap-table .dropdown-toggle,
.modal button,
.modal .btn {
  height: 2.25rem !important;
  min-height: 2.25rem !important;
  line-height: 1 !important;
  margin: 0 !important;
}

/* Fix icon sizing in buttons */
.bootstrap-table button i,
.bootstrap-table button .fa,
.bootstrap-table button .fas,
.bootstrap-table button .far,
.bootstrap-table button .fab,
.modal button i,
.modal .btn i {
  font-size: 0.875rem;
  line-height: 1;
  vertical-align: middle;
}

.bootstrap-table .fixed-table-pagination {
  padding: 1rem;
  background: var(--bg-primary);
  border-top: 1px solid var(--color-gray-100);
}

.bootstrap-table .fixed-table-pagination .pagination {
  margin: 0;
  justify-content: center;
}

.bootstrap-table .fixed-table-pagination .page-link {
  border: 1px solid var(--color-gray-200);
  color: var(--text-secondary);
  background: var(--bg-primary);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.bootstrap-table .fixed-table-pagination .page-link:hover {
  background: var(--color-gray-50);
  border-color: var(--color-gray-300);
  color: var(--text-primary);
}

.bootstrap-table .fixed-table-pagination .page-item.active .page-link {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}



/* Modern Loading States - Skeleton Loading */
.table-loading {
  position: relative;
  min-height: 400px;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  margin: 1rem 0.75rem;
  padding: 1rem;
  border: 1px solid var(--border-light);
}

.loading-skeleton-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skeleton-header {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1rem;
  background: var(--color-gray-50);
  border-radius: var(--radius-base);
}

.skeleton-header-item {
  height: 1rem;
  background: linear-gradient(90deg, var(--color-gray-200) 25%, var(--color-gray-100) 50%, var(--color-gray-200) 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
  border-radius: var(--radius-xs);
}

.skeleton-header-item:nth-child(1) {
  width: 15%;
}

.skeleton-header-item:nth-child(2) {
  width: 20%;
}

.skeleton-header-item:nth-child(3) {
  width: 18%;
}

.skeleton-header-item:nth-child(4) {
  width: 25%;
}

.skeleton-header-item:nth-child(5) {
  width: 12%;
}

.skeleton-row {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--color-gray-100);
}

.skeleton-cell {
  height: 1.125rem;
  background: linear-gradient(90deg, var(--color-gray-100) 25%, var(--color-gray-50) 50%, var(--color-gray-100) 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
  border-radius: var(--radius-xs);
}

.skeleton-row .skeleton-cell:nth-child(1) {
  width: 15%;
}

.skeleton-row .skeleton-cell:nth-child(2) {
  width: 20%;
}

.skeleton-row .skeleton-cell:nth-child(3) {
  width: 18%;
}

.skeleton-row .skeleton-cell:nth-child(4) {
  width: 25%;
}

.skeleton-row .skeleton-cell:nth-child(5) {
  width: 12%;
}

@keyframes loading-shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

/* Fallback spinner for quick loading states */
.loading-spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--color-gray-200);
  border-top: 3px solid var(--color-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Table skeleton loading */
.table-skeleton {
  width: 100%;
  border-collapse: collapse;
}

.table-skeleton th,
.table-skeleton td {
  padding: 1rem 0.75rem;
  border-bottom: 1px solid var(--color-gray-100);
}

.table-skeleton-row {
  background: linear-gradient(90deg, var(--color-gray-200) 25%, var(--color-gray-100) 50%, var(--color-gray-200) 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
  height: 1rem;
  border-radius: 4px;
}

@keyframes loading-shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

/* Error states */
.error-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-secondary);
}

.error-icon {
  font-size: 3rem;
  color: var(--color-error);
  margin-bottom: 1rem;
}

.error-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.error-message {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.retry-button {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.retry-button:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

/* Accessibility Enhancements */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  font-weight: 500;
  z-index: 1100;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
  color: var(--color-white);
  text-decoration: none;
}

/* Enhanced Focus Indicators */
.btn:focus,
button:focus,
input:focus,
select:focus,
.table tbody tr:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(190, 15, 46, 0.1);
}

/* Table Row Focus Enhancement */
.table tbody tr {
  transition: all 0.2s ease;
  cursor: pointer;
}

.table tbody tr:focus {
  background-color: rgba(190, 15, 46, 0.1);
  transform: scale(1.002);
}

/* Screen Reader Support */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile navigation styles removed - now using unified navigation.css */

/* ==========================================================================
   SEARCH RESULTS SUMMARY
   ========================================================================== */

.search-results-summary {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-base);
  padding: 1rem 1.25rem;
  transition: all var(--transition-base);
  opacity: 1;
  visibility: visible;
  max-height: 120px;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-results-summary.hidden {
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  padding: 0 1.25rem;
  margin: 0;
  border: none;
}

.search-results-summary.active {
  background: rgba(var(--color-primary-rgb, 71, 85, 105), 0.03);
  border-color: var(--color-primary);
  border-left-width: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.summary-header {
  margin-bottom: 0.75rem;
}

.results-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex: 1;
}

.results-count {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.results-count .highlight {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.clear-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--color-error);
  color: var(--color-white);
  border: none;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.clear-all-btn:hover {
  background: var(--color-error-dark, #dc2626);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.clear-all-btn:focus {
  outline: 2px solid var(--color-error);
  outline-offset: 2px;
}

.clear-all-btn i {
  font-size: 0.7rem;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  min-height: 1.5rem;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--color-gray-100);
  color: var(--text-secondary);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-base);
  font-size: 0.75rem;
  font-weight: 400;
  border: 1px solid var(--color-gray-200);
  cursor: default;
  position: relative;
  max-width: 200px;
  overflow: hidden;
  transition: all var(--transition-base);
}

.filter-tag:hover {
  background: var(--color-gray-200);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-tag .filter-label {
  color: var(--text-tertiary);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.filter-tag .filter-value {
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.filter-tag .remove-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-error);
  color: var(--color-white);
  font-size: 0.6rem;
  cursor: pointer;
  transition: all var(--transition-base);
  margin-left: 0.25rem;
  flex-shrink: 0;
}

.filter-tag .remove-filter:hover {
  background: var(--color-error-dark, #dc2626);
  transform: scale(1.1);
}



/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .search-results-summary {
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    max-height: 100px;
  }

  .summary-header {
    margin-bottom: 0.5rem;
  }

  .results-info {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }

  .results-count {
    text-align: center;
    font-size: 0.8rem;
  }

  .clear-all-btn {
    align-self: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
  }

  .active-filters {
    gap: 0.375rem;
    justify-content: center;
  }

  .filter-tag {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    max-width: 150px;
  }

  .filter-tag .filter-value {
    max-width: 80px;
  }

  .filter-tag .remove-filter {
    width: 12px;
    height: 12px;
    font-size: 0.55rem;
  }
}

/* ==========================================================================
   ENHANCED PAGINATION FOOTER
   ========================================================================== */

.pagination-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pagination-info.filtered {
  background: linear-gradient(135deg, var(--bg-accent) 0%, var(--bg-primary) 100%);
  border-color: var(--color-primary);
  color: var(--text-primary);
}

.filter-results i {
  color: var(--color-primary);
  margin-right: 0.25rem;
}

.total-results i {
  color: var(--text-tertiary);
  margin-right: 0.25rem;
}

.pagination-info strong {
  color: var(--color-primary);
  font-weight: 600;
}

.pagination-info small {
  opacity: 0.7;
  font-size: 0.8rem;
  margin-left: 0.25rem;
}

/* Tabulator pagination container styling */
.tabulator-footer {
  background: var(--bg-secondary) !important;
  border-top: 1px solid var(--border-light) !important;
  padding: 0.5rem !important;
}

.tabulator-paginator {
  background: transparent !important;
}

/* Mobile responsive pagination info */
@media (max-width: 768px) {
  .pagination-info {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    margin: 0.25rem;
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
  }

  .pagination-info small {
    display: block;
    margin-left: 0;
    margin-top: 0.25rem;
  }
}