/* Container Layout */
#designer-wrapper {
  font-family: Arial, sans-serif;
  padding: 20px;
  max-width: 100%;
  background-color: #f4f4f4;
}

/* Header */
.designer-header {
  text-align: center;
  margin-bottom: 20px;
}

/* Dual Canvas Row */
#canvas-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

/* Canvas Box */
.canvas-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 800px;
  max-width: 800px;
}

/* Design and Preview Canvases */
canvas#designer-canvas,
canvas#preview-canvas {
  display: block;
  width: 800px;
  height: 600px;
  background-color: white;
  border: 2px solid #333;
  outline: 2px dashed #ccc;
  max-width: 100%;
}

/* Canvas Labels */
.canvas-label {
  margin-top: 5px;
  font-weight: bold;
}

/* Controls Row */
#controls-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* Buttons */
.designer-btn {
  background-color: #444;
  color: white;
  border: none;
  padding: 10px 15px;
  margin: 5px;
  cursor: pointer;
  font-size: 14px;
}

.designer-btn:hover {
  background-color: #666;
}

/* Collapsible Content */
.jd-collapsible-content {
  display: none;
  padding: 10px;
  background-color: #fff;
  border: 1px solid #ddd;
  width: 100%;
  max-width: 900px;
  margin-bottom: 10px;
}

/* Layer List */
#layer-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.layer-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  border-bottom: 1px solid #ddd;
  padding: 4px 0;
}

.layer-icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

/* Pattern Sections */
#pattern-abstract,
#pattern-floral,
#pattern-other {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

/* Pattern Items */
.pattern-thumbnail {
  width: 50px;
  height: 50px;
  border: 1px solid #ccc;
  object-fit: contain;
  cursor: pointer;
}
