/*
  style.css
  -----------------------------------------------------------------------------
  Global shell styles for the iframe-based frontend.

  Responsibilities:
  - Keep the shell stable.
  - Make iframe views full-screen.
  - Provide fallback loader and route-error UI.
  - Avoid interfering with each page's own Tailwind/UI styles.

  Page-specific UI styles remain inside the uploaded /views HTML files.
*/

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: #fcf8fa;
  overflow: hidden;
}

body {
  font-family: Arial, sans-serif;
}

#app {
  width: 100%;
  height: 100vh;
  background: #fcf8fa;
}

.page-frame {
  width: 100%;
  height: 100vh;
  display: block;
  border: 0;
  background: #fcf8fa;
}

.app-loader {
  width: 100%;
  height: 100vh;
  display: grid;
  place-items: center;
  background: #fcf8fa;
  color: #111827;
  font-family: Arial, sans-serif;
  font-size: 16px;
}

.route-error {
  width: 100%;
  height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #fcf8fa;
  color: #111827;
  font-family: Arial, sans-serif;
}

.route-error-card {
  width: min(520px, 100%);
  padding: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.route-error-card h1 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 32px;
}

.route-error-card p {
  margin: 0 0 20px;
  color: #6b7280;
  font-size: 14px;
  line-height: 22px;
}

.route-error-card a {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 12px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.route-error-card a:hover {
  background: #1d4ed8;
}
