/* dashboard.css – Screenshot Annotator frontend stijlen */

/* ── Container ───────────────────────────────────────────────────── */
.sa-dashboard {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  color: #1e293b;
  max-width: 1100px;
  margin: 0 auto;
}

.sa-empty {
  padding: 40px;
  text-align: center;
  color: #64748b;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
}

/* ── Annotatie entry ─────────────────────────────────────────────── */
.sa-entry {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 32px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ── Header ──────────────────────────────────────────────────────── */
.sa-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.sa-entry-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sa-domain {
  font-weight: 700;
  font-size: 15px;
  color: #1e293b;
}

.sa-date {
  font-size: 13px;
  color: #64748b;
}

.sa-entry-count {
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  background: #eff6ff;
  padding: 4px 10px;
  border-radius: 20px;
}

/* ── Content: afbeelding + lijst naast elkaar ─────────────────────── */
.sa-content {
  display: flex;
  gap: 0;
  align-items: flex-start;
}

/* ── Afbeelding wrapper ──────────────────────────────────────────── */
.sa-image-wrapper {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  background: #0f172a;
}

.sa-screenshot {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

/* SVG overlay: ligt over de afbeelding, volgt dezelfde grootte */
.sa-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ── Annotatielijst ──────────────────────────────────────────────── */
.sa-annotation-list {
  width: 280px;
  flex-shrink: 0;
  padding: 16px;
  border-left: 1px solid #e2e8f0;
  background: #fff;
  overflow-y: auto;
  max-height: 600px;
}

.sa-annotation-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.sa-annotation-item:last-child {
  border-bottom: none;
}

.sa-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: Arial, sans-serif;
  flex-shrink: 0;
}

.sa-annotation-text {
  flex: 1;
  font-size: 14px;
  color: #334155;
  line-height: 1.5;
  margin: 0;
  word-break: break-word;
}

/* ── Responsive: stapel op mobiel ────────────────────────────────── */
@media (max-width: 680px) {
  .sa-content {
    flex-direction: column;
  }

  .sa-annotation-list {
    width: 100%;
    border-left: none;
    border-top: 1px solid #e2e8f0;
    max-height: none;
  }

  .sa-entry-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
