*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#f8f9fa;overflow:hidden}.app-container{display:flex;height:100vh;width:100vw}.left-sidebar{width:280px;background:#352442;color:#fff;display:flex;flex-direction:column;overflow:hidden;box-shadow:2px 0 10px #0000001a}.sidebar-content{padding:20px;display:flex;flex-direction:column;height:100%;overflow-y:auto}.brand{display:flex;align-items:center;gap:12px;margin-bottom:20px;padding-bottom:20px;border-bottom:1px solid rgba(255,255,255,.1)}.brand-logo{width:40px;height:40px;background:#ffffff1a;border-radius:10px;display:flex;align-items:center;justify-content:center;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.brand-text{flex:1}.brand-title{font-size:20px;font-weight:700;margin-bottom:2px}.brand-subtitle{font-size:12px;opacity:.8;font-weight:400}.new-chat-btn{background:linear-gradient(135deg,#ff6b35,#f7931e);color:#fff;border:none;padding:12px 20px;border-radius:10px;font-weight:600;cursor:pointer;transition:all .3s ease;margin-bottom:20px;display:flex;align-items:center;gap:8px;box-shadow:0 4px 15px #ff6b354d}.new-chat-btn:hover{transform:translateY(-2px);box-shadow:0 6px 20px #ff6b3566}.sidebar-section{margin-bottom:20px}.sidebar-section h3{font-size:11px;text-transform:uppercase;letter-spacing:1px;margin-bottom:12px;opacity:.7;font-weight:600}.sidebar-item{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:8px;cursor:pointer;transition:all .2s ease;margin-bottom:4px;font-size:14px}.sidebar-item:hover{background:#ffffff1a;transform:translate(2px)}.sidebar-item.active{background:#ffffff26;box-shadow:0 2px 8px #0000001a}.sidebar-item svg{width:16px;height:16px;opacity:.9}.chat-history{flex:1;overflow-y:auto;margin-bottom:20px}.chat-item{padding:10px 12px;border-radius:8px;cursor:pointer;transition:all .2s ease;margin-bottom:6px;border:1px solid transparent}.chat-item:hover{background:#ffffff0d;border-color:#ffffff1a}.chat-item-title{font-size:13px;font-weight:500;margin-bottom:2px}.chat-item-subtitle{font-size:11px;opacity:.7}.chat-item.view-more{color:gold;font-size:13px;font-weight:700;display:flex;align-items:center;gap:6px;padding:10px 14px;border-radius:8px;transition:all .2s ease;background:#ffd7001a;border:1px solid rgba(255,215,0,.2);margin-top:8px;text-shadow:0 1px 2px rgba(0,0,0,.1)}.chat-item.view-more:hover{color:#fff;background:#ffd70026;border-color:#ffd7004d;transform:translate(3px);box-shadow:0 2px 8px #ffd7001a}.user-profile{display:flex;align-items:center;gap:12px;padding:16px 20px;background:#ffffff1a;border-radius:16px;margin-top:auto;margin-bottom:20px;border:1px solid rgba(255,255,255,.2);-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);box-shadow:0 8px 32px #00000026;position:relative;overflow:hidden;min-height:70px}.user-profile:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:linear-gradient(135deg,#ffffff1a,#ffffff0d);pointer-events:none}.user-avatar{width:44px;height:44px;border-radius:50%;background:#ffffff26;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:2px solid rgba(255,255,255,.3);position:relative;z-index:1;flex-shrink:0}.user-info{flex:1;min-width:0;position:relative;z-index:1}.user-name{font-size:15px;font-weight:700;margin-bottom:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.1)}.user-status{font-size:12px;opacity:1;color:#4ade80;display:flex;align-items:center;gap:5px;font-weight:600}.user-status:before{content:"";width:7px;height:7px;background:#4ade80;border-radius:50%;display:inline-block;box-shadow:0 0 6px #4ade8099;flex-shrink:0}.user-actions{display:flex;gap:8px;position:relative;z-index:1;align-items:center}.action-btn{background:none;border:none;padding:8px;border-radius:8px;cursor:pointer;transition:all .2s ease;color:#fff;position:relative;display:flex;align-items:center;justify-content:center;width:36px;height:36px}.action-btn:hover{background:#ffffff26;transform:scale(1.05)}.notification-badge{position:absolute;top:2px;right:2px;background:#ef4444;color:#fff;font-size:10px;font-weight:700;padding:3px 5px;border-radius:10px;min-width:18px;text-align:center;line-height:1;box-shadow:0 2px 6px #ef444466;border:1px solid rgba(255,255,255,.2)}.main-content{flex:1;display:flex;flex-direction:column;background:#f8f9fa;overflow:hidden}.top-bar{background:#fff;border-bottom:1px solid #e5e7eb;padding:16px 24px;display:flex;align-items:center;justify-content:space-between;box-shadow:0 1px 3px #0000001a}.document-title{font-size:18px;font-weight:600;color:#1f2937}.top-bar-actions{display:flex;align-items:center;gap:16px}.status-indicator{display:flex;align-items:center;gap:6px;font-size:12px;color:#10b981;font-weight:500}.action-buttons{display:flex;gap:8px}.action-btn{background:none;border:none;padding:8px;border-radius:6px;cursor:pointer;transition:all .2s ease;color:#6b7280}.action-btn:hover{background:#f3f4f6;color:#374151}.content-tabs{background:#fff;border-bottom:1px solid #e5e7eb;padding:0 24px;display:flex;gap:24px}.tab{padding:16px 0;border-bottom:2px solid transparent;cursor:pointer;font-weight:500;transition:all .2s ease;color:#6b7280;font-size:14px}.tab.active{border-bottom-color:#667eea;color:#667eea}.tab:hover{color:#667eea}.document-container{flex:1;overflow-y:auto;padding:24px;background:#f8f9fa}.a4-page{width:210mm;height:297mm;background:#fff;margin:20px auto;box-shadow:0 4px 20px #0000001a;position:relative;page-break-after:always;border-radius:8px;overflow:hidden}.a4-page:last-child{page-break-after:auto}.page-content{padding:20mm;height:257mm;overflow:hidden;position:relative}.page-header{position:absolute;top:10mm;left:20mm;right:20mm;height:10mm;border-bottom:1px solid #e5e7eb;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#6b7280}.page-footer{position:absolute;bottom:10mm;left:20mm;right:20mm;height:10mm;border-top:1px solid #e5e7eb;display:flex;align-items:center;justify-content:center;font-size:12px;color:#6b7280}.editor-content{margin-top:15mm;margin-bottom:15mm;height:247mm;overflow-y:auto}.toolbar{background:#fff;border-bottom:1px solid #e5e7eb;padding:16px 24px;display:flex;gap:12px;align-items:center;flex-wrap:wrap;position:sticky;top:0;z-index:100;box-shadow:0 1px 3px #0000001a}.toolbar-group{display:flex;gap:6px;align-items:center}.toolbar-divider{width:1px;height:24px;background:#e5e7eb;margin:0 12px}.toolbar button{padding:8px 12px;border:1px solid #d1d5db;background:#fff;cursor:pointer;border-radius:6px;font-size:12px;transition:all .2s ease;display:flex;align-items:center;gap:6px;color:#374151}.toolbar button:hover{background:#f9fafb;border-color:#9ca3af;transform:translateY(-1px)}.toolbar button.active{background:#667eea;color:#fff;border-color:#667eea;box-shadow:0 2px 4px #667eea4d}.toolbar button:disabled{opacity:.5;cursor:not-allowed}.toolbar select{padding:8px 12px;border:1px solid #d1d5db;border-radius:6px;font-size:12px;background:#fff;color:#374151;cursor:pointer}.toolbar select:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.right-sidebar{width:280px;background:#f8f9fa;border-left:1px solid #e5e7eb;display:flex;flex-direction:column;box-shadow:-2px 0 10px #0000001a}.right-sidebar-tabs{background:#fff;border-bottom:1px solid #e5e7eb;display:flex}.right-tab{flex:1;padding:16px;text-align:center;cursor:pointer;font-size:12px;font-weight:500;transition:all .2s ease;border-bottom:2px solid transparent;color:#6b7280}.right-tab.active{border-bottom-color:#667eea;color:#667eea;background:#f8f9ff}.right-tab:hover{background:#f9fafb;color:#667eea}.thumbnail-container{flex:1;overflow-y:auto;padding:20px}.thumbnail{width:100%;height:120px;background:#fff;border:1px solid #e5e7eb;border-radius:8px;margin-bottom:16px;padding:12px;cursor:pointer;transition:all .2s ease;position:relative;box-shadow:0 2px 4px #0000000d}.thumbnail:hover{border-color:#667eea;box-shadow:0 4px 12px #667eea33;transform:translateY(-2px)}.thumbnail.active{border-color:#667eea;background:#f8f9ff;box-shadow:0 4px 12px #667eea4d}.thumbnail-label{position:absolute;top:8px;left:8px;background:#667eea;color:#fff;padding:3px 6px;border-radius:4px;font-size:10px;font-weight:700}.thumbnail-content{font-size:10px;color:#6b7280;line-height:1.4;margin-top:24px}.ask-vettam{padding:20px;border-top:1px solid #e5e7eb;background:#fff}.ask-input{width:100%;padding:12px 16px;border:1px solid #d1d5db;border-radius:8px;font-size:12px;background:#fff;display:flex;align-items:center;gap:10px;transition:all .2s ease}.ask-input:focus-within{border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.ask-input input{flex:1;border:none;outline:none;font-size:12px;color:#374151}.ask-input input::placeholder{color:#9ca3af}.ask-input button{background:none;border:none;cursor:pointer;color:#667eea;padding:4px;border-radius:4px;transition:all .2s ease}.ask-input button:hover{background:#f3f4f6;transform:scale(1.1)}.bottom-bar{background:#fff;border-top:1px solid #e5e7eb;padding:12px 24px;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#6b7280;box-shadow:0 -1px 3px #0000001a}.page-navigation{display:flex;align-items:center;gap:12px}.page-nav-btn{background:none;border:1px solid #d1d5db;padding:6px 12px;border-radius:6px;cursor:pointer;transition:all .2s ease;color:#6b7280}.page-nav-btn:hover{background:#f9fafb;border-color:#9ca3af;color:#374151}.page-nav-btn:disabled{opacity:.5;cursor:not-allowed}@media print{.left-sidebar,.right-sidebar,.toolbar,.top-bar,.content-tabs,.bottom-bar{display:none!important}.app-container{display:block}.main-content{width:100%}.document-container{padding:0}.a4-page{margin:0;box-shadow:none;page-break-after:always;width:210mm;height:297mm}.a4-page:last-child{page-break-after:auto}}.ProseMirror{outline:none;min-height:100%;font-family:Times New Roman,serif;font-size:12pt;line-height:1.5;color:#1f2937}.ProseMirror p{margin:0 0 1em}.ProseMirror h1,.ProseMirror h2,.ProseMirror h3{margin:1em 0 .5em;color:#111827}.ProseMirror h1{font-size:18pt;font-weight:700}.ProseMirror h2{font-size:14pt;font-weight:700}.ProseMirror h3{font-size:12pt;font-weight:700}.ProseMirror ul,.ProseMirror ol{margin:0 0 1em;padding-left:2em}.ProseMirror blockquote{margin:1em 0;padding-left:1em;border-left:3px solid #d1d5db;color:#6b7280}.ProseMirror table{border-collapse:collapse;margin:1em 0;width:100%}.ProseMirror table td,.ProseMirror table th{border:1px solid #d1d5db;padding:8px}.ProseMirror .page-break{page-break-after:always;height:0;border:none;margin:0;padding:0}.page-break-indicator{height:20px;background:#f3f4f6;border-top:2px dashed #d1d5db;border-bottom:2px dashed #d1d5db;margin:10px 0;display:flex;align-items:center;justify-content:center;font-size:10px;color:#6b7280}.document-title-editor{background:#fff;border-bottom:1px solid #e5e7eb;padding:10px;display:flex;align-items:center;gap:10px}.document-title-editor input{flex:1;padding:5px 10px;border:1px solid #d1d5db;border-radius:4px;font-size:14px}.document-title-editor button{padding:5px 10px;border:1px solid #d1d5db;background:#fff;cursor:pointer;border-radius:4px;font-size:12px}.document-title-editor button:hover{background:#f9fafb}@media (max-width: 1200px){.left-sidebar,.right-sidebar{width:240px}}@media (max-width: 768px){.app-container{flex-direction:column}.left-sidebar,.right-sidebar{width:100%;height:auto}.main-content{height:100vh}}.toolbar button:focus,.page-nav-btn:focus{outline:2px solid #667eea;outline-offset:2px}.loading{display:flex;justify-content:center;align-items:center;height:100vh;font-size:18px;color:#6b7280}::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{background:#f1f5f9}::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#94a3b8}.left-sidebar .sidebar-content::-webkit-scrollbar{width:6px}.left-sidebar .sidebar-content::-webkit-scrollbar-track{background:#ffffff1a}.left-sidebar .sidebar-content::-webkit-scrollbar-thumb{background:#ffffff4d;border-radius:3px}.left-sidebar .sidebar-content::-webkit-scrollbar-thumb:hover{background:#ffffff80}
