:root {
  -webkit-tap-highlight-color: transparent;
}

/* Box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove margens padrão */
* {
  margin: 0;
}

/* Altura base */
html,
body,
#root {
  height: 100%;
}

/* Base do body */
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  color: inherit;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  -webkit-text-size-adjust: 100%;
}

/* Imagens e mídia responsivas */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Formularios herdando fonte e sem estilos estranhos */
input,
button,
textarea,
select {
  font: inherit;
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: none;
  border: none;
  cursor: pointer;
}

/* Listas sem marcadores por padrão */
ul[role="list"],
ol[role="list"],
ul,
ol {
  list-style: none;
  padding: 0;
}

/* Links sem decoração por padrão ( estilos do projeto devem definir ) */
a {
  color: inherit;
  text-decoration: none;
}

/* Tabelas */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Elementos de bloco para endereços */
address {
  font-style: normal;
}

/* Melhora para usuários que preferem menos movimento */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Foco acessível (não remova outlines sem substituir por alternativa) */
:focus {
  outline: 2px solid Highlight;
  outline-offset: 2px;
  -webkit-focus-ring-color: auto;
}
