/* Editor and Preview heights */
.CodeMirror {
    height: 500px;
    font-size: 14px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    background-color: #1e1e1e;
    color: #fff;
}

/* Preview styling */
#preview-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

#preview-content h1,
#preview-content h2,
#preview-content h3,
#preview-content h4,
#preview-content h5,
#preview-content h6 {
    margin-top: 24px;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.25;
}

#preview-content h1 { font-size: 2em; }
#preview-content h2 { font-size: 1.5em; }
#preview-content h3 { font-size: 1.25em; }
#preview-content h4 { font-size: 1em; }
#preview-content h5 { font-size: 0.875em; }
#preview-content h6 { font-size: 0.85em; }

#preview-content p {
    margin-top: 0;
    margin-bottom: 16px;
}

#preview-content a {
    color: #0366d6;
    text-decoration: none;
}

#preview-content a:hover {
    text-decoration: underline;
}

#preview-content code {
    padding: 0.2em 0.4em;
    margin: 0;
    font-size: 85%;
    background-color: rgba(27, 31, 35, 0.05);
    border-radius: 3px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

#preview-content pre {
    padding: 16px;
    overflow: auto;
    font-size: 85%;
    line-height: 1.45;
    background-color: #f6f8fa;
    border-radius: 3px;
}

#preview-content pre code {
    padding: 0;
    margin: 0;
    font-size: 100%;
    background-color: transparent;
}

#preview-content blockquote {
    padding: 0 1em;
    color: #6a737d;
    border-left: 0.25em solid #dfe2e5;
    margin: 0 0 16px 0;
}

#preview-content ul,
#preview-content ol {
    padding-left: 2em;
    margin-top: 0;
    margin-bottom: 16px;
}

#preview-content table {
    border-spacing: 0;
    border-collapse: collapse;
    margin-bottom: 16px;
    width: 100%;
}

#preview-content table th,
#preview-content table td {
    padding: 6px 13px;
    border: 1px solid #dfe2e5;
}

#preview-content table tr:nth-child(2n) {
    background-color: #f6f8fa;
}

/* Card and tab styling */
.card {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.nav-tabs .nav-link {
    border: none;
    padding: 8px 16px;
    color: #666;
}

.nav-tabs .nav-link.active {
    color: rgb(var(--primary_color));
    border-bottom: 2px solid rgb(var(--primary_color));
    background: transparent;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .CodeMirror {
        height: 400px;
    }
    
    .col-lg-6:first-child {
        margin-bottom: 1.5rem;
    }
}

/* Force content areas to maintain height */
.card-body {
    height: 500px;
}

@media (max-width: 991.98px) {
    .card-body {
        height: 400px;
    }
} 