@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  html {
    font-size: 15px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin !important;
    scrollbar-color: #333333 #161616 !important;
  }
  
  body {
    background-color: var(--theme-surface-0);
    color: var(--theme-text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", sans-serif !important;
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: -0.005em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
}

/* JetBrains Mono Cancelled — Alias font-mono to global Inter sans-serif font stack */
.font-mono,
code,
pre,
kbd,
samp {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", sans-serif !important;
}

/* GLOBAL STANDARD SCROLLBAR FOR ALL BROWSERS (Firefox, Chrome, Edge, Safari) */
* {
  scrollbar-width: thin !important;
  scrollbar-color: #333333 #161616 !important;
}

/* HIDE WEBKIT SCROLLBAR BUTTONS (ARROWS AT TOP AND BOTTOM) */
::-webkit-scrollbar-button,
*::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* SUBTLE DARK ARCHITECTURAL BENHOME SCROLLBAR (MATCHES MODAL 100%) */
::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 8px !important;
  height: 8px !important;
}

::-webkit-scrollbar-track,
::-webkit-scrollbar-track-piece,
*::-webkit-scrollbar-track,
*::-webkit-scrollbar-track-piece {
  background: #161616 !important;
}

::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
  background-color: #333333 !important;
  border-radius: 4px !important;
  border: 2px solid #161616 !important;
}

::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover {
  background-color: #555555 !important;
}

/* STRICT 4-LEVEL BENHOME TYPOGRAPHY SYSTEM (100% Clean Sans-Serif Inter) */

/* Level 1: Page & Item Main Titles (36px) */
.type-level-1 {
  font-size: 36px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  color: #ffffff !important;
}

/* Level 2: Card Headers, Section Subtitles, Primary Buttons (16px) */
.type-level-2 {
  font-size: 16px !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
}

/* Level 3: Card Values, Input Fields, Main Body Text, Table Rows (14px) */
.type-level-3 {
  font-size: 14px !important;
  line-height: 1.5 !important;
  font-weight: 500 !important;
  color: #e5e5e5 !important;
}

/* Level 4: Field Labels, Helper Text, Subtitles, Badges (12px) */
.type-level-4 {
  font-size: 12px !important;
  line-height: 1.4 !important;
  font-weight: 500 !important;
  color: #888888 !important;
  letter-spacing: 0.02em !important;
}

/* Global Subtle Placeholder Text Styling */
input::placeholder,
textarea::placeholder {
  color: #555555 !important;
  opacity: 1 !important;
}

/* Override Browser Chrome/Edge White Autofill Background */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0px 1000px #141414 inset !important;
  -webkit-text-fill-color: #ffffff !important;
  transition: background-color 5000s ease-in-out 0s;
}
