/**
 * Global Resets, Typography & Custom Scrollbars
 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-primary);
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Core App & Tab Layout Structure */
.main-wrapper {
  flex: 1;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: var(--bg-app);
}

.tab-content {
  display: none;
  padding: 24px;
}

.tab-content.active {
  display: block;
}

.tab-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

body.hide-guides .section-guide-box {
  display: none !important;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-xs);
}

/* SVG Vector Icons */
.svg-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.svg-icon-sm {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

.svg-icon-lg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

/* Tabular Numbers & Monospace Homogeneity for Urbanist */
[style*="font-family:var(--font-mono)"],
.mono-cell,
.font-mono,
.dash-metric-stat-val,
div[id^="dash"] {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2px;
}

/* Global Autofill Reset: Eliminates browser default light-blue background */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active,
input:autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--bg-input) inset !important;
  box-shadow: 0 0 0 1000px var(--bg-input) inset !important;
  -webkit-text-fill-color: var(--text-primary) !important;
  color: var(--text-primary) !important;
  caret-color: var(--text-primary) !important;
  transition: background-color 5000000s ease-in-out 0s !important;
}