/* Nagi Construction Suite web portal: the page around Avalonia's drawing surface. All styling lives here (no style attribute, no <style>
   element in index.html), so the Content-Security-Policy needs no 'unsafe-inline'. The opening screen is HR Suite's (hr.nagisoftware.com app.css,
   owner 2026-11-06: "loading screen is not same as hr"), class for class. */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #faf6f1;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

#out {
    width: 100%;
    height: 100%;
}

/* The page the browser shows while the application downloads and starts. Avalonia closes .avalonia-splash itself when it draws its first frame. */
.avalonia-splash { position: absolute; height: 100%; width: 100%; display: flex; justify-content: center; align-items: center;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif; color: #ffffff; text-align: center;
  background: linear-gradient(135deg, #3F6290 0%, #3F6290 100%); }

.avalonia-splash .splash-box { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 460px; padding: 0 24px; }
.avalonia-splash .splash-name { font-size: 28px; font-weight: 600; }
.avalonia-splash .splash-bar { width: 240px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.avalonia-splash .splash-bar > span { display: block; width: 40%; height: 100%; border-radius: 2px; background: #ffffff;
  animation: splash-slide 1.3s ease-in-out infinite; }
.avalonia-splash .splash-note { font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, 0.85); }
.avalonia-splash noscript { font-size: 14px; }

@keyframes splash-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }

/* The overlay that covers the application's own opening view for the whole start: same look, always on top, its bar moves on the compositor. */
.nagi-loading { position: fixed; inset: 0; z-index: 2147483000; display: flex; justify-content: center; align-items: center;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif; color: #ffffff; text-align: center;
  background: linear-gradient(135deg, #3F6290 0%, #3F6290 100%); transition: opacity 250ms; }
.nagi-loading.nagi-loading-done { opacity: 0; pointer-events: none; }
.nagi-loading .splash-box { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 460px; padding: 0 24px; }
.nagi-loading .splash-name { font-size: 28px; font-weight: 600; }
.nagi-loading .splash-bar { width: 240px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.nagi-loading .splash-bar > span { display: block; width: 40%; height: 100%; border-radius: 2px; background: #ffffff; will-change: transform;
  animation: splash-slide 1.3s ease-in-out infinite; }
.nagi-loading .splash-note { font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, 0.85); }

.avalonia-splash.splash-close {
    transition: opacity 200ms, display 200ms;
    display: none;
    opacity: 0;
}

/* The page a phone-sized device gets instead of the portal (main.js, isPhone): the brand steel blue, as on the HR portal. */
.phone-page { box-sizing: border-box; min-height: 100vh; padding: 40px 24px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 14px; text-align: center; color: #ffffff; font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #3F6290 0%, #3F6290 100%); }
.phone-page .phone-logo { width: 64px; height: 64px; }
.phone-page h1 { margin: 6px 0 4px; font-size: 24px; font-weight: 600; line-height: 1.25; }
.phone-page p { margin: 0; max-width: 420px; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, 0.92); }

/* HR's shared look (LOOK-REFERENCE.md section 3): the opening page is the warm page tint with dark text, the accent bar; no big snake, only the
   small colour one at the top left (section 4). The loading screen is always the light warm page, like the app: no dark variant before the app
   has loaded. */
html, body { background: #faf6f1; }
.avalonia-splash, .nagi-loading { background: #faf6f1; color: #1f1f1f; }
.avalonia-splash .splash-bar, .nagi-loading .splash-bar { background: rgba(31, 31, 31, 0.12); }
.avalonia-splash .splash-bar > span, .nagi-loading .splash-bar > span { background: #3F6290; }
.avalonia-splash .splash-note, .nagi-loading .splash-note { color: #5f5f5f; }
.avalonia-splash .splash-snake, .nagi-loading .splash-snake { position: absolute; top: 24px; left: 28px; height: 44px; width: auto; }
.avalonia-splash .splash-snake-dark, .nagi-loading .splash-snake-dark { display: none; }
