* { box-sizing: border-box; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #1a1a1a;
  background: #f3f3f3;
}

#mainRow {
  display: flex;
  flex: 1;
  min-height: 0;
}

#privacyBanner {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: #e8f5e9;
  border-top: 1px solid #a5d6a7;
  color: #1b5e20;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
#privacyBanner i { font-style: normal; font-size: 16px; }

#controlsPanel {
  width: 320px;
  flex: none;
  background: #ffffff;
  border-right: 1px solid #e5e5e5;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

#controlsPanel label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: #1a1a1a;
}

#controlsPanel label.checkbox-row {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

#fileLabel {
  margin: 0;
  font-size: 12px;
  color: #616161;
}

input[type="text"], input[type="number"], select {
  background: #ffffff;
  border: 1px solid #d1d1d1;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 14px;
}
input[type="text"]:focus, input[type="number"]:focus, select:focus {
  outline: none;
  border-color: #0078d4;
}

input[type="color"] {
  width: 100%;
  height: 32px;
  border: 1px solid #d1d1d1;
  border-radius: 6px;
  padding: 2px;
}

input[type="range"] { accent-color: #0078d4; }

button {
  background: #f3f3f3;
  color: #1a1a1a;
  border: 1px solid #d1d1d1;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
}
button:hover { background: #e8e8e8; }
button:disabled { color: #8a8a8a; cursor: default; }

button.primary {
  background: #0078d4;
  color: #ffffff;
  border: none;
  font-weight: 600;
}
button.primary:hover { background: #106ebe; }
button.primary:disabled { background: #d1d1d1; color: #8a8a8a; }

#logoFooter {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding: 4px 2px;
  font-size: 11px;
  color: #616161;
  text-decoration: none;
}
#logoFooter:hover { color: #0078d4; text-decoration: underline; }
#logoFooter img { height: 20px; width: auto; border-radius: 2px; }

#previewArea {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
}

#previewBanner {
  display: none;
  align-items: center;
  gap: 8px;
  background: #e6f1fb;
  border: 1px solid #b5d4f4;
  border-radius: 6px;
  padding: 8px 12px;
}
#previewBanner.visible { display: flex; }

#previewBannerIcon { color: #0c447c; font-size: 16px; flex: none; }

#previewNote {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #0c447c;
}

#dropZone {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed transparent;
  border-radius: 8px;
}
#dropZone.dragover { border-color: #0078d4; background: #e6f1fb; }

#previewCanvas { max-width: 100%; max-height: 100%; display: none; box-shadow: 0 0 0 1px #e5e5e5; }

#placeholder {
  text-align: left;
  max-width: 560px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 20px 24px;
  color: #1a1a1a;
  font-size: 13px;
}
#placeholder h3 { margin: 0 0 6px; font-size: 15px; }
#placeholder h3:not(:first-child) { margin-top: 16px; }
#placeholder p { margin: 0 0 8px; }
#placeholder p.example { color: #0078d4; font-style: italic; margin: 10px 0; }
#placeholder ul { margin: 0; padding-left: 18px; }
#placeholder li { margin-bottom: 4px; }
