html,body{width:100%;height:100%;overflow-x:hidden}body{margin:0;padding:0;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}#root{width:100%;height:100%;min-height:100vh}*{margin:0;padding:0;box-sizing:border-box}.app{width:100vw;min-height:100vh;height:100%;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;flex-direction:column;overflow-x:hidden}.header{text-align:center;padding:2.5rem 2rem 1.5rem;color:#fff}.header h1{font-size:2.8rem;margin-bottom:.5rem;text-shadow:2px 2px 4px rgba(0,0,0,.2);font-weight:700}.header p{font-size:1.15rem;opacity:.95}.container{flex:1;width:100%;max-width:1400px;margin:0 auto;padding:0 3rem 2rem;display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:start;justify-content:center}@media(max-width:1200px){.container{max-width:1200px;padding:0 2rem 2rem;gap:2rem}}@media(max-width:968px){.container{grid-template-columns:1fr;padding:0 1.5rem 2rem;gap:1.5rem;max-width:600px}}@media(min-width:1600px){.container{max-width:1600px;padding:0 4rem 3rem;gap:4rem}}.upload-section{background:#fff;border-radius:20px;padding:2.5rem;box-shadow:0 10px 40px #00000026;display:flex;flex-direction:column;gap:1.5rem;height:fit-content;position:sticky;top:2rem;width:100%}@media(max-width:968px){.upload-section{position:static;max-width:100%;padding:2rem}}.upload-box{border:3px dashed #ddd;border-radius:16px;overflow:hidden;transition:all .3s ease;background:#fafafa}.upload-box:hover{border-color:#667eea;background-color:#f8f9ff;transform:scale(1.01)}.upload-label{display:flex;cursor:pointer;min-height:450px;align-items:center;justify-content:center}@media(max-width:968px){.upload-label{min-height:350px}}.upload-placeholder{text-align:center;padding:3rem 2rem}.upload-icon{font-size:5rem;display:block;margin-bottom:1.5rem;opacity:.7}.upload-placeholder p{font-size:1.3rem;color:#333;margin-bottom:.75rem;font-weight:600}.file-types{font-size:1rem;color:#888}.preview-image{width:100%;height:550px;object-fit:contain;background:#f5f5f5}@media(max-width:968px){.preview-image{height:400px}}.button-group{display:flex;gap:1rem}.btn{flex:1;padding:1.2rem 2rem;font-size:1.15rem;font-weight:700;border:none;border-radius:12px;cursor:pointer;transition:all .3s ease;text-transform:uppercase;letter-spacing:1px}.btn-primary{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;box-shadow:0 4px 15px #667eea4d}.btn-primary:hover:not(:disabled){transform:translateY(-3px);box-shadow:0 8px 25px #667eea80}.btn-primary:disabled{opacity:.5;cursor:not-allowed;transform:none}.btn-secondary{background:#f5f5f5;color:#333;border:2px solid #e0e0e0}.btn-secondary:hover{background:#e8e8e8;border-color:#ccc}.btn-camera{background:linear-gradient(135deg,#11998e,#38ef7d);color:#fff;box-shadow:0 4px 15px #11998e4d}.btn-camera:hover{transform:translateY(-3px);box-shadow:0 8px 25px #11998e80}.btn-capture{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;box-shadow:0 4px 15px #667eea4d}.btn-capture:hover{transform:translateY(-3px);box-shadow:0 8px 25px #667eea80}.btn-history{background:linear-gradient(135deg,#f093fb,#f5576c);color:#fff;box-shadow:0 4px 15px #f093fb4d;width:100%;padding:1.2rem 2rem;font-size:1.15rem;font-weight:700;border:none;border-radius:12px;cursor:pointer;transition:all .3s ease;text-transform:uppercase;letter-spacing:1px}.btn-history:hover{transform:translateY(-3px);box-shadow:0 8px 25px #f093fb80}.patient-input{display:flex;flex-direction:column;gap:.75rem}.patient-input label{font-size:1.1rem;font-weight:600;color:#333}.input-field{padding:1rem 1.25rem;font-size:1.1rem;border:2px solid #ddd;border-radius:12px;transition:all .3s ease;font-family:inherit}.input-field:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.camera-container{position:relative;display:flex;flex-direction:column;gap:1rem;padding:1rem;background:#000;min-height:450px}.camera-video{width:100%;height:400px;object-fit:cover;border-radius:12px}.camera-controls{display:flex;gap:1rem}.history-list{display:flex;flex-direction:column;gap:1.5rem}.history-item{background:#f8f9fa;border-radius:16px;padding:1.5rem;box-shadow:0 4px 12px #0000001a;transition:all .3s ease}.history-item:hover{transform:translateY(-3px);box-shadow:0 8px 20px #00000026}.history-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:1rem;gap:1rem}.history-header h3{font-size:1.5rem;color:#333;margin-bottom:.5rem}.history-date{color:#666;font-size:.95rem}.history-result{display:flex;flex-direction:column;align-items:flex-end;gap:.5rem}.result-badge{padding:.5rem 1rem;border-radius:8px;color:#fff;font-weight:700;font-size:.95rem;text-align:center}.result-confidence{font-size:1.2rem;font-weight:700;color:#667eea}.history-probabilities{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem;margin-top:1rem}.mini-prob{display:flex;justify-content:space-between;padding:.5rem .75rem;background:#fff;border-radius:8px;font-size:.9rem}.mini-prob span:first-child{color:#666}.mini-prob span:last-child{font-weight:700;color:#667eea}.empty-history{text-align:center;padding:4rem 2rem;color:#999;font-size:1.2rem}.patient-info{background:#f8f9fa;padding:1.25rem;border-radius:12px;margin-bottom:1rem}.patient-info p{font-size:1.1rem;margin:.5rem 0;color:#333}.patient-info strong{color:#667eea}.error-message{background:#fee;color:#c33;padding:1.25rem;border-radius:12px;border-left:5px solid #c33;display:flex;align-items:center;gap:.75rem;font-weight:500}.results-section{background:#fff;border-radius:20px;padding:3rem;box-shadow:0 10px 40px #00000026;display:flex;flex-direction:column;gap:2rem;min-height:700px;width:100%}@media(max-width:968px){.results-section{padding:2rem;min-height:auto}}.results-section h2{color:#333;font-size:2.2rem;font-weight:700;margin-bottom:.5rem}.prediction-card{background:linear-gradient(135deg,#f5f7fa,#c3cfe2);padding:2rem;border-radius:16px;box-shadow:0 6px 20px #0000001a}.prediction-header{display:flex;align-items:center;gap:1.5rem;margin-bottom:1.25rem}.prediction-icon{font-size:4rem}.prediction-header h3{font-size:2.5rem;color:#333;margin-bottom:.5rem;font-weight:700}.confidence{font-size:1.4rem;font-weight:700}.disease-description{color:#555;line-height:1.8;font-size:1.1rem}.probabilities-section{background:#f8f9fa;padding:2rem;border-radius:16px}.probabilities-section h3{color:#333;margin-bottom:1.5rem;font-size:1.6rem;font-weight:700}.probability-bars{display:flex;flex-direction:column;gap:1.5rem}.probability-item{display:flex;flex-direction:column;gap:.75rem}.probability-label{display:flex;justify-content:space-between;font-size:1.1rem;font-weight:600;color:#333}.probability-value{color:#667eea;font-weight:700;font-size:1.15rem}.probability-bar-bg{background:#e0e0e0;border-radius:10px;height:16px;overflow:hidden}.probability-bar{height:100%;border-radius:10px;transition:width .8s ease;box-shadow:inset 0 2px 4px #0000001a}.disclaimer{background:#fff3cd;border-left:5px solid #ffc107;padding:1.5rem;border-radius:12px;color:#856404;font-size:1rem;line-height:1.7;font-weight:500}.disclaimer strong{font-weight:700}.footer{background:#00000040;color:#fff;text-align:center;padding:2rem;margin-top:auto;width:100%}.footer p{opacity:.95;font-size:1.05rem;font-weight:500}@keyframes fadeIn{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}.results-section{animation:fadeIn .6s ease}@keyframes pulse{0%,to{opacity:1}50%{opacity:.8}}.btn-primary:disabled{animation:pulse 1.5s ease-in-out infinite}.xai-image{width:100%;border-radius:12px;box-shadow:0 4px 12px #00000026;transition:all .3s ease}.xai-image.clickable{cursor:pointer}.xai-image.clickable:hover{transform:scale(1.02);box-shadow:0 8px 24px #00000040;filter:brightness(1.05)}.xai-image.clickable:active{transform:scale(.98)}.enlarged-xai-image{max-height:85vh!important;object-fit:contain!important;border-radius:8px}.xai-section{margin-top:30px;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:16px;padding:30px;color:#fff}.xai-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px;gap:20px}.xai-header h3{margin:0;font-size:1.5rem;font-weight:700}.btn-sm{padding:10px 24px;font-size:.95rem;white-space:nowrap;flex-shrink:0}.xai-tabs{display:flex;gap:15px;margin-bottom:25px;border-bottom:2px solid rgba(255,255,255,.3);padding-bottom:12px}.xai-tab{background:transparent;border:none;color:#ffffffb3;padding:12px 28px;font-size:1.05rem;font-weight:600;cursor:pointer;border-radius:8px 8px 0 0;transition:all .3s ease;position:relative;min-width:100px;text-align:center}.xai-tab:hover{background:#ffffff1a;color:#fff}.xai-tab.active{background:#fff3;color:#fff}.xai-tab.active:after{content:"";position:absolute;bottom:-2px;left:0;right:0;height:2px;background:#fff}.xai-content{background:#fff;color:#333;border-radius:12px;padding:30px;min-height:400px}.xai-visualization h4{color:#667eea;font-size:1.3rem;margin-bottom:10px;font-weight:700}.xai-description{color:#666;font-size:.95rem;line-height:1.6;margin-bottom:20px;padding:15px;background:#f8f9fa;border-left:4px solid #667eea;border-radius:4px}.xai-image{width:100%;max-width:800px;height:auto;border-radius:12px;box-shadow:0 10px 30px #0003;margin:20px auto;display:block}.history-xai-indicator{margin-top:10px;padding:8px 12px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-radius:8px;font-size:.85rem;font-weight:600;display:inline-block}.history-xai-indicator span{display:flex;align-items:center;gap:6px}@keyframes xai-pulse{0%,to{opacity:1}50%{opacity:.5}}.xai-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:300px;gap:20px}.xai-loading-spinner{width:60px;height:60px;border:4px solid rgba(102,126,234,.3);border-top-color:#667eea;border-radius:50%;animation:spin 1s linear infinite}.xai-loading-text{font-size:1.1rem;color:#667eea;animation:xai-pulse 1.5s ease-in-out infinite}@media(max-width:768px){.xai-section{padding:20px}.xai-header{flex-direction:column;align-items:flex-start;gap:15px}.xai-tabs{flex-wrap:wrap;gap:10px}.xai-tab{border-radius:8px;text-align:center;padding:10px 20px;font-size:.95rem;min-width:auto;flex:1}.xai-tab.active:after{display:none}.xai-content{padding:20px}.xai-visualization h4{font-size:1.1rem}.xai-description{font-size:.9rem;padding:12px}.btn-sm{width:100%;text-align:center}}.xai-info-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:15px;margin-bottom:25px}.xai-info-card{background:#f8f9fa;border-radius:12px;padding:20px;border-left:4px solid #667eea}.xai-info-card h5{color:#667eea;font-size:1rem;margin:0 0 10px;font-weight:700}.xai-info-card p{color:#666;font-size:.9rem;line-height:1.5;margin:0}.xai-comparison{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px;margin-top:20px}.xai-comparison-item{background:#f8f9fa;border-radius:12px;padding:15px;text-align:center}.xai-comparison-item h5{color:#667eea;font-size:1rem;margin-bottom:10px;font-weight:700}.xai-comparison-item img{width:100%;height:auto;border-radius:8px;box-shadow:0 5px 15px #0000001a}
