* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    height: 100vh;
    overflow: hidden;
}

.container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    padding: 1rem;
    background-color: #fff;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 1.5rem;
    color: #2c3e50;
}

#downloadBtn {
    padding: 0.5rem 1rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
}

#downloadBtn:hover {
    background-color: #0056b3;
}

#downloadBtn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.content {
    flex: 1;
    display: flex;
    overflow: hidden;
    background-color: #fff;
    margin: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#editor, #preview {
    height: 100%;
    overflow-y: auto;
    padding: 1rem;
}

#markdownInput {
    width: 100%;
    height: 100%;
    padding: 1rem;
    border: none;
    resize: none;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 1rem;
    line-height: 1.6;
    background-color: #f8f9fa;
    border-radius: 4px;
}

#markdownInput:focus {
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 0 2px #007bff;
}

#preview {
    background-color: #fff;
    border-left: 1px solid #dee2e6;
    padding: 2rem;
    overflow-y: auto;
}

/* Split.js gutter styles */
.gutter {
    background-color: #eee;
    background-repeat: no-repeat;
    background-position: 50%;
}

.gutter.gutter-horizontal {
    cursor: col-resize;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==');
}

/* Preview content styles */
#preview h1, #preview h2, #preview h3, #preview h4, #preview h5, #preview h6 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #2c3e50;
}

#preview h1 {
    font-size: 2em;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.3em;
}

#preview h2 {
    font-size: 1.5em;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.3em;
}

#preview p {
    margin-bottom: 1em;
}

#preview code {
    background-color: #f8f9fa;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
}

#preview pre {
    background-color: #f8f9fa;
    padding: 1em;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 1em;
}

#preview pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    font-size: 0.9em;
}

#preview blockquote {
    border-left: 4px solid #007bff;
    padding: 0.5em 1em;
    margin: 1em 0;
    background-color: #f8f9fa;
    color: #495057;
}

#preview img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1em 0;
}

#preview table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

#preview th, #preview td {
    padding: 0.5em;
    border: 1px solid #dee2e6;
}

#preview th {
    background-color: #f8f9fa;
    font-weight: 600;
}

#preview ul, #preview ol {
    margin: 1em 0;
    padding-left: 2em;
}

#preview li {
    margin: 0.5em 0;
}

/* Loading indicator */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading::after {
    content: "Generating PDF...";
    font-size: 1.2em;
    color: #2c3e50;
} 