/**
 * @file
 * PDF.js viewer layout (flex) and loading overlay.
 */

body.gerichte-has-banner {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}
body.gerichte-has-banner #outerContainer {
  flex: 1;
  min-height: 0;
}

/* Acrobat Reader notice banner */
#gerichte-acrobat-banner {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  background: #fff3cd;
  border-bottom: 1px solid #ffc107;
  font-size: 0.875rem;
  color: #856404;
  line-height: 1.4;
}

#gerichte-acrobat-banner a {
  color: #0056b3;
  text-decoration: underline;
}

#gerichte-acrobat-banner a:hover {
  color: #004085;
}

/* Loading overlay with spinner */
#gerichte-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#gerichte-loading-overlay.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#gerichte-loading-overlay .spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e0e0e0;
  border-top-color: #0060df;
  border-radius: 50%;
  animation: gerichte-spin 0.8s linear infinite;
}

@keyframes gerichte-spin {
  to { transform: rotate(360deg); }
}
