.test-grid-container {
  padding: 16px;
}

.test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.test-grid-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.test-grid-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.test-image-wrapper {
  position: relative;
  width: 100%;
  height: 160px;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.test-thumbnail {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.test-thumbnail-placeholder {
  color: #aaa;
  font-size: 14px;
}

.test-annotated-link {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 12px;
  transition: background 0.2s;
}

.test-annotated-link:hover {
  background: rgba(0,0,0,0.8);
}

.test-meta {
  padding: 12px;
}

.test-filename {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  word-break: break-all;
}

.test-info {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.test-info div {
  margin-bottom: 2px;
}

.pagination-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  gap: 12px;
}

.error {
  color: var(--color-danger);
  text-align: center;
  padding: 32px;
}
