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

/* Override browser autofill styles */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #1f2937 inset !important;
  -webkit-text-fill-color: white !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Firefox specific autofill override */
input:autofill {
  background-color: #1f2937 !important;
  color: white !important;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.3s;
}

.dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  border: 2px dashed #a0aec0;
  border-radius: 0.5rem;
  background: #f7fafc;
  color: #4a5568;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 1rem;
  text-align: center;
  padding: 1.5rem 1rem;
  outline: none;

  &:focus, &:hover {
    border-color: #38a169;
    background: #e6fffa;
  }

  &--over {
    border-color: #3182ce;
    background: #ebf8ff;
  }

  .dropzone__prompt {
    font-size: 1rem;
    font-weight: 500;
  }
  .dropzone__filename {
    margin-left: 0.5rem;
    font-size: 0.9rem;
    color: #718096;
  }
}

.tab-button {
  background-color: #FFFFFF;
  color: black;
  padding: 9px 20px;
  cursor: pointer;
  outline: 1px solid oklch(70.7% 0.022 261.325) !important;
  font-weight: 400;
  font-size: 16px;
  border: none;
  touch-action: manipulation;
}

.tab-button.active-tab {
  background-color: #e5e7eb;
  color: black;
  padding: 9px 20px;
  cursor: pointer;
  font-weight: 400;
  font-size: 16px;
}