#markdown-editor-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 15px;
}

#markdown-editor-container .preview-card {
    flex: 1;
    min-height: 300px;
}

.toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 15px;
}

.toolbar-divider {
    width: 1px;
    height: 20px;
    background: #e5e7eb;
    margin: 0 4px;
}

.split-container {
    display: flex;
    gap: 20px;
    min-height: 500px;
}

.editor-pane,
.preview-pane {
    flex: 1;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 500px;
}

.pane-title {
    background: #f9fafb;
    padding: 10px 15px;
    font-weight: 600;
    border-bottom: 2px solid #e5e7eb;
    flex-shrink: 0;
}

.editor-pane textarea {
    width: 100%;
    flex: 1;
    padding: 15px;
    border: none;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: none;
    outline: none;
    box-sizing: border-box;
    background: #ffffff;
    color: #374151;
}

.editor-pane textarea::placeholder {
    color: #6b7280;
}

.preview-content {
    flex: 1;
    background: #ffffff;
    padding: 15px;
    overflow-y: auto;
    line-height: 1.8;
}

.preview-content h1 {
    font-size: 24px;
    color: #1f2937;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.preview-content h2 {
    font-size: 20px;
    color: #1f2937;
    margin-bottom: 12px;
}

.preview-content h3 {
    font-size: 18px;
    color: #374151;
    margin-bottom: 10px;
}

.preview-content strong {
    font-weight: 600;
    color: #1f2937;
}

.preview-content em {
    font-style: italic;
}

.preview-content code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    color: #dc2626;
}

.preview-content ul,
.preview-content ol {
    margin: 12px 0;
    padding-left: 24px;
}

.preview-content li {
    margin-bottom: 4px;
}

.preview-content blockquote {
    border-left: 4px solid #8b5cf6;
    padding: 8px 16px;
    background: #f3e8ff;
    margin: 12px 0;
    color: #6b21a8;
}

.preview-content a {
    color: #8b5cf6;
    text-decoration: underline;
}

.preview-content a:hover {
    color: #7c3aed;
}

.preview-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}

.preview-content th,
.preview-content td {
    border: 1px solid #e5e7eb;
    padding: 8px 12px;
    text-align: left;
}

.preview-content th {
    background: #f3f4f6;
    font-weight: 600;
}

.preview-content img {
    max-width: 100%;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .split-container {
        flex-direction: column;
    }
    
    .editor-pane,
    .preview-pane {
        height: 300px;
    }
}