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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--cls-font-family);
  font-size: var(--cls-font-size-base);
  line-height: var(--cls-line-height);
  color: var(--cls-color-text);
  background-color: var(--cls-color-bg);
  height: 100%;
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--cls-font-weight-bold);
  line-height: 1.3;
}

h1 { font-size: var(--cls-font-size-h1); }
h2 { font-size: var(--cls-font-size-h2); }
h3 { font-size: var(--cls-font-size-h3); }
h4 { font-size: var(--cls-font-size-h4); }

a {
  color: var(--cls-color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--cls-color-primary-dark);
}

ul, ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  border: 1px solid var(--cls-color-border);
  border-radius: var(--cls-radius-btn);
  padding: 0 var(--cls-space-sm);
  outline: none;
  transition: border-color var(--cls-transition), box-shadow var(--cls-transition);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--cls-color-primary);
  box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.15);
}

textarea {
  resize: vertical;
}

table {
  border-collapse: collapse;
  width: 100%;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--cls-color-border);
  border-radius: var(--cls-radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cls-color-secondary-light);
}
