/* positioning.css — Positioning Doc Generator page styles */

/* ── Input panel extras ───────────────────────────────────────────────────── */

.pos-section-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.pos-section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #52525b;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid #27272a;
  background: transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.pos-section-label--active {
  color: #6366f1;
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.08);
}

.form-textarea {
  resize: vertical;
  min-height: 64px;
  line-height: 1.5;
}

.form-label-optional {
  color: #52525b;
  font-weight: 400;
  font-size: 11px;
}

.form-hint {
  text-align: center;
  font-size: 12px;
  color: #52525b;
  margin-top: 12px;
  margin-bottom: 0;
}

/* Brief context badge — shown when pre-filling from a brief */
.brief-context-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #a5b4fc;
}

.brief-context-icon {
  font-size: 14px;
}

.brief-context-clear {
  margin-left: auto;
  background: none;
  border: none;
  color: #6366f1;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.1s;
}

.brief-context-clear:hover {
  background: rgba(99, 102, 241, 0.15);
}

/* ── Doc view ─────────────────────────────────────────────────────────────── */

.pos-doc-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.25);
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 8px;
  vertical-align: middle;
}

.from-brief-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #71717a;
  margin-bottom: 16px;
  padding: 8px 14px;
  background: #111118;
  border-radius: 6px;
  border: 1px solid #27272a;
}

.from-brief-badge a {
  color: #6366f1;
  text-decoration: none;
}

.from-brief-badge a:hover {
  text-decoration: underline;
}

/* ── Sidebar link tab (navigation back to briefs) ─────────────────────────── */

.sidebar-tab-link {
  text-decoration: none;
  color: #a1a1aa;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: color 0.15s;
  cursor: pointer;
}

.sidebar-tab-link:hover {
  color: #f4f4f5;
}

/* ── Sidebar positioning doc items ───────────────────────────────────────────*/

.pos-doc-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #27272a;
  background: #111118;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-decoration: none;
  margin-bottom: 8px;
}

.pos-doc-item:hover {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.06);
}

.pos-doc-item-host {
  font-size: 13px;
  font-weight: 600;
  color: #f4f4f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pos-doc-item-meta {
  font-size: 11px;
  color: #52525b;
}

.pos-doc-item-status {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 4px;
}

.pos-doc-item-status--completed {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
}

.pos-doc-item-status--pending,
.pos-doc-item-status--processing {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
}

.pos-doc-item-status--failed {
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
}

/* ── Share toast ──────────────────────────────────────────────────────────── */

.pos-share-copied {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #18181f;
  border: 1px solid #27272a;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  color: #f4f4f5;
  z-index: 1000;
  animation: fade-in 0.15s ease;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
