.container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 52px); /* Full viewport height minus header (52px) */
  padding: 0;
  overflow: hidden;
}

.controls {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  flex-shrink: 0;
}

.controlGroup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.input {
  flex: 1;
  min-width: 300px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  transition: border-color var(--transition-fast);
}

.input:focus {
  border-color: var(--color-primary);
  outline: none;
}

.button {
  padding: 0.5rem 1rem;
  background-color: var(--color-primary);
  color: white;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color var(--transition-fast);
}

.button:hover {
  background-color: var(--color-primary-dark);
}

.hints {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.hint {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

.errorBanner {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background-color: var(--color-danger);
  color: white;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  animation: slideIn 0.3s ease;
  z-index: 100;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.errorIcon {
  font-size: 1.25rem;
}

.retryButton {
  margin-left: auto;
  padding: 0.375rem 0.75rem;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  transition: background-color var(--transition-fast);
}

.retryButton:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.iframeContainer {
  position: relative;
  flex: 1;
  background-color: var(--color-bg-secondary);
  overflow: hidden;
  min-height: 0;
}

.loadingOverlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg);
  z-index: 10;
  gap: 1rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loadingOverlay p {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

.iframe {
  width: 100%;
  height: 100%;
  border: none;
}