/* Complementos ao Tailwind (superfícies do navegador, foco, animações e toque) */
html {
    -webkit-tap-highlight-color: transparent;
    caret-color: #047857;
}
html.dark {
    caret-color: #34d399;
}

::selection {
    background-color: rgb(4 120 87 / 0.22);
    color: inherit;
}
html.dark ::selection {
    background-color: rgb(52 211 153 / 0.25);
}

button, a, [role="button"] { touch-action: manipulation; }

:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.tabular-nums {
    font-variant-numeric: tabular-nums;
}

.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

.scroll-fino { scrollbar-width: thin; scrollbar-color: rgb(148 163 184 / .45) transparent; }
.scroll-fino::-webkit-scrollbar { width: 8px; height: 8px; }
.scroll-fino::-webkit-scrollbar-thumb { background: rgb(148 163 184 / .45); border-radius: 8px; }

dialog::backdrop { background: rgb(15 23 42 / .65); backdrop-filter: blur(2px); }
dialog[open] { animation: surgir .16s cubic-bezier(0.16, 1, 0.3, 1); }

@keyframes surgir { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(.96); } 100% { transform: scale(1); } }
@keyframes novo-pedido {
    0%, 100% { box-shadow: 0 0 0 0 rgb(37 99 235 / 0); }
    50%      { box-shadow: 0 0 0 6px rgb(37 99 235 / .45); }
}
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.anim-pop   { animation: pop .16s cubic-bezier(0.16, 1, 0.3, 1); }
.anim-novo  { animation: novo-pedido 1s ease-in-out 5; }
.anim-toast { animation: toast-in .18s cubic-bezier(0.16, 1, 0.3, 1); }

@media (prefers-reduced-motion: reduce) {
    .anim-pop, .anim-toast, dialog[open] { animation: none; }
    .anim-novo { animation: none; outline: 3px solid #2563eb; }
}
