/**
 * Assessment Page Styles
 * Reset and fixes for assessment page layout
 */

/* Reset for assessment page */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body.assessment-page {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Only prevent horizontal scroll */
  overflow-y: auto; /* Allow vertical scroll */
  min-height: 100vh;
  width: 100vw;
  background-color: #fafafa;
}

/* Ensure React root takes full space */
#eyreact-assessment-root {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  overflow-y: auto; /* Allow vertical scroll */
  overflow-x: hidden;
}

/* Remove default main margins */
body.assessment-page main {
  margin: 0;
  padding: 0;
}

/* Loading state centering */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100%;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #eaeaea;
  border-top-color: #2868ed;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
