/* Ghana Gov Portal — Custom Styles */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Line clamp utility */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Custom scrollbar for sidebar */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 107, 63, 0.3);
  border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 107, 63, 0.6);
}

/* Hide scrollbar while keeping scroll (used for dropdown menus and similar) */
.scrollbar-hide {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE / old Edge */
}
.scrollbar-hide::-webkit-scrollbar {
  display: none; /* Chrome / Safari / Edge */
}

/* Status badge colors */
.badge-pending {
  @apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-yellow-100 text-yellow-800;
}
.badge-in-review {
  @apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-100 text-blue-800;
}
.badge-approved {
  @apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-800;
}
.badge-rejected {
  @apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-red-100 text-red-800;
}
.badge-ready {
  @apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-purple-100 text-purple-800;
}

/* HTMX page transition */
.htmx-swapping {
  opacity: 0;
  transition: opacity 0.15s ease-out;
}

/* Animated gradient text */
.gradient-text {
  background: linear-gradient(135deg, #006B3F, #FCD116);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Focus ring override for consistency */
*:focus-visible {
  outline: 2px solid #006B3F;
  outline-offset: 2px;
}
