/* ===== pv_media_controller.css — Universal Viewer (C1-PV-DESKTOP-SHELL) ===== */
.pv-viewer {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--line, #e3e7f0);
  border-bottom: 1px solid var(--line, #e3e7f0);
  background: #0a0f1a;
  max-height: 45%;
}
.pv-viewer.pv-viewer-open { display: flex; }
.pv-viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  color: #cfd6e6;
  font-size: 12px;
  background: #10182c;
}
.pv-viewer-close {
  border: none;
  background: transparent;
  color: #cfd6e6;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.pv-viewer-body { overflow: auto; display: flex; align-items: center; justify-content: center; padding: 6px; }
.pv-viewer-image { max-width: 100%; max-height: 260px; border-radius: 8px; }
.pv-viewer-audio, .pv-viewer-video { width: 100%; }
.pv-viewer-video { max-height: 260px; }
.pv-viewer-youtube-wrap { position: relative; width: 100%; padding-top: 56.25%; }
.pv-viewer-youtube {
  position: absolute; inset: 0; width: 100%; height: 100%; border: none;
}
.pv-viewer-radio { display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 8px; }
.pv-viewer-radio-label { color: #cfd6e6; font-size: 13px; font-weight: 600; }

/* ===== C1-PV-DESKTOP-UX — JEDAN radni prostor (tačka 1 naloga) =====
 * Kad je bilo šta drugo osim čistog chata aktivno (dokument/slika/audio/
 * video/YouTube/radio), chat poruke se SKLANJAJU — nikad dva panela
 * istovremeno. `.pv-workspace-active` postavlja SAMO JS iznad (nikad CSS
 * sam po sebi), i to samo unutar standalone/desktop moda. */
.pw-panel.pv-workspace-active .pw-messages { display: none !important; }

/* ===== `+` dugme i meni (tačka 3 naloga) — lijevo od polja za unos ===== */
.pw-form.pv-form-sa-plusom { position: relative; }
.pv-plus-btn {
  border: 1px solid var(--line, #e3e7f0);
  background: #fff;
  color: var(--blue, #2f5bff);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  min-width: 34px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  margin-right: 6px;
}
.pv-plus-btn:hover { background: var(--panel2, #f4f6fb); }
.pv-plus-meni {
  display: none;
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  flex-direction: column;
  min-width: 170px;
  background: #fff;
  border: 1px solid var(--line, #e3e7f0);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(10, 15, 26, .18);
  padding: 4px;
  z-index: 5;
}
.pv-plus-meni.pv-plus-meni-open { display: flex; }
.pv-plus-meni button {
  border: none;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--ink, #16213a);
  cursor: pointer;
}
.pv-plus-meni button:hover, .pv-plus-meni button:focus { background: var(--panel2, #f4f6fb); outline: none; }

/* ===== Dokument-kartica (tačka 4 naloga) ===== */
.pv-reader-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line, #e3e7f0);
  border-radius: 12px;
  padding: 12px;
}
.pv-reader-card-icon { font-size: 26px; line-height: 1; }
.pv-reader-card-body { flex: 1; min-width: 0; }
.pv-reader-card-name { font-weight: 600; color: var(--ink, #16213a); word-break: break-word; }
.pv-reader-card-status { color: var(--muted, #6b7690); font-size: 12.5px; margin-top: 2px; }
.pv-reader-card-time { color: var(--muted, #6b7690); font-size: 12px; margin-top: 2px; }
.pv-reader-card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
