/* Base reset and global styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: Roboto, 'Segoe UI', 'Helvetica Neue', Helvetica, 'Lucida Grande', Arial, Ubuntu, Cantarell, 'Fira Sans', sans-serif;
  font-size: 14px;
  color: var(--WDS-content-default);
  background-color: var(--WDS-app-wash);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
  word-break: break-word;
}

#app {
  height: 100%;
}

a {
  color: var(--WDS-content-external-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--WDS-black-alpha-20);
  border-radius: 3px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

/* Thin scrollbar for Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--WDS-black-alpha-20) transparent;
}

/* Screen reader only — visible to crawlers but hidden visually */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Loading screen ──────────────────────────── */
#loading-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background-color: var(--WDS-background-wash-plain);
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loading-logo {
  opacity: 0.8;
}

.loading-text {
  font-size: 16px;
  font-weight: 300;
  color: var(--WDS-content-deemphasized);
  letter-spacing: -0.2px;
}

.loading-bar-track {
  width: 260px;
  height: 3px;
  background-color: var(--WDS-warm-gray-200);
  border-radius: 2px;
  overflow: hidden;
}

.loading-bar-fill {
  height: 100%;
  background-color: var(--WDS-accent);
  border-radius: 2px;
  animation: loadingProgress 2.5s ease-in-out forwards;
}

@keyframes loadingProgress {
  0% { width: 0%; }
  30% { width: 40%; }
  60% { width: 70%; }
  90% { width: 90%; }
  100% { width: 100%; }
}

.loading-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--WDS-content-deemphasized);
  margin-top: 20px;
}
