.editor-container{display:flex;flex-direction:column;width:100%;height:100%;border:1px solid #e2e8f0;border-radius:4px;overflow:hidden;font-family:system-ui,-apple-system,sans-serif;position:relative;margin:0}.editor{height:100%;margin-bottom:2px;padding:16px;background-color:#fff;overflow-y:auto;line-height:1.5;color:#1e293b}.toolbar{display:flex;align-items:center;padding:8px 12px;background-color:#f8fafc;border-bottom:1px solid #e2e8f0;flex-wrap:wrap;gap:4px;position:sticky;top:0;z-index:10}.toolbar-group,.font-toolbar{display:flex;gap:2px}.toolbar-button{display:flex;align-items:center;justify-content:center;background:transparent;border:none;border-radius:4px;padding:5px;color:#475569;cursor:pointer;transition:all .2s ease}.toolbar-button:hover{background-color:#e2e8f0;color:#1e293b}.toolbar-button.active{background-color:#cbd5e1;color:#0f172a;font-weight:500}.font-button{font-size:12px;padding:4px 8px;white-space:nowrap}.divider{width:1px;height:24px;background-color:#e2e8f0;margin:0 6px}.editor [style*=font-size]{line-height:normal!important}.editor span{vertical-align:baseline}.editor:focus{outline:none}.editor table{border-collapse:collapse;width:100%;margin:16px 0}.editor table td{border:1px solid #ccc;padding:8px}.editor img{max-width:100%;height:auto;margin:8px 0}.editor a{color:#0284c7;text-decoration:none}.editor a:hover{text-decoration:underline}.editor ul,.editor ol{padding-left:2.5em;margin:.5em 0;list-style-position:inside}.editor ul{list-style-type:disc}.editor ol{list-style-type:decimal}.editor ul li,.editor ol li{margin-bottom:.5em;padding-left:0;display:list-item}.editor ul ul,.editor ol ol,.editor ul ol,.editor ol ul{margin:.5em 0;padding-left:2em}.dialog-overlay{position:fixed;inset:0;background-color:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.dialog{background-color:#fff;border-radius:8px;width:350px;padding:20px;box-shadow:0 4px 20px #00000026}.dialog-title{margin-top:0;margin-bottom:16px;font-size:18px;font-weight:600;color:#1e293b}.dialog-content{margin-bottom:20px}.form-group{margin-bottom:12px;display:flex;align-items:center}.form-group label{width:80px;font-size:14px;color:#475569}.input-number,.input-text{padding:6px 10px;border:1px solid #e2e8f0;border-radius:4px;font-size:14px}.input-number{width:80px}.input-text{flex:1;min-width:200px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px}.dialog-button{padding:8px 16px;border-radius:4px;font-size:14px;cursor:pointer;border:none;font-weight:500}.cancel-button{background-color:#f1f5f9;color:#475569}.insert-button{background-color:#0ea5e9;color:#fff}.table-preview{margin-top:16px;display:flex;flex-direction:column;border:1px solid #e2e8f0;width:100%;max-width:250px;position:relative}.preview-row{display:flex;height:20px}.preview-cell{border:1px solid #cbd5e1;flex:1;min-width:20px}.preview-ellipsis{text-align:center;color:#94a3b8;font-size:12px;padding:2px}.preview-ellipsis-right{position:absolute;right:-20px;top:50%;transform:translateY(-50%);color:#94a3b8;font-size:12px}.dropdown-container{position:relative;display:inline-block}.dropdown-toggle{display:flex;align-items:center;gap:4px;padding:5px 8px;min-width:90px;justify-content:space-between}.dropdown-icon{margin-left:4px}.dropdown-icon-left{margin-right:4px}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;min-width:150px;padding:5px 0;margin-top:2px;background-color:#fff;border:1px solid #e2e8f0;border-radius:4px;box-shadow:0 4px 6px #0000001a;max-height:300px;overflow-y:auto}.font-size-menu{max-height:250px;overflow-y:auto;width:100px}.dropdown-item{display:block;width:100%;padding:8px 12px;text-align:left;background:none;border:none;cursor:pointer;font-size:14px;color:#1e293b;white-space:nowrap}.dropdown-item:hover{background-color:#f1f5f9}.dropdown-item.active{background-color:#e0f2fe;color:#0369a1;font-weight:500}.dropdown-item[data-value=h1]{font-size:24px;font-weight:700}.dropdown-item[data-value=h2]{font-size:20px;font-weight:700}.dropdown-item[data-value=h3]{font-size:18px;font-weight:700}.dropdown-item[data-value=h4]{font-size:16px;font-weight:700}.dropdown-item[data-value=h5]{font-size:14px;font-weight:700}.dropdown-item[data-value=h6]{font-size:12px;font-weight:700}.editor h1{font-size:2em;margin-bottom:.5em;font-weight:700}.editor h2{font-size:1.5em;margin-bottom:.5em;font-weight:700}.editor h3{font-size:1.17em;margin-bottom:.5em;font-weight:700}.editor h4{font-size:1em;margin-bottom:.5em;font-weight:700}.editor h5{font-size:.83em;margin-bottom:.5em;font-weight:700}.editor h6{font-size:.67em;margin-bottom:.5em;font-weight:700}
