/* Markdown Preview Styles for pbfarms */
.notepad-preview {
    font-size: 0.9rem;
    overflow-x: auto;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    :is(h1, h2, h3) {
        color: var(--primary);
        margin: 0.5rem 0;
    }
    h1 { font-size: 1.2rem; }
    h2 { font-size: 1.1rem; }
    h3 { font-size: 1.0rem; }
    p {
        margin-bottom: 0.75rem;
    }
    :is(ul, ol) {
        margin-left: 1.25rem;
        margin-bottom: 0.75rem;
    }
    ul {
        list-style-type: disc;
        li {
            list-style-position: outside;
            margin-bottom: 0.25rem;

            &:has(input[type="checkbox"]) {
                list-style-type: none;
                margin-left: -1.25rem;
                &:has(input:checked) {
                    text-decoration: line-through;
                }
            }
            
            input[type="checkbox"] {
                width: auto;
                margin: 0 0.5rem 0 0;
                vertical-align: middle;
                pointer-events: none;
            }
        }
    }
    
    table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 1rem;
        font-size: 0.875rem;
        td, th {
            border: 1px solid var(--border);
            padding: 0.2rem 0.4rem;
            text-align: center;
        }
        th {
            background: var(--bg);
            font-weight: 600;
        }
        tr:nth-child(even) {
            background: rgba(255, 255, 255, 0.02);
        }
    }
}

.notepad-footer {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    font-style: italic;
    text-align: right;
}
