.repo-upload{max-width:800px;margin:0 auto;padding:2rem}.repo-upload-container{background:#fff;border-radius:12px;box-shadow:0 4px 6px #0000001a;padding:2rem}.repo-upload h2{color:#2c3e50;margin-bottom:.5rem;font-size:1.8rem;font-weight:600}.repo-upload-description{color:#666;margin-bottom:2rem;line-height:1.6;font-size:1rem}.repo-upload-form{margin-bottom:2rem}.form-group{margin-bottom:1.5rem}.form-group label{display:block;margin-bottom:.5rem;font-weight:600;color:#2c3e50}.github-url-input{width:100%;padding:12px 16px;border:2px solid #e1e8ed;border-radius:8px;font-size:1rem;transition:border-color .3s ease;box-sizing:border-box}.github-url-input:focus{outline:none;border-color:#3498db;box-shadow:0 0 0 3px #3498db1a}.github-url-input:disabled{background-color:#f8f9fa;color:#6c757d;cursor:not-allowed}.form-help{display:block;margin-top:.5rem;color:#6c757d;font-size:.875rem}.error-message{background-color:#f8d7da;color:#721c24;padding:12px 16px;border-radius:8px;margin-bottom:1rem;display:flex;align-items:center;gap:8px;border:1px solid #f5c6cb}.error-icon{font-size:1.2rem}.success-message{background-color:#d4edda;color:#155724;padding:12px 16px;border-radius:8px;margin-bottom:1rem;display:flex;align-items:center;gap:8px;border:1px solid #c3e6cb}.success-icon{font-size:1.2rem}.loading-container{text-align:center;margin:1.5rem 0;background:transparent;padding:1rem;border-radius:8px}.loading-spinner{width:40px;height:40px;border:4px solid #f3f3f3;border-top:4px solid #3498db;border-radius:50%;animation:spin 1s linear infinite;margin:0 auto 1rem}.loading-text{color:#666;font-size:.9rem;margin:0;background:transparent;padding:.5rem;border-radius:4px}.upload-button{background:linear-gradient(135deg,#3498db,#2980b9);color:#fff;border:none;padding:12px 24px;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease;width:100%;margin-top:1rem}.upload-button:hover:not(:disabled){background:linear-gradient(135deg,#2980b9,#1f5f8b);transform:translateY(-1px);box-shadow:0 4px 8px #3498db4d}.upload-button:disabled{background:#bdc3c7;cursor:not-allowed;transform:none;box-shadow:none}.upload-button:focus{outline:none;background:#e1e8ed;color:#2c3e50;box-shadow:0 0 0 3px #3498db1a}.upload-button:active{background:#e1e8ed;color:#2c3e50;transform:none}.repo-upload-info{background-color:#f8f9fa;border-radius:8px;padding:1.5rem;margin:2rem 0}.repo-upload-info h3{color:#2c3e50;margin-bottom:1rem;font-size:1.2rem;font-weight:600}.repo-upload-info ul{list-style:none;padding:0;margin:0}.repo-upload-info li{padding:.5rem 0;color:#555;line-height:1.5;display:flex;align-items:flex-start;gap:8px}.repo-upload-info li strong{color:#2c3e50;font-weight:600}.repo-upload-examples{margin-top:2rem}.repo-upload-examples h3{color:#2c3e50;margin-bottom:1rem;font-size:1.2rem;font-weight:600}.example-repos{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1rem}.example-repo{background:#fff;border:2px solid #e1e8ed;border-radius:8px;padding:12px 16px;font-size:.9rem;font-weight:500;color:#2c3e50;cursor:pointer;transition:all .3s ease;text-align:center}.example-repo:hover{border-color:#3498db;background-color:#f8f9fa;transform:translateY(-1px);box-shadow:0 2px 4px #0000001a}@media (max-width: 768px){.repo-upload{padding:1rem}.repo-upload-container{padding:1.5rem}.repo-upload h2{font-size:1.5rem}.example-repos{grid-template-columns:repeat(2,1fr)}}@media (max-width: 480px){.example-repos{grid-template-columns:1fr}.repo-upload-container{padding:1rem}}.auth-container{display:flex;justify-content:center;align-items:center;min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2);padding:20px}.auth-card{background:#fff;border-radius:12px;box-shadow:0 8px 32px #0000001a;padding:40px;width:100%;max-width:400px;text-align:center}.auth-card h2{margin:0 0 30px;color:#333;font-size:28px;font-weight:600}.auth-form{display:flex;flex-direction:column;gap:20px}.form-group{display:flex;flex-direction:column;text-align:left}.form-group label{margin-bottom:8px;font-weight:500;color:#555;font-size:14px}.form-group input{padding:12px 16px;border:2px solid #e1e5e9;border-radius:8px;font-size:16px;transition:border-color .3s ease;background:#f8f9fa}.form-group input:focus{outline:none;border-color:#667eea;background:#fff}.auth-button{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;padding:14px 24px;border-radius:8px;font-size:16px;font-weight:600;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease;margin-top:10px}.auth-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px #667eea66}.auth-button:disabled{opacity:.6;cursor:not-allowed;transform:none}.logout-button{background:linear-gradient(135deg,#ff6b6b,#ee5a24)}.logout-button:hover:not(:disabled){box-shadow:0 4px 12px #ff6b6b66}.error-message{background:#fee;color:#c53030;padding:12px;border-radius:6px;border:1px solid #fed7d7;font-size:14px;margin-top:10px}.forgot-password-button{background:none;border:none;color:#667eea;font-size:14px;text-decoration:underline;cursor:pointer;padding:8px 0;margin-top:8px;transition:color .2s ease}.forgot-password-button:hover{color:#5a67d8;text-decoration:none}.auth-toggle{margin-top:30px;padding-top:20px;border-top:1px solid #e1e5e9}.auth-toggle p{margin:0;color:#666;font-size:14px}.toggle-button{background:none;border:none;color:#667eea;font-weight:600;cursor:pointer;text-decoration:underline;font-size:14px;padding:0;margin:0}.toggle-button:hover{color:#5a67d8}@media (max-width: 480px){.auth-card{padding:30px 20px;margin:20px}.auth-card h2{font-size:24px}.form-group input{font-size:16px}}.book-qa-container{max-width:100%;width:100%;margin:0 auto;padding:0;font-family:Georgia,Times New Roman,serif;background:linear-gradient(135deg,#f8f9fa,#e9ecef);min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:flex-start}.book-qa-header{text-align:center;color:#2c3e50;width:100%;background:#fff;padding:40px 20px;box-shadow:0 2px 10px #0000001a;margin-bottom:40px}.book-qa-header h1{font-size:2.8rem;font-weight:700;margin-bottom:15px;color:#2c3e50;font-family:Georgia,Times New Roman,serif;letter-spacing:-.5px}.book-qa-header p{font-size:1.1rem;color:#6c757d;margin:0;font-family:Georgia,Times New Roman,serif;font-style:italic}.book-qa-content{background:#fff;max-width:900px;width:100%;margin:0 auto;padding:40px;display:flex;flex-direction:column;align-items:center;border-radius:12px;box-shadow:0 8px 32px #0000001a;border:1px solid #e9ecef}.book-selector{margin-bottom:40px;width:100%;max-width:700px;display:flex;flex-direction:column;align-items:center}.book-selector label{display:block;font-size:1.2rem;font-weight:600;color:#2c3e50;margin-bottom:12px;text-align:center;width:100%;font-family:Georgia,Times New Roman,serif}.book-selector select{width:100%;padding:16px 20px;font-size:1.1rem;border:2px solid #dee2e6;border-radius:8px;background:#fff;color:#495057;transition:all .3s ease;cursor:pointer;box-shadow:0 2px 8px #00000014;font-family:Georgia,Times New Roman,serif}.book-selector select:focus{outline:none;border-color:#3498db;box-shadow:0 4px 12px #3498db33}.book-selector select:hover{border-color:#3498db;box-shadow:0 4px 12px #0000001f}.book-selector-loading{padding:.75rem;background:#f8f9fa;border:2px solid #e1e8ed;border-radius:8px;color:#7f8c8d;font-style:italic}.book-selector-error{padding:.75rem;background:#fdf2f2;border:2px solid #fecaca;border-radius:8px;color:#dc2626;margin-top:.5rem}.retry-btn{background:#dc2626;color:#fff;border:none;padding:.25rem .5rem;border-radius:4px;font-size:.8rem;cursor:pointer;margin-left:.5rem}.retry-btn:hover{background:#b91c1c}.no-books-message{padding:.75rem;background:#fef3c7;border:2px solid #fde68a;border-radius:8px;color:#92400e;margin-top:.5rem;text-align:center;font-style:italic}.question-form{margin-bottom:40px;width:100%;max-width:700px;display:flex;flex-direction:column;align-items:center}.question-form label{display:block;font-size:1.2rem;font-weight:600;color:#2c3e50;margin-bottom:12px;text-align:center;width:100%;font-family:Georgia,Times New Roman,serif}.question-input-container{margin-bottom:1rem}.question-label{display:block;margin-bottom:.5rem;font-weight:600;color:#2c3e50}.question-form textarea{width:100%;min-height:60px;max-height:150px;padding:16px 20px;font-size:1.1rem;border:2px solid #dee2e6;border-radius:8px;resize:none;font-family:Georgia,Times New Roman,serif;transition:all .3s ease;margin-bottom:25px;box-shadow:0 2px 8px #00000014;line-height:1.6;color:#495057}.question-form textarea:focus{outline:none;border-color:#3498db;box-shadow:0 4px 12px #3498db33}.question-form textarea:hover{border-color:#3498db;box-shadow:0 4px 12px #0000001f}.question-form textarea:disabled{background-color:#f8f9fa;cursor:not-allowed}.question-form button{background:linear-gradient(135deg,#3498db,#2980b9);color:#fff;border:none;padding:16px 36px;font-size:1.1rem;font-weight:600;border-radius:8px;cursor:pointer;transition:all .3s ease;width:auto;min-width:160px;box-shadow:0 4px 12px #3498db4d;display:block;margin:0 auto;font-family:Georgia,Times New Roman,serif;text-transform:uppercase;letter-spacing:.5px}.question-form button:hover:not(:disabled){background:linear-gradient(135deg,#2980b9,#1f5f8b);box-shadow:0 6px 16px #3498db66;transform:translateY(-2px)}.question-form button:active{transform:translateY(0);box-shadow:0 4px 12px #3498db4d}.question-form button:disabled{opacity:.6;cursor:not-allowed;transform:none}.error-message{background:#f8d7da;color:#721c24;padding:16px 20px;border-radius:8px;margin-bottom:25px;font-weight:600;font-size:1rem;text-align:center;max-width:700px;border:1px solid #f5c6cb;font-family:Georgia,Times New Roman,serif}.loading-spinner{display:flex;justify-content:center;align-items:center;padding:30px;margin-top:20px}.spinner{width:40px;height:40px;border:4px solid #f3f3f3;border-top:4px solid #3498db;border-radius:50%;animation:pulse 2s ease-in-out infinite}@keyframes pulse{0%,to{opacity:.6;transform:scale(1)}50%{opacity:1;transform:scale(1.05)}}.spinner:hover{opacity:1}.loading-message{color:#7f8c8d;font-size:1.1rem}.answer-display{background:#f8f9fa;border-radius:12px;padding:30px;margin-top:30px;border:2px solid #e9ecef;box-shadow:0 4px 16px #0000001a;max-width:700px;width:100%}.answer-section{margin-bottom:2rem}.answer-section h3{color:#2c3e50;font-size:1.3rem;font-weight:700;margin-bottom:20px;display:flex;align-items:center;font-family:Georgia,Times New Roman,serif}.answer-section h3:before{content:"📚";margin-right:12px;font-size:1.5rem}.answer-text{font-size:1.1rem;line-height:1.8;color:#495057;background:#fff;padding:25px;border-radius:8px;border-left:4px solid #3498db;box-shadow:0 2px 8px #0000000d;font-family:Georgia,Times New Roman,serif}.chunks-section{margin-top:2rem}.chunks-toggle-btn{background:#95a5a6;color:#fff;border:none;padding:.5rem 1rem;border-radius:6px;font-size:.9rem;cursor:pointer;transition:background-color .2s}.chunks-toggle-btn:hover{background:#7f8c8d}.chunks-container{margin-top:1rem}.chunks-container h4{color:#2c3e50;margin-bottom:1rem;font-size:1.2rem}.chunk-item{background:#f8f9fa;border:1px solid #e1e8ed;border-radius:8px;padding:1rem;margin-bottom:1rem}.chunk-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem;font-size:.9rem}.chunk-number{font-weight:600;color:#3498db}.chunk-similarity{color:#7f8c8d;font-size:.8rem}.chunk-text{color:#2c3e50;line-height:1.5;font-size:.95rem}@media (max-width: 768px){.book-qa-container{padding:20px 15px}.book-qa-content{padding:30px 20px;margin:0 15px}.book-qa-header{padding:30px 15px}.book-qa-header h1{font-size:2.2rem}.chunk-header{flex-direction:column;align-items:flex-start;gap:.5rem}}@media (max-width: 480px){.book-qa-header h1{font-size:1.8rem}.book-qa-content{padding:25px 15px;margin:0 10px}}@media (max-width: 768px){.question-form textarea{min-height:60px}}@media (max-width: 480px){.book-qa-header h1{font-size:2rem}.book-qa-content{padding:25px 15px}}.book-upload-container{max-width:100%;width:100%;margin:0 auto;padding:0;font-family:Georgia,Times New Roman,serif;background:linear-gradient(135deg,#f8f9fa,#e9ecef);min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:flex-start}.book-upload-header{text-align:center;color:#2c3e50;width:100%;background:#fff;padding:40px 20px;box-shadow:0 2px 10px #0000001a;margin-bottom:40px}.book-upload-header h1{font-size:2.8rem;font-weight:700;margin-bottom:15px;color:#2c3e50;font-family:Georgia,Times New Roman,serif;letter-spacing:-.5px}.book-upload-header p{font-size:1.1rem;color:#6c757d;margin:0;font-family:Georgia,Times New Roman,serif;font-style:italic}.book-upload-content{background:#fff;max-width:800px;width:100%;margin:0 auto;padding:40px;display:flex;flex-direction:column;align-items:center;border-radius:12px;box-shadow:0 8px 32px #0000001a;border:1px solid #e9ecef}.upload-section{width:100%;max-width:600px;display:flex;flex-direction:column;align-items:center;margin-bottom:40px}.file-upload-area{width:100%;margin-bottom:30px}.file-upload-label{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:200px;border:3px dashed #dee2e6;border-radius:12px;background:#f8f9fa;cursor:pointer;transition:all .3s ease;padding:20px}.file-upload-label:hover{border-color:#3498db;background:#f1f3f4;transform:translateY(-2px);box-shadow:0 4px 12px #3498db33}.upload-icon{font-size:3rem;margin-bottom:15px;color:#6c757d}.upload-text{text-align:center}.upload-title{display:block;font-size:1.3rem;font-weight:600;color:#2c3e50;margin-bottom:5px}.upload-subtitle{display:block;font-size:1rem;color:#6c757d;font-style:italic}.file-input{display:none}.selected-file{width:100%;margin-bottom:25px;padding:15px;background:#e8f4fd;border-radius:8px;border:1px solid #bee5eb}.file-info{display:flex;align-items:center;justify-content:space-between}.file-name{font-size:1.1rem;font-weight:600;color:#2c3e50}.file-size{font-size:.9rem;color:#6c757d}.upload-button{background:linear-gradient(135deg,#3498db,#2980b9);color:#fff;border:none;padding:16px 36px;font-size:1.1rem;font-weight:600;border-radius:8px;cursor:pointer;transition:all .3s ease;width:auto;min-width:160px;box-shadow:0 4px 12px #3498db4d;font-family:Georgia,Times New Roman,serif;text-transform:uppercase;letter-spacing:.5px}.upload-button:hover:not(:disabled){background:linear-gradient(135deg,#2980b9,#1f5f8b);box-shadow:0 6px 16px #3498db66;transform:translateY(-2px)}.upload-button:disabled{opacity:.6;cursor:not-allowed;transform:none}.upload-message{width:100%;padding:15px 20px;border-radius:8px;margin-top:20px;font-weight:600;text-align:center;font-family:Georgia,Times New Roman,serif}.upload-message.success{background:#d4edda;color:#155724;border:1px solid #c3e6cb}.upload-message.error{background:#f8d7da;color:#721c24;border:1px solid #f5c6cb}.upload-instructions{width:100%;max-width:600px;background:#f8f9fa;padding:25px;border-radius:8px;border:1px solid #e9ecef}.upload-instructions h3{color:#2c3e50;font-size:1.3rem;font-weight:700;margin-bottom:15px;font-family:Georgia,Times New Roman,serif}.upload-instructions ul{list-style:none;padding:0;margin:0}.upload-instructions li{color:#495057;font-size:1rem;line-height:1.6;position:relative;padding:8px 0 8px 20px}.upload-instructions li:before{content:"•";color:#3498db;font-weight:700;position:absolute;left:0}.upload-instructions strong{color:#2c3e50;font-weight:700}@media (max-width: 768px){.book-upload-header{padding:30px 15px}.book-upload-header h1{font-size:2.2rem}.book-upload-content{padding:30px 20px;margin:0 15px}.file-upload-label{height:150px}.upload-icon{font-size:2.5rem}.upload-title{font-size:1.1rem}}@media (max-width: 480px){.book-upload-header h1{font-size:1.8rem}.book-upload-content{padding:25px 15px;margin:0 10px}.file-upload-label{height:120px}.upload-icon{font-size:2rem}}.loading-container{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.loading-spinner{width:50px;height:50px;border:4px solid rgba(255,255,255,.3);border-top:4px solid white;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:20px}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.App{min-height:100vh;background:linear-gradient(135deg,#f8f9fa,#e9ecef);padding:0;display:flex;flex-direction:column;width:100%}.app-navigation{background:#fff;box-shadow:0 2px 10px #0000001a;position:sticky;top:0;z-index:1000}.nav-container{max-width:1200px;margin:0 auto;padding:0 20px;display:flex;justify-content:space-between;align-items:center;height:70px}.nav-brand h2{margin:0;color:#2c3e50;font-family:Georgia,Times New Roman,serif;font-weight:700;font-size:1.5rem}.nav-links{display:flex;gap:10px}.nav-link{background:transparent;border:2px solid #e9ecef;color:#6c757d;padding:10px 20px;border-radius:6px;cursor:pointer;transition:all .3s ease;font-family:Georgia,Times New Roman,serif;font-weight:600;font-size:.9rem;text-transform:uppercase;letter-spacing:.5px}.nav-link:hover{border-color:#3498db;color:#3498db;transform:translateY(-1px)}.nav-link.active{background:#3498db;border-color:#3498db;color:#fff;box-shadow:0 2px 8px #3498db4d}.nav-user{display:flex;align-items:center;gap:15px;color:#6c757d;font-size:.9rem}.logout-btn{background:#dc3545;color:#fff;border:none;padding:8px 16px;border-radius:4px;cursor:pointer;font-size:.8rem;font-weight:600;transition:background-color .3s ease}.logout-btn:hover{background:#c82333}*{margin:0;padding:0;box-sizing:border-box}body{font-family:Georgia,Times New Roman,serif;line-height:1.6;color:#2c3e50;background:linear-gradient(135deg,#f8f9fa,#e9ecef);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#root{min-height:100vh;display:flex;flex-direction:column;width:100%}::-webkit-scrollbar{width:10px}::-webkit-scrollbar-track{background:#f1f1f1;border-radius:5px}::-webkit-scrollbar-thumb{background:#bdc3c7;border-radius:5px}::-webkit-scrollbar-thumb:hover{background:#95a5a6}*:focus{outline:2px solid #3498db;outline-offset:2px}*{transition:all .3s ease}button,input,textarea,select{font-family:Georgia,Times New Roman,serif}.container{max-width:100%;margin:0 auto;padding:0}.text-center{text-align:center}.mt-4{margin-top:1rem}.mb-4{margin-bottom:1rem}.logo{height:6em;padding:1.5em;will-change:filter;transition:filter .3s}.logo:hover{filter:drop-shadow(0 0 2em #646cffaa)}.logo.react:hover{filter:drop-shadow(0 0 2em #61dafbaa)}@keyframes logo-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media (prefers-reduced-motion: no-preference){a:nth-of-type(2) .logo{animation:logo-spin infinite 20s linear}}.card{padding:2em}.read-the-docs{color:#888}@media (max-width: 768px){.nav-container{padding:0 15px;height:60px}.nav-brand h2{font-size:1.3rem}.nav-links{gap:5px}.nav-link{padding:8px 15px;font-size:.8rem}}@media (max-width: 480px){.nav-container{flex-direction:column;height:auto;padding:10px 15px}.nav-brand h2{font-size:1.2rem;margin-bottom:10px}.nav-links{gap:10px}}:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}
