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

@font-face {
  font-family: "Inter";
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  src: url("/assets/InterVariable-884c49a1.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
  src: url("/assets/InterVariable-Italic-0aa7a4b3.woff2") format("woff2");
}

:root {
  --sans-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.sign-in-form {
  max-width: 24rem;
}

/* Upload styles */
.upload-dropzone {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.upload-dropzone.drag-over {
  border-color: var(--accent);
  background: var(--accent-bg);
}

.upload-previews {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.upload-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.upload-preview img {
  max-width: 150px;
  max-height: 150px;
  border-radius: 4px;
  object-fit: cover;
}

.file-thumb {
  border-radius: 4px;
  object-fit: cover;
  vertical-align: middle;
}

/* Direct upload progress */
.direct-upload {
  display: inline-block;
  position: relative;
  padding: 0.25rem 0.5rem;
  margin: 0.25rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.875rem;
}

.direct-upload--pending {
  opacity: 0.6;
}

.direct-upload__progress {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  opacity: 0.15;
  background: var(--accent);
  transition: width 120ms ease-out;
}

.direct-upload--complete {
  border-color: var(--accent);
}

.direct-upload--error {
  border-color: #f44;
}
