*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  width: 100dvw;
  height: 100%;
  height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.viewer-container {
  width: 100%;
  width: 100dvw;
  height: 100%;
  height: 100dvh;
  display: flex;
  overflow: hidden;
  background-color: #ffffff;
}

.pdf-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background-color: #ffffff;
}

/* Fallback message for browsers without inline PDF support */
.fallback-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2rem;
  text-align: center;
  background-color: #ffffff;
  color: #333333;
}

.fallback-card p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.fallback-card a {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: #1a73e8;
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.fallback-card a:hover {
  background-color: #1557b0;
}

@media print {
  html, body, .viewer-container {
    height: auto !important;
    overflow: visible !important;
    background: #ffffff !important;
  }
}
