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

/* Button Components - Use !important to override Tailwind resets */
.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.625rem 1.25rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  line-height: 1.25rem !important;
  border-radius: 0.5rem !important;
  border: none !important;
  text-decoration: none !important;
  transition: all 0.15s ease-in-out !important;
  cursor: pointer !important;
  outline: none !important;
}

.btn:hover {
  transform: translateY(-1px) !important;
}

.btn:active {
  transform: translateY(0) !important;
}

.btn-primary {
  background-color: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3), 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

.btn-primary:hover {
  background-color: #1d4ed8 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.4), 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.btn-secondary {
  background-color: #ffffff !important;
  color: #374151 !important;
  border: 1px solid #d1d5db !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.btn-secondary:hover {
  background-color: #f9fafb !important;
  border-color: #9ca3af !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.btn-danger {
  background-color: #dc2626 !important;
  color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.3), 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

.btn-danger:hover {
  background-color: #b91c1c !important;
  color: #ffffff !important;
  box-shadow: 0 4px 6px rgba(220, 38, 38, 0.4), 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.btn-sm {
  padding: 0.5rem 0.875rem !important;
  font-size: 0.8125rem !important;
}

.btn:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* Ensure button_to forms don't add extra styling */
form.button_to {
  display: inline-block !important;
}

/* Form Input Components */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
input[type="tel"],
input[type="search"],
textarea,
select {
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  border: 1px solid #d1d5db !important;
  border-radius: 0.5rem !important;
  background-color: #ffffff !important;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
  outline: none !important;
}

input::placeholder,
textarea::placeholder {
  color: #9ca3af !important;
}

/* Select dropdown styling */
select {
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
  background-position: right 0.75rem center !important;
  background-repeat: no-repeat !important;
  background-size: 1.25rem !important;
  padding-right: 2.5rem !important;
}
