/* =====================================================
   CRA-Portal Base Styles
   Reset and base typography
   ===================================================== */

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
  line-height: 1.3;
}

p {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
textarea,
select {
  font-family: inherit;
}

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

/* Remove default list styles */
ul, ol {
  margin: 0;
  padding: 0;
}

/* Selection color */
::selection {
  background-color: rgba(59, 130, 246, 0.3);
  color: inherit;
}

/* Scrollbar styling for webkit browsers */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-body, #0f172a);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color, #334155);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-color-light, #475569);
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--brand-primary, #3b82f6);
  outline-offset: 2px;
}

/* Remove focus outline for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}
