*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;background:linear-gradient(135deg,#667eea,#764ba2);min-height:100vh;color:#333}.login-container{display:flex;justify-content:center;align-items:center;min-height:100vh;padding:20px}.login-card{background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:16px;padding:40px;box-shadow:0 8px 32px #0000001a;width:100%;max-width:400px}.login-header{text-align:center;margin-bottom:32px}.login-header h1{font-size:2rem;font-weight:700;color:#667eea;margin-bottom:8px}.login-header h1 i{margin-right:12px}.login-header p{color:#666;font-size:1.1rem}.login-form{display:flex;flex-direction:column;gap:20px}.btn-full-width{width:100%;justify-content:center}.error-message{background:#fee;border:1px solid #fcc;border-radius:8px;padding:12px;color:#c33;font-size:.9rem;margin-top:12px}.user-info{display:flex;flex-direction:column;align-items:flex-end;margin-right:16px;font-size:.9rem}.tenant-name{color:#666;font-size:.8rem}.logout-btn{margin-left:8px}.container{max-width:1200px;margin:0 auto;padding:20px}header{background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:16px;padding:24px;margin-bottom:32px;box-shadow:0 8px 32px #0000001a}.header-content{display:flex;justify-content:space-between;align-items:center}.header-left h1{font-size:2rem;font-weight:700;color:#667eea;margin-bottom:8px}.header-left h1 i{margin-right:12px}.header-left p{color:#666;font-size:1.1rem}.btn{display:inline-flex;align-items:center;gap:8px;padding:12px 20px;border:none;border-radius:8px;font-size:.95rem;font-weight:500;cursor:pointer;text-decoration:none;transition:all .2s ease;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.btn:hover{transform:translateY(-2px);box-shadow:0 6px 20px #667eea66}.btn:active{transform:translateY(0)}.btn-primary{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.btn-outline{background:transparent;border:2px solid #667eea;color:#667eea}.btn-outline:hover{background:#667eea;color:#fff;box-shadow:0 6px 20px #667eea4d}.btn-danger{background:linear-gradient(135deg,#ff6b6b,#ee5a6f)}.btn-danger:hover{box-shadow:0 6px 20px #ff6b6b66}.btn:disabled{opacity:.5;cursor:not-allowed;transform:none}.btn:disabled:hover{transform:none;box-shadow:none}section,.project-header,.summary-header,.upload-section,.files-section,.summary-section{background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:16px;padding:32px;margin-bottom:32px;box-shadow:0 8px 32px #0000001a}.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}section h2,.project-header h4,.summary-header h4,.upload-section h4,.files-section h4,.summary-section h4{font-size:1.5rem;font-weight:600;color:#333;margin-bottom:24px}.upload-section h4,.files-section h4,.summary-section h4{font-size:1.3rem}.view{width:100%}.view:not([style*="display: none"]){display:block}.project-details-content{margin:0 auto}.project-header{display:flex;align-items:center;margin-bottom:24px;gap:16px}.project-header h1{font-size:2rem;font-weight:700;color:#667eea;margin:0}.project-description{background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:16px;padding:24px;margin-bottom:32px;box-shadow:0 8px 32px #0000001a;color:#666;line-height:1.6}.files-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.back-btn{flex-shrink:0}.form-group{margin-bottom:20px}.form-group label{display:block;font-weight:500;color:#555;margin-bottom:6px}.form-input{width:100%;padding:12px 16px;border:2px solid #e1e5e9;border-radius:8px;font-size:.95rem;transition:all .2s ease;background:#fffc}.form-input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.form-input::placeholder{color:#999}.projects-container{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:24px}.project-card{background:#ffffffe6;border-radius:12px;padding:24px;border:1px solid rgba(102,126,234,.1);transition:all .2s ease;cursor:pointer}.project-card:hover{transform:translateY(-4px);box-shadow:0 12px 40px #00000026;border-color:#667eea}.project-card h3{font-size:1.2rem;font-weight:600;color:#333;margin-bottom:8px}.project-card p{color:#666;font-size:.9rem;margin-bottom:12px}.project-meta{display:flex;justify-content:space-between;align-items:center;font-size:.8rem;color:#999}.files-count{background:#667eea;color:#fff;padding:4px 8px;border-radius:4px;font-weight:500}.modal{display:none;position:fixed;z-index:1000;left:0;top:0;width:100%;height:100%;background-color:#00000080;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.modal-content{background:#fff;margin:5% auto;border-radius:16px;width:90%;max-width:800px;max-height:90vh;overflow-y:auto;box-shadow:0 20px 60px #0000004d;animation:modalSlideIn .3s ease}@keyframes modalSlideIn{0%{transform:translateY(-50px);opacity:0}to{transform:translateY(0);opacity:1}}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:24px 32px;border-bottom:1px solid #eee;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-radius:16px 16px 0 0}.modal-header h3{font-size:1.3rem;font-weight:600}.modal-close{background:none;border:none;font-size:1.2rem;color:#fff;cursor:pointer;padding:4px;border-radius:4px;transition:background .2s}.modal-close:hover{background:#fff3}.modal-body{padding:32px}.upload-area{border:2px dashed #667eea;border-radius:12px;padding:40px;text-align:center;background:#667eea0d;transition:all .2s ease;cursor:pointer;position:relative;overflow:hidden}.upload-area:hover{background:#667eea1a;border-color:#764ba2}.upload-area.drag-over{background:#667eea26;border-color:#764ba2;transform:scale(1.02)}.upload-area i{font-size:2rem;color:#667eea;margin-bottom:12px}.upload-area p{color:#666;font-size:1rem;margin-bottom:0}.upload-area input[type=file]{position:absolute;left:-9999px}.upload-progress,.summary-progress,.progress-container{padding:20px;background:#667eea0d;border-radius:8px;margin-top:16px;border:1px solid rgba(102,126,234,.1)}.progress-bar{background:#e9ecef;border-radius:10px;overflow:hidden;height:8px;margin-top:12px;position:relative}.progress-fill{background:linear-gradient(90deg,#667eea,#764ba2);height:100%;transition:width .3s ease;border-radius:10px;position:relative;overflow:hidden}.progress-fill:after{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.4),transparent);animation:shimmer 2s infinite}@keyframes shimmer{0%{left:-100%}to{left:100%}}.progress-text{color:#667eea;font-weight:500;display:flex;align-items:center;justify-content:space-between;gap:8px}.progress-percentage{font-size:.9em;font-weight:600;color:#764ba2}.progress-steps{display:flex;align-items:center;gap:8px;font-size:.85em;color:#6c757d;margin-top:8px}.progress-step{padding:2px 8px;background:#667eea1a;border-radius:12px;border:1px solid rgba(102,126,234,.2)}.progress-step.active{background:#667eea33;color:#667eea;font-weight:500}.progress-step.completed{background:#28a74533;color:#28a745;border-color:#28a7454d}.progress-step.completed:before{content:"✓ ";font-weight:700}.spinner{color:#667eea;animation:spin 1s linear infinite}.existing-analysis{background:#28a7451a;border:1px solid rgba(40,167,69,.2);border-radius:8px;padding:16px;margin-bottom:16px}.analysis-info{display:flex;align-items:center;gap:12px}.analysis-details{flex:1;display:flex;flex-direction:column}.analysis-filename{font-weight:500;color:#333}.analysis-date{font-size:.875rem;color:#666}.text-success{color:#28a745!important}.text-primary{color:#007bff!important}.text-muted{color:#666!important}.btn-outline{background:transparent;border:1px solid #667eea;color:#667eea}.btn-outline:hover{background:#667eea;color:#fff}.btn-secondary{background:linear-gradient(135deg,#6c757d,#495057);color:#fff;border:none}.btn-secondary:hover{background:linear-gradient(135deg,#495057,#343a40)}.btn-secondary:disabled{background:#6c757d;opacity:.6;cursor:not-allowed}.files-list{margin-top:24px}.file-item{display:flex;justify-content:space-between;align-items:center;padding:16px;background:#667eea0d;border-radius:8px;margin-bottom:8px;transition:all .2s ease}.file-item:hover{background:#667eea1a}.file-info{flex:1}.file-name{font-weight:500;color:#333;margin-bottom:4px}.file-meta{color:#666;font-size:.85rem}.file-actions{display:flex;gap:8px}.btn-small{padding:6px 12px;font-size:.8rem}.summary-options{margin:24px 0}.options-group{margin-bottom:24px}.options-group label{display:block;font-weight:500;color:#555;margin-bottom:8px}.questions-list{max-height:200px;overflow-y:auto;border:1px solid #e1e5e9;border-radius:8px;padding:12px;background:#fffc}.question-item{display:flex;align-items:flex-start;gap:8px;margin-bottom:8px;padding:8px;border-radius:4px;transition:background .2s}.question-item:hover{background:#667eea0d}.question-item input[type=checkbox]{margin-top:2px}.question-text{flex:1;font-size:.9rem;color:#555;line-height:1.4}.summary-result{margin-top:24px;padding:24px;background:#667eea0d;border-radius:12px;border-left:4px solid #667eea}.summary-content{color:#444;line-height:1.6;margin-bottom:16px;white-space:pre-wrap}.summary-actions{display:flex;gap:12px}.loading{text-align:center;color:#666;font-style:italic;padding:24px}.spinner{display:inline-block;width:20px;height:20px;border:3px solid #f3f3f3;border-top:3px solid #667eea;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.loading-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:#000c;display:flex;justify-content:center;align-items:center;z-index:2000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.loading-content{background:#fff;padding:40px;border-radius:16px;text-align:center;box-shadow:0 20px 60px #0000004d}.loading-content .spinner{width:40px;height:40px;border-width:4px;margin-bottom:16px}.loading-content p{color:#666;font-size:1.1rem}.admin-modal .modal-content{max-width:900px}.admin-tabs{display:flex;border-bottom:1px solid #eee;margin-bottom:24px}.tab-btn{padding:12px 24px;background:none;border:none;font-size:.95rem;color:#666;cursor:pointer;border-bottom:2px solid transparent;transition:all .2s}.tab-btn.active,.tab-btn:hover{color:#667eea;border-bottom-color:#667eea}.tab-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.admin-list{max-height:400px;overflow-y:auto}.admin-item{display:flex;justify-content:space-between;align-items:flex-start;padding:16px;border:1px solid #e1e5e9;border-radius:8px;margin-bottom:8px;background:#fffc}.admin-item-content{flex:1;margin-right:16px}.admin-item-title{font-weight:500;color:#333;margin-bottom:4px}.admin-item-meta{color:#666;font-size:.85rem}.admin-item-actions{display:flex;gap:8px}.file-summary-page{margin:0 auto}.summary-title h1{font-size:2rem;font-weight:700;color:#667eea;margin:0}.summary-content-section{background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:16px;padding:32px;box-shadow:0 8px 32px #0000001a}.summary-actions-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.summary-actions-header h2{font-size:1.3rem;font-weight:600;color:#333;margin:0}.summary-display{background:#667eea0d;border-left:4px solid #667eea;border-radius:8px;padding:24px;min-height:200px;line-height:1.7;color:#444;white-space:pre-wrap;word-wrap:break-word;font-size:1rem}.summary-display .no-summary{color:#999;font-style:italic;text-align:center;padding:40px 20px}.file-summary-details{max-width:100%}.summary-file-info{margin-bottom:24px;padding-bottom:16px;border-bottom:1px solid #eee}.summary-file-info h4{color:#333;font-size:1.2rem;margin-bottom:8px;word-break:break-word}.file-meta-info{display:flex;gap:16px;color:#666;font-size:.9rem}.file-meta-info span{display:flex;align-items:center;gap:6px}.summary-content-wrapper{margin-bottom:24px}.summary-content-wrapper h5{color:#555;font-size:1rem;margin-bottom:12px;font-weight:600}.summary-text{padding:16px;border-radius:8px;line-height:1.6;color:#444;white-space:pre-wrap;word-wrap:break-word;max-height:400px;overflow-y:auto}.no-summary{color:#999;font-style:italic}.summary-actions{display:flex;justify-content:flex-end;gap:12px;padding-top:16px;border-top:1px solid #eee}.toast-container{position:fixed;top:20px;right:20px;z-index:3000}.toast{background:#fff;border-radius:8px;padding:16px 20px;margin-bottom:12px;box-shadow:0 8px 32px #00000026;border-left:4px solid #667eea;animation:toastSlideIn .3s ease;max-width:300px}.toast.success{border-left-color:#28a745}.toast.error{border-left-color:#dc3545}.toast.warning{border-left-color:#ffc107}@keyframes toastSlideIn{0%{transform:translate(100%);opacity:0}to{transform:translate(0);opacity:1}}.toast-title{font-weight:500;color:#333;margin-bottom:4px}.toast-message{color:#666;font-size:.9rem}.no-files{text-align:center;color:#999;font-style:italic;padding:40px 20px}.badge{display:inline-block;padding:4px 10px;border-radius:12px;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;margin:0 4px}.badge-primary{background-color:#3498db;color:#fff}.badge-secondary{background-color:#95a5a6;color:#fff}.badge-success{background-color:#27ae60;color:#fff}.badge-danger{background-color:#e74c3c;color:#fff}.badge-info{background-color:#16a085;color:#fff}.form-help{display:block;margin-top:6px;font-size:13px;color:#7f8c8d;font-style:italic}.checkbox-label{display:flex;align-items:center;gap:10px;cursor:pointer;-webkit-user-select:none;user-select:none}.checkbox-label input[type=checkbox]{width:20px;height:20px;cursor:pointer;accent-color:#3498db}.checkbox-label span{font-weight:500;color:#2c3e50}.user-item{border-left:4px solid #3498db}.user-item .admin-item-title i{color:#3498db;margin-right:8px}.admin-item-date{font-size:13px;color:#95a5a6;margin-top:6px}.btn-danger{background-color:#e74c3c;color:#fff;border-color:#c0392b}.btn-danger:hover{background-color:#c0392b;border-color:#a93226}.admin-header-section{display:flex;align-items:center;gap:20px}.admin-header-section h1{margin:0;font-size:2rem;color:#333;display:flex;align-items:center;gap:12px}.admin-header-section h1 i{color:#667eea}.admin-header-section .back-btn{margin-right:auto}.admin-tabs{display:flex;gap:8px;border-bottom:2px solid #e0e0e0;margin:-32px -32px 24px;padding:0 32px}.tab-btn{padding:12px 24px;background:none;border:none;border-bottom:3px solid transparent;color:#666;font-size:15px;font-weight:600;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;gap:8px;border-radius:8px 8px 0 0}.tab-btn i{font-size:16px}.tab-btn:hover{color:#667eea;background-color:#667eea0d}.tab-btn.active{color:#667eea;border-bottom-color:#667eea;background-color:#667eea1a}.tab-content{display:none}.tab-content.active{display:block}.admin-list{display:flex;flex-direction:column;gap:12px}@media (max-width: 768px){.container{padding:16px}.header-content{flex-direction:column;gap:16px;text-align:center}section{padding:24px;margin-bottom:20px}.modal-content{margin:10% auto;width:95%}.modal-body{padding:24px}.projects-container{grid-template-columns:1fr}.summary-actions{flex-direction:column}.admin-item{flex-direction:column;gap:12px}.admin-item-actions{justify-content:flex-start}.category-item{flex-direction:column;gap:16px}.category-questions{padding-left:0}}.categories-section{background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:16px;padding:32px;margin-bottom:32px;box-shadow:0 8px 32px #0000001a}.categories-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.categories-header h4{font-size:1.3rem;font-weight:600;color:#333;margin:0}.categories-list{display:flex;flex-direction:column;gap:16px}.category-item{background:#f8f9fa;border-radius:12px;padding:20px;border-left:4px solid #667eea;transition:all .3s ease}.category-item:hover{background:#f0f1f5;box-shadow:0 4px 12px #0000001a}.category-item.dragging{opacity:.5}.category-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:12px}.category-info{flex:1}.category-name{font-size:1.2rem;font-weight:600;color:#333;margin-bottom:4px;display:flex;align-items:center;gap:8px}.category-order-badge{display:inline-flex;align-items:center;justify-content:center;background:#667eea;color:#fff;font-size:.75rem;font-weight:600;width:24px;height:24px;border-radius:50%;cursor:grab}.category-order-badge:active{cursor:grabbing}.category-description{color:#666;font-size:.9rem;margin-bottom:12px}.category-actions{display:flex;gap:8px;flex-shrink:0}.category-questions{margin-top:16px;padding-left:24px;border-left:2px solid #e0e0e0}.category-questions-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.category-questions-header h5{font-size:1rem;font-weight:600;color:#555;margin:0}.question-item{background:#fff;border-radius:8px;padding:12px 16px;margin-bottom:8px;display:flex;justify-content:space-between;align-items:center;gap:12px;transition:all .2s ease}.question-item:hover{background:#f8f9fa;box-shadow:0 2px 8px #0000000d}.question-text{flex:1;color:#333;font-size:.95rem}.question-actions{display:flex;gap:8px;flex-shrink:0}.no-categories{text-align:center;padding:60px 20px;color:#999}.no-categories i{font-size:3rem;color:#ddd;margin-bottom:16px;display:block}.no-questions{text-align:center;padding:20px;color:#999;font-size:.9rem}.btn-small{padding:8px 16px;font-size:.9rem}.btn-icon{padding:8px 12px;font-size:.9rem;border-radius:6px}.text-muted{color:#999!important}.summary-formatted{background:#f9fafb;border-radius:8px;padding:20px;font-size:1rem;line-height:1.6}.summary-field{margin-bottom:12px;padding:8px 0;border-bottom:1px solid #e5e7eb}.summary-field:last-child{border-bottom:none;margin-bottom:0}.summary-object-container{background:#fff;border:2px solid #e5e7eb;border-radius:8px;padding:16px;margin-top:8px;margin-bottom:12px}.summary-object-container .summary-field{border-bottom:1px solid #f3f4f6}.summary-object-container .summary-field:last-child{border-bottom:none}.summary-key{color:#374151;font-weight:600;font-size:1rem;display:inline-block;margin-right:8px}.summary-value{color:#111827;font-size:.95rem;white-space:pre-wrap;word-wrap:break-word}.summary-number{color:#059669;font-weight:500}.summary-boolean{color:#2563eb;font-weight:500}.summary-null,.summary-empty{color:#9ca3af;font-style:italic}.summary-list{margin-top:8px}.summary-list-item{padding:4px 0;color:#374151}.summary-bullet{color:#667eea;margin-right:8px;font-weight:700}.no-summary{text-align:center;padding:40px 20px;color:#9ca3af;font-style:italic}#summaryContentDisplay{background:#fff;border-radius:8px;padding:20px;min-height:200px;font-size:1rem;line-height:1.6}
