.container {
  max-width: 100%;
  padding: 20px;
  margin: 0;
  padding-top: 0;
}
.controls {
  position: sticky;
  top: 0;
  background: white;
  padding: 15px;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}
.control-section {
  padding: 10px;
  border-radius: 6px;
  background: #f8f9fa;
}
.file-section {
  flex: 2;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.seal-section {
  flex: 2;
  min-width: 300px;
  display: flex;
  gap: 15px;
}
.button-group {
  display: flex;
  gap: 8px;
  align-items: center;
}
.export-section {
  flex: 1;
  min-width: 150px;
  display: flex;
  justify-content: center;
}
.primary-btn {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
}
.primary-btn:hover {
  background-color: #45a049;
}
.delete-btn {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
}
.delete-btn:hover {
  background-color: #c82333;
}
.export-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  min-width: 120px;
}
.export-btn:hover {
  background-color: #0056b3;
}
#pageContainer {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 20px;
  overflow-x: auto;
  white-space: nowrap;
  min-height: calc(100vh - 150px);
  width: 100vw;
  margin-left: -20px;
  margin-right: -20px;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
  background-color: #e0e0e0;
}
#pageContainer::-webkit-scrollbar {
  height: 10px;
}
#pageContainer::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}
#pageContainer::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}
#pageContainer::-webkit-scrollbar-thumb:hover {
  background: #555;
}
.canvas-wrapper {
  display: inline-block;
  margin-right: 20px;
  position: relative;
  background: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border-radius: 2px;
  padding: 0;
  height: auto !important;
}
.canvas-wrapper:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
.canvas-wrapper.active {
  outline: 4px solid #4caf50;
  outline-offset: 2px;
}
.page-info {
  text-align: center;
  padding: 5px;
  background: #333;
  color: #fff;
  border-radius: 2px 2px 0 0;
  cursor: pointer;
  font-size: 12px;
}
.page-info.active {
  background: #4caf50;
}
button {
  padding: 8px 15px;
  margin: 0 5px;
  border: none;
  border-radius: 4px;
  background-color: #4caf50;
  color: white;
  cursor: pointer;
}
button:hover {
  background-color: #45a049;
}
input[type="file"] {
  margin: 0 5px;
}
.file-input-group {
  display: inline-block;
  margin-right: 15px;
}
.file-input-group label {
  margin-right: 5px;
  color: #333;
  font-weight: bold;
}
