/* Algemene stijl */
body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

header {
  background-color: #f5f5f5;
  padding: 10px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-grid {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.header-logo img {
  max-width: 200px;
  height: auto;
}

.header-text {
  max-width: 600px;
  text-align: left;
}
header.hidden {
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}




#main {
  display: flex;
  flex: 1;
  overflow: hidden;
}

#side-toolbar {
  width: 220px;
  background: #fff;
  border-right: 1px solid #ccc;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#designArea {
  flex: 1;
  overflow: auto;
  padding: 10px;
}

#form-section {
  width: 250px;
  background: #fafafa;
  border-left: 1px solid #ccc;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#form-section input {
  padding: 6px;
  font-size: 14px;
}

#submitBtn {
  padding: 8px;
  background-color: #008cba;
  color: white;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

#submitBtn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.canvas-scroll-container {
  overflow-x: auto;
  overflow-y: auto;
  width: 100%;
  height: 100%;
}

.canvas-inner-container {
  width: max-content;
  margin: 0 auto;
  padding: 1px;
  border: 1px solid #ccc;
  background-color: #f8f8f8;
  background-image:
    linear-gradient(45deg, #ccc 25%, transparent 25%),
    linear-gradient(-45deg, #ccc 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ccc 75%),
    linear-gradient(-45deg, transparent 75%, #ccc 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* Herstel oude knop- en toolbar-stijlen */
.toolbar-column button,
.custom-upload-button {
  padding: 6px 12px;
  border: 1px solid #aaa;
  border-radius: 4px;
  background-color: #008cba;
  color: white;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.toolbar-column button:hover,
.custom-upload-button:hover {
  background-color: #0077a6;
}

.custom-upload-button {
  display: inline-block;
}

.toolbar-column label {
  font-weight: bold;
  font-size: 14px;
  text-align: center;
}

.toolbar-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

@media (max-width: 768px) {
  #side-toolbar {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .toolbar-column {
    width: 100%;
    align-items: center;
  }

  .canvas-wrapper {
    transform: scale(0.4);
  }
}

/* Knop voor auto crop */
#autoCropBtn {
  padding: 6px 12px;
  border: 1px solid #aaa;
  border-radius: 4px;
  background-color: #28a745;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#autoCropBtn:hover {
  background-color: #218838;
}
