*{box-sizing:border-box;margin:0;padding:0}body,html,#root{height:100%;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif}.app-container{color:#333;background:#f7f9fc;flex-direction:column;height:100%;display:flex}.app-container.dark{color:#f1f1f1;background:#1e1e2f}.header{color:#fff;background:#0077b6;justify-content:space-between;align-items:center;padding:1rem 2rem;display:flex;box-shadow:0 2px 8px #0003}.header h1{font-size:1.5rem}.toggle-theme-btn{color:#0077b6;cursor:pointer;background:#fff;border:none;border-radius:6px;padding:.5rem 1rem;font-weight:700;transition:all .3s}.toggle-theme-btn:hover{background:#e0e0e0}.previewer-container{flex-wrap:wrap;flex:1;gap:20px;max-width:1200px;margin:auto;padding:2rem;display:flex}.editor-section,.preview-section{background:#fff;border-radius:10px;flex:45%;padding:1rem;overflow:hidden;box-shadow:0 4px 15px #0000001a}.app-container.dark .editor-section,.app-container.dark .preview-section{background:#2b2b3c}.editor-section h2,.preview-section h2{border-bottom:2px solid #ddd;margin-bottom:1rem;padding-bottom:.5rem;font-size:1.2rem}#editor{resize:none;color:#333;background:#f9f9f9;border:none;outline:none;width:100%;height:400px;padding:1rem;font-family:Courier New,monospace;font-size:1rem}.app-container.dark #editor{color:#f1f1f1;background:#1e1e2f}#preview{height:400px;padding:1rem;overflow-y:auto}#preview h1,#preview h2,#preview h3{margin-top:1rem}#preview pre{color:#f8f8f2;background:#282c34;border-radius:6px;padding:1rem;font-size:.9rem;overflow-x:auto}#preview blockquote{border-left:4px solid #0077b6;margin:1rem 0;padding-left:1rem;font-style:italic}#preview img{border-radius:6px;max-width:100%;margin-top:1rem}.footer{text-align:center;color:#fff;background:#0077b6;padding:1rem}.footer a{color:#ffdd57;margin-left:.3rem;text-decoration:none}.footer a:hover{text-decoration:underline}@media (max-width:768px){.previewer-container{flex-direction:column;padding:1rem}#editor,#preview{height:300px}}pre code.hljs{padding:1em;display:block;overflow-x:auto}code.hljs{padding:3px 5px}.hljs{color:#c9d1d9;background:#0d1117}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#ff7b72}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#d2a8ff}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#79c0ff}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#a5d6ff}.hljs-built_in,.hljs-symbol{color:#ffa657}.hljs-comment,.hljs-code,.hljs-formula{color:#8b949e}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#7ee787}.hljs-subst{color:#c9d1d9}.hljs-section{color:#1f6feb;font-weight:700}.hljs-bullet{color:#f2cc60}.hljs-emphasis{color:#c9d1d9;font-style:italic}.hljs-strong{color:#c9d1d9;font-weight:700}.hljs-addition{color:#aff5b4;background-color:#033a16}.hljs-deletion{color:#ffdcd7;background-color:#67060c}
