/* ================================================================
   shared.css — Open Road Web Apps
   Shared styles loaded by all apps in this repo.
   App-specific styles stay in each app's own <style> block.
   ================================================================ */

/* ── Annotation / Feedback Tool ──────────────────────────────── */
.feedback-btn {
  position: fixed; bottom: 20px; right: 20px; z-index: 900;
  display: flex; align-items: center; gap: 7px;
  padding: 9px 16px; background: var(--primary); color: white;
  border: none; border-radius: 20px; font-size: 13px; font-weight: 600;
  cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.45);
  transition: background .13s, transform .13s; font-family: inherit;
}
.feedback-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }

.annot-toolbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
  display: none; align-items: center; gap: 6px;
  padding: 7px 14px; height: 50px; box-sizing: border-box;
  background: #0a1628; border-bottom: 1px solid #1e3a5f;
  box-shadow: 0 2px 16px rgba(0,0,0,.6);
}
body.feedback-active {
  padding-top: 50px;
}
.annot-toolbar.active { display: flex; }

.at-label {
  font-size: 11px; font-weight: 700; color: #64748b;
  white-space: nowrap; letter-spacing: .06em; text-transform: uppercase;
  margin-right: 2px;
}
.at-sep { width: 1px; height: 22px; background: #1e3a5f; flex-shrink: 0; margin: 0 2px; }

.at-tool {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 6px;
  border: 1px solid transparent; background: transparent;
  cursor: pointer; color: #94a3b8; font-size: 14px; line-height: 1;
  transition: all .13s; font-family: inherit; flex-shrink: 0;
}
.at-tool:hover  { background: #1e2d45; color: #f1f5f9; border-color: #2d3a55; }
.at-tool.active { background: #1e3a8a; border-color: #3b82f6; color: white; }

.at-color {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .13s, border-color .13s; flex-shrink: 0;
}
.at-color:hover   { transform: scale(1.2); }
.at-color.active  { border-color: white; transform: scale(1.2); }

.at-action {
  padding: 5px 11px; border-radius: 6px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  border: 1px solid; transition: all .13s;
  white-space: nowrap; font-family: inherit;
}
.at-download { background: var(--primary); border-color: var(--primary); color: white; }
.at-download:hover { background: var(--primary-dark); }
.at-undo-btn { background: transparent; border-color: #2d3a55; color: #94a3b8; }
.at-undo-btn:hover { background: #1e2d45; color: #f1f5f9; }
.at-exit { background: transparent; border-color: #ef4444; color: #ef4444; }
.at-exit:hover { background: #3b0000; }

.at-spacer { flex: 1; }

#annot-canvas {
  position: fixed; top: 0; left: 0;
  z-index: 1000; display: none;
  cursor: crosshair; touch-action: none;
  pointer-events: none;
}
#annot-canvas.active { display: block; pointer-events: auto; }

.annot-text-input {
  position: fixed; z-index: 1003;
  background: rgba(0,0,0,.55); border: none;
  border-bottom: 2px dashed currentColor;
  border-radius: 3px 3px 0 0;
  outline: none; font-size: 18px; font-weight: 700;
  min-width: 180px; padding: 3px 6px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
