.beta-warning{background:linear-gradient(135deg,#ff6b6b,#ff8e8e);color:#fff;padding:12px 20px;margin:10px 0;border-radius:8px;box-shadow:0 4px 15px #ff6b6b4d;border:2px solid #ff5252;animation:pulse 2s infinite}.beta-warning-content{display:flex;align-items:center;justify-content:center;gap:10px;font-size:14px;font-weight:500}.beta-icon{font-size:18px;animation:bounce 1s infinite}.beta-text{flex:1;text-align:center}@keyframes pulse{0%{box-shadow:0 4px 15px #ff6b6b4d}50%{box-shadow:0 4px 25px #ff6b6b80}to{box-shadow:0 4px 15px #ff6b6b4d}}@keyframes bounce{0%,20%,50%,80%,to{transform:translateY(0)}40%{transform:translateY(-3px)}60%{transform:translateY(-2px)}}body.dark-theme .beta-warning{background:linear-gradient(135deg,#d32f2f,#f44336);border-color:#ff5252}.tab-navigation{display:flex;background:var(--card-bg, white);border-radius:10px;padding:5px;margin-bottom:20px;box-shadow:0 4px 15px #0000001a;overflow-x:auto;border:1px solid var(--border-color, #e9ecef)}.tab-button{flex:1;min-width:120px;padding:12px 16px;border:none;background:transparent;cursor:pointer;border-radius:8px;font-size:14px;font-weight:500;transition:all .3s ease;color:var(--text-color, #666);white-space:nowrap}.tab-button:hover{background:var(--button-hover, #f8f9fa);color:var(--text-color, #333)}.tab-button.active{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;box-shadow:0 2px 10px #667eea4d}#filter-container{background:var(--card-bg, white);border-radius:10px;padding:20px;margin-bottom:20px;box-shadow:0 2px 10px #0000001a;border:1px solid var(--border-color, #e9ecef)}#generate-question-section{background:var(--card-bg, white);border-radius:10px;padding:20px;margin-bottom:20px;box-shadow:0 2px 10px #0000001a;text-align:center;border:1px solid var(--border-color, #e9ecef)}.generate-question-btn{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;padding:15px 30px;border-radius:8px;font-size:16px;font-weight:600;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 15px #667eea4d;margin-bottom:10px}.generate-question-btn:hover{transform:translateY(-2px);box-shadow:0 6px 20px #667eea66}.generate-question-btn:active{transform:translateY(0)}.generate-question-hint{color:var(--text-color, #666);font-size:14px;margin:0;font-style:italic}@media (max-width: 768px){.generate-question-btn{padding:12px 24px;font-size:14px;width:100%;max-width:300px}.generate-question-hint{font-size:12px}}.filter-section{margin-bottom:20px}.filter-section:last-child{margin-bottom:0}.filter-section h3{margin-bottom:10px;color:var(--text-color, #333);font-size:16px;font-weight:600}.filter-buttons{display:flex;flex-wrap:wrap;gap:8px}.filter-button{padding:8px 16px;border:2px solid var(--border-color, #e9ecef);background:var(--card-bg, white);border-radius:20px;cursor:pointer;font-size:14px;font-weight:500;transition:all .3s ease;color:var(--text-color, #666)}.filter-button:hover{border-color:#667eea;color:#667eea}.filter-button.active{background:#667eea;border-color:#667eea;color:#fff}.filter-button.multi-select{transition:all .3s ease}.filter-button.multi-select.active{background:linear-gradient(135deg,#667eea,#764ba2);border-color:#667eea;color:#fff;box-shadow:0 2px 8px #667eea4d;transform:translateY(-1px)}.filter-button.multi-select:hover:not(.active){border-color:#667eea;color:#667eea;background:#667eea0d;transform:translateY(-1px)}body.dark-theme .filter-button.multi-select:hover:not(.active){background:#667eea1a;border-color:#8b9cf7;color:#8b9cf7}#content-area{background:var(--card-bg, white);border-radius:10px;padding:20px;margin-bottom:20px;box-shadow:0 2px 10px #0000001a;min-height:400px;border:1px solid var(--border-color, #e9ecef)}#standard-layout{display:block}#interactive-layout{display:none}#interactive-layout.active{display:block}#left-side{display:flex;flex-direction:column;height:100%}#conversation-wrapper{display:flex;flex:1;gap:20px;margin-bottom:20px}#conversation-container-interactive{flex:1;background:var(--input-bg, #f8f9fa);border-radius:8px;padding:15px;max-height:400px;overflow-y:auto;border:2px solid var(--border-color, #e9ecef);color:var(--text-color, #333)}#patient-image-wrapper{flex:0 0 300px;display:flex;align-items:center;justify-content:center}#patient-image-container{width:100%;height:300px;border-radius:8px;overflow:hidden;border:2px solid var(--border-color, #e9ecef);background:var(--input-bg, #f8f9fa);display:flex;align-items:center;justify-content:center}#patient-image{max-width:100%;max-height:100%;object-fit:cover;border-radius:6px}#conversation-container{background:var(--input-bg, #f8f9fa);border-radius:8px;padding:15px;margin-bottom:20px;min-height:200px;max-height:400px;overflow-y:auto;border:2px solid var(--border-color, #e9ecef);color:var(--text-color, #333)}.conversation-message{margin-bottom:15px;padding:10px;border-radius:6px}.conversation-message.user{background:#e3f2fd;border-left:4px solid #2196f3;margin-left:20px}.conversation-message.ai{background:#f3e5f5;border-left:4px solid #9c27b0;margin-right:20px}.conversation-message.system{background:#fff3e0;border-left:4px solid #ff9800;font-style:italic}#spinner-container-standard,#spinner-container-interactive{display:none;justify-content:center;align-items:center;margin:20px 0;padding:20px}#spinner-container-standard.show,#spinner-container-interactive.show{display:flex}#spinner{width:50px;height:50px;border:4px solid var(--border-color, #f3f3f3);border-top:4px solid #667eea;border-radius:50%;animation:spin 1s linear infinite;position:relative}#spinner:after{content:"AI is thinking...";position:absolute;top:60px;left:50%;transform:translate(-50%);color:var(--text-color, #666);font-size:14px;white-space:nowrap}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}#questionForm,#questionForm-interactive{margin-bottom:20px}#questionForm input,#questionForm-interactive input{width:100%;padding:12px;border:2px solid var(--border-color, #e9ecef);border-radius:8px;font-size:16px;transition:border-color .3s ease;background:var(--input-bg, white);color:var(--text-color, #333)}#questionForm input:focus,#questionForm-interactive input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.action-buttons{display:flex;gap:10px;margin-top:10px;flex-wrap:wrap}.action-buttons button{padding:10px 20px;border:none;border-radius:8px;cursor:pointer;font-size:14px;font-weight:500;transition:all .3s ease}#getResponseButton,#getResponseButton-interactive{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}#getResponseButton:hover,#getResponseButton-interactive:hover{transform:translateY(-1px);box-shadow:0 4px 15px #667eea4d}#loadNewQuestionButton{background:#28a745;color:#fff}#loadNewQuestionButton:hover{background:#218838;transform:translateY(-1px)}#conversation-buttons{display:flex;gap:10px;justify-content:center;margin-top:20px}#conversation-buttons button{padding:8px 16px;border:2px solid var(--border-color, #6c757d);background:var(--card-bg, white);color:var(--text-color, #6c757d);border-radius:6px;cursor:pointer;font-size:14px;transition:all .3s ease}#conversation-buttons button:hover{background:#6c757d;color:#fff}#stats-container{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px;margin-bottom:20px}.stats{background:var(--card-bg, white);border-radius:10px;padding:20px;text-align:center;box-shadow:0 2px 10px #0000001a;border:2px solid var(--border-color, #e9ecef);transition:all .3s ease;color:var(--text-color, #333)}.stats:hover{transform:translateY(-2px);box-shadow:0 4px 20px #0000001a}.stats h3{color:var(--text-color, #333);margin-bottom:10px;font-size:18px}.stats h6{color:var(--text-color, #666);margin-bottom:15px;font-size:12px;font-weight:400}.stats p{margin:8px 0;color:var(--text-color, #555)}.stats span{font-weight:700;color:#667eea}@media (max-width: 768px){.tab-navigation{flex-direction:column;gap:5px}.tab-button{min-width:auto;margin-bottom:5px}.filter-buttons{flex-direction:column}.filter-button{text-align:center}#conversation-wrapper{flex-direction:column}#patient-image-wrapper{flex:none;height:200px}#patient-image-container{height:200px}.action-buttons{flex-direction:column}.action-buttons button{width:100%}#conversation-buttons{flex-direction:column}#conversation-buttons button{width:100%}#stats-container{grid-template-columns:1fr}}#directions{background:var(--card-bg, white);border-radius:10px;padding:20px;margin-bottom:20px;box-shadow:0 2px 10px #0000001a;border:1px solid var(--border-color, #e9ecef);color:var(--text-color, #333)}#directions p{margin:10px 0;color:var(--text-color, #333)}#directions strong{color:var(--text-color, #333)}#directions em{color:var(--text-color, #666)}.hidden{display:none!important}.loading{opacity:.6;pointer-events:none}.error{color:#dc3545;background:#f8d7da;border:1px solid #f5c6cb;padding:10px;border-radius:6px;margin:10px 0}.success{color:#155724;background:#d4edda;border:1px solid #c3e6cb;padding:10px;border-radius:6px;margin:10px 0}body.dark-theme .conversation-message.user{background:#2196f333;border-left:4px solid #2196f3}body.dark-theme .conversation-message.ai{background:#9c27b033;border-left:4px solid #9c27b0}body.dark-theme .conversation-message.system{background:#ff980033;border-left:4px solid #ff9800}body.dark-theme #spinner{border:4px solid var(--border-color, #3d3d3d);border-top:4px solid #667eea}body.dark-theme #spinner:after{color:var(--text-color, #ffffff)}body.dark-theme .notification{background-color:var(--card-bg, #2d2d2d)!important;color:var(--text-color, #ffffff)!important;border:1px solid var(--border-color, #404040)}body.dark-theme #questionForm input:focus,body.dark-theme #questionForm-interactive input:focus{border-color:#667eea;box-shadow:0 0 0 3px #667eea33}body.dark-theme .filter-button:hover{background:var(--button-hover, #3d3d3d)}body.dark-theme #conversation-buttons button:hover{background:var(--text-color, #6c757d);color:var(--card-bg, white)}.multiple-choice-question{background:var(--card-bg, white);border:2px solid var(--border-color, #e9ecef);border-radius:10px;padding:20px;margin:15px 0;box-shadow:0 2px 10px #0000001a}.question-text{font-size:16px;font-weight:600;color:var(--text-color, #333);margin-bottom:20px;line-height:1.5}.options-container{margin-bottom:20px}.option-item{display:flex;align-items:flex-start;padding:12px 16px;margin:8px 0;background:var(--input-bg, #f8f9fa);border:2px solid var(--border-color, #e9ecef);border-radius:8px;transition:all .3s ease;cursor:pointer;-webkit-user-select:none;user-select:none}.option-item:hover{border-color:#667eea;background:#667eea0d;transform:translateY(-1px);box-shadow:0 2px 8px #667eea33}.option-item.clickable-option{cursor:pointer;position:relative;overflow:hidden}.option-item.clickable-option:active{transform:translateY(0) scale(.98);transition:all .1s ease}.option-item.clickable-option:hover{border-color:#667eea;background:#667eea1a;transform:translateY(-2px);box-shadow:0 4px 12px #667eea4d}.option-item.selected{border-color:#667eea;background:linear-gradient(135deg,#667eea26,#764ba226);box-shadow:0 4px 15px #667eea66;transform:translateY(-1px)}.option-item.selected .option-letter{color:#667eea;font-weight:800}.option-item.selected .option-text{color:#667eea;font-weight:600}.option-item.processing{opacity:.7;pointer-events:none;background:linear-gradient(135deg,#667eea33,#764ba233);border-color:#667eea;animation:pulse-processing 1.5s infinite}@keyframes pulse-processing{0%{box-shadow:0 4px 15px #667eea66}50%{box-shadow:0 4px 25px #667eea99}to{box-shadow:0 4px 15px #667eea66}}.option-letter{font-weight:700;color:#667eea;margin-right:12px;min-width:20px;font-size:16px}.option-text{color:var(--text-color, #333);font-size:15px;line-height:1.4;flex:1}.answer-instruction{background:#667eea1a;border:1px solid rgba(102,126,234,.3);border-radius:6px;padding:12px;margin-top:15px}.answer-instruction p{margin:0;color:var(--text-color, #333);font-size:14px;text-align:center}body.dark-theme .multiple-choice-question{background:var(--card-bg, #2d2d2d);border-color:var(--border-color, #404040)}body.dark-theme .option-item{background:var(--input-bg, #3d3d3d);border-color:var(--border-color, #404040)}body.dark-theme .option-item:hover{background:#667eea1a;border-color:#8b9cf7}body.dark-theme .option-item.clickable-option:hover{background:#667eea26;border-color:#8b9cf7}body.dark-theme .option-item.selected{background:linear-gradient(135deg,#667eea40,#764ba240);border-color:#8b9cf7;box-shadow:0 4px 15px #667eea80}body.dark-theme .option-item.selected .option-letter,body.dark-theme .option-item.selected .option-text{color:#8b9cf7}body.dark-theme .option-item.processing{background:linear-gradient(135deg,#667eea4d,#764ba24d);border-color:#8b9cf7;animation:pulse-processing-dark 1.5s infinite}@keyframes pulse-processing-dark{0%{box-shadow:0 4px 15px #667eea80}50%{box-shadow:0 4px 25px #667eeab3}to{box-shadow:0 4px 15px #667eea80}}body.dark-theme .option-text{color:var(--text-color, #ffffff)}body.dark-theme .answer-instruction{background:#667eea26;border-color:#667eea66}body.dark-theme .answer-instruction p{color:var(--text-color, #ffffff)}
