/* Global styles for the unified application */

/* Note: Legacy styles are loaded separately via the legacy app build process
   They are copied to public/assets/js/ and loaded at runtime */

/* Reset and base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  /* font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
    'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif; */
  font-family: 'Roboto', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* App container styles */
#root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Loading spinner styles */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50vh;
  font-size: 18px;
}

/* Container styles for microfrontends */
.careers-app-container,
.clusters-app-container,
.counselor-portal-app-container,
.discussion-guide-app-container,
.feedback-app-container,
.legacy-app-container {
  flex: 1;
  width: 100%;
}

/* Error boundary styles */
.error-boundary {
  padding: 2rem;
  text-align: center;
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 4px;
  margin: 2rem;
}

.error-boundary h2 {
  color: #856404;
  margin-bottom: 1rem;
}

.error-boundary p {
  color: #856404;
  margin-bottom: 1rem;
}

/* Utility classes */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Responsive utilities */
@media (max-width: 768px) {
  .careers-app-container,
  .clusters-app-container,
  .counselor-portal-app-container,
  .discussion-guide-app-container,
  .feedback-app-container,
  .legacy-app-container {
    padding: 0.5rem;
  }
}
