/*
 * 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.
 */

/* Add horizontal padding to all form inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="search"],
input[type="tel"],
input[type="url"],
select,
textarea {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

/* Tom Select - Custom pill styling for selected volunteers */
.ts-control .item {
  background-color: #4f46e5 !important; /* Indigo-600 */
  color: white !important;
  border: none !important;
  border-radius: 9999px !important; /* Full pill shape */
  padding: 0.375rem 0.625rem 0.375rem 0.625rem !important;
  margin: 0.25rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.ts-control .item:hover {
  background-color: #4338ca !important; /* Indigo-700 */
}

.ts-control .item .remove {
  color: white !important;
  opacity: 0.9;
  border: none !important;
  padding: 0 !important;
  margin: 0 0.375rem 0 0.375rem !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  font-family: Arial, sans-serif !important;
  cursor: pointer !important;
  line-height: 1 !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.25) !important;
  min-width: 1.125rem !important;
  min-height: 1.125rem !important;
  width: 1.125rem !important;
  height: 1.125rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.ts-control .item .remove:hover {
  opacity: 1 !important;
  background: rgba(255, 255, 255, 0.35) !important;
}

/* Tom Select - Input area styling */
.ts-control {
  padding: 0.5rem !important;
  min-height: 3rem !important;
}

.ts-control input {
  padding: 0.25rem 0.5rem !important;
}

/* Tom Select - Dropdown styling */
.ts-dropdown {
  background-color: white !important;
  border: 1px solid #d1d5db !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
  z-index: 1000 !important;
}

.ts-dropdown .option {
  padding: 0.5rem 0.75rem !important;
  background-color: white !important;
}

.ts-dropdown .option.active {
  background-color: #eef2ff !important;
  color: #4f46e5 !important;
}

.ts-dropdown .option:hover {
  background-color: #f3f4f6 !important;
}
