/* Sticky footer layout setup */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
}

body {
  flex: 1;
}

/* Layout */
.main-layout {
  display: flex;
  flex-direction: row;
  flex: 1;
  gap: 10px;
}

.input-section {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.preview-section {
  flex: 1;
  background: #eaeaea;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  margin-bottom: 20px;
}

label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

input[type="text"],
textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border-radius: 4px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

textarea {
  height: 200px;
  resize: vertical;
}

button {
  display: block;
  width: 100%;
  padding: 10px;
  margin-top: 15px;
  background: #ef7d36;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

button:hover {
  background: #8e3d00;
}

button + button {
  margin-top: 10px;
}

#message {
  text-align: center;
  margin-top: 10px;
}

#pdfPreview {
  width: 100%;
  height: 95%;
  border: 1px solid #ccc;
  background-color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .main-layout {
    flex-direction: column;
  }

  .preview-section {
    height: 50vh;
  }

  #pdfPreview {
    height: 100%;
  }

  .footer {
    font-size: 12px;
    padding: 10px 5px;
  }
}

/* Sticky Footer */
.footer {
  background-color: #1c2541; /* dark navy blue */
  color: #ffffff;
  text-align: center;
  padding: 12px 10px;
  font-size: 13px;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
  position: sticky;
  bottom: 0;
  width: 100%;
  z-index: 10;
}

.footer strong {
  font-weight: 600;
}

.footer .heart-icon {
  color: #ff5c5c;
  animation: pulse 1.2s infinite;
  margin: 0 4px;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 0.9; }
}