/* assets/bridge.css */

/* Hide raw preview; show our results panel */
#capturedContainer { display: none !important; }

.gar-results { 
  max-width: 980px; margin: 24px auto; text-align: left;
  background: #fff; padding: 16px; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.gar-hint { color:#666; }

.gar-spinner { display:flex; align-items:center; gap:10px; font-weight:600; }
.gar-loader {
  width: 16px; height: 16px; border-radius: 50%;
  border: 3px solid #ddd; border-top-color: #007f8b; animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.gar-error { color: #b00020; font-weight: 600; }

.gar-problems h3,
.gar-annotated h3,
.gar-recs h3 { margin: 12px 0; }

.gar-chips { display:flex; flex-wrap:wrap; gap:8px; margin-bottom: 12px; }
.gar-chip  { background:#eef8f9; color:#045; padding:6px 10px; border-radius:999px; font-size:13px; }

.gar-gallery { display:grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 12px; }
.gar-card { background:#fafafa; border-radius:10px; padding:8px; border:1px solid #eee; }

/* Square thumbnails, no stretching */
.gar-card img {
  width: 100%;
  aspect-ratio: 1 / 1; /* makes the tile square */
  object-fit: cover;   /* crops inside the square instead of stretching */
  display: block;
  border-radius: 8px;
}

.gar-caption { font-size: 12px; color:#555; margin-top:6px; }

.gar-rec { display:flex; gap:14px; padding:12px 0; border-top:1px dashed #eee; }
.gar-rec:first-child { border-top:0; }
.gar-rec-left img { width:90px; height:90px; object-fit:cover; border-radius:10px; border:1px solid #eee; }
.gar-rec-title { font-weight:700; margin-bottom:4px; }
.gar-rec-reason { color:#444; margin-bottom:8px; font-size:14px; }
.gar-rec-actions .gar-btn {
  display:inline-block; background:#007f8b; color:#fff; padding:8px 12px; border-radius:8px; text-decoration:none;
}
.gar-rec-actions .gar-btn:hover { background:#006b74; }
.gar-routine h3 { margin: 16px 0 8px; }
.gar-routine-section { margin: 8px 0 12px; }
.gar-routine-section h4 { margin: 6px 0; font-weight: 700; }
.gar-routine-section ol { margin: 0 0 0 18px; }
/* Progress bar */
.gar-progress-wrap {
  width: 100%;
  background: #eee;
  border-radius: 8px;
  overflow: hidden;
  height: 20px;
  margin: 10px 0;
}

.gar-progress-bar {
  height: 100%;
  width: 0%;
  background: #007f8b;
  color: #fff;
  font-size: 12px;
  text-align: center;
  line-height: 20px;
  transition: width 0.3s ease;
}

