:root{font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;line-height:1.6;font-weight:400;color:#2d3748;background-color:#f8f9fa;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:linear-gradient(135deg,#f8f9fa,#e9ecef)}#root{width:100%;min-height:100vh}a{color:#1a365d;text-decoration:none;font-weight:500}a:hover{color:#2d3748;text-decoration:underline}h1,h2,h3,h4,h5,h6{color:#2d3748;margin:0;font-weight:600}p{margin:0;line-height:1.6}button{font-family:inherit;cursor:pointer;border:none;outline:none;transition:all .3s ease}input,textarea{font-family:inherit;border:none;outline:none}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:#f1f1f1}::-webkit-scrollbar-thumb{background:#cbd5e0;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#a0aec0}.app{min-height:100vh;background:linear-gradient(135deg,#f8f9fa,#e9ecef);font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;transition:all .3s ease}.app.rtl{direction:rtl;text-align:right;font-family:Segoe UI,Arial Unicode MS,Tahoma,sans-serif}.app.rtl .nav-btn{border-bottom:3px solid transparent}.app.rtl .nav-btn.active{border-bottom-color:#1a365d;border-right:none}.app.rtl .feature-card li:before{right:0;left:auto}.app.rtl .feature-card li{padding-right:1rem;padding-left:0}.app.rtl .search-container,.app.rtl .upload-zone,.app.rtl .uploaded-file{direction:rtl}.app-header{background:linear-gradient(135deg,#1a365d,#2d3748);color:#fff;padding:1.5rem 2rem;display:flex;justify-content:space-between;align-items:center;box-shadow:0 4px 6px #0000001a}.header-content h1{margin:0;font-size:2rem;font-weight:700;color:#fff}.app-subtitle{margin:.5rem 0 0;font-size:.9rem;opacity:.9;font-weight:300}.language-toggle{display:flex;gap:.5rem}.lang-btn{padding:.5rem 1rem;border:2px solid rgba(255,255,255,.3);background:transparent;color:#fff;border-radius:6px;cursor:pointer;transition:all .3s ease;font-weight:500}.lang-btn.active{background:#fff;color:#1a365d;border-color:#fff}.lang-btn:hover{border-color:#fff;background:#ffffff1a}.main-nav{background:#fff;padding:0;display:flex;overflow-x:auto;box-shadow:0 2px 4px #0000001a}.nav-btn{padding:1rem 1.5rem;border:none;background:transparent;color:#4a5568;cursor:pointer;white-space:nowrap;font-weight:500;transition:all .3s ease;border-bottom:3px solid transparent}.nav-btn:hover{background:#f7fafc;color:#2d3748}.nav-btn.active{color:#1a365d;border-bottom-color:#1a365d;background:#f7fafc}.main-content{padding:2rem;max-width:1200px;margin:0 auto}.module-container h2{color:#2d3748;margin-bottom:2rem;font-size:1.8rem;font-weight:600}.search-container{display:flex;gap:1rem;margin-bottom:2rem;max-width:800px}.search-input{flex:1;padding:1rem;border:2px solid #e2e8f0;border-radius:8px;font-size:1rem;transition:border-color .3s ease}.search-input:focus{outline:none;border-color:#1a365d}.search-btn{padding:1rem 2rem;background:#1a365d;color:#fff;border:none;border-radius:8px;font-weight:600;cursor:pointer;transition:background .3s ease}.search-btn:hover{background:#2d3748}.features-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.5rem;margin-top:2rem}.feature-card{background:#fff;padding:1.5rem;border-radius:12px;box-shadow:0 4px 6px #00000012;border:1px solid #e2e8f0;transition:transform .3s ease,box-shadow .3s ease}.feature-card:hover{transform:translateY(-2px);box-shadow:0 8px 25px #0000001a}.feature-card h3{color:#1a365d;margin-bottom:.5rem;font-size:1.2rem;font-weight:600}.feature-card p{color:#718096;margin-bottom:1rem;line-height:1.5}.feature-card ul{list-style:none;padding:0;margin:0}.feature-card li{color:#4a5568;position:relative;padding:.25rem 0 .25rem 1rem}.feature-card li:before{content:"•";color:#1a365d;position:absolute;left:0}.upload-area{margin-bottom:2rem}.upload-zone{border:2px dashed #cbd5e0;border-radius:12px;padding:3rem;text-align:center;background:#f7fafc;transition:all .3s ease;cursor:pointer}.upload-zone:hover{border-color:#1a365d;background:#edf2f7}.upload-zone.drag-over{border-color:#1a365d;background:#e6fffa;border-style:solid}.upload-zone p{margin:.5rem 0;color:#4a5568;font-weight:500}.upload-subtitle{font-size:.9rem;color:#718096!important;font-weight:400!important}.file-input{display:none}.uploaded-files{margin-top:1rem;background:#fff;border-radius:8px;padding:1rem;border:1px solid #e2e8f0}.uploaded-files h4{color:#2d3748;margin-bottom:.5rem;font-size:1rem}.uploaded-files ul{list-style:none;padding:0;margin:0}.uploaded-file{display:flex;justify-content:space-between;align-items:center;padding:.5rem 0;border-bottom:1px solid #f1f1f1}.uploaded-file:last-child{border-bottom:none}.file-name{color:#2d3748;font-weight:500}.file-size{color:#718096;font-size:.85rem}.search-results{margin-top:2rem;background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 4px 6px #00000012;border:1px solid #e2e8f0}.search-results h3{color:#1a365d;margin-bottom:1rem;font-size:1.3rem}.ai-analysis{background:#f0f9ff;border:1px solid #bae6fd;border-radius:8px;padding:1rem;margin-bottom:1.5rem}.ai-analysis h4{color:#0369a1;margin-bottom:.5rem;font-size:1rem}.ai-analysis p{color:#0f4880;line-height:1.6;margin:0}.results-list{display:flex;flex-direction:column;gap:1rem}.result-item{background:#fafafa;border:1px solid #e2e8f0;border-radius:8px;padding:1rem;transition:all .3s ease}.result-item:hover{background:#f7fafc;border-color:#cbd5e0;transform:translateY(-1px)}.result-item h4{color:#1a365d;margin-bottom:.5rem;font-size:1.1rem}.result-item p{color:#4a5568;line-height:1.6;margin-bottom:.75rem}.result-meta{display:flex;gap:1rem;align-items:center;font-size:.85rem;color:#718096}.source{font-weight:500;color:#2d3748}.date{color:#718096}.source-link{color:#1a365d;text-decoration:none;font-weight:500;transition:color .3s ease}.source-link:hover{color:#2d3748;text-decoration:underline}.search-btn:disabled{opacity:.6;cursor:not-allowed}.document-analysis-results{margin-top:1.5rem;background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 4px 6px #00000012;border:1px solid #e2e8f0}.document-analysis-results h4{color:#1a365d;margin-bottom:1rem;font-size:1.2rem}.analysis-content{display:grid;gap:1rem}.analysis-summary,.risk-assessment,.recommendations{background:#f8f9fa;border-radius:8px;padding:1rem}.analysis-summary p{white-space:pre-wrap;line-height:1.6;font-size:1rem;color:#2d3748;margin:0}.analysis-summary h5,.risk-assessment h5,.recommendations h5{color:#1a365d;font-size:1.1rem;font-weight:600;margin-bottom:.75rem;margin-top:0}.recommendations ul{margin:0;padding-left:1.2rem}.recommendations li{color:#2d3748;line-height:1.5;margin-bottom:.5rem}.risk-medium{color:#d69e2e;font-weight:600}.risk-high{color:#e53e3e;font-weight:600}.risk-low{color:#38a169;font-weight:600}.risk-unknown{color:#718096;font-weight:600}.document-followup-qa{margin-top:2rem;background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 4px 6px #00000012;border:1px solid #e2e8f0;border-top:3px solid #1a365d}.document-followup-qa h4{color:#1a365d;margin-bottom:.5rem;font-size:1.2rem;font-weight:600}.followup-description{color:#718096;font-size:.9rem;margin-bottom:1.5rem;line-height:1.5}.qa-history{margin-bottom:2rem}.qa-history h5{color:#2d3748;font-size:1rem;font-weight:600;margin-bottom:1rem;border-bottom:2px solid #e2e8f0;padding-bottom:.5rem}.qa-list{display:flex;flex-direction:column;gap:1.5rem}.qa-item{background:#f8f9fa;border-radius:8px;padding:1rem;border-left:4px solid #1a365d;transition:all .3s ease}.qa-item:hover{background:#edf2f7;transform:translateY(-1px)}.qa-item .question{margin-bottom:.75rem;font-size:.95rem;line-height:1.5}.qa-item .question strong{color:#1a365d;margin-right:.5rem}.qa-item .answer{margin-bottom:.5rem;font-size:.95rem;line-height:1.6;color:#2d3748}.qa-timestamp{color:#718096;font-size:.8rem;text-align:right;margin-top:.5rem;font-style:italic}.followup-input-section{background:#f7fafc;border-radius:8px;padding:1rem;border:1px solid #e2e8f0}.input-group{display:flex;gap:1rem;align-items:flex-end}.followup-textarea{flex:1;padding:.75rem;border:2px solid #e2e8f0;border-radius:6px;font-size:.95rem;font-family:inherit;resize:vertical;transition:all .3s ease;min-height:80px}.followup-textarea:focus{outline:none;border-color:#1a365d;background:#fff}.followup-textarea:disabled{background:#f1f1f1;color:#718096;cursor:not-allowed}.followup-submit-btn{background:#1a365d;color:#fff;border:none;border-radius:6px;padding:.75rem 1.5rem;font-size:.95rem;font-weight:600;cursor:pointer;transition:all .3s ease;white-space:nowrap;min-height:48px}.followup-submit-btn:hover:not(:disabled){background:#2d3748;transform:translateY(-1px)}.followup-submit-btn:disabled{opacity:.6;cursor:not-allowed;transform:none}.followup-hint{margin-top:.75rem;margin-bottom:0;color:#718096;font-size:.8rem;text-align:center;font-style:italic}.app.rtl .qa-item{border-left:none;border-right:4px solid #1a365d}@media (max-width: 768px){.input-group{flex-direction:column;align-items:stretch}.followup-submit-btn{margin-top:.5rem}.qa-item{padding:.75rem}.document-followup-qa{padding:1rem;margin-top:1rem}}.analyze-btn{background:#1a365d;color:#fff;border:none;border-radius:4px;padding:.25rem .75rem;font-size:.8rem;cursor:pointer;margin-left:.5rem;transition:background .3s ease}.analyze-btn:hover{background:#2d3748}.analyze-btn:disabled{opacity:.6;cursor:not-allowed}.nda-generator{background:#fff;border-radius:12px;padding:1.5rem;margin-bottom:2rem;box-shadow:0 4px 6px #00000012;border:1px solid #e2e8f0}.nda-generator h3{color:#1a365d;margin-bottom:1rem}.nda-form{display:grid;gap:1rem;margin-bottom:1rem}.form-group{display:flex;flex-direction:column;gap:.5rem}.form-group label{color:#2d3748;font-weight:500;font-size:.9rem}.form-group input,.form-group select{padding:.75rem;border:2px solid #e2e8f0;border-radius:6px;font-size:1rem;transition:border-color .3s ease}.form-group input:focus,.form-group select:focus{outline:none;border-color:#1a365d}.generate-btn{background:#1a365d;color:#fff;border:none;border-radius:8px;padding:1rem 2rem;font-size:1rem;font-weight:600;cursor:pointer;transition:background .3s ease;justify-self:start}.generate-btn:hover{background:#2d3748}.generate-btn:disabled{opacity:.6;cursor:not-allowed}.generated-document{margin-top:1.5rem;background:#f8f9fa;border-radius:8px;padding:1rem;border:1px solid #e2e8f0}.generated-document h4{color:#1a365d;margin-bottom:1rem}.document-content{background:#fff;border:1px solid #e2e8f0;border-radius:6px;padding:1rem;margin-bottom:1rem;max-height:400px;overflow-y:auto}.document-content pre{white-space:pre-wrap;font-family:Segoe UI,sans-serif;font-size:.9rem;line-height:1.6;margin:0;color:#2d3748}.document-actions{display:flex;gap:1rem}.download-btn,.copy-btn{background:#1a365d;color:#fff;border:none;border-radius:6px;padding:.5rem 1rem;font-size:.9rem;cursor:pointer;transition:background .3s ease}.download-btn:hover,.copy-btn:hover{background:#2d3748}.litigation-predictor{background:#fff;border-radius:12px;padding:1.5rem;margin-bottom:2rem;box-shadow:0 4px 6px #00000012;border:1px solid #e2e8f0}.litigation-predictor h3{color:#1a365d;margin-bottom:1rem}.predictor-form{display:flex;flex-direction:column;gap:1rem;margin-bottom:1rem}.predictor-form textarea{padding:.75rem;border:2px solid #e2e8f0;border-radius:6px;font-size:1rem;font-family:inherit;resize:vertical;transition:border-color .3s ease}.predictor-form textarea:focus{outline:none;border-color:#1a365d}.predict-btn{background:#1a365d;color:#fff;border:none;border-radius:8px;padding:1rem 2rem;font-size:1rem;font-weight:600;cursor:pointer;transition:background .3s ease;align-self:flex-start}.predict-btn:hover{background:#2d3748}.predict-btn:disabled{opacity:.6;cursor:not-allowed}.prediction-results{margin-top:1.5rem;background:#f8f9fa;border-radius:8px;padding:1rem;border:1px solid #e2e8f0}.prediction-results h4{color:#1a365d;margin-bottom:1rem}.prediction-content{display:grid;gap:1rem}.probability-score,.outcome-analysis,.reasoning{background:#fff;border-radius:6px;padding:1rem;border:1px solid #e2e8f0}.probability-score h5,.outcome-analysis h5,.reasoning h5{color:#2d3748;margin-bottom:.5rem;font-size:1rem}.probability-value{font-size:2rem;font-weight:700;color:#1a365d;margin:.5rem 0}@media (max-width: 768px){.nda-form{grid-template-columns:1fr}.document-actions{flex-direction:column}.prediction-content{grid-template-columns:1fr}}.template-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem;margin-bottom:2rem}.template-card{background:#fff;padding:1.5rem;border-radius:12px;box-shadow:0 4px 6px #00000012;border:1px solid #e2e8f0;text-align:center;transition:transform .3s ease}.template-card:hover{transform:translateY(-2px)}.template-card h3{color:#1a365d;margin-bottom:.5rem;font-size:1.1rem;font-weight:600}.template-card p{color:#718096;margin-bottom:1rem;font-size:.9rem}.template-btn{padding:.75rem 1.5rem;background:#1a365d;color:#fff;border:none;border-radius:6px;font-weight:500;cursor:pointer;transition:background .3s ease;width:100%}.template-btn:hover{background:#2d3748}.analytics-dashboard{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.5rem;margin-bottom:2rem}.metric-card{background:#fff;padding:1.5rem;border-radius:12px;box-shadow:0 4px 6px #00000012;border:1px solid #e2e8f0;text-align:center}.metric-card h3{color:#4a5568;margin-bottom:1rem;font-size:.9rem;font-weight:500;text-transform:uppercase;letter-spacing:.5px}.metric-value{font-size:2.5rem;font-weight:700;color:#1a365d;margin-bottom:.5rem}.metric-card p{color:#718096;font-size:.8rem;margin:0;line-height:1.4}.chat-container{display:flex;flex-direction:column;height:600px;background:#fff;border-radius:16px;box-shadow:0 8px 25px #0000001a;border:1px solid #e2e8f0;overflow:hidden}.chat-messages{flex:1;padding:1.5rem;overflow-y:auto;background:#fafafa;display:flex;flex-direction:column;gap:1rem;scroll-behavior:smooth}.welcome-message{text-align:center;color:#4a5568;padding:2rem;background:linear-gradient(135deg,#f7fafc,#edf2f7);border-radius:12px;margin-bottom:1rem}.welcome-message h3{color:#1a365d;margin-bottom:1rem;font-size:1.5rem;font-weight:600}.welcome-message p{margin-bottom:1.5rem;font-size:1.1rem;line-height:1.6}.example-questions{text-align:left;max-width:600px;margin:0 auto}.example-questions p{font-weight:500;margin-bottom:.75rem;color:#2d3748}.example-questions ul{list-style:none;padding:0;margin:0}.example-questions li{background:#fff;border:2px solid #e2e8f0;border-radius:8px;padding:.75rem 1rem;margin-bottom:.5rem;cursor:pointer;transition:all .3s ease;font-weight:500;color:#4a5568}.example-questions li:hover{border-color:#1a365d;background:#f7fafc;transform:translateY(-1px);box-shadow:0 2px 4px #0000001a}.message{display:flex;flex-direction:column;max-width:80%;margin-bottom:1rem}.message.user{align-self:flex-end}.message.assistant{align-self:flex-start}.message-content{background:#fff;border-radius:16px;padding:1rem 1.25rem;box-shadow:0 2px 8px #0000001a;border:1px solid #e2e8f0;position:relative}.message.user .message-content{background:linear-gradient(135deg,#1a365d,#2d3748);color:#fff;border-color:#1a365d}.message.assistant .message-content{background:#fff;border-color:#e2e8f0}.message-content p{margin:0;line-height:1.6;font-size:1rem}.message-sources{margin-top:.75rem;padding-top:.75rem;border-top:1px solid #e2e8f0}.message-sources h5{margin:0 0 .5rem;font-size:.85rem;font-weight:600;color:#4a5568;text-transform:uppercase;letter-spacing:.5px}.message-sources ul{list-style:none;padding:0;margin:0}.message-sources li{margin-bottom:.25rem}.message-sources a{color:#1a365d;text-decoration:none;font-weight:500;font-size:.9rem}.message-sources a:hover{text-decoration:underline}.source-type{color:#718096;font-size:.8rem;font-weight:400}.message-timestamp{font-size:.75rem;color:#a0aec0;margin-top:.5rem;padding:0 .25rem}.message.user .message-timestamp{text-align:right}.message.assistant .message-timestamp{text-align:left}.typing{align-self:flex-start}.typing-indicator{display:flex;gap:.25rem;align-items:center;padding:.5rem 0}.typing-indicator span{width:8px;height:8px;border-radius:50%;background:#cbd5e0;animation:typing 1.5s infinite ease-in-out}.typing-indicator span:nth-child(2){animation-delay:.2s}.typing-indicator span:nth-child(3){animation-delay:.4s}@keyframes typing{0%,60%,to{transform:translateY(0);opacity:.5}30%{transform:translateY(-10px);opacity:1}}.chat-input-container{display:flex;gap:.75rem;padding:1.5rem;background:#fff;border-top:1px solid #e2e8f0;align-items:flex-end}.chat-input{flex:1;min-height:60px;max-height:120px;padding:1rem 1.25rem;border:2px solid #e2e8f0;border-radius:25px;font-size:1.1rem;font-family:inherit;resize:none;transition:all .3s ease;background:#fafafa;line-height:1.5}.chat-input:focus{outline:none;border-color:#1a365d;background:#fff;box-shadow:0 0 0 3px #1a365d1a}.chat-input:disabled{opacity:.6;cursor:not-allowed;background:#f1f1f1}.send-btn{padding:1rem 1.75rem;background:linear-gradient(135deg,#1a365d,#2d3748);color:#fff;border:none;border-radius:25px;font-weight:600;font-size:1rem;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 12px #1a365d4d;min-width:100px;height:60px;display:flex;align-items:center;justify-content:center}.send-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 20px #1a365d66;background:linear-gradient(135deg,#2d3748,#4a5568)}.send-btn:active:not(:disabled){transform:translateY(0)}.send-btn:disabled{opacity:.5;cursor:not-allowed;transform:none;box-shadow:0 2px 4px #0000001a}.chat-info{margin-top:1.5rem}.chat-info .feature-card{background:#f8f9fa;border-color:#dee2e6}.app.rtl .message.user{align-self:flex-start}.app.rtl .message.assistant{align-self:flex-end}.app.rtl .message-timestamp{text-align:right}.app.rtl .message.user .message-timestamp{text-align:left}.app.rtl .chat-input-container{direction:rtl}.app.rtl .example-questions{text-align:right}@media (max-width: 768px){.app-header{flex-direction:column;gap:1rem;text-align:center}.main-nav{flex-direction:column}.nav-btn{text-align:left;border-bottom:1px solid #e2e8f0;border-right:none}.nav-btn.active{border-bottom-color:#e2e8f0;border-left:3px solid #1a365d}.app.rtl .nav-btn{text-align:right;border-left:none;border-right:none}.app.rtl .nav-btn.active{border-right:3px solid #1a365d;border-left:none}.search-container{flex-direction:column}.main-content{padding:1rem}.features-grid,.template-grid,.analytics-dashboard{grid-template-columns:1fr}.chat-container{height:500px;border-radius:12px}.chat-messages{padding:1rem}.welcome-message{padding:1.5rem}.welcome-message h3{font-size:1.25rem}.welcome-message p{font-size:1rem}.message{max-width:90%}.chat-input-container{padding:1rem;gap:.5rem;flex-direction:column;align-items:stretch}.chat-input{min-height:50px;font-size:1rem;border-radius:20px;margin-bottom:.5rem}.send-btn{height:50px;border-radius:20px;width:100%;padding:.75rem 1.5rem}}.sharepoint-connection{background:#fff;border-radius:16px;padding:2rem;box-shadow:0 4px 16px #0000001a;margin-bottom:2rem}.sharepoint-connection h3{color:#1a365d;margin-bottom:1rem;font-size:1.5rem;font-weight:600}.sharepoint-connection p{color:#4a5568;margin-bottom:2rem;font-size:1.1rem}.connection-form{display:flex;flex-direction:column;gap:1.5rem;margin-bottom:2rem}.connection-form .form-group{display:flex;flex-direction:column;gap:.5rem}.connection-form label{font-weight:600;color:#2d3748;font-size:.95rem}.connection-form input{padding:.875rem 1rem;border:2px solid #e2e8f0;border-radius:8px;font-size:1rem;background:#fff;transition:all .2s ease}.connection-form input:focus{outline:none;border-color:#3182ce;box-shadow:0 0 0 3px #3182ce1a}.connection-form input::placeholder{color:#a0aec0}.connect-btn{background:linear-gradient(135deg,#3182ce,#2b6cb0);color:#fff;border:none;padding:1rem 2rem;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s ease;text-transform:uppercase;letter-spacing:.5px}.connect-btn:hover:not(:disabled){background:linear-gradient(135deg,#2b6cb0,#2c5282);transform:translateY(-1px);box-shadow:0 4px 12px #3182ce4d}.connect-btn:disabled{background:#cbd5e0;cursor:not-allowed;transform:none;box-shadow:none}.connection-help{background:#f7fafc;border:1px solid #e2e8f0;border-radius:8px;padding:1.5rem;margin-top:1rem}.connection-help h4{color:#2d3748;margin-bottom:1rem;font-size:1.1rem;font-weight:600}.connection-help ol{color:#4a5568;line-height:1.6;padding-left:1.2rem}.connection-help li{margin-bottom:.5rem}.sharepoint-browser{background:#fff;border-radius:16px;padding:2rem;box-shadow:0 4px 16px #0000001a;margin-bottom:2rem}.connection-status{display:flex;align-items:center;gap:.75rem;padding:1rem;background:#f0fff4;border:1px solid #9ae6b4;border-radius:8px;margin-bottom:2rem}.status-indicator{width:10px;height:10px;border-radius:50%;animation:pulse 2s infinite}.status-indicator.connected{background:#38a169}@keyframes pulse{0%{box-shadow:0 0 #38a169b3}70%{box-shadow:0 0 0 10px #38a16900}to{box-shadow:0 0 #38a16900}}.disconnect-btn{background:#e53e3e;color:#fff;border:none;padding:.5rem 1rem;border-radius:6px;font-size:.9rem;cursor:pointer;transition:all .2s ease;margin-left:auto}.disconnect-btn:hover{background:#c53030}.browser-navigation{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:2rem}.nav-section{background:#f8f9fa;border-radius:12px;padding:1.5rem;border:1px solid #e9ecef}.nav-section h4{color:#1a365d;margin-bottom:1rem;font-size:1.2rem;font-weight:600;display:flex;align-items:center;gap:.5rem}.items-list{display:flex;flex-direction:column;gap:.75rem;max-height:300px;overflow-y:auto}.item{display:flex;align-items:center;gap:.75rem;padding:.875rem;background:#fff;border:2px solid #e2e8f0;border-radius:8px;cursor:pointer;transition:all .2s ease}.item:hover{border-color:#3182ce;background:#f7fafc;transform:translateY(-1px)}.item.selected{border-color:#3182ce;background:#ebf8ff;box-shadow:0 2px 8px #3182ce33}.item-icon{font-size:1.2rem;min-width:24px}.item-name{font-weight:500;color:#2d3748;flex:1}.file-item{display:flex;align-items:center;justify-content:space-between;padding:1rem;background:#fff;border:2px solid #e2e8f0;border-radius:8px;transition:all .2s ease}.file-item:hover{border-color:#3182ce;background:#f7fafc}.file-info{display:flex;align-items:center;gap:.75rem;flex:1}.file-icon{font-size:1.2rem;min-width:24px}.file-name{font-weight:500;color:#2d3748;margin-right:.5rem}.file-size{color:#718096;font-size:.875rem}.file-actions{display:flex;gap:.5rem}.action-btn{background:#3182ce;color:#fff;border:none;padding:.5rem 1rem;border-radius:6px;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s ease;white-space:nowrap}.action-btn:hover{background:#2b6cb0;transform:translateY(-1px)}.action-btn:nth-child(2){background:#38a169}.action-btn:nth-child(2):hover{background:#2f855a}.app.rtl .connection-form,.app.rtl .browser-navigation,.app.rtl .connection-status{direction:rtl}.app.rtl .disconnect-btn{margin-left:0;margin-right:auto}.app.rtl .file-item{direction:rtl}.app.rtl .file-actions{order:-1}.app.rtl .connection-help ol{padding-right:1.2rem;padding-left:0}@media (max-width: 768px){.sharepoint-connection,.sharepoint-browser{padding:1.5rem;margin-bottom:1.5rem}.browser-navigation{grid-template-columns:1fr;gap:1.5rem}.connection-form{gap:1rem}.connection-status{padding:.875rem}.nav-section{padding:1rem}.file-item{flex-direction:column;align-items:flex-start;gap:1rem;padding:1rem}.file-actions{width:100%;justify-content:flex-end}.action-btn{padding:.625rem 1rem}}.template-management{background:#fff;border-radius:16px;padding:2rem;box-shadow:0 8px 16px #0000001a;border:1px solid #e2e8f0;margin-bottom:2rem;position:relative;overflow:hidden}.template-management:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,#1a365d,#2d3748,#4a5568)}.template-management h3{color:#1a365d;font-size:1.5rem;font-weight:700;margin-bottom:.5rem;display:flex;align-items:center;gap:.75rem}.template-management h3:before{content:"📄";font-size:1.25rem}.template-management>p{color:#718096;margin-bottom:2rem;font-size:1rem;line-height:1.6}.template-upload-section{background:linear-gradient(135deg,#f8f9fa,#edf2f7);border-radius:12px;padding:2rem;border:2px dashed #cbd5e0;margin-bottom:2rem;transition:all .3s ease;position:relative}.template-upload-section:hover{border-color:#1a365d;background:linear-gradient(135deg,#edf2f7,#e2e8f0);transform:translateY(-2px);box-shadow:0 4px 12px #1a365d1a}.template-upload-section h4{color:#1a365d;font-size:1.25rem;font-weight:600;margin-bottom:.5rem;display:flex;align-items:center;gap:.5rem}.template-upload-section h4:before{content:"⬆️"}.close-upload{position:absolute;top:1rem;right:1rem;background:#f56565;color:#fff;border:none;border-radius:50%;width:32px;height:32px;font-size:1.2rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .3s ease}.close-upload:hover{background:#e53e3e;transform:scale(1.1)}.form-group{margin-bottom:1.5rem}.form-group label{display:block;color:#2d3748;font-weight:600;margin-bottom:.5rem;font-size:.95rem}.form-group input,.form-group select{width:100%;padding:.875rem 1rem;border:2px solid #e2e8f0;border-radius:8px;font-size:.95rem;font-family:inherit;transition:all .3s ease;background:#fff}.form-group input:focus,.form-group select:focus{outline:none;border-color:#1a365d;box-shadow:0 0 0 3px #1a365d1a;background:#fafafa}.form-group input::placeholder{color:#a0aec0}.form-group input[type=file]{padding:.75rem;background:#f7fafc;border-style:dashed;cursor:pointer}.form-group input[type=file]:hover{border-color:#1a365d;background:#edf2f7}.upload-actions{display:flex;gap:1rem;align-items:center;justify-content:flex-end;margin-top:2rem;padding-top:1.5rem;border-top:1px solid #e2e8f0}.upload-template-btn{background:linear-gradient(135deg,#1a365d,#2d3748);color:#fff;border:none;border-radius:8px;padding:.875rem 2rem;font-size:.95rem;font-weight:600;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;gap:.5rem;box-shadow:0 4px 8px #1a365d33}.upload-template-btn:hover{background:linear-gradient(135deg,#2d3748,#4a5568);transform:translateY(-2px);box-shadow:0 6px 16px #1a365d4d}.upload-template-btn:disabled{background:#cbd5e0;cursor:not-allowed;transform:none;box-shadow:none}.cancel-upload-btn{background:#f7fafc;color:#718096;border:2px solid #e2e8f0;border-radius:8px;padding:.875rem 1.5rem;font-size:.95rem;font-weight:500;cursor:pointer;transition:all .3s ease}.cancel-upload-btn:hover{background:#edf2f7;border-color:#cbd5e0;color:#4a5568}.template-list{background:#f8f9fa;border-radius:12px;padding:1.5rem;border:1px solid #e2e8f0;margin-bottom:2rem}.template-list h4{color:#1a365d;font-size:1.1rem;font-weight:600;margin-bottom:1rem;display:flex;align-items:center;gap:.5rem}.template-list h4:before{content:"📋"}.template-items{display:grid;gap:1rem}.template-item{background:#fff;padding:1rem 1.25rem;border-radius:8px;border:1px solid #e2e8f0;display:flex;justify-content:between;align-items:center;transition:all .3s ease}.template-item:hover{border-color:#1a365d;box-shadow:0 2px 8px #1a365d1a;transform:translate(4px)}.template-item span{color:#2d3748;font-weight:500;flex:1}.template-item button{background:#f56565;color:#fff;border:none;border-radius:6px;padding:.5rem;font-size:1rem;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;justify-content:center;width:36px;height:36px}.template-item button:hover{background:#e53e3e;transform:scale(1.1)}.placeholder-help{background:linear-gradient(135deg,#edf2f7,#e2e8f0);border-radius:12px;padding:2rem;border:1px solid #cbd5e0;margin-bottom:2rem}.placeholder-help h4{color:#1a365d;font-size:1.2rem;font-weight:600;margin-bottom:1.5rem;display:flex;align-items:center;gap:.5rem}.placeholder-help h4:before{content:"🔧"}.placeholder-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1rem}.placeholder-item{background:#fff;padding:1rem;border-radius:8px;border:1px solid #e2e8f0;font-family:Courier New,monospace;font-size:.9rem;color:#2d3748;transition:all .3s ease;position:relative}.placeholder-item:hover{border-color:#1a365d;box-shadow:0 2px 8px #1a365d1a;transform:translateY(-2px)}.placeholder-item:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#1a365d;border-radius:0 2px 2px 0}.upload-new-template{background:linear-gradient(135deg,#38a169,#2f855a);color:#fff;border:none;border-radius:10px;padding:1rem 2rem;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;gap:.75rem;margin-bottom:2rem;box-shadow:0 4px 12px #38a1694d}.upload-new-template:hover{background:linear-gradient(135deg,#2f855a,#276749);transform:translateY(-2px);box-shadow:0 6px 20px #38a16966}.upload-new-template:before{content:"➕";font-size:1.1rem}@media (max-width: 768px){.template-management{padding:1.5rem;margin-bottom:1.5rem}.template-upload-section{padding:1.5rem}.upload-actions{flex-direction:column;gap:.75rem}.upload-template-btn,.cancel-upload-btn{width:100%;justify-content:center}.placeholder-grid{grid-template-columns:1fr}.template-item{flex-direction:column;align-items:flex-start;gap:.75rem}.template-item button{align-self:flex-end}}@media (max-width: 480px){.connection-form .form-group{gap:.375rem}.connection-form input{padding:.75rem;font-size:.95rem}.connect-btn{padding:.875rem 1.5rem;font-size:.95rem}.file-actions{flex-direction:column;gap:.375rem}.action-btn{width:100%;text-align:center}}.litigation-predictor{background:#fff;border-radius:16px;padding:2rem;margin-bottom:2rem;box-shadow:0 4px 20px #00000014;border:1px solid #e2e8f0}.litigation-predictor h3{color:#1a365d;font-size:1.5rem;font-weight:700;margin-bottom:1.5rem;text-align:center}.predictor-form{margin-bottom:2rem}.predictor-form .form-group{margin-bottom:1.5rem}.predictor-form label{display:block;color:#2d3748;font-weight:600;margin-bottom:.5rem;font-size:1rem}.predictor-form textarea{width:100%;padding:1rem;border:2px solid #e2e8f0;border-radius:12px;font-size:1rem;font-family:inherit;line-height:1.6;resize:vertical;transition:all .3s ease;background:#fff}.predictor-form textarea:focus{outline:none;border-color:#1a365d;box-shadow:0 0 0 3px #1a365d1a}.predictor-form textarea:disabled{background:#f7fafc;color:#718096;cursor:not-allowed;opacity:.7}.predict-btn{background:linear-gradient(135deg,#1a365d,#2d3748);color:#fff;border:none;border-radius:12px;padding:1rem 2.5rem;font-size:1.1rem;font-weight:600;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 12px #1a365d4d;display:block;margin:0 auto;min-width:200px}.predict-btn:hover:not(:disabled){background:linear-gradient(135deg,#2d3748,#4a5568);transform:translateY(-2px);box-shadow:0 6px 20px #1a365d66}.predict-btn:disabled{opacity:.6;cursor:not-allowed;transform:none;box-shadow:0 2px 8px #1a365d33}.prediction-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem;margin:2rem 0}.prediction-metrics .metric-card{background:linear-gradient(135deg,#f8f9fa,#fff);border:2px solid #e2e8f0;border-radius:16px;padding:1.5rem;text-align:center;transition:all .3s ease;position:relative;overflow:hidden}.prediction-metrics .metric-card:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,#1a365d,#2d3748)}.prediction-metrics .metric-card:hover{transform:translateY(-4px);box-shadow:0 8px 25px #0000001f;border-color:#1a365d}.metric-title{color:#4a5568;font-size:.9rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px;margin-bottom:.75rem}.metric-value{color:#1a365d;font-size:2rem;font-weight:700;margin-bottom:.5rem;line-height:1.2}.metric-value.risk-high{color:#e53e3e}.metric-value.risk-medium{color:#d69e2e}.metric-value.risk-low{color:#38a169}.metric-subtitle{color:#718096;font-size:.85rem;line-height:1.4}.prediction-details{margin:2rem 0}.detail-section{background:#fff;border:1px solid #e2e8f0;border-radius:12px;margin-bottom:1rem;overflow:hidden;transition:all .3s ease}.detail-section:hover{border-color:#cbd5e0;box-shadow:0 2px 8px #0000000d}.section-toggle{width:100%;background:#f8f9fa;border:none;padding:1.25rem 1.5rem;display:flex;justify-content:space-between;align-items:center;cursor:pointer;font-size:1rem;font-weight:600;color:#2d3748;transition:all .3s ease}.section-toggle:hover{background:#f1f5f9;color:#1a365d}.section-toggle span:first-child{flex:1;text-align:left}.toggle-icon{color:#718096;font-size:.8rem;transition:transform .3s ease}.toggle-icon.expanded{transform:rotate(180deg)}.section-content{padding:1.5rem;background:#fff;border-top:1px solid #f1f5f9}.analysis-text p{color:#2d3748;line-height:1.7;font-size:1rem;margin:0}.scenarios-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1rem}.scenario-item{background:#f8f9fa;border-radius:12px;padding:1.25rem;border-left:4px solid #cbd5e0;transition:all .3s ease}.scenario-item.best-case{border-left-color:#38a169;background:linear-gradient(135deg,#f0fff4,#f8f9fa)}.scenario-item.likely-case{border-left-color:#1a365d;background:linear-gradient(135deg,#f0f9ff,#f8f9fa)}.scenario-item.worst-case{border-left-color:#e53e3e;background:linear-gradient(135deg,#fff5f5,#f8f9fa)}.scenario-item h5{color:#2d3748;font-size:1rem;font-weight:600;margin-bottom:.75rem;margin-top:0}.scenario-item p{color:#4a5568;line-height:1.6;font-size:.95rem;margin:0}.sources-list{display:flex;flex-direction:column;gap:1rem}.source-item{background:#f8f9fa;border-radius:8px;padding:1rem;border-left:3px solid #1a365d;transition:all .3s ease}.source-item:hover{background:#f1f5f9;transform:translate(4px)}.source-title{color:#1a365d;font-weight:600;font-size:1rem;text-decoration:none;display:block;margin-bottom:.5rem;transition:color .3s ease}.source-title:hover{color:#2d3748;text-decoration:underline}.source-relevance{color:#718096;font-size:.9rem;line-height:1.5;margin:0;font-style:italic}.prediction-disclaimer{background:linear-gradient(135deg,#fff8e1,#f7fafc);border:1px solid #f6e05e;border-radius:12px;padding:1.25rem;margin:2rem 0}.prediction-disclaimer p{color:#744210;line-height:1.6;margin:0;font-size:.95rem}.prediction-disclaimer strong{color:#975a16}.followup-qa-section{background:linear-gradient(135deg,#f0f9ff,#fff);border:2px solid #bae6fd;border-radius:16px;padding:2rem;margin-top:2rem}.followup-qa-section h4{color:#1a365d;font-size:1.3rem;font-weight:700;margin-bottom:.75rem;margin-top:0}.followup-description{color:#4a5568;line-height:1.6;margin-bottom:1.5rem;font-size:.95rem}.followup-history{margin-bottom:2rem}.followup-history h5{color:#2d3748;font-size:1.1rem;font-weight:600;margin-bottom:1rem;margin-top:0;border-bottom:2px solid #e2e8f0;padding-bottom:.5rem}.qa-list{display:flex;flex-direction:column;gap:1rem}.qa-item{background:#fff;border-radius:12px;padding:1.25rem;border-left:4px solid #3182ce;box-shadow:0 2px 8px #0000000f;transition:all .3s ease}.qa-item:hover{transform:translateY(-2px);box-shadow:0 4px 12px #0000001a}.qa-item .question{margin-bottom:.75rem;font-size:.95rem;line-height:1.6;color:#2d3748}.qa-item .question strong{color:#3182ce;margin-right:.5rem}.qa-item .answer{margin-bottom:.75rem;font-size:.95rem;line-height:1.6;color:#4a5568}.qa-item .answer strong{color:#38a169;margin-right:.5rem}.qa-timestamp{color:#718096;font-size:.8rem;text-align:right;font-style:italic;margin-top:.5rem}.followup-input-section{background:#fff;border-radius:12px;padding:1.5rem;border:1px solid #e2e8f0}.input-group{display:flex;gap:1rem;align-items:flex-end;margin-bottom:1rem}.followup-textarea{flex:1;padding:.875rem;border:2px solid #e2e8f0;border-radius:8px;font-size:.95rem;font-family:inherit;resize:vertical;transition:all .3s ease;min-height:80px;line-height:1.5}.followup-textarea:focus{outline:none;border-color:#3182ce;box-shadow:0 0 0 3px #3182ce1a}.followup-textarea:disabled{background:#f7fafc;color:#718096;cursor:not-allowed;opacity:.7}.followup-submit-btn{background:linear-gradient(135deg,#3182ce,#2c5282);color:#fff;border:none;border-radius:8px;padding:.875rem 1.5rem;font-size:.95rem;font-weight:600;cursor:pointer;transition:all .3s ease;white-space:nowrap;min-height:48px;box-shadow:0 2px 8px #3182ce4d}.followup-submit-btn:hover:not(:disabled){background:linear-gradient(135deg,#2c5282,#2a4365);transform:translateY(-1px);box-shadow:0 4px 12px #3182ce66}.followup-submit-btn:disabled{opacity:.6;cursor:not-allowed;transform:none;box-shadow:0 2px 8px #3182ce33}.followup-hint{color:#718096;font-size:.85rem;text-align:center;font-style:italic;line-height:1.4;margin:0}.prediction-error{background:linear-gradient(135deg,#fed7d7,#fff);border:2px solid #fc8181;border-radius:16px;padding:2rem;margin:2rem 0;text-align:center}.prediction-error h4{color:#c53030;font-size:1.2rem;font-weight:600;margin-bottom:1rem;margin-top:0}.prediction-error p{color:#742a2a;line-height:1.6;margin-bottom:1.5rem;font-size:1rem}.retry-btn{background:linear-gradient(135deg,#e53e3e,#c53030);color:#fff;border:none;border-radius:8px;padding:.75rem 1.5rem;font-size:.95rem;font-weight:600;cursor:pointer;transition:all .3s ease;box-shadow:0 2px 8px #e53e3e4d}.retry-btn:hover:not(:disabled){background:linear-gradient(135deg,#c53030,#9c2626);transform:translateY(-1px);box-shadow:0 4px 12px #e53e3e66}.retry-btn:disabled{opacity:.6;cursor:not-allowed;transform:none}.app.rtl .litigation-predictor{direction:rtl;text-align:right}.app.rtl .section-toggle span:first-child{text-align:right}.app.rtl .qa-item{border-left:none;border-right:4px solid #3182ce}.app.rtl .qa-item .question strong,.app.rtl .qa-item .answer strong{margin-right:0;margin-left:.5rem}.app.rtl .qa-timestamp{text-align:left}.app.rtl .input-group{direction:rtl}.app.rtl .followup-textarea{direction:rtl;text-align:right}.app.rtl .source-item{border-left:none;border-right:3px solid #1a365d}.app.rtl .source-item:hover{transform:translate(-4px)}.app.rtl .scenario-item{border-left:none;border-right:4px solid #cbd5e0}.app.rtl .scenario-item.best-case{border-right-color:#38a169}.app.rtl .scenario-item.likely-case{border-right-color:#1a365d}.app.rtl .scenario-item.worst-case{border-right-color:#e53e3e}.app.rtl .prediction-disclaimer{direction:rtl;text-align:right}@media (max-width: 768px){.litigation-predictor{padding:1.5rem;margin-bottom:1.5rem}.prediction-metrics{grid-template-columns:1fr;gap:1rem}.scenarios-grid{grid-template-columns:1fr}.input-group{flex-direction:column;align-items:stretch;gap:.75rem}.followup-submit-btn{margin-top:.5rem}.qa-item{padding:1rem}.followup-qa-section{padding:1.5rem;margin-top:1.5rem}.detail-section{margin-bottom:.75rem}.section-toggle{padding:1rem;font-size:.95rem}.section-content{padding:1rem}}@media (max-width: 480px){.litigation-predictor{padding:1rem;border-radius:12px}.predict-btn{padding:.875rem 2rem;font-size:1rem;min-width:180px}.metric-value{font-size:1.75rem}.metric-title,.metric-subtitle{font-size:.8rem}.prediction-metrics .metric-card,.followup-qa-section{padding:1.25rem}.followup-qa-section h4{font-size:1.2rem}.followup-input-section{padding:1.25rem}.followup-textarea{min-height:70px;font-size:.9rem}.followup-submit-btn{padding:.75rem 1.25rem;font-size:.9rem}}
