@layer components {
  .test-label-form {
    max-width: 100%;
  }

  .test-label-result {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
  }

  .test-label-result.success {
    background-color: #dcfce7;
    border: 1px solid #86efac;
  }

  .test-label-result.error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
  }

  .test-label-result h4 {
    margin-top: 0;
    margin-bottom: var(--spacing-md);
  }

  .test-label-result h5 {
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    font-size: 0.875rem;
    color: var(--color-text-muted);
  }

  .test-label-preview {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }

  .label-preview-frame {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: white;
  }

  .label-preview-image {
    max-width: 100%;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: white;
  }

  .label-html-preview {
    padding: var(--spacing-md);
    background-color: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: auto;
  }

  /* Test Label Page Layout */
  .test-label-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
  }

  .test-label-form-section,
  .test-label-result-section {
    min-width: 0;
  }

  .test-label-result-section .detail-section {
    position: sticky;
    top: var(--spacing-xl);
  }
}
