/* Lexend Font Family Setup */
@font-face {
  font-family: 'Lexend';
  src: url('../fonts/lexend_regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Lexend';
  src: url('../fonts/lexend_medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Lexend';
  src: url('../fonts/lexend_semibold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: 'Lexend';
  src: url('../fonts/lexend_bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

/* Root Color System & Tokens */
:root {
  /* Default Dark Theme Variables */
  --bg-color: #0e1621;
  --surface-color: #17212b;
  --surface-hover: #202d3b;
  --border-color: #243447;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Accent Colors matching reference screenshots */
  --accent-green: #3ecf29;
  --accent-green-bg: #2bc016;
  --accent-blue: #00aaff;
  --accent-yellow: #ffb800;
  --accent-red: #ff4d4f;
  --accent-purple: #9254de;
  --accent-gray: #475569;

  /* Font Scale Variable */
  --base-font-size: 15px;

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);

  /* Radius Tokens */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

/* Light Mode Overrides */
body.light-mode {
  --bg-color: #f4f6f8;
  --surface-color: #ffffff;
  --surface-hover: #f1f5f9;
  --border-color: #e2e8f0;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Font Size Modifiers */
body.font-small { --base-font-size: 13px; }
body.font-medium { --base-font-size: 15px; }
body.font-large { --base-font-size: 17px; }

body.font-small .question-text { font-size: 15px !important; }
body.font-small .option-text { font-size: 13px !important; }

body.font-medium .question-text { font-size: 17px !important; }
body.font-medium .option-text { font-size: 15px !important; }

body.font-large .question-text { font-size: 20px !important; }
body.font-large .option-text { font-size: 17px !important; }

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

body {
  font-family: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--base-font-size);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  width: 100vw;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-full);
}
