.latex-page {
  display: flex;
  padding: 20px;
  gap: 20px;
  background-color: #f5f5f5;
  width: 100%;
}

.latex-page__left {
  width: 40%;
  flex: none;
}

.latex-page__right {
  flex: 1;
  min-width: 0;
  max-width: 1200px;
  padding: 20px;
}

.content-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.dropzone {
  min-height: 300px;
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 20px;
  background-color: white;
  cursor: pointer;
  transition: border-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preview-pdf {
  width: 100%;
  height: 100%;
}

.dropzone:hover {
  border-color: #2196f3;
}

.dropzone-content {
  text-align: center;
}

.dropzone-subtitle {
  color: #666;
  margin: 8px 0;
}

.dropzone-paste-hint {
  color: #888;
  font-size: 0.9em;
  margin-top: 16px;
}

.markdown-section {
    padding: 10px;
    gap: 10px;
    position: relative;
}

.markdown-section, .preview-section {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.markdown-section h3, .preview-section h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
  font-size: 1.1em;
  margin-right: auto;
}

.markdown-section textarea {
  width: 90%;
  height: calc(100% - 40px);
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  resize: none;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  line-height: 1.5;
}

.markdown-section__header__copy {
  position: absolute;
  top: 20px;
  right: 40px;
}

.markdown-section__header__copy button {
  background-color: #f5f5f5;
  border: none;
  border-radius: 4px;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.markdown-section__header__copy button:hover {
  background-color: #e0e0e0;
}

.markdown-section__header__copy button svg {
  color: #666;
  font-size: 18px;
}

.preview-content {
  height: calc(100% - 40px);
  width: 90%;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.6;
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #666;
}

/* Markdown 预览样式 */
.preview-content img {
  max-width: 100%;
  height: auto;
}

.preview-content code {
  background-color: #f5f5f5;
  padding: 2px 4px;
  border-radius: 4px;
  font-family: 'Courier New', Courier, monospace;
}

.preview-content pre {
  background-color: #f5f5f5;
  padding: 15px;
  border-radius: 4px;
  overflow-x: auto;
}

.preview-content p {
  margin: 0.5em 0;
}

.preview-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.preview-pdf {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 4px;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

.loading-icon {
  margin-bottom: 10px;
}

.loading-text {
  color: #666;
}
