/* ==========================================================================
   Modern CSS Reset — ShipHero AI Dashboard
   Normalizes browser defaults for a consistent cross-browser baseline.
   ========================================================================== */

/* -------------------------------------------------------------------
   Box Sizing
   ------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* -------------------------------------------------------------------
   Margin & Padding Reset
   ------------------------------------------------------------------- */
*  {
  margin: 0;
  padding: 0;
}

/* -------------------------------------------------------------------
   Document
   ------------------------------------------------------------------- */
html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

/* -------------------------------------------------------------------
   Body
   ------------------------------------------------------------------- */
body {
  min-height: 100vh;
  font-family: var(--font-family);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-surface);
}

/* -------------------------------------------------------------------
   Typography
   ------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  line-height: var(--leading-tight);
  overflow-wrap: break-word;
}

p {
  overflow-wrap: break-word;
}

/* -------------------------------------------------------------------
   Links
   ------------------------------------------------------------------- */
a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--color-border-focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* -------------------------------------------------------------------
   Lists
   ------------------------------------------------------------------- */
ul,
ol {
  list-style: none;
}

/* -------------------------------------------------------------------
   Media
   ------------------------------------------------------------------- */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* -------------------------------------------------------------------
   Form Elements
   ------------------------------------------------------------------- */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

textarea {
  resize: vertical;
}

/* -------------------------------------------------------------------
   Table
   ------------------------------------------------------------------- */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* -------------------------------------------------------------------
   Misc
   ------------------------------------------------------------------- */
[hidden] {
  display: none !important;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-gray-400);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-gray-300) transparent;
}

/* -------------------------------------------------------------------
   Selection
   ------------------------------------------------------------------- */
::selection {
  background-color: var(--color-primary-light);
  color: var(--color-primary-active);
}

/* -------------------------------------------------------------------
   Focus Visible — Global
   ------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--color-border-focus);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}
