.font-heading {
  font-family: "Space Grotesk", sans-serif;
}

.font-body {
  font-family: "DM Sans", sans-serif;
}

:root {
  --site-bg-image: url('https://media.wpa.church/wp-content/uploads/20220331113626/pexels-artem-podrez-4492129-1300x450.jpeg');
}

.site-background {
  background-image: var(--site-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Custom animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 8px; /* Added height for horizontal scrollbars */
}

::-webkit-scrollbar-track {
  background: #f0f9ff;
}

::-webkit-scrollbar-thumb {
  background: #0ea5e9;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0284c7;
}

/* Filter button styles */
.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  transition: all 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
  color: #0ea5e9;
  background: #f0f9ff;
  border-color: #0ea5e9;
}

/* Utility classes */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Enhanced Error & Tooltip styles */
.error-accent {
  border-left-width: 4px;
  border-left-color: #ef4444; /* red-500 */
}

.tooltip-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: help;
}

.hint-pulse {
  animation: hintPulse 2s infinite;
}

@keyframes hintPulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

.tooltip-text {
  visibility: hidden;
  position: absolute;
  bottom: 160%;
  right: -10px;
  background-color: rgba(31, 41, 55, 0.95);
  backdrop-filter: blur(8px);
  color: #ffffff;
  text-align: center;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  width: 260px;
  z-index: 100;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  transition: all 0.25s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 14px;
  border-width: 8px;
  border-style: solid;
  border-color: rgba(31, 41, 55, 0.95) transparent transparent transparent;
}

/* Sticky Column Styles */
.sticky-column {
  position: sticky !important;
  left: 0 !important;
  z-index: 20 !important;
  background-color: white !important;
  min-width: 180px !important;
  max-width: 180px !important;
  width: 180px !important;
}

thead .sticky-column {
  z-index: 30 !important;
  background-color: #dbeafe !important;
}

.sticky-column::after {
  content: '';
  position: absolute;
  top: 0;
  right: -5px;
  bottom: 0;
  width: 5px;
  pointer-events: none;
  background: linear-gradient(to right, rgba(0,0,0,0.05), transparent);
}

/* Table Container Fade Effect */
.table-container-wrapper {
  position: relative;
}

.table-container-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 30px;
  background: linear-gradient(to left, rgba(255,255,255,0.8), transparent);
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.3s;
}

.table-container-wrapper.has-overflow::after {
  opacity: 1;
}

#topScrollContainer {
  height: 6px;
  overflow-x: auto;
  overflow-y: hidden;
}

#topScrollInner {
  height: 1px;
}

/* Scroll Hint Styles */
.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0369a1;
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
  margin-bottom: 0.05rem;
  animation: bounceRight 2s infinite;
  transition: all 0.3s ease;
}

.scroll-hint svg {
  width: 9px;
  height: 9px;
}

.scroll-hint.hidden {
  display: none;
}

@keyframes bounceRight {
  0%, 20%, 50%, 80%, 100% { transform: translateX(0); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(3px); }
}

.job-title-cell {
  width: 180px !important;
  min-width: 180px !important;
  max-width: 180px !important;
  white-space: normal !important;
  word-wrap: break-word;
}
