/* Leads mock prototype: overlay dialogs (action modals + document viewer) */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,17,23,0.5);
  backdrop-filter: blur(3px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.15s ease-out;
}
.modal {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 480px;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: scaleIn 0.2s ease-out;
}
.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.modal-body { padding: 16px 20px; overflow-y: auto; flex: 1; }
.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.doc-viewer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,17,23,0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.15s ease-out;
}
.doc-viewer {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 85vw;
  height: 85vh;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: scaleIn 0.2s ease-out;
}
.doc-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.doc-viewer-title { font-size: 14px; font-weight: 600; display: flex; align-items: center; }
.doc-viewer-toolbar { display: flex; gap: 4px; }
.doc-viewer-body {
  flex: 1;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 40px;
}
.doc-viewer-page {
  background: white;
  width: 600px;
  min-height: 800px;
  box-shadow: var(--shadow-lg);
  border-radius: 2px;
  padding: 48px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-primary);
}
.doc-viewer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
