/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Typography */

header [role="heading"] {
  text-align: center;
}

/* Pagination */
.pagination-container {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.pagination ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination ul li {
  margin: 0 0.25rem;
}

.pagination ul li span.disabled {
  opacity: 0.5;
  color: var(--muted-color);
}

.pagination ul li span.active {
  font-weight: bold;
  color: var(--primary);
  text-decoration: underline;
}

/* [Pagination] */

/* Colors */
.feedback-notice {
  color: #D35400;
  font-weight: bold;
}

/* Utils */

._bottomless {
  padding-bottom: 500px;
}

._non_link {
  text-decoration: none;
  color: inherit;
}

/* Pico CSS Utils */

._disable-pico-loading-spinner [aria-busy="true"]::before {
  display: none !important;
  background-attachment: initial !important;
  animation: none !important;
  scroll-behavior: auto !important;
  transition-delay: 0s !important;
  transition-duration: 0s !important;
}

/* Disable Pico CSS calcs, animations, and transforms for the snippet creation page */

:root,
:host,
*,
*::before,
*::after {
  /* Disable all transitions and animations */
  --pico-transition: none !important;
  -moz-transition: none !important;
  -o-transition: none !important;
  -webkit-transition: none !important;
  transition: none !important;
  animation: none !important;
  /* Disable transforms */
  transform: none !important;
  /* Example: force box-sizing and sizing to static */
  -webkit-box-sizing: border-box !important;
  -moz-box-sizing: border-box !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
}

/* Employee Search Dropdown */
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.search-results.show {
  display: block;
}

.search-result-item {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover,
.search-result-item.selected {
  background-color: #f5f5f5;
}

.search-result-item .team {
  color: #666;
  font-size: 0.9em;
  margin-left: 8px;
}

/* Make the employee search container relative for absolute positioning */
[data-controller="employee-search"] {
  position: relative;
}
