main.css 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938
  1. .inter-gc {
  2. font-family: "Inter", sans-serif;
  3. font-optical-sizing: auto;
  4. font-weight: 400;
  5. font-style: normal;
  6. }
  7. :root {
  8. --primary: #5468FF;
  9. --primary-light: #8590FF;
  10. --primary-dark: #3A4DB2;
  11. --student: #E9EFFF;
  12. --teacher: #EBFAEF;
  13. --teacher-accent: #4CAF50;
  14. --text-dark: #1A2138;
  15. --text-light: #5F6A8A;
  16. --background: #F9FAFC;
  17. --panel: #FFFFFF;
  18. --border: #E1E5EE;
  19. --shadow: 0 4px 12px rgba(84, 104, 255, 0.10);
  20. --hover-shadow: 0 6px 16px rgba(84, 104, 255, 0.18);
  21. --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  22. }
  23. /*
  24. * {
  25. margin: 0;
  26. padding: 0;
  27. box-sizing: border-box;
  28. font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  29. }
  30. body {
  31. background-color: var(--background);
  32. color: var(--text-dark);
  33. width: 100%;
  34. height: 100vh;
  35. display: flex;
  36. align-items: center;
  37. justify-content: center;
  38. overflow: hidden;
  39. }
  40. */
  41. .chat-container {
  42. /* width: 700px; */
  43. height: 900px;
  44. display: flex;
  45. flex-direction: column;
  46. border-radius: 16px;
  47. background-color: var(--panel);
  48. box-shadow: var(--shadow);
  49. overflow: hidden;
  50. position: relative;
  51. }
  52. .header {
  53. padding: 16px 24px;
  54. background-color: var(--panel);
  55. border-bottom: 1px solid var(--border);
  56. display: flex;
  57. align-items: center;
  58. justify-content: space-between;
  59. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  60. position: relative;
  61. z-index: 10;
  62. }
  63. .header-left {
  64. display: flex;
  65. align-items: center;
  66. gap: 12px;
  67. }
  68. .course-info {
  69. display: flex;
  70. flex-direction: column;
  71. }
  72. .course-title {
  73. font-weight: 600;
  74. font-size: 16px;
  75. color: var(--text-dark);
  76. }
  77. .course-participants {
  78. font-size: 12px;
  79. color: var(--text-light);
  80. }
  81. .header-actions {
  82. display: flex;
  83. gap: 12px;
  84. }
  85. .icon-button {
  86. width: 36px;
  87. height: 36px;
  88. border-radius: 50%;
  89. border: none;
  90. display: flex;
  91. align-items: center;
  92. justify-content: center;
  93. background-color: var(--background);
  94. color: var(--text-light);
  95. cursor: pointer;
  96. transition: var(--transition);
  97. }
  98. .icon-button:hover {
  99. background-color: var(--primary-light);
  100. color: white;
  101. transform: translateY(-2px);
  102. box-shadow: var(--hover-shadow);
  103. }
  104. .icon-button svg {
  105. width: 18px;
  106. height: 18px;
  107. }
  108. .tabs {
  109. display: flex;
  110. padding: 0 20px;
  111. background-color: var(--panel);
  112. border-bottom: 1px solid var(--border);
  113. position: relative;
  114. z-index: 5;
  115. }
  116. .tab {
  117. padding: 12px 16px;
  118. font-size: 14px;
  119. font-weight: 500;
  120. color: var(--text-light);
  121. cursor: pointer;
  122. border-bottom: 2px solid transparent;
  123. transition: var(--transition);
  124. position: relative;
  125. }
  126. .tab.active {
  127. color: var(--primary);
  128. border-bottom: 2px solid var(--primary);
  129. }
  130. .tab:hover:not(.active) {
  131. color: var(--text-dark);
  132. }
  133. .badge {
  134. position: absolute;
  135. top: 8px;
  136. right: 8px;
  137. background-color: var(--primary);
  138. color: white;
  139. font-size: 10px;
  140. font-weight: 500;
  141. padding: 1px 6px;
  142. border-radius: 10px;
  143. }
  144. .chat-content {
  145. flex: 1;
  146. overflow-y: auto;
  147. padding: 24px;
  148. display: flex;
  149. flex-direction: column;
  150. gap: 16px;
  151. scroll-behavior: smooth;
  152. }
  153. .chat-content::-webkit-scrollbar {
  154. width: 6px;
  155. }
  156. .chat-content::-webkit-scrollbar-track {
  157. background: transparent;
  158. }
  159. .chat-content::-webkit-scrollbar-thumb {
  160. background-color: var(--border);
  161. border-radius: 6px;
  162. }
  163. .message {
  164. display: flex;
  165. flex-direction: column;
  166. max-width: 80%;
  167. animation: fadeIn 0.3s ease-out;
  168. }
  169. @keyframes fadeIn {
  170. from {
  171. opacity: 0;
  172. transform: translateY(10px);
  173. }
  174. to {
  175. opacity: 1;
  176. transform: translateY(0);
  177. }
  178. }
  179. .message.student {
  180. align-self: flex-end;
  181. }
  182. .message.teacher {
  183. align-self: flex-start;
  184. }
  185. .message-header {
  186. display: flex;
  187. align-items: center;
  188. gap: 8px;
  189. margin-bottom: 4px;
  190. }
  191. .avatar {
  192. width: 28px;
  193. height: 28px;
  194. border-radius: 50%;
  195. display: flex;
  196. align-items: center;
  197. justify-content: center;
  198. font-weight: 600;
  199. font-size: 12px;
  200. color: white;
  201. flex-shrink: 0;
  202. }
  203. .student .avatar {
  204. background-color: var(--primary);
  205. }
  206. .teacher .avatar {
  207. background-color: var(--teacher-accent);
  208. }
  209. .sender-name {
  210. font-size: 13px;
  211. font-weight: 600;
  212. }
  213. .student .sender-name {
  214. color: var(--primary-dark);
  215. }
  216. .teacher .sender-name {
  217. color: var(--teacher-accent);
  218. }
  219. .timestamp {
  220. font-size: 11px;
  221. color: var(--text-light);
  222. margin-left: auto;
  223. }
  224. .message-bubble {
  225. padding: 12px 16px;
  226. border-radius: 16px;
  227. font-size: 14px;
  228. line-height: 1.5;
  229. position: relative;
  230. transition: var(--transition);
  231. }
  232. .student .message-bubble {
  233. background-color: var(--student);
  234. border-top-right-radius: 4px;
  235. }
  236. .teacher .message-bubble {
  237. background-color: var(--teacher);
  238. border-top-left-radius: 4px;
  239. }
  240. .message-bubble:hover {
  241. transform: translateY(-2px);
  242. box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  243. }
  244. .message-actions {
  245. display: flex;
  246. gap: 8px;
  247. margin-top: 6px;
  248. justify-content: flex-end;
  249. opacity: 0;
  250. transition: var(--transition);
  251. }
  252. .message:hover .message-actions {
  253. opacity: 1;
  254. }
  255. .action-button {
  256. background: none;
  257. border: none;
  258. font-size: 12px;
  259. color: var(--text-light);
  260. cursor: pointer;
  261. padding: 2px 6px;
  262. border-radius: 4px;
  263. transition: var(--transition);
  264. }
  265. .action-button:hover {
  266. background-color: rgba(84, 104, 255, 0.1);
  267. color: var(--primary);
  268. }
  269. .embed-content {
  270. margin-top: 10px;
  271. border-radius: 8px;
  272. overflow: hidden;
  273. border: 1px solid var(--border);
  274. background-color: white;
  275. transition: var(--transition);
  276. }
  277. .embed-content:hover {
  278. box-shadow: var(--shadow);
  279. transform: translateY(-2px);
  280. }
  281. .embed-header {
  282. padding: 10px 12px;
  283. background-color: rgba(84, 104, 255, 0.05);
  284. display: flex;
  285. align-items: center;
  286. gap: 8px;
  287. border-bottom: 1px solid var(--border);
  288. }
  289. .embed-icon {
  290. width: 20px;
  291. height: 20px;
  292. display: flex;
  293. align-items: center;
  294. justify-content: center;
  295. color: var(--primary);
  296. }
  297. .embed-title {
  298. font-size: 12px;
  299. font-weight: 500;
  300. flex: 1;
  301. }
  302. .embed-body {
  303. padding: 12px;
  304. }
  305. .embed-image {
  306. width: 100%;
  307. border-radius: 6px;
  308. height: auto;
  309. object-fit: cover;
  310. }
  311. .embed-text {
  312. font-size: 13px;
  313. color: var(--text-light);
  314. margin-top: 8px;
  315. line-height: 1.4;
  316. }
  317. .embed-footer {
  318. padding: 8px 12px;
  319. border-top: 1px solid var(--border);
  320. display: flex;
  321. align-items: center;
  322. justify-content: space-between;
  323. }
  324. .embed-button {
  325. background-color: var(--primary-light);
  326. color: white;
  327. font-size: 12px;
  328. font-weight: 500;
  329. padding: 6px 12px;
  330. border-radius: 6px;
  331. border: none;
  332. cursor: pointer;
  333. transition: var(--transition);
  334. }
  335. .embed-button:hover {
  336. background-color: var(--primary);
  337. transform: translateY(-1px);
  338. box-shadow: 0 3px 8px rgba(84, 104, 255, 0.2);
  339. }
  340. .date-divider {
  341. display: flex;
  342. align-items: center;
  343. gap: 12px;
  344. margin: 16px 0;
  345. opacity: 0.7;
  346. }
  347. .divider-line {
  348. flex: 1;
  349. height: 1px;
  350. background-color: var(--border);
  351. }
  352. .divider-text {
  353. font-size: 12px;
  354. color: var(--text-light);
  355. white-space: nowrap;
  356. }
  357. .typing-indicator {
  358. display: flex;
  359. align-items: center;
  360. gap: 4px;
  361. font-size: 12px;
  362. color: var(--text-light);
  363. padding: 8px 12px;
  364. margin-bottom: 8px;
  365. }
  366. .typing-dot {
  367. width: 5px;
  368. height: 5px;
  369. background-color: var(--text-light);
  370. border-radius: 50%;
  371. animation: typingAnimation 1.4s infinite ease-in-out;
  372. }
  373. .typing-dot:nth-child(1) {
  374. animation-delay: 0s;
  375. }
  376. .typing-dot:nth-child(2) {
  377. animation-delay: 0.2s;
  378. }
  379. .typing-dot:nth-child(3) {
  380. animation-delay: 0.4s;
  381. }
  382. @keyframes typingAnimation {
  383. 0%,
  384. 100% {
  385. transform: translateY(0);
  386. opacity: 0.5;
  387. }
  388. 50% {
  389. transform: translateY(-4px);
  390. opacity: 1;
  391. }
  392. }
  393. .input-area {
  394. padding: 16px 24px 24px;
  395. background-color: var(--panel);
  396. border-top: 1px solid var(--border);
  397. z-index: 10;
  398. }
  399. .toolbar {
  400. display: flex;
  401. align-items: center;
  402. gap: 8px;
  403. margin-bottom: 12px;
  404. }
  405. .toolbar form {
  406. width: 100%;
  407. }
  408. .tool-button {
  409. background: none;
  410. border: none;
  411. cursor: pointer;
  412. width: 32px;
  413. height: 32px;
  414. border-radius: 4px;
  415. display: flex;
  416. align-items: center;
  417. justify-content: center;
  418. color: var(--text-light);
  419. transition: var(--transition);
  420. }
  421. .tool-button:hover {
  422. background-color: rgba(84, 104, 255, 0.1);
  423. color: var(--primary);
  424. }
  425. .tool-button svg {
  426. width: 18px;
  427. height: 18px;
  428. }
  429. .input-container {
  430. display: flex;
  431. gap: 12px;
  432. align-items: center;
  433. }
  434. .message-input {
  435. flex: 1;
  436. padding: 14px 16px;
  437. border-radius: 10px;
  438. border: 1px solid var(--border);
  439. background-color: var(--background);
  440. font-size: 14px;
  441. resize: none;
  442. transition: var(--transition);
  443. height: 50px;
  444. width: 80%;
  445. outline: none;
  446. }
  447. .message-input:focus {
  448. border-color: var(--primary-light);
  449. box-shadow: 0 0 0 2px rgba(84, 104, 255, 0.1);
  450. }
  451. .send-button {
  452. background-color: var(--primary);
  453. color: white;
  454. border: none;
  455. width: 50px;
  456. height: 50px;
  457. border-radius: 12px;
  458. cursor: pointer;
  459. display: flex;
  460. align-items: center;
  461. justify-content: center;
  462. transition: var(--transition);
  463. }
  464. .send-button:hover {
  465. background-color: var(--primary-dark);
  466. transform: translateY(-2px);
  467. box-shadow: 0 4px 12px rgba(84, 104, 255, 0.2);
  468. }
  469. .poll-container {
  470. padding: 12px;
  471. background-color: rgba(84, 104, 255, 0.05);
  472. border-radius: 8px;
  473. margin-top: 8px;
  474. }
  475. .poll-question {
  476. font-weight: 500;
  477. margin-bottom: 10px;
  478. font-size: 13px;
  479. }
  480. .poll-options {
  481. display: flex;
  482. flex-direction: column;
  483. gap: 8px;
  484. }
  485. .poll-option {
  486. background-color: white;
  487. border: 1px solid var(--border);
  488. padding: 8px 12px;
  489. border-radius: 6px;
  490. font-size: 13px;
  491. position: relative;
  492. cursor: pointer;
  493. transition: var(--transition);
  494. display: flex;
  495. justify-content: space-between;
  496. }
  497. .poll-option:hover {
  498. border-color: var(--primary-light);
  499. background-color: rgba(84, 104, 255, 0.03);
  500. }
  501. .poll-option.selected {
  502. border-color: var(--primary);
  503. background-color: rgba(84, 104, 255, 0.1);
  504. }
  505. .poll-option.selected::before {
  506. content: '';
  507. position: absolute;
  508. left: 0;
  509. top: 0;
  510. height: 100%;
  511. width: 3px;
  512. background-color: var(--primary);
  513. border-top-left-radius: 6px;
  514. border-bottom-left-radius: 6px;
  515. }
  516. .poll-percent {
  517. font-size: 12px;
  518. font-weight: 500;
  519. color: var(--primary);
  520. }
  521. .poll-votes {
  522. margin-top: 10px;
  523. font-size: 12px;
  524. color: var(--text-light);
  525. text-align: right;
  526. }
  527. .resource-link {
  528. display: flex;
  529. align-items: center;
  530. gap: 8px;
  531. padding: 10px;
  532. background-color: var(--background);
  533. border-radius: 6px;
  534. cursor: pointer;
  535. transition: var(--transition);
  536. text-decoration: none;
  537. color: var(--text-dark);
  538. border: 1px solid var(--border);
  539. }
  540. .resource-link:hover {
  541. background-color: rgba(84, 104, 255, 0.05);
  542. border-color: var(--primary-light);
  543. transform: translateY(-2px);
  544. box-shadow: var(--shadow);
  545. }
  546. .resource-icon {
  547. width: 36px;
  548. height: 36px;
  549. background-color: rgba(84, 104, 255, 0.1);
  550. border-radius: 6px;
  551. display: flex;
  552. align-items: center;
  553. justify-content: center;
  554. color: var(--primary);
  555. }
  556. .resource-info {
  557. flex: 1;
  558. }
  559. .resource-title {
  560. font-size: 13px;
  561. font-weight: 500;
  562. }
  563. .resource-desc {
  564. font-size: 11px;
  565. color: var(--text-light);
  566. }
  567. /* Responsive Styles */
  568. @media (max-width: 700px) {
  569. .chat-container {
  570. width: 100%;
  571. height: 100%;
  572. border-radius: 0;
  573. }
  574. .message {
  575. max-width: 90%;
  576. }
  577. .header-actions {
  578. gap: 8px;
  579. }
  580. .icon-button {
  581. width: 32px;
  582. height: 32px;
  583. }
  584. .tabs {
  585. padding: 0 10px;
  586. }
  587. .tab {
  588. padding: 12px 10px;
  589. font-size: 13px;
  590. }
  591. }
  592. /* Animation for new messages */
  593. @keyframes popIn {
  594. 0% {
  595. transform: scale(0.8);
  596. opacity: 0;
  597. }
  598. 50% {
  599. transform: scale(1.05);
  600. }
  601. 100% {
  602. transform: scale(1);
  603. opacity: 1;
  604. }
  605. }
  606. .pop-in {
  607. animation: popIn 0.3s forwards;
  608. }
  609. /* Resource expansion animation */
  610. .resource-expanded {
  611. max-height: 0;
  612. overflow: hidden;
  613. transition: max-height 0.3s ease;
  614. }
  615. .resource-expanded.active {
  616. max-height: 200px;
  617. }
  618. /* Tooltip Styles */
  619. .tooltip {
  620. position: relative;
  621. }
  622. .tooltip::after {
  623. content: attr(data-tooltip);
  624. position: absolute;
  625. bottom: 130%;
  626. left: 50%;
  627. transform: translateX(-50%);
  628. padding: 5px 10px;
  629. border-radius: 4px;
  630. background-color: rgba(26, 33, 56, 0.9);
  631. color: white;
  632. font-size: 11px;
  633. white-space: nowrap;
  634. opacity: 0;
  635. visibility: hidden;
  636. transition: all 0.2s ease;
  637. pointer-events: none;
  638. z-index: 100;
  639. }
  640. .tooltip::before {
  641. content: '';
  642. position: absolute;
  643. bottom: 120%;
  644. left: 50%;
  645. transform: translateX(-50%);
  646. border-width: 4px;
  647. border-style: solid;
  648. border-color: rgba(26, 33, 56, 0.9) transparent transparent transparent;
  649. opacity: 0;
  650. visibility: hidden;
  651. transition: all 0.2s ease;
  652. pointer-events: none;
  653. z-index: 100;
  654. }
  655. .tooltip:hover::after,
  656. .tooltip:hover::before {
  657. opacity: 1;
  658. visibility: visible;
  659. }
  660. /* Reaction Styles */
  661. .reactions {
  662. display: flex;
  663. flex-wrap: wrap;
  664. gap: 4px;
  665. margin-top: 8px;
  666. }
  667. .reaction {
  668. font-size: 12px;
  669. padding: 2px 6px 2px 4px;
  670. background-color: rgba(84, 104, 255, 0.06);
  671. border-radius: 12px;
  672. display: flex;
  673. align-items: center;
  674. gap: 3px;
  675. cursor: pointer;
  676. transition: var(--transition);
  677. }
  678. .reaction:hover {
  679. background-color: rgba(84, 104, 255, 0.15);
  680. }
  681. .reaction.active {
  682. background-color: rgba(84, 104, 255, 0.2);
  683. font-weight: 500;
  684. }
  685. @media (min-width: 1400px) {
  686. .container,
  687. .container-lg,
  688. .container-md,
  689. .container-sm,
  690. .container-xl,
  691. .container-xxl {
  692. max-width: 1750px;
  693. }
  694. }
  695. .table th {
  696. font-size: smaller;
  697. background-color: #C3CCD4;
  698. }
  699. .btn-primary {
  700. --cui-btn-bg: #72889B;
  701. --cui-btn-border-color: #72889B;
  702. --cui-btn-hover-bg: #B1BCC7;
  703. --cui-btn-hover-border-color: #B1BCC7;
  704. }
  705. a {
  706. color: #52616f;
  707. }
  708. .footer {
  709. --cui-footer-bg: #B1BCC7;
  710. }
  711. .table thead
  712. {
  713. position: sticky;
  714. top: 40px;
  715. background: white;
  716. }
  717. .chat-input {
  718. padding: 15px 20px;
  719. border-top: 1px solid var(--border);
  720. display: flex;
  721. align-items: center;
  722. background-color: white;
  723. position: relative;
  724. z-index: 10;
  725. }
  726. .input-container {
  727. flex: 1;
  728. display: flex;
  729. align-items: center;
  730. background-color: var(--secondary);
  731. border-radius: 20px;
  732. padding: 0 15px;
  733. position: relative;
  734. }
  735. .input-container input {
  736. flex: 1;
  737. border: none;
  738. outline: none;
  739. height: 40px;
  740. background-color: transparent;
  741. padding: 0 10px;
  742. font-size: 15px;
  743. }
  744. .input-actions {
  745. display: flex;
  746. gap: 10px;
  747. }
  748. .input-btn {
  749. background: none;
  750. border: none;
  751. color: #888;
  752. cursor: pointer;
  753. transition: var(--transition);
  754. font-size: 18px;
  755. }
  756. .input-btn:hover {
  757. color: var(--primary);
  758. }
  759. .send-btn {
  760. background-color: var(--primary);
  761. color: white;
  762. width: 40px;
  763. height: 40px;
  764. border-radius: 50%;
  765. border: none;
  766. cursor: pointer;
  767. margin-left: 10px;
  768. transition: var(--transition);
  769. display: flex;
  770. align-items: center;
  771. justify-content: center;
  772. }
  773. .send-btn:hover {
  774. background-color: var(--primary-light);
  775. transform: scale(1.05);
  776. }
  777. .modal {
  778. --cui-modal-width: 80%;
  779. }
  780. .beleg-M1 td {
  781. color: #cc8800
  782. }
  783. .beleg-M2 td {
  784. color: #cc2200
  785. }
  786. .beleg-M3 td {
  787. color: #882200
  788. }
  789. ::-webkit-datetime-edit-year-field:not([aria-valuenow]),
  790. ::-webkit-datetime-edit-month-field:not([aria-valuenow]),
  791. ::-webkit-datetime-edit-day-field:not([aria-valuenow]) {
  792. color: #eee;
  793. }
  794. input[type="date"]:in-range::-webkit-datetime-edit-year-field,
  795. input[type="date"]:in-range::-webkit-datetime-edit-month-field,
  796. input[type="date"]:in-range::-webkit-datetime-edit-day-field,
  797. input[type="date"]:in-range::-webkit-datetime-edit-text {
  798. color: #eee;
  799. }