/* CSS reset */

*, *::before, *::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
body {
  line-height: 1.5;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}
input, button, textarea, select {
  font: inherit;
}
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}
p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/* Custom styles */

body {
  background-color: #f8f8f8;
  font-family: sans-serif;
}

.main {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.nav {
  height: 64px;
  display: flex;
  align-items: center;
  background: #e8e8e8;
  padding: 0 20px;
  border-bottom: 2px solid #ccc;
}

.links {
  flex: 1;
  display: flex;
  list-style: none;
  padding: 0;
  justify-content: center;
  gap: 8px;
}

.links > li {
  display: block;
}

.btn {
  display: block;
  font-size: 18px;
  padding: 4px 12px;
  background: white;
  border: 1px solid #aaa;
  border-radius: 8px;
  color: #000;
  text-decoration: none;
}

.btn:hover {
  transform: scale(1.02);
  box-shadow: rgba(0,0,0,.2) 1px 2px;
}

.btn-active {
  border-color: darkblue;
  border-width: 2px;
}

.layout {
  display: flex;
  flex: 1;
}

.layout-pane-preview {
  flex: 1;
  border-right: 2px solid #ccc;
}

.pdf-preview {
  border: 0;
  height: 100%;
  width: 100%;
}

.pdf-preview.loading {
  opacity: 0.5;
}

.layout-pane-config {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.config-main {
  flex: 1;
  padding: 15px;
}

.form-section {
  width: fit-content;
  padding: 15px;
  margin-bottom: 30px;
  border: 2px solid #ccc;
}

.form-section-header {
  font-size: 14px;
  font-weight: bold;
  color: #666;
  text-transform: uppercase;
  margin-top: -26px;
  background-color: #f8f8f8;
  width: fit-content;
  padding: 0 10px;
  margin-bottom: 6px;
}

label {
  display: block;
  font-size: 16px;
  font-weight: bold;
}

.config-main textarea, .config-main input {
  width: 300px;
  display: block;
  margin-bottom: 10px;
}

.actions {
  height: 80px;
  background: #e8e8e8;
  border-top: 2px solid #ccc;
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
}

.actions button {
  font-size: 22px;
  padding: 6px 12px;
  cursor: pointer;
}

.copies {
  margin-right: 10px;
}
