/* Markdown Editor Pane Styles */
.editor-container {
  display: flex;
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

/* Line Number Gutter */
.editor-gutter {
  width: 48px;
  background: #fafbfc;
  border-right: 1px solid #edf2f7;
  padding: 16px 0;
  color: #a0aec0;
  font-family: Consolas, "Fira Code", Monaco, monospace;
  font-size: 13px;
  line-height: 1.6;
  text-align: right;
  user-select: none;
  overflow: hidden;
  flex-shrink: 0;
}

.gutter-number {
  padding-right: 12px;
  height: 20.8px;
}

/* Editor Main Input Area */
.editor-main {
  flex: 1;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.editor-textarea {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  resize: none;
  padding: 16px 20px;
  font-family: Consolas, "Fira Code", Monaco, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #2d3748;
  background: transparent;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-y: auto;
  overflow-x: hidden;
  tab-size: 2;
}

.editor-textarea::selection {
  background: #b4d5fe;
}

.editor-textarea::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.editor-textarea::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.editor-textarea::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Drag & Drop Image Upload Overlay */
.editor-dropzone {
  position: absolute;
  inset: 10px;
  background: rgba(30, 107, 184, 0.06);
  border: 2px dashed #1e6bb8;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #1e6bb8;
  font-size: 14px;
  font-weight: 600;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.editor-dropzone.active {
  opacity: 1;
  pointer-events: auto;
}

.dropzone-icon {
  width: 48px;
  height: 48px;
  stroke: #1e6bb8;
}
