/* Certificate Template Configuration */
.cert-template-cards {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cert-template-card {
  width: 320px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-align: center;
}

.cert-template-card:hover {
  border-color: var(--color1);
}

.cert-template-card.selected {
  border-color: var(--color1);
  box-shadow: 0 0 0 2px rgba(255, 101, 1, 0.2);
}

.cert-template-card img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  background-color: #f5f5f5;
}

/* File selector (images from templatesImages) */
.cert-file-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cert-file-thumb {
  width: 80px;
  height: 60px;
  object-fit: contain;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  padding: 3px;
  transition: border-color 0.2s;
  background: white;
}

.cert-file-thumb:hover {
  border-color: var(--color1);
}

.cert-file-thumb.selected {
  border-color: var(--color1);
  box-shadow: 0 0 0 2px rgba(255, 101, 1, 0.2);
}

.cert-file-upload-btn {
  width: 80px;
  height: 60px;
  border: 2px dashed #ccc;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #999;
  font-size: 16px;
  transition: border-color 0.2s, color 0.2s;
}

.cert-file-upload-btn:hover {
  border-color: var(--color1);
  color: var(--color1);
}
