:root {
  --pico-font-size: 16px;
  --pico-primary: #2563eb;
  --pico-primary-hover: #1d4ed8;
  --card-header-bg: #dc2626;
}

.container {
  max-width: 800px;
  padding-top: 1rem;
  padding-bottom: 2rem;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

header img {
  max-width: 120px;
  margin-bottom: 1rem;
}

header h1 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.form-section {
  margin-bottom: 2rem;
}

.result-section {
  margin-top: 2rem;
}

.result-section article {
  background: var(--pico-background-color);
  border: 1px solid var(--pico-delimiters-border-color);
}

#filePreview iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 4px;
}

.loading {
  text-align: center;
  padding: 2rem;
}

.hidden {
  display: none !important;
}

article > header {
  background: var(--card-header-bg);
  color: white;
  padding: 0.75rem 1rem;
  margin: -1px -1px 1rem -1px;
  border-radius: var(--pico-border-radius) var(--pico-border-radius) 0 0;
}

article > header h2 {
  color: white;
  margin: 0;
  font-size: 1.1rem;
}

article > header h2 i {
  margin-right: 0.5rem;
}

label i {
  margin-right: 0.5rem;
  color: var(--pico-primary);
}

button i {
  margin-right: 0.5rem;
}

footer {
  text-align: center;
  padding: 1rem;
}

footer small {
  display: block;
}

footer small a {
  color: var(--pico-muted-color);
  text-decoration: none;
}

footer small a:hover {
  color: var(--pico-primary);
}

@media (max-width: 576px) {
  header h1 {
    font-size: 1.25rem;
  }

  #filePreview iframe {
    height: 300px;
  }
}
