/* ============================================================
 * LifeOS Design System · reset.css · v4.0.0 (Verdant)
 * ------------------------------------------------------------
 * Box-sizing, body, scroll, focus, atmosfera global.
 * Carregar DEPOIS de tokens.css, ANTES de components.css.
 * ============================================================ */

*,
*::before,
*::after{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html{ scroll-behavior: smooth; }

body{
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--tx);
  font-size: var(--t-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--d3) var(--ease), color var(--d3) var(--ease);
}

/* atmosfera: glow sutil fixo atrás de tudo */
body::before{
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(45% 38% at 78% 8%, var(--atm-1), transparent 70%),
    radial-gradient(40% 45% at 8% 92%, var(--atm-2), transparent 72%);
  transition: opacity var(--d3) var(--ease);
}

/* grão fino quase imperceptível */
body::after{
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* aplicar z-index:1 no app pra ficar acima das camadas decorativas */
.v-app{ position: relative; z-index: 1; }

::selection{
  background: var(--brand);
  color: var(--on-brand);
}

::-webkit-scrollbar{ width: 10px; height: 10px; }
::-webkit-scrollbar-thumb{
  background: var(--line-2);
  border-radius: 99px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover{ background: var(--brand); }

code, .v-mono{
  font-family: 'Inter', system-ui, sans-serif;
}

a{
  color: inherit;
  text-decoration: none;
}

svg{ flex-shrink: 0; }

/* iOS — usa scrollbar nativa */
@supports (-webkit-touch-callout: none) and (not (hover:hover)){
  *::-webkit-scrollbar{ display: none; }
  *{ scrollbar-width: none; }
}

/* Date/time pickers nativos — dark */
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"]{
  color-scheme: dark;
  accent-color: var(--brand);
}

/* a11y */
.v-sr-only{
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
