/* ========== Global Reset ========== */

/* 1. Base box model */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margin/padding */
html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li,
figure,
blockquote,
dl,
dd {
  margin: 0;
  padding: 0;
}

/* 3. Set consistent default font & background */
html,
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  background-color: #fff;
  color: #111;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* 4. Remove list styles */
ul,
ol {
  list-style: none;
}

/* 5. Reset anchor styling */
a {
  text-decoration: none;
  color: inherit;
}

/* 6. Reset form elements */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  outline: none;
}

button,
[type="button"],
[type="submit"],
[role="button"] {
  cursor: pointer;
}

/* 7. Reset images and media */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 8. Inherit font settings in form controls */
input,
select,
textarea,
button {
  font: inherit;
}

/* 9. Prevent iOS text resize bug */
html {
  -webkit-text-size-adjust: 100%;
}

/* Chrome, Safari, Edge, Opera */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

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