/* =============================================
   DAYTRACK - CSS Reset
   Modern CSS Reset baseado em Josh Comeau
   ============================================= */

/* Box sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Remove margens padrão */
* {
    margin: 0;
    padding: 0;
}

/* Previne problemas de altura em iOS */
html,
body {
    height: 100%;
}

/* Configurações de tipografia e suavização */
body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Imagens e mídias responsivas */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

/* Remove estilos padrão de formulários */
input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

/* Evita overflow de texto */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

/* Headings sem estilo por padrão */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: inherit;
    font-weight: inherit;
}

/* Links sem estilo por padrão */
a {
    color: inherit;
    text-decoration: none;
}

/* Listas sem estilo por padrão */
ul,
ol {
    list-style: none;
}

/* Botões sem estilo por padrão */
button {
    background: none;
    border: none;
    cursor: pointer;
}

/* Tabelas com border-collapse */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Textarea sem resize por padrão */
textarea {
    resize: vertical;
}

/* Campos de formulário */
input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: none;
}

/* Remove aparência nativa de inputs */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    display: none;
}

/* Remove spinners de inputs numéricos */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Esconde scrollbar mas mantém funcionalidade */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Root para criar stacking context */
#root,
#__next,
#app {
    isolation: isolate;
    height: 100%;
}

/* Acessibilidade: respeita preferências de movimento */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Seleção de texto */
::selection {
    background-color: var(--color-primary-light);
    color: var(--color-primary-dark);
}
