/* ==========================================================================
   Painel Lateral de Detalhes e Inspeção (Info Pane estilo Drive / Explorer)
   ========================================================================== */

.infopane {
  width: var(--info-panel);
  background: var(--surface);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  flex: none;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), margin-right 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 15;
}

body:not([data-infopane="open"]) .infopane {
  display: none;
}

.infopane-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--line-soft);
  flex: none;
}

.infopane-head .title {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.infopane-head .close-btn {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--r-pill);
  color: var(--ink-mid);
  font-size: 15px;
  transition: all 0.1s;
}

.infopane-head .close-btn:hover {
  background: var(--hover);
  color: var(--ink);
}

.infopane-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Miniatura Ampliada do Painel */
.infopane-preview {
  height: 10rem;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.infopane-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.infopane-preview svg {
  width: 3.75rem;
  height: 3.75rem;
}

/* Título do Arquivo */
.infopane-file-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-all;
  line-height: 1.4;
}

/* Lista de Metadados e Propriedades */
.infopane-props {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 1rem;
}

.prop-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.prop-label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  font-weight: 600;
}

.prop-value {
  font-size: 13px;
  color: var(--ink);
  font-weight: 450;
  word-break: break-all;
}

/* Ações Rápidas do Painel */
.infopane-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 1rem;
}

.infopane-actions .hbtn {
  width: 100%;
  justify-content: center;
}
