@use "../abstracts/variables" as *;
@use "../base/typography";

/* ❌ REMOVE THIS (bad practice)
@import url('https://fonts.googleapis.com/css2?family=Figtree...');
*/

/* ================= ROOT ================= */
:root {
  font-size: 16px;
}

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

/* ================= HTML / BODY ================= */
html {
  background-color: #F5F8FB !important;
  color: #1a1a1a !important;
  scroll-behavior: smooth; /* 🔥 smooth scroll */
}

body {
  min-height: 100vh;
  margin: 0;

  line-height: 1.5;
  text-rendering: optimizeSpeed;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  font-family: "Figtree", sans-serif !important;

  overflow-x: hidden;
  background: #F5F8FB;
}

/* ================= GLOBAL SCROLL (HIDDEN BUT SMOOTH) ================= */
* {
  -ms-overflow-style: none;  /* IE */
  scrollbar-width: none;     /* Firefox */
}

*::-webkit-scrollbar {
  display: none;             /* Chrome */
}

/* ================= ELEMENT DEFAULTS ================= */
main {
  display: block;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: none;
}

/* ================= TYPOGRAPHY RESET ================= */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
figure,
blockquote,
dl,
dd {
  margin: 0;
  padding: 0;
}

p {
  font-family: $font;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: $font;
}

/* ================= LIST ================= */
ul,
ol {
  list-style: none;
  padding: 0;
}

/* ================= FORM RESET ================= */
button,
input,
select,
textarea {
  font-family: inherit;
  outline: none;
}

button {
  border: none;
  background: transparent;
  cursor: pointer;
}

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

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ================= SEARCH INPUT FIX ================= */
input[type="search"] {
  -webkit-appearance: textfield;
}

input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

/* ================= TABLE ================= */
table {
  width: 100%;
  border-collapse: collapse;
}

/* ================= MISC ================= */
[hidden] {
  display: none;
}


::-webkit-scrollbar {
  display: none !important;
}