/* ============================================================
   PDF VIEWER WINDOW
   ============================================================ */
#pdf-window {
  top: 60px;
  left: 150px;
  width: 700px;
  height: 560px;
  min-width: 500px;
  min-height: 400px;
  z-index: 15;
  background: #1e1e1e;
  font-family: 'Ubuntu', 'Segoe UI', sans-serif;
  color: #eee;
}

/* --- Header Bar --- */
#pdf-header {
  display: flex;
  align-items: center;
  background: #2d2d2d;
  padding: 0 8px;
  height: 38px;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  border-bottom: 1px solid #3a3a3a;
  gap: 6px;
}
#pdf-header:active { cursor: grabbing; }

/* --- Toolbar --- */
#pdf-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #252525;
  border-bottom: 1px solid #3a3a3a;
  flex-shrink: 0;
}

.pdf-tool-btn {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  cursor: pointer;
  color: #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  transition: background 0.12s, color 0.12s;
}
.pdf-tool-btn:hover { background: rgba(255,255,255,0.10); color: #fff; }
.pdf-tool-btn svg { width: 16px; height: 16px; fill: currentColor; }

.pdf-filename {
  flex: 1;
  font-size: 13px;
  color: #ccc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdf-open-external {
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--accent-color);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  border: none;
  transition: background 0.12s;
}
.pdf-open-external:hover { background: #f26b3a; }
.pdf-open-external svg { width: 14px; height: 14px; fill: currentColor; }

/* --- Content Area --- */
#pdf-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #333;
  overflow: auto;
}

#pdf-embed {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Fallback --- */
#pdf-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #aaa;
  text-align: center;
  padding: 30px;
}

.pdf-fallback-icon {
  width: 72px;
  height: 72px;
  fill: #555;
}

.pdf-fallback-text {
  font-size: 15px;
  color: #ccc;
}

.pdf-fallback-sub {
  font-size: 13px;
  color: #888;
  max-width: 400px;
  line-height: 1.5;
}
