/* ==========================================================================
   BASE & RESET STYLES - ASSURANCE SYSTEMS
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;450;500;600;700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-surface);
  color: var(--color-on-surface);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}

/* Scrollbar Customization for Modern Enterprise Look */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-surface-container);
}

::-webkit-scrollbar-thumb {
  background: var(--color-outline-variant);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-outline);
}

/* ==========================================================================
   TYPOGRAPHY SYSTEM
   Strict adherence to Assurance Systems typography tokens
   ========================================================================== */

.font-display-lg {
  font-family: var(--font-family);
  font-size: 36px;
  font-weight: 700;
  line-height: 44px;
  letter-spacing: -0.02em;
}

.font-headline-md {
  font-family: var(--font-family);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: -0.01em;
}

.font-title-sm {
  font-family: var(--font-family);
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.005em;
}

.font-body-md {
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.font-body-md-semibold {
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.font-body-sm {
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
}

.font-body-sm-semibold {
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
}

.font-table-data {
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 450;
  line-height: 16px;
}

.font-label-caps {
  font-family: var(--font-family);
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-on-surface-variant);
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */

#app-container {
  display: flex;
  width: 100vw;
  min-height: 100vh;
  background-color: var(--color-surface);
  position: relative;
}

/* Vertical Sidebar Navigation */
.app-sidebar {
  width: 240px;
  min-width: 240px;
  background-color: var(--color-primary-sidebar);
  color: var(--color-on-primary);
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 40;
  transition: width var(--transition-normal);
  position: sticky;
  top: 0;
  height: 100vh;
}

/* Main Content Area */
.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: var(--color-surface);
  overflow-y: auto;
  height: 100vh;
}

.main-content-wrapper {
  padding: var(--margin-desktop);
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

/* Elevation Utility Classes */
.elevation-0 {
  background-color: var(--color-surface);
}

.elevation-1 {
  background-color: var(--color-surface-container-lowest);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-default);
}

.elevation-2 {
  background-color: var(--color-surface-container-lowest);
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-level-2);
  border-radius: var(--radius-default);
}
