Spaces:
Running
Running
Update books.html
Browse files- books.html +331 -159
books.html
CHANGED
|
@@ -23,163 +23,329 @@
|
|
| 23 |
};
|
| 24 |
</script>
|
| 25 |
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
.step-card h2 { color: var(--primary); margin-bottom: 20px; font-weight: 800; font-size: 24px; }
|
| 60 |
-
.step-card label { display: block; text-align: left; margin-bottom: 8px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; font-size: 13px;}
|
| 61 |
-
select.standard, input.standard, textarea.standard { width: 100%; padding: 15px; border-radius: 12px; border: 2px solid var(--border-light); background: var(--input-bg); color: var(--text-main); font-size: 16px; margin-bottom: 20px; box-sizing: border-box; outline: none; transition: 0.3s; font-family: inherit; }
|
| 62 |
-
select.standard:focus, input.standard:focus, textarea.standard:focus { border-color: var(--primary); box-shadow: 0 5px 15px var(--primary-glow); }
|
| 63 |
-
.btn-row { display: flex; gap: 15px; justify-content: space-between; margin-top: 10px; }
|
| 64 |
-
.btn-row .btn { flex: 1; padding: 15px; font-weight: bold; border-radius: 12px; border: none; cursor: pointer; color: white; transition: 0.2s; font-size: 15px; }
|
| 65 |
-
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); box-shadow: 0 4px 15px var(--primary-glow); }
|
| 66 |
-
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px var(--primary-glow); }
|
| 67 |
-
.btn-secondary { background: #475569; }
|
| 68 |
-
.btn-secondary:hover { transform: translateY(-3px); background: #334155; }
|
| 69 |
-
|
| 70 |
-
.floating-lang-btn { position: absolute; top: 15px; right: 15px; font-size: 26px; background: transparent; border: none; cursor: pointer; transition: 0.3s; z-index: 100; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1)); }
|
| 71 |
-
.floating-lang-btn:hover { transform: scale(1.15) rotate(15deg); }
|
| 72 |
-
|
| 73 |
-
/* 🚨 RESTORED SETTINGS 'X' BUTTON 🚨 */
|
| 74 |
-
#closeSettingsWizardBtn { display: none; position: absolute; top: 15px; left: 15px; background: var(--input-bg); border: 1px solid var(--border-light); color: var(--text-main); width: 40px; height: 40px; border-radius: 50%; font-size: 18px; font-weight: bold; cursor: pointer; transition: 0.2s; z-index: 100; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
|
| 75 |
-
#closeSettingsWizardBtn:hover { background: #ef4444; color: white; border-color: #ef4444; }
|
| 76 |
-
|
| 77 |
-
#chatPage { display: none; flex-direction: column; position: fixed; inset: 0; background: var(--bg-base); z-index: 50; overflow: hidden; }
|
| 78 |
-
.chat-scroll-area { flex: 1; overflow-y: auto; padding: 25px; padding-top: 90px; padding-bottom: 140px; display: flex; flex-direction: column; gap: 20px; scroll-behavior: smooth; }
|
| 79 |
-
.msg { display: flex; width: 100%; flex-direction: column; animation: floatUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
|
| 80 |
-
.user { align-items: flex-end; }
|
| 81 |
-
.ai { align-items: flex-start; }
|
| 82 |
-
|
| 83 |
-
.bubble { max-width: 85%; padding: 16px 20px; border-radius: 20px; line-height: 1.7; font-size: 15px; position: relative; box-shadow: 0 5px 15px rgba(0,0,0,0.1); word-wrap: break-word; padding-right: 45px !important; overflow: visible !important; }
|
| 84 |
-
.user .bubble { background: var(--chat-user-bg) !important; color: var(--chat-user-text) !important; border-bottom-right-radius: 4px; }
|
| 85 |
-
.ai .bubble { background: var(--chat-ai-bg) !important; color: var(--text-main) !important; border: 1px solid var(--chat-ai-border) !important; border-bottom-left-radius: 4px; }
|
| 86 |
-
.bubble img { max-width: 100%; border-radius: 10px; margin-top: 10px; }
|
| 87 |
-
|
| 88 |
-
.chapter-divider { text-align: center; color: var(--text-muted); font-weight: 800; font-size: 12px; margin: 20px 0; text-transform: uppercase; letter-spacing: 1px; position: relative; }
|
| 89 |
-
.chapter-divider::before, .chapter-divider::after { content: ''; position: absolute; top: 50%; width: 15%; height: 1px; background: var(--border-light); }
|
| 90 |
-
.chapter-divider::before { left: 0; } .chapter-divider::after { right: 0; }
|
| 91 |
-
|
| 92 |
-
.user-copy-btn { position: absolute; top: -10px; left: -10px; background: var(--bg-surface); color: var(--text-main); border: 1px solid var(--border-light); border-radius: 50%; width: 28px; height: 28px; font-size: 12px; cursor: pointer; display: none; justify-content: center; align-items: center; box-shadow: 0 2px 5px rgba(0,0,0,0.2); transition: 0.2s; z-index: 10; }
|
| 93 |
-
.user-copy-btn:hover { background: var(--primary); color: white; transform: scale(1.1); }
|
| 94 |
-
.user .bubble:hover .user-copy-btn { display: flex; animation: popUp 0.2s ease; }
|
| 95 |
-
|
| 96 |
-
.preset-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
|
| 97 |
-
.preset-btn { background: var(--input-bg); border: 1px solid var(--primary); color: var(--primary); padding: 10px 15px; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; transition: 0.2s; }
|
| 98 |
-
.preset-btn:hover { background: var(--primary); color: white; transform: translateY(-2px); }
|
| 99 |
-
|
| 100 |
-
.listen-btn { background: linear-gradient(135deg, #10b981, #059669); color: white; border-radius: 25px; padding: 8px 18px; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 4px 15px rgba(16,185,129,0.3); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); border: none; font-weight: 800; font-size: 13px; cursor: pointer; margin-top: 12px; letter-spacing: 0.5px; text-transform: uppercase; }
|
| 101 |
-
.listen-btn:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 8px 25px rgba(16,185,129,0.5); }
|
| 102 |
-
.listen-btn:active { transform: translateY(1px); }
|
| 103 |
-
|
| 104 |
-
.bottom-action-container { flex-shrink: 0; width: 100%; background: var(--bg-surface); backdrop-filter: blur(10px); border-top: 1px solid var(--border-light); display: flex; flex-direction: column; box-sizing: border-box; padding: 15px; padding-bottom: calc(15px + env(safe-area-inset-bottom)); position: fixed; bottom: 0; z-index: 100; transition: transform 0.4s ease; }
|
| 105 |
-
|
| 106 |
-
.chat-input-wrapper { display: flex; align-items: flex-end; gap: 8px; width: 100%; box-sizing: border-box; background: var(--input-bg); border: 1px solid var(--border-light); border-radius: 24px; padding: 8px 12px; position: relative; transition: 0.3s; }
|
| 107 |
-
.chat-input-wrapper:focus-within { border-color: var(--primary); box-shadow: 0 4px 15px var(--primary-glow); }
|
| 108 |
-
textarea { flex: 1; background: transparent; border: none; color: var(--text-main); font-family: inherit; font-size: 15px; resize: none; padding: 10px 0; outline: none; min-height: 24px; max-height: 120px; }
|
| 109 |
-
.icon-btn { background: transparent; border: none; color: var(--primary); font-size: 22px; cursor: pointer; padding: 5px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: 0.2s;}
|
| 110 |
-
|
| 111 |
-
/* 🚨 RESTORED BLANK MESSAGE GRAY BUTTON LOGIC 🚨 */
|
| 112 |
-
.send-btn { background: var(--border-light); color: var(--text-muted); border-radius: 50%; width: 40px; height: 40px; padding: 0; margin-left: 5px; flex-shrink: 0; pointer-events: none; transition: 0.3s; opacity: 0.5; }
|
| 113 |
-
.send-btn.active-btn { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; box-shadow: 0 4px 10px var(--primary-glow); pointer-events: auto; opacity: 1; }
|
| 114 |
-
.send-btn.active-btn:hover { transform: scale(1.1); }
|
| 115 |
-
.send-btn.stop-btn { background: #ef4444 !important; pointer-events: auto; animation: pulse 1s infinite alternate; opacity: 1; color: white;}
|
| 116 |
-
|
| 117 |
-
.glass-panel { background: var(--bg-surface); backdrop-filter: blur(15px); border: 1px solid var(--border-light); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
|
| 118 |
-
#plusMenu { display: none; position: absolute; bottom: 75px; left: 15px; border-radius: 15px; flex-direction: column; z-index: 200; width: 220px; animation: popUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
|
| 119 |
-
.menu-item { background: transparent; border: none; color: var(--text-main); padding: 15px; text-align: left; font-size: 14px; font-weight: bold; cursor: pointer; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; gap: 10px; transition: 0.2s; }
|
| 120 |
-
.menu-item:hover { background: var(--primary); color: white; padding-left: 20px; }
|
| 121 |
-
|
| 122 |
-
.status-chip { display: none; align-items: center; gap: 8px; background: rgba(59, 130, 246, 0.1); color: var(--text-main); padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: bold; width: max-content; border: 1px solid var(--primary); margin-bottom: 10px; animation: slideIn 0.3s ease; }
|
| 123 |
-
.chip-close { background: #ef4444; color: white; border: none; border-radius: 50%; width: 20px; height: 20px; cursor: pointer; font-size: 10px; display: flex; align-items: center; justify-content: center;}
|
| 124 |
-
|
| 125 |
-
#imagePreviewContainer { position: relative; margin-bottom: 10px; display: none; width: max-content; }
|
| 126 |
-
.img-chip { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; border: 2px solid var(--primary); }
|
| 127 |
-
.remove-img-btn { position:absolute; top:-8px; right:-8px; background:#ef4444; color:white; border:none; border-radius:50%; width:22px; height:22px; font-size:10px; cursor:pointer; }
|
| 128 |
-
|
| 129 |
-
@keyframes floatUp { 0% { opacity:0; transform:translateY(20px); } 100% { opacity:1; transform:translateY(0); } }
|
| 130 |
-
@keyframes popInCard { 0% { opacity: 0; transform: scale(0.9) translateY(20px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }
|
| 131 |
-
@keyframes popUp { 0% { transform: scale(0.8) translateY(20px); opacity: 0; } 100% { transform: scale(1) translateY(0); opacity: 1; } }
|
| 132 |
-
@keyframes slideIn { from { transform: translateX(-20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
|
| 133 |
-
@keyframes pulse { from { transform: scale(1); } to { transform: scale(1.1); } }
|
| 134 |
-
|
| 135 |
-
.typing-indicator { display: flex; gap: 5px; padding: 5px; align-items: center; }
|
| 136 |
-
.dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; animation: typingPulse 1.4s infinite ease-in-out both; }
|
| 137 |
-
.dot:nth-child(1) { animation-delay: -0.32s; } .dot:nth-child(2) { animation-delay: -0.16s; }
|
| 138 |
-
@keyframes typingPulse { 0%, 80%, 100% { transform: scale(0); opacity: 0.3; } 40% { transform: scale(1); opacity: 1; } }
|
| 139 |
-
|
| 140 |
-
.share-mode-active .bubble { cursor: pointer !important; transition: 0.2s; position: relative; }
|
| 141 |
-
.share-mode-active .bubble::before { content: ''; position: absolute; inset: 0; background: rgba(37, 211, 102, 0.1); border-radius: inherit; opacity: 0; transition: 0.2s; pointer-events: none;}
|
| 142 |
-
.share-mode-active .bubble:hover::before { opacity: 1; }
|
| 143 |
-
.bubble.selected-for-share { outline: 3px solid #25D366 !important; outline-offset: 2px; box-shadow: 0 0 15px rgba(37, 211, 102, 0.5); }
|
| 144 |
-
|
| 145 |
-
.msg-menu-wrap { position: absolute; top: 12px; right: 8px; z-index: 10; display: flex; gap: 5px;}
|
| 146 |
-
.msg-action-btn { background: transparent; border: none; color: inherit; opacity: 0.6; cursor: pointer; font-size: 18px; padding: 0 5px; line-height: 1; transition:0.2s;}
|
| 147 |
-
.msg-action-btn:hover { opacity: 1; transform: scale(1.1); }
|
| 148 |
-
.msg-dropdown { display: none; position: absolute; right: 0; top: 25px; background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.8); overflow: hidden; min-width: 100px; z-index: 1000; }
|
| 149 |
-
.msg-dropdown button { width: 100%; background: transparent; border: none; color: #ef4444; padding: 10px 15px; text-align: left; font-size: 13px; font-weight: bold; cursor: pointer; white-space: nowrap;}
|
| 150 |
-
.msg-dropdown button:hover { background: rgba(239,68,68,0.2); }
|
| 151 |
-
|
| 152 |
-
.generated-cover { width: 140px; height: 190px; background: linear-gradient(135deg, #1e293b, #3b82f6); border-radius: 4px 12px 12px 4px; box-shadow: inset 4px 0 10px rgba(0,0,0,0.3), inset -1px 0 2px rgba(255,255,255,0.3), 5px 10px 20px rgba(0,0,0,0.5); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 15px 10px; box-sizing: border-box; color: white; text-align: center; position: relative; margin: 0 auto 20px auto; border-left: 6px solid #0f172a; }
|
| 153 |
-
.generated-cover::after { content: ''; position: absolute; left: 0px; top: 0; bottom: 0; width: 3px; background: rgba(255,255,255,0.2); }
|
| 154 |
-
|
| 155 |
-
#topAudioPlayer { display: none; position: fixed; top: 85px; left: 50%; transform: translateX(-50%); z-index: 1000; align-items: center; gap: 15px; padding: 10px 20px; border-radius: 30px; border: 2px solid var(--primary); background: var(--bg-surface); animation: slideDown 0.3s ease; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
|
| 156 |
-
@keyframes slideDown { from { transform: translate(-50%, -20px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
|
| 157 |
-
.audio-btn { background: var(--primary); color: white; border: none; width: 35px; height: 35px; border-radius: 50%; font-size: 16px; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: 0.2s; }
|
| 158 |
-
.audio-btn:hover { transform: scale(1.1); }
|
| 159 |
-
|
| 160 |
-
.modal-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.8); z-index:99999999; justify-content:center; align-items:center; backdrop-filter: blur(5px); }
|
| 161 |
-
.modal-box { background:var(--bg-surface); width:90%; max-width:400px; padding:25px; border-radius:20px; position:relative; border: 1px solid var(--border-light); box-shadow: 0 20px 50px rgba(0,0,0,0.5); animation: popUp 0.3s ease; }
|
| 162 |
-
|
| 163 |
-
#holdToSpeakBtn { user-select: none; -webkit-user-select: none; transition: 0.1s; }
|
| 164 |
-
#holdToSpeakBtn:active { transform: scale(0.95); background: #ef4444 !important; box-shadow: 0 0 20px rgba(239,68,68,0.5); }
|
| 165 |
-
|
| 166 |
-
#cameraModal { display: none; position: fixed; inset: 0; background: #000; z-index: 9999999 !important; flex-direction: column; }
|
| 167 |
-
#cameraVideo { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; z-index: 1; }
|
| 168 |
-
.camera-controls-container { position: absolute; bottom: 40px; left: 0; width: 100%; display: flex; justify-content: center; align-items: center; gap: 40px; z-index: 1000; }
|
| 169 |
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 183 |
</head>
|
| 184 |
<body onclick="closePlusMenu(event)">
|
| 185 |
|
|
@@ -986,22 +1152,28 @@
|
|
| 986 |
window.togglePlusMenu = function(e) { e.stopPropagation(); const m = document.getElementById("plusMenu"); m.style.display = m.style.display === "flex" ? "none" : "flex"; }
|
| 987 |
window.closePlusMenu = function() { document.getElementById("plusMenu").style.display = "none"; }
|
| 988 |
|
| 989 |
-
|
| 990 |
-
window.openSettings = function() {
|
| 991 |
document.getElementById('chatPage').style.display = 'none';
|
| 992 |
document.getElementById('wizardPage').style.display = 'block';
|
| 993 |
|
|
|
|
|
|
|
|
|
|
| 994 |
let chatContent = document.getElementById('chatHistory').innerHTML.trim();
|
| 995 |
if (chatContent !== "") {
|
| 996 |
-
document.getElementById('closeSettingsWizardBtn').style.display = '
|
| 997 |
} else {
|
| 998 |
document.getElementById('closeSettingsWizardBtn').style.display = 'none';
|
| 999 |
}
|
| 1000 |
window.nextStep(1);
|
| 1001 |
}
|
|
|
|
| 1002 |
window.closeSettingsWizard = function() {
|
| 1003 |
document.getElementById('wizardPage').style.display = 'none';
|
| 1004 |
document.getElementById('chatPage').style.display = 'flex';
|
|
|
|
|
|
|
|
|
|
| 1005 |
}
|
| 1006 |
|
| 1007 |
window.handleEnter = function(e) { if(e.key === 'Enter' && !e.shiftKey) { e.preventDefault(); if (document.getElementById('sendBtn').classList.contains('active-btn')) window.sendMessage(); } }
|
|
|
|
| 23 |
};
|
| 24 |
</script>
|
| 25 |
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
|
| 26 |
+
<STYLE>
|
| 27 |
+
/* 1. AUTO LIGHT/DARK THEME SYSTEM */
|
| 28 |
+
:root {
|
| 29 |
+
/* DEFAULT LIGHT MODE */
|
| 30 |
+
--app-bg: #f8fafc;
|
| 31 |
+
--bg-base: #f8fafc;
|
| 32 |
+
--bg-surface: rgba(255, 255, 255, 0.85);
|
| 33 |
+
--input-bg: #ffffff;
|
| 34 |
+
--primary: #3b82f6;
|
| 35 |
+
--primary-glow: rgba(59, 130, 246, 0.25);
|
| 36 |
+
--secondary: #6366f1;
|
| 37 |
+
--accent: #10b981;
|
| 38 |
+
--text-main: #0f172a;
|
| 39 |
+
--text-muted: #64748b;
|
| 40 |
+
--border-light: rgba(0, 0, 0, 0.1);
|
| 41 |
+
|
| 42 |
+
--chat-user-bg: linear-gradient(135deg, #3b82f6, #2563eb);
|
| 43 |
+
--chat-user-text: #ffffff;
|
| 44 |
+
--chat-ai-bg: rgba(255, 255, 255, 0.9);
|
| 45 |
+
--chat-ai-border: rgba(0, 0, 0, 0.1);
|
| 46 |
+
--backdrop-blur: blur(16px);
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
@media (prefers-color-scheme: dark) {
|
| 50 |
+
:root {
|
| 51 |
+
/* OVERRIDE WITH DARK MODE */
|
| 52 |
+
--app-bg: #090d16;
|
| 53 |
+
--bg-base: #090d16;
|
| 54 |
+
--bg-surface: rgba(20, 29, 47, 0.85);
|
| 55 |
+
--input-bg: rgba(13, 20, 35, 0.6);
|
| 56 |
+
--text-main: #f8fafc;
|
| 57 |
+
--text-muted: #94a3b8;
|
| 58 |
+
--border-light: rgba(255, 255, 255, 0.08);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
|
| 60 |
+
--chat-ai-bg: rgba(22, 32, 54, 0.5);
|
| 61 |
+
--chat-ai-border: rgba(255, 255, 255, 0.06);
|
| 62 |
+
}
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
/* Global Foundations */
|
| 66 |
+
html, body {
|
| 67 |
+
height: 100%; width: 100%; overflow: hidden; margin: 0; padding: 0;
|
| 68 |
+
font-family: 'Poppins', sans-serif; background: var(--app-bg); color: var(--text-main);
|
| 69 |
+
-webkit-font-smoothing: antialiased; transition: background-color 0.3s ease, color 0.3s ease;
|
| 70 |
+
}
|
| 71 |
+
|
| 72 |
+
/* 2. TOPBAR FIXES (Resizing & Squeezing) */
|
| 73 |
+
.topbar {
|
| 74 |
+
position: fixed; top: 0; left: 0; width: 100%; z-index: 500;
|
| 75 |
+
transition: transform 0.4s ease; display: flex; justify-content: space-between; align-items: center;
|
| 76 |
+
padding: 12px 20px; background: var(--bg-surface); border-bottom: 1px solid var(--border-light);
|
| 77 |
+
backdrop-filter: var(--backdrop-blur); -webkit-backdrop-filter: var(--backdrop-blur);
|
| 78 |
+
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); box-sizing: border-box; gap: 10px;
|
| 79 |
+
}
|
| 80 |
+
.topbar.hidden { transform: translateY(-100%); }
|
| 81 |
+
|
| 82 |
+
.appTitle-container {
|
| 83 |
+
flex: 1; overflow-x: auto; white-space: nowrap; margin: 0 10px; position: relative;
|
| 84 |
+
border-radius: 8px; cursor: pointer; touch-action: pan-x; scrollbar-width: none;
|
| 85 |
+
}
|
| 86 |
+
.appTitle-container::-webkit-scrollbar { display: none; }
|
| 87 |
+
.appTitle { font-size: 16px; font-weight: 700; color: var(--text-main); display: inline-block; padding: 2px 0; }
|
| 88 |
+
|
| 89 |
+
.topbar-actions { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }
|
| 90 |
+
|
| 91 |
+
/* Universal Buttons */
|
| 92 |
+
.btn {
|
| 93 |
+
padding: 10px 16px; font-weight: 600; border-radius: 12px; border: 1px solid transparent;
|
| 94 |
+
cursor: pointer; transition: all 0.2s ease; font-size: 14px;
|
| 95 |
+
display: inline-flex; align-items: center; justify-content: center; gap: 6px;
|
| 96 |
+
}
|
| 97 |
+
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; box-shadow: 0 4px 12px var(--primary-glow); }
|
| 98 |
+
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 16px var(--primary-glow); filter: brightness(1.1); }
|
| 99 |
+
.btn-secondary {
|
| 100 |
+
background: var(--input-bg);
|
| 101 |
+
color: var(--text-main) !important;
|
| 102 |
+
border: 1px solid var(--border-light);
|
| 103 |
+
}
|
| 104 |
+
.btn-secondary:hover {
|
| 105 |
+
background: var(--border-light);
|
| 106 |
+
transform: translateY(-2px);
|
| 107 |
+
}
|
| 108 |
+
/* 3. WIZARD & SETTINGS CONTROLS (X Button & Language Icon) */
|
| 109 |
+
.wizard-container {
|
| 110 |
+
display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
|
| 111 |
+
padding: 24px; padding-top: 90px; padding-bottom: 40px; width: 100%; box-sizing: border-box;
|
| 112 |
+
overflow-y: auto; height: 100vh; position: relative;
|
| 113 |
+
}
|
| 114 |
+
.step-card {
|
| 115 |
+
width: 100%; max-width: 500px; display: none; background: var(--bg-surface); padding: 30px;
|
| 116 |
+
border-radius: 20px; backdrop-filter: var(--backdrop-blur); -webkit-backdrop-filter: var(--backdrop-blur);
|
| 117 |
+
box-shadow: 0 10px 40px rgba(0,0,0,0.15); border: 1px solid var(--border-light);
|
| 118 |
+
box-sizing: border-box; margin-bottom: 30px; position: relative;
|
| 119 |
+
animation: popInCard 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
|
| 120 |
+
}
|
| 121 |
+
.step-card.active { display: block; }
|
| 122 |
+
.step-card h2 { color: var(--text-main); margin-top: 0; margin-bottom: 20px; font-weight: 800; font-size: 22px; }
|
| 123 |
+
.step-card label { display: block; text-align: left; margin-bottom: 8px; font-weight: 600; color: var(--primary); text-transform: uppercase; font-size: 12px; }
|
| 124 |
+
|
| 125 |
+
/* Fixed Settings Close (X) & Language Buttons */
|
| 126 |
+
#closeSettingsWizardBtn {
|
| 127 |
+
display: none !important; /* Force completely hidden on page load */
|
| 128 |
+
position: fixed;
|
| 129 |
+
top: 16px;
|
| 130 |
+
left: 16px;
|
| 131 |
+
background: var(--bg-surface);
|
| 132 |
+
border: 1px solid var(--border-light);
|
| 133 |
+
color: var(--text-main);
|
| 134 |
+
width: 42px;
|
| 135 |
+
height: 42px;
|
| 136 |
+
border-radius: 50%;
|
| 137 |
+
font-size: 18px;
|
| 138 |
+
font-weight: bold;
|
| 139 |
+
cursor: pointer;
|
| 140 |
+
transition: all 0.2s ease;
|
| 141 |
+
z-index: 600;
|
| 142 |
+
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
|
| 143 |
+
align-items: center;
|
| 144 |
+
justify-content: center;
|
| 145 |
+
backdrop-filter: var(--backdrop-blur);
|
| 146 |
+
}
|
| 147 |
+
#closeSettingsWizardBtn:hover { background: #ef4444; color: white; border-color: #ef4444; }
|
| 148 |
+
|
| 149 |
+
.floating-lang-btn {
|
| 150 |
+
position: fixed; top: 16px; right: 16px; font-size: 20px;
|
| 151 |
+
background: var(--bg-surface); border: 1px solid var(--border-light);
|
| 152 |
+
border-radius: 50%; width: 42px; height: 42px; cursor: pointer; transition: all 0.3s ease;
|
| 153 |
+
z-index: 600; display: flex; align-items: center; justify-content: center;
|
| 154 |
+
box-shadow: 0 4px 10px rgba(0,0,0,0.1); backdrop-filter: var(--backdrop-blur);
|
| 155 |
+
}
|
| 156 |
+
.floating-lang-btn:hover { transform: scale(1.1) rotate(15deg); background: var(--primary-glow); }
|
| 157 |
+
|
| 158 |
+
/* Premium Form Elements */
|
| 159 |
+
select.standard, input.standard, textarea.standard {
|
| 160 |
+
width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border-light);
|
| 161 |
+
background: var(--input-bg); color: var(--text-main); font-size: 15px; margin-bottom: 20px;
|
| 162 |
+
box-sizing: border-box; outline: none; transition: all 0.2s ease; font-family: inherit;
|
| 163 |
+
}
|
| 164 |
+
select.standard:focus, input.standard:focus, textarea.standard:focus {
|
| 165 |
+
border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow);
|
| 166 |
+
}
|
| 167 |
+
|
| 168 |
+
/* 4. FIXING CHAPTER CAMERA/MIC ROW */
|
| 169 |
+
.chapter-input-row {
|
| 170 |
+
display: flex; gap: 10px; align-items: center; margin-bottom: 20px; width: 100%;
|
| 171 |
+
}
|
| 172 |
+
.chapter-input-row input { margin-bottom: 0 !important; flex: 1; min-width: 0; }
|
| 173 |
+
.chapter-icon-btn {
|
| 174 |
+
background: var(--primary); color: white; border: none; border-radius: 12px;
|
| 175 |
+
width: 50px; height: 50px; flex-shrink: 0; display: flex; align-items: center;
|
| 176 |
+
justify-content: center; font-size: 20px; cursor: pointer; transition: 0.2s ease;
|
| 177 |
+
}
|
| 178 |
+
.chapter-icon-btn.green { background: var(--accent); }
|
| 179 |
+
.chapter-icon-btn:hover { transform: scale(1.05); filter: brightness(1.1); }
|
| 180 |
+
|
| 181 |
+
/* Chat Layout */
|
| 182 |
+
#chatPage { display: none; flex-direction: column; position: fixed; inset: 0; background: var(--bg-base); z-index: 50; overflow: hidden; }
|
| 183 |
+
.chat-scroll-area { flex: 1; overflow-y: auto; padding: 20px; padding-top: 85px; display: flex; flex-direction: column; gap: 16px; scroll-behavior: smooth; }
|
| 184 |
+
|
| 185 |
+
.msg { display: flex; width: 100%; flex-direction: column; animation: floatUp 0.3s ease forwards; }
|
| 186 |
+
.user { align-items: flex-end; }
|
| 187 |
+
.ai { align-items: flex-start; }
|
| 188 |
+
|
| 189 |
+
.bubble {
|
| 190 |
+
max-width: 85%; padding: 14px 20px; border-radius: 18px; line-height: 1.6; font-size: 15px;
|
| 191 |
+
position: relative; box-shadow: 0 4px 15px rgba(0,0,0,0.08); word-wrap: break-word;
|
| 192 |
+
padding-right: 45px !important; overflow: visible !important;
|
| 193 |
+
}
|
| 194 |
+
.user .bubble { background: var(--chat-user-bg) !important; color: var(--chat-user-text) !important; border-bottom-right-radius: 4px; }
|
| 195 |
+
.ai .bubble {
|
| 196 |
+
background: var(--chat-ai-bg) !important; color: var(--text-main) !important;
|
| 197 |
+
border: 1px solid var(--chat-ai-border) !important; border-bottom-left-radius: 4px;
|
| 198 |
+
backdrop-filter: var(--backdrop-blur); -webkit-backdrop-filter: var(--backdrop-blur);
|
| 199 |
+
}
|
| 200 |
+
.bubble img { max-width: 100%; border-radius: 10px; margin-top: 10px; border: 1px solid var(--border-light); }
|
| 201 |
+
|
| 202 |
+
.chapter-divider { text-align: center; color: var(--text-muted); font-weight: 700; font-size: 11px; margin: 20px 0; text-transform: uppercase; letter-spacing: 1px; position: relative; }
|
| 203 |
+
.chapter-divider::before, .chapter-divider::after { content: ''; position: absolute; top: 50%; width: 15%; height: 1px; background: var(--border-light); }
|
| 204 |
+
.chapter-divider::before { left: 0; } .chapter-divider::after { right: 0; }
|
| 205 |
+
|
| 206 |
+
.user-copy-btn { position: absolute; top: -10px; left: -10px; background: var(--bg-surface); color: var(--text-main); border: 1px solid var(--border-light); border-radius: 50%; width: 28px; height: 28px; font-size: 12px; cursor: pointer; display: none; justify-content: center; align-items: center; box-shadow: 0 2px 5px rgba(0,0,0,0.2); transition: 0.2s; z-index: 10; }
|
| 207 |
+
.user-copy-btn:hover { background: var(--primary); color: white; transform: scale(1.1); }
|
| 208 |
+
.user .bubble:hover .user-copy-btn { display: flex; animation: popUp 0.2s ease; }
|
| 209 |
+
|
| 210 |
+
.preset-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
|
| 211 |
+
.preset-btn { background: var(--input-bg); border: 1px solid var(--primary); color: var(--primary); padding: 8px 12px; border-radius: 16px; font-size: 12px; font-weight: 600; cursor: pointer; transition: 0.2s; }
|
| 212 |
+
.preset-btn:hover { background: var(--primary); color: white; transform: translateY(-2px); }
|
| 213 |
+
.listen-btn { background: linear-gradient(135deg, #10b981, #059669); color: white; border-radius: 20px; padding: 6px 14px; display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 4px 10px rgba(16,185,129,0.2); transition: 0.2s; border: none; font-weight: 600; font-size: 12px; cursor: pointer; margin-top: 10px; text-transform: uppercase; }
|
| 214 |
+
.listen-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(16,185,129,0.3); }
|
| 215 |
+
|
| 216 |
+
/* Bottom Chat Input Controls */
|
| 217 |
+
.bottom-action-container {
|
| 218 |
+
flex-shrink: 0; width: 100%; background: var(--bg-surface);
|
| 219 |
+
backdrop-filter: var(--backdrop-blur); -webkit-backdrop-filter: var(--backdrop-blur);
|
| 220 |
+
border-top: 1px solid var(--border-light); display: flex; flex-direction: column;
|
| 221 |
+
box-sizing: border-box; padding: 12px 16px; padding-bottom: calc(12px + env(safe-area-inset-bottom));
|
| 222 |
+
z-index: 100; position: relative;
|
| 223 |
+
}
|
| 224 |
+
|
| 225 |
+
.chat-input-wrapper {
|
| 226 |
+
display: flex; align-items: center; gap: 8px; width: 100%; box-sizing: border-box;
|
| 227 |
+
background: var(--input-bg); border: 1px solid var(--border-light); border-radius: 24px;
|
| 228 |
+
padding: 6px 12px; transition: 0.2s ease;
|
| 229 |
+
}
|
| 230 |
+
.chat-input-wrapper:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
|
| 231 |
+
textarea { flex: 1; background: transparent; border: none; color: var(--text-main); font-family: inherit; font-size: 15px; resize: none; padding: 8px 0; outline: none; min-height: 24px; max-height: 120px; }
|
| 232 |
+
.icon-btn { background: transparent; border: none; color: var(--primary); font-size: 20px; cursor: pointer; padding: 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: 0.2s; border-radius: 50%; }
|
| 233 |
+
.icon-btn:hover { background: var(--border-light); }
|
| 234 |
+
|
| 235 |
+
.send-btn { background: var(--border-light); color: var(--text-muted); border-radius: 50%; width: 36px; height: 36px; padding: 0; margin-left: 4px; flex-shrink: 0; pointer-events: none; transition: 0.2s; opacity: 0.5; }
|
| 236 |
+
.send-btn.active-btn { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; box-shadow: 0 4px 10px var(--primary-glow); pointer-events: auto; opacity: 1; }
|
| 237 |
+
.send-btn.active-btn:hover { transform: scale(1.1); }
|
| 238 |
+
.send-btn.stop-btn { background: #ef4444 !important; pointer-events: auto; animation: pulse 1s infinite alternate; opacity: 1; color: white;}
|
| 239 |
+
|
| 240 |
+
/* Plus Menu & Modals */
|
| 241 |
+
.glass-panel { background: var(--bg-surface); backdrop-filter: var(--backdrop-blur); border: 1px solid var(--border-light); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
|
| 242 |
+
#plusMenu { display: none; position: absolute; bottom: 70px; left: 16px; border-radius: 16px; flex-direction: column; z-index: 200; width: 220px; animation: popUp 0.2s ease; overflow: hidden; }
|
| 243 |
+
.menu-item { background: transparent; border: none; color: var(--text-main); padding: 14px; text-align: left; font-size: 14px; font-weight: 600; cursor: pointer; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; gap: 10px; transition: 0.2s; }
|
| 244 |
+
.menu-item:hover { background: var(--primary-glow); padding-left: 18px; }
|
| 245 |
+
.menu-item:last-child { border-bottom: none; }
|
| 246 |
+
|
| 247 |
+
.modal-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.7); z-index:9999999; justify-content:center; align-items:center; backdrop-filter: blur(5px); }
|
| 248 |
+
.modal-box { background:var(--bg-surface); width:90%; max-width:400px; padding:25px; border-radius:20px; position:relative; border: 1px solid var(--border-light); box-shadow: 0 15px 40px rgba(0,0,0,0.4); animation: popUp 0.3s ease; }
|
| 249 |
+
|
| 250 |
+
/* Message Dropdowns */
|
| 251 |
+
.msg-menu-wrap { position: absolute; top: 10px; right: 8px; z-index: 10; display: flex; gap: 4px;}
|
| 252 |
+
.msg-action-btn { background: transparent; border: none; color: inherit; opacity: 0.5; cursor: pointer; font-size: 16px; padding: 2px; transition:0.2s;}
|
| 253 |
+
.msg-action-btn:hover { opacity: 1; transform: scale(1.1); }
|
| 254 |
+
.msg-dropdown { display: none; position: absolute; right: 0; top: 24px; background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); overflow: hidden; min-width: 100px; z-index: 1000; }
|
| 255 |
+
.msg-dropdown button { width: 100%; background: transparent; border: none; color: #ef4444; padding: 10px 14px; text-align: left; font-size: 13px; font-weight: bold; cursor: pointer; }
|
| 256 |
+
.msg-dropdown button:hover { background: rgba(239,68,68,0.1); }
|
| 257 |
+
|
| 258 |
+
/* Misc UI */
|
| 259 |
+
.sidebar {
|
| 260 |
+
position: fixed;
|
| 261 |
+
top: 0;
|
| 262 |
+
left: 0;
|
| 263 |
+
transform: translateX(-100%);
|
| 264 |
+
width: 280px;
|
| 265 |
+
height: 100vh;
|
| 266 |
+
background: var(--bg-base);
|
| 267 |
+
border-right: 1px solid var(--border-light);
|
| 268 |
+
box-shadow: 20px 0 40px rgba(0,0,0,0.2);
|
| 269 |
+
z-index: 999999;
|
| 270 |
+
transition: transform 0.3s ease;
|
| 271 |
+
padding: 20px 15px;
|
| 272 |
+
box-sizing: border-box;
|
| 273 |
+
display: flex;
|
| 274 |
+
flex-direction: column;
|
| 275 |
+
gap: 8px;
|
| 276 |
+
}
|
| 277 |
+
.sidebar.active { transform: translateX(0); }
|
| 278 |
+
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 999998; display: none; opacity: 0; transition: 0.3s; }
|
| 279 |
+
.overlay.active { display: block; opacity: 1; }
|
| 280 |
+
|
| 281 |
+
.status-chip { display: none; align-items: center; gap: 8px; background: var(--primary-glow); color: var(--primary); padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: bold; width: max-content; border: 1px solid var(--primary); margin-bottom: 10px; animation: slideIn 0.3s ease; }
|
| 282 |
+
#imagePreviewContainer { position: relative; margin-bottom: 10px; display: none; width: max-content; }
|
| 283 |
+
.img-chip { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; border: 2px solid var(--primary); }
|
| 284 |
+
|
| 285 |
+
.math-svg-wrap { background: #ffffff !important; border-radius: 12px; padding: 15px; margin: 15px 0; text-align: center; overflow-x: auto; box-shadow: 0 4px 12px rgba(0,0,0,0.1); border: 2px solid var(--primary); }
|
| 286 |
+
.math-svg-wrap svg { max-width: 100%; height: auto; border-radius: 8px; }
|
| 287 |
+
.markdown-body h1, .markdown-body h2, .markdown-body h3 { margin-top: 0; color: inherit; font-weight: 700; }
|
| 288 |
+
.markdown-body strong { font-weight: 700; color: inherit; }
|
| 289 |
+
|
| 290 |
+
@keyframes floatUp { 0% { opacity:0; transform:translateY(15px); } 100% { opacity:1; transform:translateY(0); } }
|
| 291 |
+
@keyframes popInCard { 0% { opacity: 0; transform: scale(0.95) translateY(10px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }
|
| 292 |
+
@keyframes popUp { 0% { transform: scale(0.9) translateY(10px); opacity: 0; } 100% { transform: scale(1) translateY(0); opacity: 1; } }
|
| 293 |
+
@keyframes slideIn { from { transform: translateX(-15px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
|
| 294 |
+
@keyframes pulse { from { transform: scale(1); } to { transform: scale(1.05); } }
|
| 295 |
+
|
| 296 |
+
/* 5. RESPONSIVE MOBILE SQUEEZE FIXES */
|
| 297 |
+
@media (max-width: 600px) {
|
| 298 |
+
.topbar .btn { color: var(--text-main) !important; }
|
| 299 |
+
.topbar .btn::before { color: var(--text-main) !important; }
|
| 300 |
+
}
|
| 301 |
+
/* Shrink the buttons to just icons on small screens to prevent squeezing */
|
| 302 |
+
.topbar .btn { padding: 8px !important; font-size: 0 !important; width: 36px; height: 36px; border-radius: 50%; }
|
| 303 |
+
.topbar .btn::before { font-size: 16px; line-height: 1; display: block; }
|
| 304 |
+
|
| 305 |
+
#shareBtn::before { content: "📤"; }
|
| 306 |
+
#clearBtn::before { content: "🗑️"; }
|
| 307 |
+
#settingsBtn::before { content: "⚙️"; }
|
| 308 |
+
|
| 309 |
+
.appTitle { font-size: 15px; }
|
| 310 |
+
.bubble { max-width: 90%; }
|
| 311 |
+
|
| 312 |
+
/* Make sure settings icon and X button don't overlap on mobile */
|
| 313 |
+
.floating-lang-btn { top: 12px; right: 12px; width: 36px; height: 36px; font-size: 16px; }
|
| 314 |
+
}
|
| 315 |
+
/* 5. AUDIO PLAYER (FIXED) */
|
| 316 |
+
#topAudioPlayer {
|
| 317 |
+
display: none;
|
| 318 |
+
position: fixed;
|
| 319 |
+
top: 85px;
|
| 320 |
+
left: 50%;
|
| 321 |
+
transform: translateX(-50%);
|
| 322 |
+
z-index: 9999;
|
| 323 |
+
align-items: center;
|
| 324 |
+
gap: 15px;
|
| 325 |
+
padding: 10px 20px;
|
| 326 |
+
border-radius: 30px;
|
| 327 |
+
border: 2px solid var(--primary);
|
| 328 |
+
background: var(--bg-surface);
|
| 329 |
+
backdrop-filter: var(--backdrop-blur);
|
| 330 |
+
animation: slideDown 0.3s ease;
|
| 331 |
+
box-shadow: 0 10px 30px rgba(0,0,0,0.4);
|
| 332 |
+
}
|
| 333 |
+
.audio-btn {
|
| 334 |
+
background: var(--primary);
|
| 335 |
+
color: white;
|
| 336 |
+
border: none;
|
| 337 |
+
width: 35px;
|
| 338 |
+
height: 35px;
|
| 339 |
+
border-radius: 50%;
|
| 340 |
+
font-size: 16px;
|
| 341 |
+
cursor: pointer;
|
| 342 |
+
display: flex;
|
| 343 |
+
justify-content: center;
|
| 344 |
+
align-items: center;
|
| 345 |
+
transition: 0.2s;
|
| 346 |
+
}
|
| 347 |
+
.audio-btn:hover { transform: scale(1.1); }
|
| 348 |
+
</STYLE>
|
| 349 |
</head>
|
| 350 |
<body onclick="closePlusMenu(event)">
|
| 351 |
|
|
|
|
| 1152 |
window.togglePlusMenu = function(e) { e.stopPropagation(); const m = document.getElementById("plusMenu"); m.style.display = m.style.display === "flex" ? "none" : "flex"; }
|
| 1153 |
window.closePlusMenu = function() { document.getElementById("plusMenu").style.display = "none"; }
|
| 1154 |
|
| 1155 |
+
window.openSettings = function() {
|
|
|
|
| 1156 |
document.getElementById('chatPage').style.display = 'none';
|
| 1157 |
document.getElementById('wizardPage').style.display = 'block';
|
| 1158 |
|
| 1159 |
+
// Hide the settings button when the menu is open
|
| 1160 |
+
document.getElementById('settingsBtn').style.display = 'none';
|
| 1161 |
+
|
| 1162 |
let chatContent = document.getElementById('chatHistory').innerHTML.trim();
|
| 1163 |
if (chatContent !== "") {
|
| 1164 |
+
document.getElementById('closeSettingsWizardBtn').style.display = 'flex';
|
| 1165 |
} else {
|
| 1166 |
document.getElementById('closeSettingsWizardBtn').style.display = 'none';
|
| 1167 |
}
|
| 1168 |
window.nextStep(1);
|
| 1169 |
}
|
| 1170 |
+
|
| 1171 |
window.closeSettingsWizard = function() {
|
| 1172 |
document.getElementById('wizardPage').style.display = 'none';
|
| 1173 |
document.getElementById('chatPage').style.display = 'flex';
|
| 1174 |
+
|
| 1175 |
+
// Bring the settings button back when the menu closes
|
| 1176 |
+
document.getElementById('settingsBtn').style.display = 'block';
|
| 1177 |
}
|
| 1178 |
|
| 1179 |
window.handleEnter = function(e) { if(e.key === 'Enter' && !e.shiftKey) { e.preventDefault(); if (document.getElementById('sendBtn').classList.contains('active-btn')) window.sendMessage(); } }
|