/* Preview Zone Layout */
.preview-zone {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.4s ease-out;
}

.preview-zone.hidden {
    display: none;
}

.preview-header {
    display: none;
}

.file-name {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.secondary-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.secondary-btn:hover {
    border-color: var(--text-secondary);
    background: hsla(0, 0%, 100%, 0.05);
}

/* Markdown Body Styles */
.markdown-body {
    padding: 0 0 2rem 0; /* Removed top padding */
    background: transparent; 
    border-radius: 0;
    border: none;
    box-shadow: none;
    text-align: justify;
}

/* Remove margin from first element to avoid gap */
.markdown-body > :first-child {
    margin-top: 0 !important;
}

/* Ensure code blocks don't get justified */
.markdown-body pre, 
.markdown-body code {
    text-align: left;
}

/* Make bold text pop */
.markdown-body strong,
.markdown-body b {
    font-weight: 700 !important;
    color: hsl(0, 0%, 100%) !important;
}

/* Fix Centering Issues */
.markdown-body div[align="center"],
.markdown-body p[align="center"],
.markdown-body center,
.markdown-body .text-center {
    text-align: center !important;
    text-indent: 0 !important;
}

.markdown-body div[align="center"] > *,
.markdown-body center > * {
    text-indent: 0 !important;
}

/* Paragraphs */
.markdown-body p {
    text-indent: 0;
    margin-bottom: 1em;
}

/* Reset indent for other elements */
.markdown-body blockquote p,
.markdown-body li p,
.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
    text-indent: 0;
}

/* Table Styles */
.markdown-body table {
    border-spacing: 0;
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.markdown-body table th,
.markdown-body table td {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    background-color: transparent; /* Clean look */
}

.markdown-body table th {
    font-weight: 600;
    background-color: var(--bg-secondary); /* Header distinction */
    text-align: left;
}

.markdown-body table tr:nth-child(2n) {
    background-color: hsla(0, 0%, 100%, 0.02); /* Very subtle striping */
}

.markdown-body table tr {
    background-color: transparent;
    border-top: 1px solid var(--border-color);
}
