/* App Footer */
.app-footer {
  background: var(--bg-secondary, #f5f5f5);
  border-top: 1px solid var(--border, #e0e0e0);
  padding: var(--space-4, 16px) var(--space-6, 24px);
  text-align: center;
  color: var(--text-muted, #666);
  font-size: 14px;
}

.app-footer p {
  margin: 0;
}

.app-footer a {
  color: var(--primary, #3b82f6);
  text-decoration: none;
}

.app-footer a:hover {
  text-decoration: underline;
}

/* Modal improvements */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4, 16px);
  padding-bottom: var(--space-3, 12px);
  border-bottom: 1px solid var(--border, #e0e0e0);
}

.modal-header h2 {
  margin: 0;
}

.modal-body {
  margin-bottom: var(--space-4, 16px);
}

.modal-body h3 {
  margin-top: var(--space-4, 16px);
  margin-bottom: var(--space-2, 8px);
  font-size: 16px;
}

.modal-body ul {
  margin-left: var(--space-4, 16px);
  margin-bottom: var(--space-3, 12px);
}

.modal-body li {
  margin-bottom: var(--space-1, 4px);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2, 8px);
  padding-top: var(--space-3, 12px);
  border-top: 1px solid var(--border, #e0e0e0);
}


/* PDF Preview iframe fix - ensure proper sizing */
.preview-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-muted);
  overflow: hidden;
  min-width: 0;
  height: 100vh;
}

.pdf-preview-container {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-muted);
  padding: 0;
  overflow: auto;
}

.preview-viewport {
  width: 100%;
  height: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.pdf-iframe {
  width: 100%;
  height: 100%;
  min-height: 600px;
  border: none;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.08);
  border-radius: 4px;
}

.preview-empty,
.preview-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2, 8px);
  color: var(--text-muted, #6b7280);
  font-size: var(--font-size-sm, 14px);
  text-align: center;
}

.preview-empty .hint {
  font-size: var(--font-size-xs, 12px);
  color: var(--text-light, #9ca3af);
}

.preview-loading .spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border, #e5e7eb);
  border-top-color: var(--primary, #3b82f6);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

