html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
/* ===== Campo de envio de imagem (arrastar e soltar / procurar) ===== */
.upload-imagem {
  position: relative;
  border: 2px dashed #adb5bd;
  border-radius: .5rem;
  background: #f8f9fa;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.upload-imagem:hover, .upload-imagem:focus-visible { border-color: #0d6efd; background: #f1f6ff; outline: none; }
.upload-imagem.arrastando { border-color: #0d6efd; background: #e7f0ff; box-shadow: 0 0 0 .2rem rgba(13,110,253,.2); }
.upload-imagem.com-erro { border-color: #dc3545; }
.upload-imagem-vazio { display: flex; flex-direction: column; align-items: center; gap: .25rem; color: #495057; }
.upload-imagem-icone { font-size: 1.6rem; line-height: 1; }
.upload-imagem-link { color: #0d6efd; text-decoration: underline; }
.upload-imagem-dica { color: #6c757d; }
.upload-imagem-preview { display: none; flex-direction: column; align-items: center; gap: .5rem; cursor: default; }
.upload-imagem-preview img { max-width: 100%; max-height: 220px; object-fit: contain; border-radius: .25rem; background: #fff; border: 1px solid #dee2e6; padding: 2px; }
.upload-imagem-acoes { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.upload-imagem.tem-imagem { cursor: default; border-style: solid; border-color: #dee2e6; background: #fff; }
.upload-imagem.tem-imagem .upload-imagem-vazio { display: none; }
.upload-imagem.tem-imagem .upload-imagem-preview { display: flex; }
.upload-imagem-enviando { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; gap: .5rem; background: rgba(255,255,255,.85); border-radius: .5rem; font-weight: 600; color: #0d6efd; }
.upload-imagem.enviando .upload-imagem-enviando { display: flex; }
.upload-imagem-erro { color: #dc3545; font-size: .85rem; margin-top: .35rem; }
.upload-imagem-erro:empty { display: none; }
.upload-imagem.compacto { padding: .4rem .5rem; min-height: 58px; font-size: .85rem; }
.upload-imagem.compacto .upload-imagem-vazio { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: .15rem .4rem; }
.upload-imagem.compacto .upload-imagem-icone { font-size: 1.1rem; }
.upload-imagem.compacto .upload-imagem-dica { width: 100%; font-size: .72rem; }
.upload-imagem.compacto .upload-imagem-preview { flex-direction: row; justify-content: center; }
.upload-imagem.compacto .upload-imagem-preview img { max-height: 64px; max-width: 120px; }
.upload-imagem.compacto .upload-imagem-acoes .btn { padding: .1rem .4rem; font-size: .75rem; }
