/* Plugin: pdf — fenêtre flottante PDF (palette dark EdenALOS). */

.pdf-float-window {
  position: fixed;
  display: flex;
  flex-direction: column;
  background: rgba(8, 14, 28, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(88, 200, 255, 0.14);
  overflow: hidden;
  font-family: var(--font-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  color: var(--fg, #cdd6f4);
  animation: pdf-win-in 0.18s ease-out;
}
@keyframes pdf-win-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; } }
.pdf-float-window.pdf-float-window-maximized { border-radius: 0; box-shadow: none; }
.pdf-float-window.pdf-float-fullscreen { border-radius: 0; border: none; box-shadow: none; }

/* Titlebar (factorisée par Eden.shell — on style juste les classes générées) */
.pdf-float-window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: grab;
  user-select: none;
  flex-shrink: 0;
}
.pdf-float-window-titlebar:active { cursor: grabbing; }
.pdf-float-window-titlebar-left {
  display: flex; align-items: center; gap: 8px;
  min-width: 0; flex: 1;
}
.pdf-float-window-title {
  font-size: 13px; font-weight: 600;
  color: var(--fg, #cdd6f4);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: 0.01em;
  margin-left: 6px;
}

/* Boutons custom titlebar (extra slot) */
.pdf-float-actions {
  display: flex; gap: 4px;
  flex-shrink: 0;
  margin-left: 10px;
}
.pdf-float-action {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: var(--fg, #cdd6f4);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
  padding: 0;
}
.pdf-float-action:hover {
  background: rgba(88, 200, 255, 0.14);
  border-color: rgba(88, 200, 255, 0.32);
  color: #a8d4ff;
}

/* Body — iframe pleine taille */
.pdf-float-window-body {
  flex: 1;
  overflow: hidden;
  background: #1a1a1a;
  position: relative;
}
.pdf-float-frame {
  width: 100%; height: 100%;
  border: 0;
  display: block;
  background: #2a2a2a;
}
