/* ══ TOOLBAR ══ */
/* App-specific toolbar (Row 2) — file controls, page nav, zoom */

.toolbar {
  position: relative;
  background: white;
  border-bottom: 1px solid var(--grey-200);
  display: flex;
  align-items: center;
  padding: 6px 20px;
  gap: 4px;
  flex-shrink: 0;
  z-index: 100;
}

/* ── Home button — first toolbar element, links back to home ── */
.toolbar-home {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--grey-700);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  flex-shrink: 0;
}

.toolbar-home:visited {
  color: var(--grey-700);
}

.toolbar-home:hover {
  background: var(--grey-100);
  color: var(--grey-900);
}

/* ── Breadcrumb chevron between Home and app name ── */
.toolbar-chevron {
  color: var(--grey-300);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin: 0 4px;
}

.toolbar-home:active {
  color: var(--grey-900);
}

.toolbar-divider {
  width: 1px;
  height: 28px;
  background: var(--grey-200);
  margin: 0 8px;
  flex-shrink: 0;
}

.toolbar-filename {
  font-size: 14px;
  font-weight: 500;
  color: var(--grey-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 360px;
}

/* ══ APP NAME (ex breadcrumb, ora nella toolbar) ══ */
.toolbar-app {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-900);
  white-space: nowrap;
}

/* Contenitore centrale dei controlli — centra nello spazio tra nome app ed Export */
.toolbar-controls {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.toolbar-spacer {
  flex: 1;
}

/* Right-side button group (Continue with + Export) */
.toolbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* When pdf-export is alone in the toolbar (no toolbar-actions wrapper) */
.toolbar > pdf-export {
  margin-left: auto;
}

/* ══ PAGE NAV ══ */
.page-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--grey-700);
}

.page-input {
  width: 40px;
  text-align: center;
  border: 1px solid var(--grey-300);
  border-radius: 8px;
  padding: 6px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  outline: none;
}

.page-input:focus {
  border-color: var(--accent);
}

/* ══ ZOOM ══ */
.zoom-control {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  color: var(--grey-700);
}

/* ══ TOOLBAR INFO ══ */
.toolbar-info {
  font-size: 13px;
  color: var(--grey-700);
  display: flex;
  align-items: center;
  gap: 6px;
}

.toolbar-info strong {
  color: var(--accent);
  font-weight: 600;
}
