/* Styles for the Livewire searchable-select component
   This project doesn't include Tailwind/Bootstrap. The classes used in the
   component's blade are implemented here with equivalent minimal styles. */

/* Layout helpers */
.inline { display: inline-block; vertical-align: top; }
.block { display: block; }
.relative { position: relative; }
.absolute { position: absolute; }
.w-full { width: 100%; }
.overflow-auto { overflow: auto; }
.cursor-pointer { cursor: pointer; }
.cursor-pointer:hover { background-color: #e0e7ff; }

/*    !* Spacing *!*/
/*.mt-1 { margin-top: 0.25rem; }*/
/*.m-5 { margin: 3rem; }*/
/*.px-4 { padding-left: 1rem; padding-right: 1rem; }*/
/*.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }*/

/*!* Grouping *!*/
/*.form-group { margin-bottom: 1rem; }*/

/*!* Typography *!*/
/*.font-medium { font-weight: 500; }*/
/*!* Tailwind gray-700 *!*/
/*.text-gray-700 { color: #374151; }*/
/*!* Small text (Tailwind sm:text-sm) *!*/
/*[class~="sm:text-sm"] { font-size: 0.875rem; line-height: 1.25rem; }*/

/*!* Colors & backgrounds *!*/
/*.bg-white { background-color: #ffffff; }*/
/*.border { border-width: 1px; border-style: solid; border-color: #e5e7eb; }*/
/*!* Tailwind gray-300 *!*/
/*.border-gray-300 { border-color: #d1d5db; }*/
/*!* Tailwind gray-200 *!*/
/*.divide-gray-200 { --divide-color: #e5e7eb; }*/
/* Hover indigo-100 */
[class~="hover:bg-indigo-100"]:hover { background-color: rgba(99, 102, 241, 0.45); }

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

/* Shadows */
/* Tailwind shadow-sm */
/*.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); }*/
/* Tailwind shadow-lg */
/*.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); }*/

/* Max heights */
/* Tailwind max-h-60 => 15rem */
/*.max-h-60 { max-height: 15rem; }*/

/* Inputs (mimic Tailwind/Bootstrap form control look) */
.form-select {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5rem;
  color: #111827; /* gray-900 */
  background-color: #ffffff;
  background-clip: padding-box;
  border: 1px solid #d1d5db; /* gray-300 */
  border-radius: 0.375rem; /* rounded-md */
  transition: border-color .2s ease, box-shadow .2s ease;
}

/* Focus styles encoded via utility class tokens */
/* focus:border-indigo-500 */
[class~="focus:border-indigo-500"]:focus { border-color: #6366f1; }
/* focus:ring-indigo-500 (approximate Tailwind ring) */
[class~="focus:ring-indigo-500"]:focus {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.45);
  outline: none;
}

/* Divider between list items: ul.divide-y > li + li */
ul.divide-y > li + li { border-top: 1px solid var(--divide-color, #e5e7eb); }

/* List base color if divide color not set explicitly */
ul.divide-y.divide-gray-200 > li + li { border-top-color: #e5e7eb; }

/* Utility: padding and hover are applied on list items already via classes above */

/* Spinner (Bootstrap-like .spinner-border) */
.spinner-border {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  vertical-align: text-bottom;
  border: 0.25em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
  color: #6c757d; /* muted */
}

@keyframes spinner-border {
  to { transform: rotate(360deg); }
}

/* Flex helpers used around spinner */
/*.justify-content-center { display: flex; justify-content: center; }*/

/* Z-index for dropdown is inline style in Blade; no extra rules here */

/* Ensure absolute dropdown panels inside relative containers span the input width */
.relative > .absolute.w-full { left: 0; right: 0; }

/* Remove default list bullets and spacing for results list */
ul.searchable-select-results {
  list-style: none;
  margin: 0;
  padding: 0;
}
