styles.css 50 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877
  1. /* Reset and Base Styles */
  2. * {
  3. margin: 0;
  4. padding: 0;
  5. box-sizing: border-box;
  6. }
  7. body {
  8. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  9. background-color: #f5f7fa;
  10. color: #333;
  11. line-height: 1.6;
  12. }
  13. /* Container and Layout */
  14. .container {
  15. max-width: 1400px;
  16. margin: 0 auto;
  17. padding: 20px;
  18. }
  19. header {
  20. text-align: center;
  21. margin-bottom: 30px;
  22. padding: 20px ;
  23. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  24. color: white;
  25. border-radius: 10px;
  26. box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  27. position: relative;
  28. min-height: 140px;
  29. width: 100%;
  30. }
  31. header h1 {
  32. font-size: 2.5em;
  33. margin-bottom: 20px;
  34. }
  35. .subtitle {
  36. font-size: 1.1em;
  37. opacity: 0.9;
  38. }
  39. .header-buttons {
  40. position: absolute;
  41. top: 15px;
  42. right: 15px;
  43. display: flex;
  44. flex-direction: column;
  45. gap: 10px;
  46. align-items: flex-end;
  47. max-width: 280px;
  48. }
  49. .header-buttons-row {
  50. display: flex;
  51. gap: 10px;
  52. flex-wrap: wrap;
  53. justify-content: flex-end;
  54. }
  55. .header-buttons .btn {
  56. padding: 8px 16px;
  57. font-size: 14px;
  58. white-space: nowrap;
  59. }
  60. .btn-brain {
  61. background: rgba(255, 255, 255, 0.2);
  62. color: white;
  63. border: 2px solid rgba(255, 255, 255, 0.3);
  64. padding: 8px 16px;
  65. border-radius: 6px;
  66. font-size: 14px;
  67. font-weight: 500;
  68. cursor: pointer;
  69. transition: all 0.3s ease;
  70. backdrop-filter: blur(10px);
  71. }
  72. .btn-brain:hover {
  73. background: rgba(255, 255, 255, 0.3);
  74. border-color: rgba(255, 255, 255, 0.5);
  75. transform: translateY(-1px);
  76. box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  77. }
  78. .btn-brain.connected {
  79. background: #4caf50;
  80. border-color: #4caf50;
  81. color: white;
  82. }
  83. .btn-brain.connected:hover {
  84. background: #45a049;
  85. border-color: #45a049;
  86. }
  87. /* Main Content Layout */
  88. .main-content {
  89. display: grid;
  90. grid-template-columns: 1fr 350px;
  91. gap: 20px;
  92. margin-top: 20px;
  93. height: calc(100vh - 400px);
  94. min-height: 600px;
  95. }
  96. /* Editor Section */
  97. .editor-section {
  98. background: white;
  99. border-radius: 10px;
  100. padding: 20px;
  101. box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  102. display: flex;
  103. flex-direction: column;
  104. height: 100%;
  105. }
  106. .editor-header {
  107. display: flex;
  108. justify-content: space-between;
  109. align-items: center;
  110. margin-bottom: 20px;
  111. flex-wrap: wrap;
  112. gap: 10px;
  113. }
  114. .editor-header h2 {
  115. color: #333;
  116. font-size: 1.5em;
  117. margin-right: auto;
  118. }
  119. .auto-check-indicator {
  120. color: #48bb78;
  121. font-size: 14px;
  122. display: flex;
  123. align-items: center;
  124. gap: 5px;
  125. font-weight: 500;
  126. }
  127. .editor-actions {
  128. display: flex;
  129. gap: 10px;
  130. }
  131. /* Editor Wrapper */
  132. .editor-wrapper {
  133. display: flex;
  134. border: 2px solid #e0e6ed;
  135. border-radius: 8px;
  136. overflow: hidden;
  137. background: #fafbfc;
  138. position: relative;
  139. height: 500px;
  140. min-height: 400px;
  141. }
  142. .line-numbers {
  143. background: #f0f3f6;
  144. color: #6b7280;
  145. padding: 12px 10px;
  146. text-align: right;
  147. font-family: 'Consolas', 'Monaco', monospace;
  148. font-size: 16px;
  149. line-height: 1.6;
  150. user-select: none;
  151. border-right: 1px solid #e0e6ed;
  152. white-space: pre;
  153. overflow-y: auto;
  154. overflow-x: hidden;
  155. min-width: 40px;
  156. flex-shrink: 0;
  157. min-height: 100%;
  158. }
  159. /* Hide scrollbars but keep functionality */
  160. .line-numbers::-webkit-scrollbar,
  161. .highlighted-text::-webkit-scrollbar,
  162. .expression-editor::-webkit-scrollbar {
  163. width: 0;
  164. height: 0;
  165. }
  166. .editor-container {
  167. position: relative;
  168. flex: 1;
  169. overflow-y: auto;
  170. overflow-x: hidden;
  171. min-height: 400px;
  172. }
  173. .highlighted-text {
  174. position: absolute;
  175. top: 0;
  176. left: 0;
  177. right: 0;
  178. bottom: 0;
  179. padding: 12px 15px;
  180. font-family: 'Consolas', 'Monaco', monospace;
  181. font-size: 16px;
  182. line-height: 1.6;
  183. white-space: pre-wrap;
  184. word-wrap: break-word;
  185. color: #333;
  186. pointer-events: none;
  187. overflow-y: auto;
  188. overflow-x: hidden;
  189. min-height: 100%;
  190. }
  191. .highlighted-text .template-tag {
  192. color: #2563eb;
  193. font-weight: 600;
  194. }
  195. .highlighted-text .template-brackets {
  196. color: #7c3aed;
  197. font-weight: 600;
  198. }
  199. .expression-editor {
  200. position: relative;
  201. width: 100%;
  202. min-height: 100%;
  203. height: 100%;
  204. padding: 12px 15px;
  205. font-family: 'Consolas', 'Monaco', monospace;
  206. font-size: 16px;
  207. line-height: 1.6;
  208. border: none;
  209. outline: none;
  210. resize: none;
  211. background: transparent;
  212. white-space: pre-wrap;
  213. word-wrap: break-word;
  214. color: transparent;
  215. caret-color: #333;
  216. z-index: 2;
  217. overflow-y: auto;
  218. overflow-x: hidden;
  219. display: block;
  220. }
  221. /* Template Preview */
  222. .template-preview {
  223. background: #f3f4f6;
  224. border: 1px solid #e5e7eb;
  225. border-radius: 6px;
  226. padding: 8px 12px;
  227. margin-bottom: 10px;
  228. font-family: 'Consolas', 'Monaco', monospace;
  229. font-size: 14px;
  230. }
  231. .template-preview .preview-label {
  232. color: #6b7280;
  233. font-size: 12px;
  234. margin-bottom: 4px;
  235. }
  236. /* Grammar Errors */
  237. .grammar-errors {
  238. margin-top: 15px;
  239. }
  240. .error-item {
  241. background: #fee;
  242. border-left: 4px solid #f44336;
  243. padding: 10px 15px;
  244. margin-bottom: 10px;
  245. border-radius: 4px;
  246. font-size: 14px;
  247. }
  248. .error-item strong {
  249. color: #d32f2f;
  250. }
  251. .success-message {
  252. background: #e8f5e9;
  253. border-left: 4px solid #4caf50;
  254. padding: 10px 15px;
  255. border-radius: 4px;
  256. color: #2e7d32;
  257. }
  258. .info-message {
  259. background: #e3f2fd;
  260. border-left: 4px solid #2196f3;
  261. padding: 10px 15px;
  262. border-radius: 4px;
  263. color: #1565c0;
  264. font-size: 14px;
  265. line-height: 1.5;
  266. }
  267. /* Info Panel */
  268. .info-panel {
  269. background: white;
  270. border-radius: 10px;
  271. padding: 20px;
  272. box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  273. }
  274. .info-panel h3 {
  275. color: #333;
  276. margin-bottom: 15px;
  277. font-size: 1.2em;
  278. }
  279. .grammar-rules {
  280. list-style: none;
  281. margin-bottom: 30px;
  282. }
  283. .grammar-rules li {
  284. padding: 8px 0;
  285. border-bottom: 1px solid #eee;
  286. }
  287. .grammar-rules code {
  288. background: #f5f7fa;
  289. padding: 2px 6px;
  290. border-radius: 3px;
  291. font-family: 'Consolas', 'Monaco', monospace;
  292. color: #667eea;
  293. }
  294. /* Template List */
  295. .template-list {
  296. display: flex;
  297. flex-direction: column;
  298. gap: 10px;
  299. }
  300. .template-item {
  301. background: #f5f7fa;
  302. padding: 12px;
  303. border-radius: 6px;
  304. display: flex;
  305. flex-direction: column;
  306. align-items: stretch;
  307. transition: all 0.3s ease;
  308. position: relative;
  309. padding-left: 35px;
  310. gap: 8px;
  311. }
  312. .template-item:hover {
  313. background: #e9ecef;
  314. transform: translateX(5px);
  315. }
  316. .template-item.configured::before {
  317. content: "✓";
  318. position: absolute;
  319. left: 12px;
  320. top: 16px;
  321. color: #48bb78;
  322. font-weight: bold;
  323. }
  324. .template-item.not-configured::before {
  325. content: "•";
  326. position: absolute;
  327. left: 12px;
  328. top: 16px;
  329. color: #9ca3af;
  330. }
  331. .template-name {
  332. font-family: 'Consolas', 'Monaco', monospace;
  333. font-size: 14px;
  334. display: flex;
  335. align-items: center;
  336. cursor: pointer;
  337. padding: 4px 8px;
  338. border-radius: 4px;
  339. transition: background-color 0.2s ease;
  340. margin-bottom: 4px;
  341. }
  342. .template-name:hover {
  343. background-color: rgba(102, 126, 234, 0.1);
  344. }
  345. .template-name .template-tag {
  346. color: #2563eb;
  347. font-weight: 600;
  348. }
  349. .template-name .template-brackets {
  350. color: #7c3aed;
  351. font-weight: 600;
  352. }
  353. .template-count {
  354. color: #48bb78;
  355. font-weight: 600;
  356. font-size: 13px;
  357. margin-left: 4px;
  358. }
  359. .template-buttons {
  360. display: flex;
  361. gap: 5px;
  362. flex-wrap: wrap;
  363. justify-content: flex-start;
  364. padding-left: 8px;
  365. }
  366. .template-buttons .btn-small {
  367. padding: 4px 8px;
  368. font-size: 11px;
  369. min-width: 45px;
  370. }
  371. /* Buttons */
  372. .btn {
  373. padding: 8px 16px;
  374. border: none;
  375. border-radius: 6px;
  376. font-size: 14px;
  377. font-weight: 500;
  378. cursor: pointer;
  379. transition: all 0.3s ease;
  380. text-decoration: none;
  381. display: inline-block;
  382. }
  383. .btn-primary {
  384. background: #667eea;
  385. color: white;
  386. }
  387. .btn-primary:hover {
  388. background: #5a67d8;
  389. transform: translateY(-1px);
  390. box-shadow: 0 2px 5px rgba(102, 126, 234, 0.3);
  391. }
  392. .btn-secondary {
  393. background: #48bb78;
  394. color: white;
  395. }
  396. .btn-secondary:hover {
  397. background: #38a169;
  398. transform: translateY(-1px);
  399. box-shadow: 0 2px 5px rgba(72, 187, 120, 0.3);
  400. }
  401. .btn-outline {
  402. background: transparent;
  403. color: #6b7280;
  404. border: 1px solid #e0e6ed;
  405. }
  406. .btn-outline:hover {
  407. background: #f5f7fa;
  408. color: #333;
  409. }
  410. /* Header button overrides for visibility on purple background */
  411. header .btn-outline {
  412. background: rgba(255, 255, 255, 0.15);
  413. color: white;
  414. border: 2px solid rgba(255, 255, 255, 0.4);
  415. backdrop-filter: blur(10px);
  416. }
  417. header .btn-outline:hover {
  418. background: rgba(255, 255, 255, 0.25);
  419. border-color: rgba(255, 255, 255, 0.6);
  420. color: white;
  421. transform: translateY(-1px);
  422. box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  423. }
  424. .btn-small {
  425. padding: 5px 10px;
  426. font-size: 12px;
  427. }
  428. /* Modal */
  429. .modal {
  430. display: none;
  431. position: fixed;
  432. z-index: 1000;
  433. left: 0;
  434. top: 0;
  435. width: 100%;
  436. height: 100%;
  437. background-color: rgba(0,0,0,0.5);
  438. animation: fadeIn 0.3s ease;
  439. }
  440. .modal-content {
  441. background-color: white;
  442. margin: 10% auto;
  443. padding: 0;
  444. border-radius: 10px;
  445. width: 90%;
  446. max-width: 500px;
  447. box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  448. animation: slideIn 0.3s ease;
  449. position: relative;
  450. max-height: 80vh;
  451. overflow: hidden;
  452. display: flex;
  453. flex-direction: column;
  454. }
  455. .modal-header {
  456. padding: 20px;
  457. background: #f5f7fa;
  458. border-radius: 10px 10px 0 0;
  459. display: flex;
  460. justify-content: space-between;
  461. align-items: center;
  462. border-bottom: 1px solid #e0e6ed;
  463. flex-shrink: 0;
  464. }
  465. #brainDataFieldsModal .modal-header {
  466. padding: 15px 20px;
  467. }
  468. .modal-header h3 {
  469. color: #333;
  470. margin: 0;
  471. }
  472. .close {
  473. color: #999;
  474. font-size: 28px;
  475. font-weight: bold;
  476. cursor: pointer;
  477. transition: color 0.3s ease;
  478. line-height: 1;
  479. }
  480. .close:hover {
  481. color: #333;
  482. }
  483. .modal-body {
  484. padding: 20px;
  485. flex: 1;
  486. overflow-y: auto;
  487. min-height: 0;
  488. }
  489. .modal-body p {
  490. margin-bottom: 15px;
  491. color: #666;
  492. }
  493. .variable-input {
  494. width: 100%;
  495. min-height: 100px;
  496. padding: 10px;
  497. border: 2px solid #e0e6ed;
  498. border-radius: 6px;
  499. font-family: 'Consolas', 'Monaco', monospace;
  500. font-size: 14px;
  501. resize: vertical;
  502. }
  503. .variable-input:focus {
  504. outline: none;
  505. border-color: #667eea;
  506. }
  507. .modal-footer {
  508. padding: 20px;
  509. background: #f5f7fa;
  510. border-radius: 0 0 10px 10px;
  511. display: flex;
  512. justify-content: flex-end;
  513. gap: 10px;
  514. border-top: 1px solid #e0e6ed;
  515. flex-shrink: 0;
  516. }
  517. #brainDataFieldsModal .modal-footer {
  518. padding: 15px 20px;
  519. }
  520. #brainDataFieldsModal .modal-body {
  521. flex: 1;
  522. overflow-y: auto;
  523. overflow-x: hidden;
  524. display: flex;
  525. flex-direction: column;
  526. padding: 15px;
  527. min-height: 0;
  528. }
  529. /* Configuration Info Modal Specific Styles */
  530. .config-info-content {
  531. font-family: 'Consolas', 'Monaco', monospace;
  532. font-size: 14px;
  533. line-height: 1.6;
  534. }
  535. .config-info-item {
  536. margin-bottom: 15px;
  537. padding: 10px;
  538. background: #f8f9fa;
  539. border-radius: 6px;
  540. border-left: 4px solid #667eea;
  541. }
  542. .config-info-item strong {
  543. color: #333;
  544. display: inline-block;
  545. min-width: 80px;
  546. }
  547. .config-info-values {
  548. background: #e3f2fd;
  549. padding: 8px 12px;
  550. border-radius: 4px;
  551. margin-top: 8px;
  552. color: #1565c0;
  553. word-break: break-all;
  554. }
  555. .config-status-unconfigured {
  556. color: #f44336;
  557. font-style: italic;
  558. }
  559. .config-status-configured {
  560. color: #4caf50;
  561. font-weight: 600;
  562. }
  563. /* Form Styles for BRAIN Login */
  564. .form-group {
  565. margin-bottom: 20px;
  566. }
  567. .form-group label {
  568. display: block;
  569. margin-bottom: 5px;
  570. color: #333;
  571. font-weight: 500;
  572. }
  573. .form-input {
  574. width: 100%;
  575. padding: 10px 12px;
  576. border: 2px solid #e0e6ed;
  577. border-radius: 6px;
  578. font-size: 14px;
  579. transition: border-color 0.3s ease;
  580. box-sizing: border-box;
  581. }
  582. .form-input:focus {
  583. outline: none;
  584. border-color: #667eea;
  585. box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  586. }
  587. .form-input:disabled {
  588. background-color: #f5f5f5;
  589. cursor: not-allowed;
  590. opacity: 0.7;
  591. }
  592. .login-status {
  593. margin-top: 10px;
  594. padding: 8px 12px;
  595. border-radius: 4px;
  596. font-size: 14px;
  597. text-align: center;
  598. min-height: 20px;
  599. }
  600. .login-status.loading {
  601. background: #e3f2fd;
  602. color: #1565c0;
  603. border: 1px solid #90caf9;
  604. }
  605. .login-status.success {
  606. background: #e8f5e9;
  607. color: #2e7d32;
  608. border: 1px solid #81c784;
  609. }
  610. .login-status.error {
  611. background: #ffebee;
  612. color: #c62828;
  613. border: 1px solid #ef5350;
  614. }
  615. .login-spinner {
  616. display: flex;
  617. justify-content: center;
  618. align-items: center;
  619. padding: 20px;
  620. }
  621. .spinner {
  622. width: 40px;
  623. height: 40px;
  624. border: 4px solid #f3f3f3;
  625. border-top: 4px solid #667eea;
  626. border-radius: 50%;
  627. animation: spin 1s linear infinite;
  628. }
  629. @keyframes spin {
  630. 0% { transform: rotate(0deg); }
  631. 100% { transform: rotate(360deg); }
  632. }
  633. .modal-overlay {
  634. position: fixed;
  635. top: 0;
  636. left: 0;
  637. width: 100%;
  638. height: 100%;
  639. background: rgba(0, 0, 0, 0.3);
  640. z-index: 9999;
  641. display: none;
  642. cursor: not-allowed;
  643. }
  644. /* Animations */
  645. @keyframes fadeIn {
  646. from { opacity: 0; }
  647. to { opacity: 1; }
  648. }
  649. @keyframes slideIn {
  650. from { transform: translateY(100px); opacity: 0; }
  651. to { transform: translateY(0); opacity: 1; }
  652. }
  653. @keyframes fadeOut {
  654. from { opacity: 1; }
  655. to { opacity: 0; }
  656. }
  657. /* Shadow Suggestion */
  658. .shadow-suggestion {
  659. font-family: 'Consolas', 'Monaco', monospace;
  660. font-size: 16px;
  661. line-height: 1.6;
  662. color: #9ca3af;
  663. opacity: 0.5;
  664. position: relative;
  665. user-select: none;
  666. -webkit-user-select: none;
  667. -moz-user-select: none;
  668. }
  669. .shadow-hint {
  670. position: absolute;
  671. top: 100%;
  672. left: 0;
  673. margin-top: 4px;
  674. background: #f3f4f6;
  675. color: #6b7280;
  676. padding: 2px 6px;
  677. border-radius: 4px;
  678. font-size: 11px;
  679. white-space: nowrap;
  680. box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  681. animation: fadeIn 0.2s ease;
  682. }
  683. /* Decoded Results */
  684. .decoded-results {
  685. margin-top: 30px;
  686. background: white;
  687. border: 1px solid #e5e7eb;
  688. border-radius: 8px;
  689. padding: 20px;
  690. max-width: 1000px;
  691. margin-left: auto;
  692. margin-right: auto;
  693. }
  694. .decoded-results h3 {
  695. margin-top: 0;
  696. margin-bottom: 15px;
  697. color: #333;
  698. font-size: 1.2em;
  699. }
  700. .results-list {
  701. max-height: 400px;
  702. overflow-y: auto;
  703. background: white;
  704. border: 1px solid #e0e6ed;
  705. border-radius: 6px;
  706. padding: 10px;
  707. margin-bottom: 15px;
  708. }
  709. .result-item {
  710. padding: 8px 12px;
  711. margin-bottom: 8px;
  712. background: #f5f7fa;
  713. border-radius: 4px;
  714. font-family: 'Consolas', 'Monaco', monospace;
  715. font-size: 14px;
  716. line-height: 1.5;
  717. position: relative;
  718. }
  719. .result-item:hover {
  720. background: #e9ecef;
  721. }
  722. .result-number {
  723. display: inline-block;
  724. width: 30px;
  725. color: #6b7280;
  726. font-weight: 600;
  727. }
  728. .result-expression {
  729. color: #333;
  730. }
  731. .copy-single {
  732. position: absolute;
  733. right: 10px;
  734. top: 50%;
  735. transform: translateY(-50%);
  736. padding: 4px 8px;
  737. font-size: 11px;
  738. background: #667eea;
  739. color: white;
  740. border: none;
  741. border-radius: 4px;
  742. cursor: pointer;
  743. opacity: 0;
  744. transition: opacity 0.2s ease;
  745. }
  746. .result-item:hover .copy-single {
  747. opacity: 1;
  748. }
  749. .copy-single:hover {
  750. background: #5a67d8;
  751. }
  752. .results-actions {
  753. display: flex;
  754. gap: 10px;
  755. justify-content: flex-end;
  756. }
  757. .results-info {
  758. background: #e0f2fe;
  759. border: 1px solid #7dd3fc;
  760. padding: 10px 15px;
  761. border-radius: 6px;
  762. margin-bottom: 15px;
  763. color: #075985;
  764. font-size: 14px;
  765. }
  766. /* Results Search Container */
  767. .results-search-container {
  768. display: flex;
  769. gap: 10px;
  770. margin-bottom: 15px;
  771. padding: 10px;
  772. background: #f8fafc;
  773. border-radius: 6px;
  774. align-items: center;
  775. }
  776. .results-search-input {
  777. flex: 1;
  778. padding: 8px 12px;
  779. border: 2px solid #e0e6ed;
  780. border-radius: 6px;
  781. font-size: 14px;
  782. font-family: 'Consolas', 'Monaco', monospace;
  783. transition: border-color 0.3s ease;
  784. }
  785. .results-search-input:focus {
  786. outline: none;
  787. border-color: #667eea;
  788. box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  789. }
  790. .results-search-input::placeholder {
  791. color: #9ca3af;
  792. }
  793. /* Warning message style */
  794. .warning-message {
  795. background: #fef3c7;
  796. border: 1px solid #fbbf24;
  797. padding: 10px 15px;
  798. border-radius: 6px;
  799. color: #92400e;
  800. font-size: 14px;
  801. margin-bottom: 15px;
  802. }
  803. /* Settings Grid */
  804. .settings-grid {
  805. display: grid;
  806. grid-template-columns: repeat(2, 1fr);
  807. gap: 15px;
  808. margin-top: 20px;
  809. }
  810. .setting-item {
  811. display: flex;
  812. flex-direction: column;
  813. gap: 5px;
  814. }
  815. .setting-item label {
  816. font-size: 14px;
  817. font-weight: 500;
  818. color: #333;
  819. }
  820. .setting-item .form-input {
  821. padding: 8px 10px;
  822. font-size: 13px;
  823. }
  824. @media (max-width: 600px) {
  825. .settings-grid {
  826. grid-template-columns: 1fr;
  827. }
  828. }
  829. /* Settings Modal Styles */
  830. .settings-modal .modal-content {
  831. max-width: 900px;
  832. width: 90%;
  833. max-height: 90vh;
  834. }
  835. .settings-modal-content {
  836. width: 90%;
  837. max-width: 900px;
  838. max-height: 90vh;
  839. margin: 5vh auto;
  840. }
  841. .settings-modal-body {
  842. display: flex;
  843. flex-direction: column;
  844. gap: 20px;
  845. max-height: calc(90vh - 140px); /* Account for header and footer */
  846. overflow: hidden;
  847. }
  848. .settings-info {
  849. background: #f0f4f8;
  850. padding: 15px;
  851. border-radius: 6px;
  852. border-left: 4px solid #667eea;
  853. flex-shrink: 0;
  854. }
  855. .settings-note {
  856. color: #6b7280;
  857. font-size: 14px;
  858. margin-top: 5px;
  859. }
  860. .settings-container {
  861. flex: 1;
  862. overflow-y: auto;
  863. min-height: 0;
  864. border: 1px solid #e0e6ed;
  865. border-radius: 6px;
  866. }
  867. .settings-table {
  868. width: 100%;
  869. border-collapse: collapse;
  870. background: white;
  871. }
  872. .settings-table thead {
  873. position: sticky;
  874. top: 0;
  875. background: #f5f7fa;
  876. z-index: 10;
  877. }
  878. .settings-table th {
  879. padding: 12px;
  880. text-align: left;
  881. font-weight: 600;
  882. color: #333;
  883. border-bottom: 2px solid #e0e6ed;
  884. font-size: 14px;
  885. }
  886. .settings-table td {
  887. padding: 10px 12px;
  888. border-bottom: 1px solid #e5e7eb;
  889. }
  890. .settings-table tr:hover {
  891. background: #f9fafb;
  892. }
  893. .setting-value-input {
  894. width: 100%;
  895. padding: 8px 12px;
  896. border: 2px solid #e0e6ed;
  897. border-radius: 6px;
  898. font-size: 14px;
  899. font-family: 'Consolas', 'Monaco', monospace;
  900. transition: border-color 0.3s ease;
  901. }
  902. .setting-value-input:focus {
  903. outline: none;
  904. border-color: #667eea;
  905. box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  906. }
  907. .setting-value-input[readonly] {
  908. background: #f5f5f5;
  909. cursor: not-allowed;
  910. }
  911. .setting-value-input::placeholder {
  912. color: #9ca3af;
  913. font-size: 13px;
  914. }
  915. .setting-type-select {
  916. padding: 6px 10px;
  917. border: 2px solid #e0e6ed;
  918. border-radius: 6px;
  919. font-size: 13px;
  920. background: white;
  921. cursor: pointer;
  922. transition: border-color 0.3s ease;
  923. }
  924. .setting-type-select:focus {
  925. outline: none;
  926. border-color: #667eea;
  927. }
  928. .setting-type-select[disabled] {
  929. background: #f5f5f5;
  930. cursor: not-allowed;
  931. opacity: 0.7;
  932. }
  933. .remove-setting-btn {
  934. padding: 4px 8px;
  935. background: #ef4444;
  936. color: white;
  937. border: none;
  938. border-radius: 4px;
  939. cursor: pointer;
  940. font-size: 12px;
  941. }
  942. .remove-setting-btn:hover {
  943. background: #dc2626;
  944. }
  945. .add-setting-container {
  946. padding: 15px;
  947. text-align: center;
  948. background: #f9fafb;
  949. }
  950. .settings-preview {
  951. background: #e0f2fe;
  952. padding: 15px;
  953. border-radius: 6px;
  954. border: 1px solid #7dd3fc;
  955. flex-shrink: 0;
  956. }
  957. .preview-header {
  958. font-size: 14px;
  959. color: #075985;
  960. }
  961. #totalCombinations {
  962. font-weight: 600;
  963. color: #0c4a6e;
  964. }
  965. /* Custom setting row styles */
  966. .custom-setting-row td:first-child {
  967. position: relative;
  968. }
  969. .custom-setting-row input[type="text"]:first-child {
  970. width: 100%;
  971. }
  972. .setting-name-input {
  973. width: 100%;
  974. padding: 8px 12px;
  975. border: 2px solid #e0e6ed;
  976. border-radius: 6px;
  977. font-size: 14px;
  978. font-family: 'Consolas', 'Monaco', monospace;
  979. transition: border-color 0.3s ease;
  980. }
  981. .setting-name-input:focus {
  982. outline: none;
  983. border-color: #667eea;
  984. box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  985. }
  986. /* Decode Section */
  987. .decode-section {
  988. display: none;
  989. }
  990. /* Navigation Tabs */
  991. .page-navigation {
  992. display: flex;
  993. gap: 10px;
  994. margin: 20px 0;
  995. background: white;
  996. padding: 10px;
  997. border-radius: 10px;
  998. box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  999. }
  1000. .nav-tab {
  1001. flex: 1;
  1002. display: flex;
  1003. align-items: center;
  1004. justify-content: center;
  1005. gap: 8px;
  1006. padding: 12px 20px;
  1007. background: #f5f7fa;
  1008. border: 2px solid transparent;
  1009. border-radius: 8px;
  1010. cursor: pointer;
  1011. transition: all 0.3s ease;
  1012. font-size: 15px;
  1013. font-weight: 500;
  1014. color: #666;
  1015. position: relative;
  1016. }
  1017. .nav-tab:hover {
  1018. background: #e9ecef;
  1019. color: #333;
  1020. }
  1021. .nav-tab.active {
  1022. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  1023. color: white;
  1024. border-color: transparent;
  1025. }
  1026. .nav-icon {
  1027. font-size: 20px;
  1028. }
  1029. .nav-text {
  1030. font-size: 14px;
  1031. }
  1032. .nav-badge {
  1033. position: absolute;
  1034. top: 5px;
  1035. right: 5px;
  1036. background: #f44336;
  1037. color: white;
  1038. font-size: 11px;
  1039. padding: 2px 6px;
  1040. border-radius: 10px;
  1041. min-width: 20px;
  1042. text-align: center;
  1043. font-weight: 600;
  1044. }
  1045. /* Page Container */
  1046. .page-container {
  1047. position: relative;
  1048. min-height: 600px;
  1049. }
  1050. .page-content {
  1051. display: none;
  1052. }
  1053. .page-content.active {
  1054. display: block;
  1055. height: 100%;
  1056. }
  1057. /* Next Step Hint */
  1058. .next-step-hint {
  1059. margin-top: 30px;
  1060. padding-top: 20px;
  1061. border-top: 1px solid #e0e6ed;
  1062. text-align: center;
  1063. }
  1064. .next-step-hint .btn {
  1065. font-size: 16px;
  1066. padding: 10px 20px;
  1067. }
  1068. /* Decode Content */
  1069. .decode-content {
  1070. background: white;
  1071. border-radius: 10px;
  1072. padding: 30px;
  1073. box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  1074. max-width: 800px;
  1075. margin: 0 auto;
  1076. }
  1077. .decode-content h2 {
  1078. margin-bottom: 20px;
  1079. color: #333;
  1080. display: flex;
  1081. align-items: center;
  1082. flex-wrap: wrap;
  1083. gap: 10px;
  1084. }
  1085. .search-space {
  1086. font-size: 0.65em;
  1087. color: #667eea;
  1088. font-weight: normal;
  1089. background: #f0f3ff;
  1090. padding: 4px 12px;
  1091. border-radius: 20px;
  1092. border: 1px solid #d4d9ff;
  1093. }
  1094. .template-status {
  1095. background: #f5f7fa;
  1096. border-radius: 8px;
  1097. padding: 20px;
  1098. margin-bottom: 30px;
  1099. }
  1100. .decode-buttons {
  1101. display: flex;
  1102. justify-content: center;
  1103. gap: 20px;
  1104. flex-wrap: wrap;
  1105. margin: 20px 0;
  1106. }
  1107. .btn-large {
  1108. padding: 15px 40px;
  1109. font-size: 18px;
  1110. font-weight: 600;
  1111. box-shadow: 0 4px 6px rgba(102, 126, 234, 0.2);
  1112. text-transform: uppercase;
  1113. letter-spacing: 0.5px;
  1114. }
  1115. .btn-large:hover {
  1116. transform: translateY(-2px);
  1117. box-shadow: 0 6px 12px rgba(102, 126, 234, 0.3);
  1118. }
  1119. .random-iteration-container {
  1120. display: flex;
  1121. align-items: center;
  1122. gap: 10px;
  1123. }
  1124. .random-count-input {
  1125. width: 100px;
  1126. padding: 12px 16px;
  1127. font-size: 16px;
  1128. font-weight: 500;
  1129. border: 2px solid #e0e6ed;
  1130. border-radius: 8px;
  1131. text-align: center;
  1132. transition: all 0.3s ease;
  1133. }
  1134. .random-count-input:focus {
  1135. outline: none;
  1136. border-color: #667eea;
  1137. box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  1138. }
  1139. .random-count-input::placeholder {
  1140. color: #9ca3af;
  1141. }
  1142. .decode-info {
  1143. margin-top: 30px;
  1144. padding: 20px;
  1145. background: #e3f2fd;
  1146. border-radius: 8px;
  1147. }
  1148. .decode-info p {
  1149. margin: 10px 0;
  1150. color: #1565c0;
  1151. }
  1152. /* Results Content */
  1153. .results-content {
  1154. background: white;
  1155. border-radius: 10px;
  1156. padding: 30px;
  1157. box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  1158. }
  1159. .results-content h2 {
  1160. margin-bottom: 20px;
  1161. color: #333;
  1162. }
  1163. /* Navigation Buttons */
  1164. .navigation-buttons {
  1165. margin-top: 30px;
  1166. padding-top: 20px;
  1167. border-top: 1px solid #e0e6ed;
  1168. display: flex;
  1169. gap: 10px;
  1170. justify-content: center;
  1171. }
  1172. /* Responsive Design */
  1173. @media (max-width: 768px) {
  1174. .main-content {
  1175. grid-template-columns: 1fr;
  1176. }
  1177. .info-panel {
  1178. margin-top: 20px;
  1179. }
  1180. header h1 {
  1181. font-size: 1.8em;
  1182. }
  1183. .header-buttons {
  1184. position: static;
  1185. margin-top: 15px;
  1186. justify-content: center;
  1187. align-items: center;
  1188. }
  1189. .header-buttons-row {
  1190. justify-content: center;
  1191. }
  1192. .header-buttons .btn {
  1193. font-size: 13px;
  1194. padding: 6px 12px;
  1195. }
  1196. .editor-header {
  1197. flex-direction: column;
  1198. align-items: flex-start;
  1199. }
  1200. .editor-header h2 {
  1201. margin-bottom: 10px;
  1202. }
  1203. .auto-check-indicator {
  1204. font-size: 12px;
  1205. margin-bottom: 10px;
  1206. }
  1207. .editor-actions {
  1208. width: 100%;
  1209. justify-content: space-between;
  1210. }
  1211. /* Navigation responsive */
  1212. .page-navigation {
  1213. flex-wrap: wrap;
  1214. padding: 5px;
  1215. }
  1216. .nav-tab {
  1217. min-width: calc(33.33% - 10px);
  1218. padding: 10px 5px;
  1219. font-size: 13px;
  1220. }
  1221. .nav-icon {
  1222. font-size: 18px;
  1223. }
  1224. .nav-text {
  1225. font-size: 12px;
  1226. display: none;
  1227. }
  1228. /* Show only icons on very small screens */
  1229. @media (max-width: 480px) {
  1230. .nav-tab {
  1231. min-width: auto;
  1232. flex: 1;
  1233. padding: 12px 8px;
  1234. }
  1235. }
  1236. .decode-buttons {
  1237. flex-direction: column;
  1238. align-items: stretch;
  1239. }
  1240. .random-iteration-container {
  1241. width: 100%;
  1242. justify-content: space-between;
  1243. }
  1244. .btn-large {
  1245. width: 100%;
  1246. margin-bottom: 10px;
  1247. }
  1248. .decode-content h2 {
  1249. font-size: 1.3em;
  1250. justify-content: center;
  1251. text-align: center;
  1252. }
  1253. .search-space {
  1254. font-size: 0.55em;
  1255. padding: 3px 10px;
  1256. }
  1257. }
  1258. /* Responsive adjustments for template items */
  1259. @media (max-width: 350px) {
  1260. .template-item {
  1261. padding-left: 12px;
  1262. }
  1263. .template-item.configured::before,
  1264. .template-item.not-configured::before {
  1265. position: static;
  1266. display: inline-block;
  1267. margin-right: 8px;
  1268. }
  1269. .template-name {
  1270. justify-content: flex-start;
  1271. }
  1272. .template-buttons {
  1273. justify-content: flex-start;
  1274. padding-left: 0;
  1275. }
  1276. }
  1277. /* BRAIN Operators Modal Styles */
  1278. .brain-choose-section {
  1279. margin-top: 15px;
  1280. padding-top: 15px;
  1281. border-top: 1px solid #e0e6ed;
  1282. text-align: center;
  1283. }
  1284. .search-section {
  1285. margin-bottom: 15px;
  1286. }
  1287. .category-filter {
  1288. margin-bottom: 15px;
  1289. }
  1290. .category-filter label {
  1291. display: block;
  1292. margin-bottom: 5px;
  1293. color: #333;
  1294. font-weight: 500;
  1295. }
  1296. .operator-actions {
  1297. margin-bottom: 15px;
  1298. display: flex;
  1299. gap: 10px;
  1300. justify-content: flex-end;
  1301. }
  1302. .operators-list {
  1303. max-height: 300px;
  1304. overflow-y: auto;
  1305. border: 1px solid #e0e6ed;
  1306. border-radius: 6px;
  1307. padding: 10px;
  1308. margin-bottom: 15px;
  1309. background: #fafbfc;
  1310. position: relative;
  1311. z-index: 2;
  1312. contain: layout;
  1313. }
  1314. .operator-item {
  1315. display: flex;
  1316. align-items: center;
  1317. padding: 8px 10px;
  1318. margin-bottom: 5px;
  1319. background: white;
  1320. border-radius: 4px;
  1321. cursor: pointer;
  1322. transition: background-color 0.2s ease;
  1323. border: 1px solid #e0e6ed;
  1324. }
  1325. .operator-item:hover {
  1326. background: #f0f3f6;
  1327. }
  1328. .operator-item.selected {
  1329. background: #e3f2fd;
  1330. border-color: #2196f3;
  1331. }
  1332. .operator-checkbox {
  1333. margin-right: 10px;
  1334. }
  1335. .operator-info {
  1336. flex: 1;
  1337. }
  1338. .operator-name {
  1339. font-family: 'Consolas', 'Monaco', monospace;
  1340. font-weight: 600;
  1341. color: #2563eb;
  1342. }
  1343. .operator-category {
  1344. font-size: 12px;
  1345. color: #6b7280;
  1346. margin-left: 10px;
  1347. background: #f3f4f6;
  1348. padding: 2px 6px;
  1349. border-radius: 3px;
  1350. }
  1351. .selected-operators {
  1352. background: #f8f9fa;
  1353. border: 1px solid #e0e6ed;
  1354. border-radius: 6px;
  1355. padding: 10px;
  1356. margin-top: 15px;
  1357. position: relative;
  1358. z-index: 1;
  1359. }
  1360. .selected-items {
  1361. display: flex;
  1362. flex-wrap: wrap;
  1363. gap: 5px;
  1364. margin-top: 8px;
  1365. }
  1366. .selected-item {
  1367. background: #667eea;
  1368. color: white;
  1369. padding: 4px 8px;
  1370. border-radius: 4px;
  1371. font-size: 12px;
  1372. font-family: 'Consolas', 'Monaco', monospace;
  1373. display: flex;
  1374. align-items: center;
  1375. gap: 5px;
  1376. }
  1377. .selected-item .remove-btn {
  1378. background: rgba(255, 255, 255, 0.3);
  1379. border: none;
  1380. color: white;
  1381. border-radius: 50%;
  1382. width: 16px;
  1383. height: 16px;
  1384. cursor: pointer;
  1385. font-size: 10px;
  1386. display: flex;
  1387. align-items: center;
  1388. justify-content: center;
  1389. }
  1390. .selected-item .remove-btn:hover {
  1391. background: rgba(255, 255, 255, 0.5);
  1392. }
  1393. /* Data Fields Modal Styles */
  1394. #brainDataFieldsModal.modal {
  1395. padding: 0;
  1396. }
  1397. #brainDataFieldsModal .modal-content {
  1398. width: calc(100vw - 40px);
  1399. max-width: calc(100vw - 40px);
  1400. height: calc(100vh - 40px);
  1401. max-height: calc(100vh - 40px);
  1402. margin: 20px auto;
  1403. overflow: hidden;
  1404. display: flex;
  1405. flex-direction: column;
  1406. position: fixed;
  1407. top: 50%;
  1408. left: 50%;
  1409. transform: translate(-50%, -50%);
  1410. }
  1411. .data-fields-params {
  1412. background: #f8f9fa;
  1413. border-radius: 8px;
  1414. padding: 12px;
  1415. margin-bottom: 10px;
  1416. flex-shrink: 0;
  1417. }
  1418. .params-row {
  1419. display: flex;
  1420. gap: 15px;
  1421. flex-wrap: wrap;
  1422. align-items: end;
  1423. }
  1424. .param-group {
  1425. min-width: 120px;
  1426. flex: 1;
  1427. }
  1428. .param-group label {
  1429. display: block;
  1430. margin-bottom: 5px;
  1431. font-weight: 500;
  1432. color: #333;
  1433. }
  1434. .loading-message {
  1435. text-align: center;
  1436. padding: 40px;
  1437. color: #666;
  1438. font-size: 16px;
  1439. }
  1440. .data-fields-content {
  1441. display: flex;
  1442. flex-direction: column;
  1443. gap: 10px;
  1444. flex: 1;
  1445. min-height: 0;
  1446. }
  1447. .data-fields-controls {
  1448. display: flex;
  1449. gap: 10px;
  1450. align-items: center;
  1451. flex-wrap: wrap;
  1452. background: #f8f9fa;
  1453. padding: 10px;
  1454. border-radius: 8px;
  1455. flex-shrink: 0;
  1456. }
  1457. .filter-label {
  1458. font-weight: 600;
  1459. color: #333;
  1460. font-size: 14px;
  1461. display: flex;
  1462. align-items: center;
  1463. }
  1464. .filter-label span {
  1465. white-space: nowrap;
  1466. }
  1467. .filter-options {
  1468. display: flex;
  1469. gap: 20px;
  1470. flex: 1;
  1471. }
  1472. .filter-options label {
  1473. display: flex;
  1474. align-items: center;
  1475. gap: 5px;
  1476. cursor: pointer;
  1477. font-size: 14px;
  1478. color: #555;
  1479. }
  1480. .filter-options input[type="checkbox"] {
  1481. cursor: pointer;
  1482. }
  1483. .filter-actions {
  1484. display: flex;
  1485. gap: 10px;
  1486. }
  1487. .data-fields-stats {
  1488. font-size: 13px;
  1489. color: #666;
  1490. padding: 8px;
  1491. background: #f8f9fa;
  1492. border-radius: 5px;
  1493. text-align: center;
  1494. font-weight: 500;
  1495. flex-shrink: 0;
  1496. }
  1497. .data-fields-stats span {
  1498. margin: 0 10px;
  1499. }
  1500. .data-fields-table-container {
  1501. flex: 1;
  1502. overflow-y: auto;
  1503. overflow-x: auto;
  1504. border: 1px solid #e0e6ed;
  1505. border-radius: 8px;
  1506. background: white;
  1507. position: relative;
  1508. min-height: 0;
  1509. max-height: calc(100vh - 400px);
  1510. }
  1511. .data-fields-table {
  1512. width: 100%;
  1513. min-width: 900px;
  1514. border-collapse: collapse;
  1515. font-size: 14px;
  1516. table-layout: fixed;
  1517. }
  1518. .data-fields-table thead {
  1519. position: sticky;
  1520. top: 0;
  1521. background: #f8f9fa;
  1522. z-index: 100;
  1523. box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  1524. }
  1525. .data-fields-table thead tr {
  1526. background: #f8f9fa;
  1527. }
  1528. .data-fields-table th {
  1529. padding: 10px 8px;
  1530. text-align: left;
  1531. font-weight: 600;
  1532. color: #333;
  1533. border-bottom: 2px solid #e0e6ed;
  1534. background: #f8f9fa;
  1535. font-size: 13px;
  1536. }
  1537. .data-fields-table th:first-child {
  1538. text-align: center;
  1539. }
  1540. .data-fields-table .header-row th {
  1541. position: relative;
  1542. padding-right: 30px;
  1543. }
  1544. .sort-btn {
  1545. position: absolute;
  1546. right: 5px;
  1547. top: 50%;
  1548. transform: translateY(-50%);
  1549. background: none;
  1550. border: none;
  1551. cursor: pointer;
  1552. font-size: 14px;
  1553. color: #666;
  1554. padding: 2px 5px;
  1555. border-radius: 3px;
  1556. transition: all 0.2s ease;
  1557. }
  1558. .sort-btn:hover {
  1559. background: #e0e6ed;
  1560. color: #333;
  1561. }
  1562. .sort-btn.asc::after {
  1563. content: '↑';
  1564. }
  1565. .sort-btn.desc::after {
  1566. content: '↓';
  1567. }
  1568. .filter-row th {
  1569. padding: 6px 5px;
  1570. background: #f0f3f6;
  1571. border-bottom: 1px solid #e0e6ed;
  1572. }
  1573. .column-filter {
  1574. width: 100%;
  1575. padding: 4px 6px;
  1576. border: 1px solid #ddd;
  1577. border-radius: 4px;
  1578. font-size: 12px;
  1579. background: white;
  1580. }
  1581. .column-filter:focus {
  1582. outline: none;
  1583. border-color: #667eea;
  1584. box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
  1585. }
  1586. .column-filter.active {
  1587. background: #e3f2fd;
  1588. border-color: #2196f3;
  1589. }
  1590. .range-filter {
  1591. display: flex;
  1592. align-items: center;
  1593. gap: 5px;
  1594. }
  1595. .column-filter-min,
  1596. .column-filter-max {
  1597. width: 48%;
  1598. padding: 4px 4px;
  1599. border: 1px solid #ddd;
  1600. border-radius: 4px;
  1601. font-size: 11px;
  1602. background: white;
  1603. }
  1604. .column-filter-min:focus,
  1605. .column-filter-max:focus {
  1606. outline: none;
  1607. border-color: #667eea;
  1608. box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
  1609. }
  1610. .data-fields-table tbody tr {
  1611. transition: background-color 0.2s ease;
  1612. cursor: pointer;
  1613. }
  1614. .data-fields-table tbody tr:hover {
  1615. background: #f8f9fa;
  1616. }
  1617. .data-fields-table tbody tr.selected {
  1618. background: #e3f2fd;
  1619. }
  1620. .data-fields-table td {
  1621. padding: 8px;
  1622. border-bottom: 1px solid #f0f3f6;
  1623. vertical-align: top;
  1624. }
  1625. .data-fields-table td:first-child {
  1626. text-align: center;
  1627. }
  1628. .data-field-checkbox {
  1629. cursor: pointer;
  1630. transform: scale(1.1);
  1631. }
  1632. .data-field-id {
  1633. font-weight: 600;
  1634. color: #1976d2;
  1635. font-family: 'Consolas', 'Monaco', monospace;
  1636. font-size: 13px;
  1637. }
  1638. .data-field-description {
  1639. color: #333;
  1640. font-size: 13px;
  1641. line-height: 1.4;
  1642. }
  1643. .data-field-type {
  1644. font-family: 'Consolas', 'Monaco', monospace;
  1645. font-size: 12px;
  1646. color: #666;
  1647. background: #f0f3f6;
  1648. padding: 2px 6px;
  1649. border-radius: 3px;
  1650. }
  1651. .data-field-coverage {
  1652. font-weight: 500;
  1653. color: #059862;
  1654. }
  1655. .data-field-count {
  1656. color: #666;
  1657. font-size: 13px;
  1658. }
  1659. .selected-data-fields {
  1660. margin-top: 10px;
  1661. padding-top: 10px;
  1662. border-top: 1px solid #e0e6ed;
  1663. flex-shrink: 0;
  1664. max-height: 100px;
  1665. overflow-y: auto;
  1666. }
  1667. .selected-data-fields strong {
  1668. display: block;
  1669. margin-bottom: 10px;
  1670. color: #333;
  1671. }
  1672. /* Responsive adjustments for data fields modal */
  1673. @media (max-width: 768px) {
  1674. #brainDataFieldsModal .modal-content {
  1675. width: calc(100vw - 20px);
  1676. height: calc(100vh - 20px);
  1677. margin: 10px auto;
  1678. }
  1679. .params-row {
  1680. flex-direction: column;
  1681. gap: 10px;
  1682. }
  1683. .param-group {
  1684. min-width: auto;
  1685. width: 100%;
  1686. }
  1687. .data-fields-controls {
  1688. flex-direction: column;
  1689. gap: 10px;
  1690. }
  1691. .filter-options {
  1692. flex-direction: column;
  1693. gap: 10px;
  1694. width: 100%;
  1695. }
  1696. .filter-actions {
  1697. width: 100%;
  1698. justify-content: center;
  1699. }
  1700. .data-fields-table-container {
  1701. max-height: calc(100vh - 350px);
  1702. overflow-y: auto;
  1703. overflow-x: auto;
  1704. }
  1705. .data-fields-table {
  1706. font-size: 12px;
  1707. min-width: 600px;
  1708. }
  1709. .data-fields-table th,
  1710. .data-fields-table td {
  1711. padding: 8px 5px;
  1712. }
  1713. .data-field-id {
  1714. font-size: 12px;
  1715. }
  1716. .data-field-description {
  1717. font-size: 12px;
  1718. }
  1719. .data-field-type,
  1720. .data-field-coverage,
  1721. .data-field-count {
  1722. font-size: 11px;
  1723. }
  1724. }
  1725. /* Progress Bar Styles */
  1726. .test-progress {
  1727. margin: 20px 0;
  1728. }
  1729. .progress-bar {
  1730. width: 100%;
  1731. height: 20px;
  1732. background-color: #f0f0f0;
  1733. border-radius: 10px;
  1734. overflow: hidden;
  1735. margin-bottom: 10px;
  1736. }
  1737. .progress-bar-fill {
  1738. height: 100%;
  1739. background-color: #28a745;
  1740. transition: width 0.3s ease;
  1741. }
  1742. .test-results {
  1743. padding: 20px 0;
  1744. }
  1745. .test-result-item {
  1746. margin-bottom: 15px;
  1747. padding: 15px;
  1748. border: 1px solid #e0e0e0;
  1749. border-radius: 5px;
  1750. background-color: #f9f9f9;
  1751. }
  1752. .test-result-item.success {
  1753. border-color: #28a745;
  1754. background-color: #f0fff4;
  1755. }
  1756. .test-result-item.error {
  1757. border-color: #dc3545;
  1758. background-color: #fff5f5;
  1759. }
  1760. .test-result-item.running {
  1761. border-color: #ffc107;
  1762. background-color: #fffbf0;
  1763. }
  1764. .test-result-expression {
  1765. font-family: 'Courier New', monospace;
  1766. font-size: 14px;
  1767. margin-bottom: 10px;
  1768. word-break: break-all;
  1769. }
  1770. .test-result-status {
  1771. font-weight: bold;
  1772. margin-bottom: 5px;
  1773. }
  1774. .test-result-message {
  1775. color: #666;
  1776. font-size: 13px;
  1777. }
  1778. .test-summary {
  1779. margin-bottom: 20px;
  1780. padding: 15px;
  1781. background-color: #f0f0f0;
  1782. border-radius: 5px;
  1783. }
  1784. .test-summary-stats {
  1785. display: flex;
  1786. gap: 20px;
  1787. margin-top: 10px;
  1788. }
  1789. .test-summary-stat {
  1790. flex: 1;
  1791. text-align: center;
  1792. }
  1793. .test-summary-stat-value {
  1794. font-size: 24px;
  1795. font-weight: bold;
  1796. }
  1797. .test-summary-stat-label {
  1798. font-size: 14px;
  1799. color: #666;
  1800. }
  1801. /* Tooltip styles */
  1802. .tooltip {
  1803. position: relative;
  1804. display: inline-block;
  1805. }
  1806. /* Paper Analysis Styles */
  1807. .paper-analysis-container {
  1808. max-width: 1200px;
  1809. margin: 0 auto;
  1810. padding: 20px;
  1811. }
  1812. .api-key-section,
  1813. .upload-section,
  1814. .analysis-options,
  1815. .results-section {
  1816. background: #fff;
  1817. border-radius: 8px;
  1818. padding: 20px;
  1819. margin-bottom: 20px;
  1820. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  1821. }
  1822. /* File Upload Styles */
  1823. .file-upload-container {
  1824. border: 2px dashed #ccc;
  1825. border-radius: 8px;
  1826. padding: 20px;
  1827. text-align: center;
  1828. cursor: pointer;
  1829. transition: border-color 0.3s ease;
  1830. }
  1831. .file-upload-container:hover,
  1832. .file-upload-container.drag-over {
  1833. border-color: #007bff;
  1834. }
  1835. .file-input {
  1836. display: none;
  1837. }
  1838. .file-label {
  1839. display: block;
  1840. cursor: pointer;
  1841. }
  1842. .upload-icon {
  1843. font-size: 48px;
  1844. margin-bottom: 10px;
  1845. }
  1846. .upload-text {
  1847. font-size: 16px;
  1848. font-weight: 500;
  1849. }
  1850. .file-types {
  1851. display: block;
  1852. font-size: 12px;
  1853. color: #6c757d;
  1854. margin-top: 5px;
  1855. }
  1856. .file-info {
  1857. margin-top: 15px;
  1858. padding: 10px;
  1859. background: #f8f9fa;
  1860. border-radius: 4px;
  1861. }
  1862. /* Analysis Options */
  1863. .options-grid {
  1864. display: grid;
  1865. grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  1866. gap: 15px;
  1867. margin-bottom: 20px;
  1868. }
  1869. .option-checkbox {
  1870. display: flex;
  1871. align-items: center;
  1872. gap: 8px;
  1873. padding: 10px;
  1874. background: #f8f9fa;
  1875. border-radius: 4px;
  1876. cursor: pointer;
  1877. }
  1878. /* Results Section */
  1879. .results-tabs {
  1880. display: flex;
  1881. gap: 10px;
  1882. margin-bottom: 20px;
  1883. border-bottom: 1px solid #dee2e6;
  1884. padding-bottom: 10px;
  1885. }
  1886. .tab-btn {
  1887. padding: 8px 16px;
  1888. border: none;
  1889. background: none;
  1890. cursor: pointer;
  1891. border-radius: 4px 4px 0 0;
  1892. transition: all 0.3s ease;
  1893. }
  1894. .tab-btn.active {
  1895. background: #007bff;
  1896. color: white;
  1897. }
  1898. .tab-pane {
  1899. display: none;
  1900. }
  1901. .tab-pane.active {
  1902. display: block;
  1903. }
  1904. /* Keywords Display */
  1905. .keyword-item {
  1906. display: flex;
  1907. justify-content: space-between;
  1908. align-items: center;
  1909. padding: 10px;
  1910. background: #f8f9fa;
  1911. border-radius: 4px;
  1912. margin-bottom: 8px;
  1913. }
  1914. .keyword-score {
  1915. background: #007bff;
  1916. color: white;
  1917. padding: 4px 8px;
  1918. border-radius: 4px;
  1919. font-size: 0.9em;
  1920. }
  1921. /* Summary Display */
  1922. .summary-text {
  1923. line-height: 1.6;
  1924. padding: 15px;
  1925. background: #f8f9fa;
  1926. border-radius: 4px;
  1927. white-space: pre-wrap;
  1928. }
  1929. /* Related Works Display */
  1930. .related-work-item {
  1931. padding: 15px;
  1932. background: #f8f9fa;
  1933. border-radius: 4px;
  1934. margin-bottom: 15px;
  1935. }
  1936. .related-work-item h3 {
  1937. margin-bottom: 5px;
  1938. }
  1939. .formula-item {
  1940. background: #f8f9fa;
  1941. border: 1px solid #e9ecef;
  1942. border-radius: 8px;
  1943. padding: 20px;
  1944. margin-bottom: 15px;
  1945. transition: all 0.3s ease;
  1946. }
  1947. .formula-item:hover {
  1948. box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  1949. transform: translateY(-2px);
  1950. }
  1951. .formula-header {
  1952. display: flex;
  1953. justify-content: space-between;
  1954. align-items: center;
  1955. margin-bottom: 15px;
  1956. flex-wrap: wrap;
  1957. gap: 10px;
  1958. }
  1959. .formula-number {
  1960. font-weight: bold;
  1961. color: #6c757d;
  1962. font-size: 14px;
  1963. }
  1964. .formula-type {
  1965. padding: 4px 12px;
  1966. border-radius: 20px;
  1967. font-size: 12px;
  1968. font-weight: 600;
  1969. text-transform: uppercase;
  1970. letter-spacing: 0.5px;
  1971. }
  1972. .formula-type.definition {
  1973. background: #e3f2fd;
  1974. color: #1976d2;
  1975. }
  1976. .formula-type.theorem {
  1977. background: #f3e5f5;
  1978. color: #7b1fa2;
  1979. }
  1980. .formula-type.lemma {
  1981. background: #e8f5e9;
  1982. color: #388e3c;
  1983. }
  1984. .formula-type.equation {
  1985. background: #fff3e0;
  1986. color: #f57c00;
  1987. }
  1988. .formula-type.inequality {
  1989. background: #fce4ec;
  1990. color: #c2185b;
  1991. }
  1992. .formula-type.identity {
  1993. background: #e0f2f1;
  1994. color: #00796b;
  1995. }
  1996. .formula-type.other {
  1997. background: #f5f5f5;
  1998. color: #616161;
  1999. }
  2000. .formula-chinese {
  2001. font-size: 14px;
  2002. color: #495057;
  2003. background: #fff3cd;
  2004. padding: 10px;
  2005. border-radius: 5px;
  2006. border-left: 3px solid #ffc107;
  2007. line-height: 1.4;
  2008. }
  2009. .formula-chinese strong {
  2010. color: #856404;
  2011. }
  2012. .formula-expression {
  2013. background: white;
  2014. padding: 20px;
  2015. border-radius: 6px;
  2016. margin-bottom: 15px;
  2017. text-align: center;
  2018. font-size: 18px;
  2019. overflow-x: auto;
  2020. box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
  2021. }
  2022. .formula-description {
  2023. font-size: 15px;
  2024. color: #495057;
  2025. margin-bottom: 10px;
  2026. font-weight: 500;
  2027. }
  2028. .formula-variables {
  2029. font-size: 14px;
  2030. color: #6c757d;
  2031. margin-bottom: 10px;
  2032. padding: 10px;
  2033. background: #f8f9fa;
  2034. border-radius: 5px;
  2035. border-left: 3px solid #007bff;
  2036. }
  2037. .variables-list {
  2038. margin-top: 8px;
  2039. }
  2040. .variables-tabs {
  2041. display: flex;
  2042. gap: 5px;
  2043. margin-bottom: 10px;
  2044. }
  2045. .var-tab-btn {
  2046. padding: 5px 12px;
  2047. border: 1px solid #007bff;
  2048. background: white;
  2049. color: #007bff;
  2050. border-radius: 4px;
  2051. cursor: pointer;
  2052. font-size: 12px;
  2053. transition: all 0.3s ease;
  2054. }
  2055. .var-tab-btn:hover {
  2056. background: #e3f2fd;
  2057. }
  2058. .var-tab-btn.active {
  2059. background: #007bff;
  2060. color: white;
  2061. }
  2062. .variables-content {
  2063. position: relative;
  2064. }
  2065. .variables-list {
  2066. margin-top: 0;
  2067. }
  2068. .variables-list.chinese-vars,
  2069. .variables-list.english-vars {
  2070. display: none;
  2071. }
  2072. .variables-list.chinese-vars.active,
  2073. .variables-list.english-vars.active {
  2074. display: block;
  2075. }
  2076. .variable-item {
  2077. margin-bottom: 5px;
  2078. padding: 5px 0;
  2079. border-bottom: 1px solid #e9ecef;
  2080. display: flex;
  2081. align-items: center;
  2082. gap: 15px;
  2083. }
  2084. .variable-item:last-child {
  2085. border-bottom: none;
  2086. margin-bottom: 0;
  2087. }
  2088. .variable-symbol {
  2089. min-width: 80px;
  2090. font-size: 16px;
  2091. display: inline-block;
  2092. }
  2093. .variable-separator {
  2094. color: #6c757d;
  2095. margin: 0 5px;
  2096. font-weight: 500;
  2097. }
  2098. .variable-desc {
  2099. flex: 1;
  2100. color: #495057;
  2101. font-size: 14px;
  2102. }
  2103. .variable-item code {
  2104. background: #e3f2fd;
  2105. padding: 2px 6px;
  2106. border-radius: 3px;
  2107. font-family: 'Consolas', 'Monaco', monospace;
  2108. font-weight: bold;
  2109. color: #1976d2;
  2110. margin-right: 8px;
  2111. }
  2112. .formula-context {
  2113. font-size: 14px;
  2114. color: #6c757d;
  2115. margin-bottom: 10px;
  2116. }
  2117. .similarity {
  2118. color: #6c757d;
  2119. font-size: 0.9em;
  2120. margin-top: 5px;
  2121. }
  2122. /* Loading Overlay */
  2123. .loading-overlay {
  2124. position: fixed;
  2125. top: 0;
  2126. left: 0;
  2127. right: 0;
  2128. bottom: 0;
  2129. background: rgba(255, 255, 255, 0.9);
  2130. display: flex;
  2131. flex-direction: column;
  2132. justify-content: center;
  2133. align-items: center;
  2134. z-index: 1000;
  2135. }
  2136. .loading-spinner {
  2137. width: 50px;
  2138. height: 50px;
  2139. border: 4px solid #f3f3f3;
  2140. border-top: 4px solid #007bff;
  2141. border-radius: 50%;
  2142. animation: spin 1s linear infinite;
  2143. }
  2144. .loading-message {
  2145. margin-top: 15px;
  2146. font-size: 1.1em;
  2147. color: #333;
  2148. }
  2149. @keyframes spin {
  2150. 0% { transform: rotate(0deg); }
  2151. 100% { transform: rotate(360deg); }
  2152. }
  2153. /* Notifications */
  2154. .notification {
  2155. position: fixed;
  2156. top: 20px;
  2157. right: 20px;
  2158. padding: 15px 25px;
  2159. border-radius: 4px;
  2160. color: white;
  2161. z-index: 1000;
  2162. animation: slideIn 0.3s ease-out;
  2163. }
  2164. .notification.success {
  2165. background-color: #28a745;
  2166. }
  2167. .notification.error {
  2168. background-color: #dc3545;
  2169. }
  2170. .notification.warning {
  2171. background-color: #ffc107;
  2172. color: #212529;
  2173. }
  2174. @keyframes slideIn {
  2175. from { transform: translateY(100px); opacity: 0; }
  2176. to { transform: translateY(0); opacity: 1; }
  2177. }
  2178. @keyframes fadeOut {
  2179. from { opacity: 1; }
  2180. to { opacity: 0; }
  2181. }
  2182. /* Export Section */
  2183. .export-section {
  2184. margin-top: 20px;
  2185. padding-top: 20px;
  2186. border-top: 1px solid #dee2e6;
  2187. text-align: right;
  2188. }
  2189. /* Unified Templates Section */
  2190. .templates-section {
  2191. background: white;
  2192. border-radius: 10px;
  2193. padding: 20px;
  2194. margin-bottom: 20px;
  2195. box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  2196. }
  2197. .templates-header {
  2198. display: flex;
  2199. justify-content: space-between;
  2200. align-items: center;
  2201. margin-bottom: 15px;
  2202. flex-wrap: wrap;
  2203. gap: 10px;
  2204. }
  2205. .templates-header h3 {
  2206. color: #333;
  2207. font-size: 1.2em;
  2208. margin: 0;
  2209. }
  2210. .template-actions {
  2211. display: flex;
  2212. gap: 10px;
  2213. align-items: center;
  2214. }
  2215. #toggleTemplateView {
  2216. background-color: #4a5568;
  2217. border-color: #4a5568;
  2218. }
  2219. #toggleTemplateView:hover {
  2220. background-color: #2d3748;
  2221. border-color: #2d3748;
  2222. }
  2223. /* Template buttons container */
  2224. .all-template-buttons {
  2225. display: flex;
  2226. flex-wrap: wrap;
  2227. gap: 10px;
  2228. margin-top: 15px;
  2229. }
  2230. #exampleTemplateButtons,
  2231. #customTemplateButtons {
  2232. display: flex;
  2233. flex-wrap: wrap;
  2234. gap: 10px;
  2235. width: 100%;
  2236. }
  2237. /* Base template button styles */
  2238. .btn-template {
  2239. padding: 8px 16px;
  2240. border-radius: 6px;
  2241. font-size: 14px;
  2242. font-weight: 500;
  2243. cursor: pointer;
  2244. transition: all 0.3s ease;
  2245. text-decoration: none;
  2246. display: inline-block;
  2247. border: 1px solid;
  2248. position: relative;
  2249. }
  2250. /* Example template styles - purple theme */
  2251. .btn-template-example {
  2252. background: #f3f0ff;
  2253. color: #6b46c1;
  2254. border-color: #d8b4fe;
  2255. }
  2256. .btn-template-example:hover {
  2257. background: #7c3aed;
  2258. color: white;
  2259. border-color: #7c3aed;
  2260. transform: translateY(-1px);
  2261. box-shadow: 0 2px 5px rgba(124, 58, 237, 0.3);
  2262. }
  2263. /* Custom template styles - blue theme */
  2264. .btn-template-custom {
  2265. background: #eff6ff;
  2266. color: #1e40af;
  2267. border-color: #bfdbfe;
  2268. padding-right: 35px;
  2269. }
  2270. .btn-template-custom:hover {
  2271. background: #2563eb;
  2272. color: white;
  2273. border-color: #2563eb;
  2274. transform: translateY(-1px);
  2275. box-shadow: 0 2px 5px rgba(37, 99, 235, 0.3);
  2276. }
  2277. /* Delete button for custom templates */
  2278. .btn-template-custom .delete-btn {
  2279. position: absolute;
  2280. right: 8px;
  2281. top: 50%;
  2282. transform: translateY(-50%);
  2283. background: none;
  2284. border: none;
  2285. color: #dc3545;
  2286. cursor: pointer;
  2287. font-size: 16px;
  2288. padding: 2px 6px;
  2289. opacity: 0;
  2290. transition: opacity 0.2s ease;
  2291. }
  2292. .btn-template-custom:hover .delete-btn {
  2293. opacity: 1;
  2294. }
  2295. .btn-template-custom .delete-btn:hover {
  2296. color: #c82333;
  2297. background: rgba(220, 53, 69, 0.1);
  2298. border-radius: 3px;
  2299. }
  2300. .custom-template-info {
  2301. text-align: center;
  2302. color: #6c757d;
  2303. font-style: italic;
  2304. margin-top: 10px;
  2305. }
  2306. /* Operator Description Enhancements */
  2307. .description-indicator {
  2308. font-size: 12px;
  2309. color: #2196F3;
  2310. margin-left: 5px;
  2311. opacity: 0.7;
  2312. transition: opacity 0.2s ease;
  2313. }
  2314. .operator-item:hover .description-indicator {
  2315. opacity: 1;
  2316. }
  2317. .operator-item[title] {
  2318. position: relative;
  2319. }
  2320. /* Custom tooltip implementation - will be positioned dynamically */
  2321. .custom-tooltip {
  2322. position: fixed;
  2323. padding: 8px 12px;
  2324. background: #2c3e50;
  2325. color: white;
  2326. border-radius: 6px;
  2327. font-size: 13px;
  2328. line-height: 1.4;
  2329. white-space: pre-wrap;
  2330. max-width: 300px;
  2331. z-index: 10000;
  2332. box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  2333. pointer-events: none;
  2334. opacity: 0;
  2335. transition: opacity 0.2s ease;
  2336. word-wrap: break-word;
  2337. }
  2338. @keyframes tooltipFadeIn {
  2339. from {
  2340. opacity: 0;
  2341. transform: translateX(-5px);
  2342. }
  2343. to {
  2344. opacity: 1;
  2345. transform: translateX(0);
  2346. }
  2347. }
  2348. /* Ensure tooltips don't get cut off in modal while maintaining scroll */
  2349. .operators-list {
  2350. overflow-y: auto;
  2351. overflow-x: visible;
  2352. }
  2353. .operator-item {
  2354. overflow: visible;
  2355. }
  2356. /* Brain Operators Modal specific layout fixes */
  2357. #brainOperatorsModal .modal-body {
  2358. display: flex;
  2359. flex-direction: column;
  2360. gap: 15px;
  2361. position: relative;
  2362. min-height: 400px;
  2363. }
  2364. #brainOperatorsModal .search-section,
  2365. #brainOperatorsModal .category-filter,
  2366. #brainOperatorsModal .operator-actions {
  2367. flex-shrink: 0;
  2368. order: 1;
  2369. }
  2370. #brainOperatorsModal .operators-list {
  2371. flex: 1;
  2372. order: 2;
  2373. min-height: 250px;
  2374. }
  2375. #brainOperatorsModal .selected-operators {
  2376. flex-shrink: 0;
  2377. order: 3;
  2378. margin-top: auto;
  2379. position: relative;
  2380. z-index: 1;
  2381. }
  2382. /* Simulator Options Modal */
  2383. .simulator-options {
  2384. display: grid;
  2385. grid-template-columns: 1fr 1fr;
  2386. gap: 20px;
  2387. margin: 20px 0;
  2388. }
  2389. .simulator-option {
  2390. background: #f8f9fa;
  2391. border: 2px solid #e9ecef;
  2392. border-radius: 8px;
  2393. padding: 20px;
  2394. cursor: pointer;
  2395. transition: all 0.3s ease;
  2396. position: relative;
  2397. overflow: hidden;
  2398. }
  2399. .simulator-option:hover {
  2400. border-color: #007bff;
  2401. background: #f0f8ff;
  2402. transform: translateY(-2px);
  2403. box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
  2404. }
  2405. .simulator-option::before {
  2406. content: '';
  2407. position: absolute;
  2408. top: 0;
  2409. left: 0;
  2410. width: 100%;
  2411. height: 4px;
  2412. background: linear-gradient(90deg, #007bff, #6610f2);
  2413. opacity: 0;
  2414. transition: opacity 0.3s ease;
  2415. }
  2416. .simulator-option:hover::before {
  2417. opacity: 1;
  2418. }
  2419. .option-icon {
  2420. font-size: 2.5em;
  2421. text-align: center;
  2422. margin-bottom: 15px;
  2423. }
  2424. .option-content h4 {
  2425. color: #333;
  2426. margin-bottom: 10px;
  2427. font-size: 1.2em;
  2428. font-weight: 600;
  2429. }
  2430. .option-content p {
  2431. color: #666;
  2432. margin-bottom: 15px;
  2433. line-height: 1.5;
  2434. }
  2435. .option-content ul {
  2436. list-style: none;
  2437. padding: 0;
  2438. }
  2439. .option-content li {
  2440. color: #555;
  2441. margin-bottom: 5px;
  2442. position: relative;
  2443. padding-left: 20px;
  2444. font-size: 0.9em;
  2445. }
  2446. .option-content li::before {
  2447. content: '✓';
  2448. position: absolute;
  2449. left: 0;
  2450. color: #28a745;
  2451. font-weight: bold;
  2452. }
  2453. /* Responsive design for simulator options */
  2454. @media (max-width: 768px) {
  2455. .simulator-options {
  2456. grid-template-columns: 1fr;
  2457. gap: 15px;
  2458. }
  2459. .simulator-option {
  2460. padding: 15px;
  2461. }
  2462. .option-icon {
  2463. font-size: 2em;
  2464. margin-bottom: 10px;
  2465. }
  2466. .option-content h4 {
  2467. font-size: 1.1em;
  2468. }
  2469. }