
/* Test page styles */
#model-drop-zone,
#image-drop-zone {
  transition: border-color 0.3s, background-color 0.3s;
  cursor: pointer;
}

#model-drop-zone.active,
#image-drop-zone.active {
  border-color: hsl(var(--primary));
  background-color: hsl(var(--primary) / 0.05);
}

#model-status {
  height: 1.5rem;
  transition: opacity 0.3s;
}

#videoElement {
  transition: opacity 0.3s;
}

/* Results display */
.result-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.result-item .result-image-container {
  position: relative;
  width: 100%;
  margin-bottom: 0.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: hsl(var(--muted) / 0.3);
}

.result-item .result-image {
  width: 100%;
  object-fit: contain;
}

.result-item .result-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}

.result-details {
  font-size: 0.875rem;
  padding: 0.5rem;
  background-color: hsl(var(--muted) / 0.2);
  border-radius: 0.25rem;
  margin-top: 0.5rem;
}

.result-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Loading indicator */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left-color: hsl(var(--primary));
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#loading-screen.visible {
  opacity: 1;
  pointer-events: auto;
}

/* For the toggleable views */
.hidden {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }
  
  #outputContainer {
    min-height: 150px;
  }
}
