/* Tailwind-like utility classes for icon sizing */
.icon, .h-5, .w-5 {
  height: 1.25rem; /* h-5 equivalent */
  width: 1.25rem; /* w-5 equivalent */
}

.icon-sm, .h-4, .w-4 {
  height: 1rem; /* h-4 equivalent */
  width: 1rem; /* w-4 equivalent */
}

.icon-xs, .h-3, .w-3 {
  height: 0.75rem; /* h-3 equivalent */
  width: 0.75rem; /* w-3 equivalent */
}

.icon-lg, .h-6, .w-6 {
  height: 1.5rem; /* h-6 equivalent */
  width: 1.5rem; /* w-6 equivalent */
}

/* Special case for icons within buttons */
.btn .h-5, .btn .w-5, 
.btn .h-4, .btn .w-4, 
.btn .h-3, .btn .w-3, 
.btn .h-6, .btn .w-6,
.btn .icon, .btn .icon-sm, .btn .icon-xs, .btn .icon-lg,
.dropdown-item .bi, .nav-link .bi {
  display: inline-block;
  vertical-align: -0.125em;
}

/* Flex and Grid utility classes */
.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.col-span-2 {
  grid-column: span 2 / span 2;
}

/* Spacing utilities */
.container {
  width: 100%;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.ml-1 {
  margin-left: 0.25rem;
}

.mr-1 {
  margin-right: 0.25rem;
}

.mr-1\.5 {
  margin-right: 0.375rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.space-x-1 > * + * {
  margin-left: 0.25rem;
}

.space-x-2 > * + * {
  margin-left: 0.5rem;
}

.space-x-4 > * + * {
  margin-left: 1rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.p-6 {
  padding: 1.5rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-2\.5 {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.pt-6 {
  padding-top: 1.5rem;
}

.pb-2 {
  padding-bottom: 0.5rem;
}

/* Gap utilities */
.gap-x-6 {
  column-gap: 1.5rem;
}

.gap-x-8 {
  column-gap: 2rem;
}

.gap-y-4 {
  row-gap: 1rem;
}

.gap-y-6 {
  row-gap: 1.5rem;
}

/* Transition utilities */
.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke,
    opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Text utilities */
.text-primary {
  color: #6366f1 !important;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

/* Text color utilities */
.text-gray-500 {
  color: #6b7280;
}

.text-gray-600 {
  color: #4b5563;
}

.text-gray-700 {
  color: #374151;
}

.text-gray-800 {
  color: #1f2937;
}

.text-indigo-500 {
  color: #6366f1;
}

.text-indigo-600 {
  color: #4f46e5;
}

.text-indigo-700 {
  color: #4338ca;
}

.text-indigo-800 {
  color: #3730a3;
}

/* Font utilities */
.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

/* Background gradient utilities */
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-indigo-50 {
  --tw-gradient-from: #eef2ff;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(238, 242, 255, 0));
}

.from-indigo-600 {
  --tw-gradient-from: #4f46e5;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(79, 70, 229, 0));
}

.from-indigo-700 {
  --tw-gradient-from: #4338ca;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(67, 56, 202, 0));
}

.to-indigo-100 {
  --tw-gradient-to: #e0e7ff;
}

.to-indigo-700 {
  --tw-gradient-to: #4338ca;
}

.to-indigo-800 {
  --tw-gradient-to: #3730a3;
}

.to-purple-500 {
  --tw-gradient-to: #a855f7;
}

/* Text gradient */
.text-transparent {
  color: transparent;
}

.bg-clip-text {
  -webkit-background-clip: text;
  background-clip: text;
}

/* Size adjustments for bootstrap icons */
.bi {
  display: inline-block;
  vertical-align: -0.125em;
}

.nav-link .bi {
  width: 1rem;
  height: 1rem;
  margin-right: 0.25rem;
}

.dropdown-item .bi {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
}

/* Card improvements */
.card {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  border-radius: 0.5rem;
  overflow: hidden;
}

.card-body {
  padding: 1.5rem;
}

/* Button improvements */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon svg,
.btn-icon .bi {
  margin-right: 0.375rem;
}

.btn-icon-only {
  padding: 0.375rem;
}

.btn-icon-only svg,
.btn-icon-only .bi {
  margin-right: 0;
}

/* Border utilities */
.border {
  border-width: 1px;
  border-style: solid;
}

.border-gray-100 {
  border-color: #f3f4f6;
}

.border-gray-200 {
  border-color: #e5e7eb;
}

.border-gray-300 {
  border-color: #d1d5db;
}

.border-indigo-200 {
  border-color: #c7d2fe;
}

.border-b {
  border-bottom-width: 1px;
  border-bottom-style: solid;
}

.border-t {
  border-top-width: 1px;
  border-top-style: solid;
}

.rounded-md {
  border-radius: 0.375rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-full {
  border-radius: 9999px;
}

/* Background color utilities */
.bg-white {
  background-color: #ffffff;
}

.bg-gray-50 {
  background-color: #f9fafb;
}

.bg-indigo-50 {
  background-color: #eef2ff;
}

.bg-indigo-100 {
  background-color: #e0e7ff;
}

.hover\:bg-gray-50:hover {
  background-color: #f9fafb;
}

.hover\:bg-indigo-100:hover {
  background-color: #e0e7ff;
}

.hover\:bg-red-600:hover {
  background-color: #dc2626;
}

/* Text color utilities */
.text-red-500 {
  color: #ef4444;
}

.text-red-600 {
  color: #dc2626;
}

/* Shadow utilities */
.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Table utilities */
.divide-y > * + * {
  border-top-width: 1px;
  border-top-style: solid;
}

.divide-gray-200 > * + * {
  border-color: #e5e7eb;
}

.min-w-full {
  min-width: 100%;
}

/* Width utilities */
.w-full {
  width: 100%;
}

.w-24 {
  width: 6rem;
}

.w-32 {
  width: 8rem;
}

.w-16 {
  width: 4rem;
}

/* Hover utilities */
.group:hover .group-hover\:\-translate-x-1 {
  transform: translateX(-0.25rem);
}

/* Transition utilities */
.transition-all {
  transition-property: all;
}

.duration-200 {
  transition-duration: 200ms;
}

.transition-transform {
  transition-property: transform;
}