Spaces:
Running
Running
File size: 77,336 Bytes
b914c3a 6cdaaa6 e8bd6a0 b914c3a 6cdaaa6 b914c3a e8bd6a0 6cdaaa6 b914c3a 6cdaaa6 b914c3a e8bd6a0 6cdaaa6 b914c3a 6cdaaa6 b914c3a 6cdaaa6 18c11ea 6cdaaa6 18c11ea 6cdaaa6 b914c3a 6cdaaa6 e8bd6a0 6cdaaa6 b914c3a e8bd6a0 6cdaaa6 7daf7f7 b914c3a 6cdaaa6 b914c3a e8bd6a0 b914c3a 6cdaaa6 b914c3a e8bd6a0 6cdaaa6 e8bd6a0 6cdaaa6 e8bd6a0 6cdaaa6 b914c3a 6cdaaa6 b914c3a 6cdaaa6 e8bd6a0 6cdaaa6 b914c3a 6cdaaa6 b914c3a 6cdaaa6 b914c3a 6cdaaa6 e8bd6a0 6cdaaa6 e8bd6a0 6cdaaa6 e8bd6a0 6cdaaa6 e8bd6a0 6cdaaa6 e8bd6a0 6cdaaa6 e8bd6a0 6cdaaa6 e8bd6a0 6cdaaa6 e8bd6a0 6cdaaa6 e8bd6a0 b914c3a 6cdaaa6 e8bd6a0 b914c3a 6cdaaa6 e8bd6a0 b914c3a 6cdaaa6 e8bd6a0 6cdaaa6 e8bd6a0 b914c3a 6cdaaa6 b914c3a e8bd6a0 6cdaaa6 e8bd6a0 6cdaaa6 e8bd6a0 6cdaaa6 e8bd6a0 6cdaaa6 e8bd6a0 6cdaaa6 e8bd6a0 6cdaaa6 e8bd6a0 b914c3a 6cdaaa6 b914c3a 6cdaaa6 b914c3a 6cdaaa6 b914c3a 6cdaaa6 e8bd6a0 6cdaaa6 e8bd6a0 6cdaaa6 b914c3a 6cdaaa6 e8bd6a0 6cdaaa6 e8bd6a0 6cdaaa6 b914c3a 6cdaaa6 b914c3a 6cdaaa6 b914c3a 7daf7f7 b914c3a 7daf7f7 b914c3a 46e954a b914c3a add04fc b914c3a 7daf7f7 89f8708 7daf7f7 b914c3a 7daf7f7 b914c3a e8bd6a0 b914c3a e8bd6a0 b914c3a add04fc b914c3a 40ec6e2 b914c3a 40ec6e2 b914c3a 40ec6e2 add04fc 40ec6e2 add04fc b914c3a 40ec6e2 b914c3a 46e954a b914c3a fa22010 b914c3a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1"/>
<title>JEE & NEET Content Manager</title>
<script src="https://telegram.org/js/telegram-web-app.js"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;800&family=IBM+Plex+Mono:wght@400;600;700&display=swap');
:root {
--bg: #EAE5D9;
--surface: #FFFFFF;
--border: #0A0A0A;
--accent: #FF3B00;
--accent-light: #FF8F66;
--accent2: #0055FF;
--text: #0A0A0A;
--muted: #666666;
--muted-dark: #444444;
--green: #00A651;
--red: #E60000;
--yellow: #FFCC00;
--radius: 12px;
--radius-sm: 8px;
--sidebar-w: 280px;
--shadow: 5px 5px 0px var(--border);
--shadow-hover: 8px 8px 0px var(--border);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body {
background: var(--bg);
background-image: radial-gradient(rgba(0,0,0,0.1) 1px, transparent 1px);
background-size: 24px 24px;
color: var(--text);
font-family: 'IBM Plex Mono', monospace;
min-height: 100vh;
display: flex;
overflow-x: hidden;
}
h1, h2, h3, .sidebar-brand h2, .page-title, .card-title {
font-family: 'Bricolage Grotesque', sans-serif;
font-weight: 800;
text-transform: uppercase;
color: var(--border);
}
#sidebar {
width: var(--sidebar-w);
height: 100vh;
background: var(--surface);
border-right: 3px solid var(--border);
display: flex;
flex-direction: column;
position: fixed;
left: 0; top: 0;
z-index: 100;
box-shadow: 10px 0 0 rgba(0,0,0,0.03);
}
.sidebar-nav {
flex: 1;
overflow-y: auto;
padding: 20px 16px;
display: flex;
flex-direction: column;
gap: 8px;
}
.sidebar-nav::-webkit-scrollbar { width: 0px; }
.sidebar-brand {
padding: 32px 24px 24px;
border-bottom: 3px solid var(--border);
background: var(--accent);
}
.sidebar-brand h2 {
font-size: 1.8rem;
line-height: 1.1;
color: #fff;
text-shadow: 3px 3px 0 var(--border);
-webkit-text-fill-color: initial;
background: none;
}
.sidebar-brand p {
font-size: 12px;
color: #fff;
margin-top: 8px;
font-weight: 700;
background: var(--border);
display: inline-block;
padding: 4px 8px;
border-radius: 4px;
}
.sidebar-status {
display: inline-flex;
align-items: center;
gap: 8px;
font-size: 11px;
font-weight: 700;
margin-top: 16px;
color: var(--border);
background: var(--yellow);
padding: 6px 12px;
border-radius: 20px;
border: 2px solid var(--border);
box-shadow: 2px 2px 0 var(--border);
}
.dot { width: 10px; height: 10px; background: var(--green); border-radius: 50%; border: 2px solid var(--border); }
.nav-item {
width: 100%;
padding: 14px 18px;
border-radius: var(--radius-sm);
border: 2px solid transparent;
background: transparent;
display: flex; align-items: center; gap: 14px;
color: var(--muted-dark);
font-family: 'Bricolage Grotesque', sans-serif;
font-weight: 600;
font-size: 16px;
text-transform: uppercase;
cursor: pointer;
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-item:hover {
background: var(--bg);
border-color: var(--border);
transform: translateX(4px);
}
.nav-item.active {
color: #fff;
background: var(--accent2);
border-color: var(--border);
box-shadow: var(--shadow);
transform: translateX(4px);
}
.nav-item .icon { font-size: 20px; width: 24px; text-align: center; }
.sidebar-footer {
margin-top: auto;
padding: 24px;
font-size: 12px;
font-weight: 600;
color: var(--muted-dark);
text-align: center;
border-top: 3px solid var(--border);
background: #f4f4f4;
}
/* ββ Main Layout ββ */
#main {
margin-left: var(--sidebar-w);
flex: 1; padding: 60px 5vw;
max-width: 1400px;
}
.page-title {
font-size: 3.5rem;
letter-spacing: -0.02em;
margin-bottom: 8px;
text-shadow: 4px 4px 0 rgba(0,0,0,0.1);
}
.page-sub {
font-size: 16px;
color: var(--muted-dark);
margin-bottom: 40px;
font-weight: 600;
max-width: 600px;
line-height: 1.5;
}
.section { display: none; }
.section.active { display: block; animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes popIn {
from { opacity: 0; transform: scale(0.98) translateY(10px); }
to { opacity: 1; transform: scale(1) translateY(0); }
}
/* ββ Cards & UI ββ */
.card {
background: var(--surface);
border: 3px solid var(--border);
border-radius: var(--radius);
padding: 32px;
margin-bottom: 32px;
box-shadow: var(--shadow);
transition: transform 0.2s, box-shadow 0.2s;
position: relative;
}
.card:hover {
transform: translate(-2px, -2px);
box-shadow: var(--shadow-hover);
}
.card-title {
font-size: 1.5rem;
color: var(--border);
margin-bottom: 24px;
display: flex;
align-items: center;
gap: 12px;
}
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-bottom: 48px; }
.stat {
background: var(--yellow);
border: 3px solid var(--border);
border-radius: var(--radius);
padding: 24px;
box-shadow: var(--shadow);
transition: 0.2s;
}
.stat.c2 { background: var(--accent-light); }
.stat.c3 { background: #E8E8E8; }
.stat.c4 { background: #A7F3D0; }
.stat:hover {
transform: translate(-4px, -4px);
box-shadow: var(--shadow-hover);
}
.stat-value {
font-size: 48px;
font-family: 'Bricolage Grotesque', sans-serif;
font-weight: 800;
color: var(--border);
margin-bottom: 8px;
line-height: 1;
}
.stat-label {
font-size: 14px;
color: var(--border);
font-weight: 700;
text-transform: uppercase;
}
/* ββ Buttons ββ */
.btn {
padding: 12px 24px;
border-radius: var(--radius-sm);
font-family: 'Bricolage Grotesque', sans-serif;
font-weight: 800;
font-size: 15px;
cursor: pointer;
transition: all 0.2s;
display: inline-flex; align-items: center; justify-content: center; gap: 8px;
border: 3px solid var(--border);
box-shadow: 4px 4px 0 var(--border);
text-transform: uppercase;
}
.btn:hover {
transform: translate(-2px, -2px);
box-shadow: 6px 6px 0 var(--border);
}
.btn:active {
transform: translate(2px, 2px);
box-shadow: 0px 0px 0 var(--border);
}
.btn-primary {
background: var(--accent);
color: #fff;
}
.btn-ghost {
background: #fff;
color: var(--border);
}
.btn-danger {
background: var(--red);
color: #fff;
}
.btn-sm { padding: 8px 16px; font-size: 13px; }
/* ββ Custom Toggles ββ */
.toggle { position: relative; width: 56px; height: 32px; cursor: pointer; display: inline-block; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track {
position: absolute; inset: 0; background: var(--bg);
border: 3px solid var(--border);
border-radius: 30px; transition: 0.2s;
}
.toggle input:checked + .toggle-track { background: var(--green); }
.toggle-track::before {
content: ""; position: absolute; height: 20px; width: 20px;
left: 3px; bottom: 3px; background: var(--border);
border-radius: 50%; transition: 0.2s;
}
.toggle input:checked + .toggle-track::before { transform: translateX(24px); }
/* ββ Badges ββ */
.badge {
padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 700;
text-transform: uppercase; display: inline-flex; align-items: center; gap: 5px;
border: 2px solid var(--border);
box-shadow: 2px 2px 0 var(--border);
font-family: 'Bricolage Grotesque', sans-serif;
}
.badge-on { background: #A7F3D0; color: var(--border); }
.badge-off { background: #FECACA; color: var(--border); }
.badge-mcq { background: #DDD6FE; color: var(--border); }
/* ββ Modals ββ */
.modal-overlay {
position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
z-index: 1000; display: none; align-items: center; justify-content: center;
padding: 20px;
}
.modal-overlay.open { display: flex; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
background: var(--surface); border: 3px solid var(--border);
border-radius: var(--radius); padding: 40px;
width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
box-shadow: 12px 12px 0 var(--border);
position: relative;
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.modal-header h3 { font-size: 2rem; margin: 0; }
.modal-close {
background: none; border: 3px solid var(--border); border-radius: 50%;
width: 40px; height: 40px; font-size: 18px; font-weight: 900; cursor: pointer;
display: flex; align-items: center; justify-content: center;
transition: 0.2s;
}
.modal-close:hover { background: var(--red); color: #fff; transform: rotate(90deg); }
/* ββ Forms ββ */
.form-group { margin-bottom: 24px; }
.form-label { display: block; font-size: 14px; font-weight: 700; color: var(--border); margin-bottom: 8px; }
.form-input, .form-select, .form-textarea {
width: 100%; padding: 14px 18px; border-radius: var(--radius-sm);
border: 3px solid var(--border);
background: #fff; color: var(--text); font-size: 16px; font-family: inherit;
transition: 0.2s;
box-shadow: 3px 3px 0 rgba(0,0,0,0.05);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
outline: none;
box-shadow: 6px 6px 0 var(--accent);
transform: translate(-2px, -2px);
}
.form-hint { font-size: 12px; color: var(--muted); margin-top: 6px; font-weight: 500; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
/* ββ Content Grid ββ */
.ch-tabs { display: flex; gap: 12px; overflow-x: auto; margin-bottom: 24px; padding-bottom: 12px; }
.ch-tab {
padding: 10px 20px; background: #fff; border: 2px solid var(--border);
border-radius: 30px; font-weight: 700; cursor: pointer;
white-space: nowrap; transition: 0.2s; font-family: 'Bricolage Grotesque', sans-serif;
box-shadow: 3px 3px 0 var(--border);
}
.ch-tab:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--border); }
.ch-tab.active { background: var(--accent); color: #fff; }
.ct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.ct-card {
background: #fff; border: 3px solid var(--border);
border-radius: var(--radius-sm); padding: 24px; display: flex; align-items: center; justify-content: space-between;
transition: 0.2s; cursor: pointer; box-shadow: 4px 4px 0 rgba(0,0,0,0.05);
}
.ct-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--border); }
.ct-card.enabled { border-color: var(--border); background: #FEF3C7; box-shadow: 4px 4px 0 var(--accent); }
.ct-name { font-weight: 700; font-size: 16px; margin-bottom: 4px; font-family: 'Bricolage Grotesque', sans-serif; }
.ct-time { font-size: 13px; color: var(--muted-dark); font-weight: 600; }
/* ββ Mobile Nav ββ */
#mobile-nav {
display: none; position: fixed; bottom: 0; left: 0; right: 0;
background: var(--surface); border-top: 3px solid var(--border);
z-index: 500; padding: 10px;
}
.mobile-nav-content { display: flex; overflow-x: auto; gap: 12px; scrollbar-width: none; }
.mob-btn {
flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px;
padding: 12px 20px; border-radius: var(--radius-sm); border: 2px solid transparent; background: none; color: var(--muted-dark);
transition: 0.2s; font-family: 'Bricolage Grotesque', sans-serif;
}
.mob-btn.active { color: var(--border); background: var(--yellow); border-color: var(--border); box-shadow: 3px 3px 0 var(--border); }
.mob-btn .icon { font-size: 24px; }
.mob-btn .label { font-size: 12px; font-weight: 800; text-transform: uppercase; }
/* ββ Table & Logs ββ */
.sched-table { width: 100%; border-collapse: separate; border-spacing: 0 16px; }
.sched-table tr { background: #fff; border: 3px solid var(--border); box-shadow: 4px 4px 0 rgba(0,0,0,0.05); transition: 0.2s; }
.sched-table tr:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--border); }
.sched-table td { padding: 20px; border-top: 3px solid var(--border); border-bottom: 3px solid var(--border); }
.sched-table td:first-child { border-left: 3px solid var(--border); border-radius: var(--radius-sm) 0 0 var(--radius-sm); font-weight: 700; font-size: 16px; font-family: 'Bricolage Grotesque', sans-serif; }
.sched-table td:last-child { border-right: 3px solid var(--border); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.time-input { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.time-input input {
background: var(--bg); border: 2px solid var(--border); border-radius: 6px;
padding: 6px; font-family: inherit; font-size: 16px; font-weight: 700; text-align: center;
}
.time-input input:focus { outline: none; border-color: var(--accent); background: #fff; }
.log-box {
background: var(--border); color: #00FF41; border: 3px solid var(--border); border-radius: var(--radius-sm);
padding: 24px; font-family: 'IBM Plex Mono', monospace; font-size: 14px; line-height: 1.6;
height: 400px; overflow-y: auto; box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}
.log-error { color: #FF3333; }
.log-warn { color: #FFCC00; }
.log-ok { color: #00FF41; }
/* ββ Toast ββ */
#toast {
position: fixed; bottom: 30px; right: 30px;
background: var(--border); color: #fff;
padding: 16px 24px; border-radius: var(--radius-sm);
font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: 16px;
box-shadow: 6px 6px 0 rgba(0,0,0,0.2);
transform: translateY(100px); opacity: 0; transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
z-index: 9999;
}
#toast.show { transform: translateY(0); opacity: 1; }
/* ββ Library Styling ββ */
.lib-node { margin-left: 24px; border-left: 3px solid var(--border); padding-left: 24px; margin-top: 16px; }
.lib-header { display: flex; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; transition: 0.2s; }
.lib-header:hover { transform: translateX(4px); }
.lib-title { font-weight: 800; font-size: 18px; flex: 1; font-family: 'Bricolage Grotesque', sans-serif; text-transform: uppercase; }
.lib-leaf {
display: flex; align-items: center; gap: 12px; margin: 12px 0;
background: #fff; padding: 12px 20px; border-radius: var(--radius-sm);
border: 3px solid var(--border); box-shadow: 3px 3px 0 rgba(0,0,0,0.05);
transition: 0.2s;
}
.lib-leaf:focus-within { box-shadow: 5px 5px 0 var(--accent); transform: translate(-2px, -2px); }
.lib-leaf input { background: none; border: none; color: var(--text); font-size: 15px; flex: 1; outline: none; font-weight: 600; font-family: inherit; }
.btn-lib-del {
background: var(--red); color: white; border: 2px solid var(--border);
border-radius: 6px; width: 32px; height: 32px; font-weight: 900;
cursor: pointer; transition: 0.2s; box-shadow: 2px 2px 0 var(--border);
}
.btn-lib-del:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--border); }
.btn-lib-del:active { transform: translate(0, 0); box-shadow: 0 0 0 var(--border); }
/* ββ Misc Layouts ββ */
.ch-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 2px dashed #ccc; }
.ch-row:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.ch-info h4 { font-size: 18px; margin-bottom: 4px; }
.ch-info p { font-size: 13px; color: var(--muted-dark); font-weight: 600; }
.health-row { display: flex; justify-content: space-between; align-items: center; padding: 16px; border: 3px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 16px; background: #fff; box-shadow: 4px 4px 0 rgba(0,0,0,0.05); }
.health-label { font-weight: 800; font-family: 'Bricolage Grotesque', sans-serif; font-size: 18px; margin-bottom: 4px; }
.health-msg { font-size: 14px; color: var(--muted-dark); }
@media (max-width: 900px) {
#sidebar { display: none; }
#main { margin-left: 0; padding: 40px 20px 140px; }
#mobile-nav { display: block; }
.stats { grid-template-columns: 1fr; }
.page-title { font-size: 2.5rem; }
}
</style>
<!-- ββββββββββββββ SIDEBAR ββββββββββββββ -->
<nav id="sidebar">
<div class="sidebar-brand">
<h2>β‘ CrazyLearners</h2>
<p>JEE & NEET AI Dashboard</p>
<div class="sidebar-status"><span class="dot"></span><span id="bot-status-text">Connectingβ¦</span></div>
</div>
<div class="sidebar-nav">
<button class="nav-item active" onclick="nav('overview')"><span class="icon">π</span> Overview</button>
<button class="nav-item" onclick="nav('channels')"><span class="icon">π‘</span> Channels</button>
<button class="nav-item" onclick="nav('content')"><span class="icon">ποΈ</span> Content Settings</button>
<button class="nav-item" onclick="nav('mcq')"><span class="icon">π§ͺ</span> MCQ Sessions</button>
<button class="nav-item" onclick="nav('library')"><span class="icon">π</span> Content Library</button>
<button class="nav-item" onclick="nav('style')"><span class="icon">π¨</span> AI Style & prompts</button>
<button class="nav-item" onclick="nav('schedule')"><span class="icon">π
</span> Schedule</button>
<div class="nav-sep"></div>
<button class="nav-item" onclick="nav('broadcast')"><span class="icon">π’</span> Broadcast</button>
<button class="nav-item" onclick="nav('health')"><span class="icon">π©Ί</span> Health</button>
<button class="nav-item" onclick="nav('help')"><span class="icon">β</span> Help & Guide</button>
</div>
<div class="sidebar-footer">v2.0 Β· JEE & NEET Bot</div>
</nav>
<!-- ββββββββββββββ MAIN ββββββββββββββ -->
<main id="main">
<!-- ββ Overview ββ -->
<section id="s-overview" class="section active">
<div class="page-title">π Overview</div>
<div class="page-sub">Live snapshot of your bot's activity</div>
<div class="stats">
<div class="stat c1"><div class="stat-value" id="ov-channels">β</div><div class="stat-label">Active Channels</div></div>
<div class="stat c2"><div class="stat-value" id="ov-jobs">β</div><div class="stat-label">Scheduled Jobs</div></div>
<div class="stat c3"><div class="stat-value" id="ov-users">β</div><div class="stat-label">Bot Users</div></div>
<div class="stat c4"><div class="stat-value" id="ov-types">β</div><div class="stat-label">Content Types</div></div>
</div>
<div class="card">
<div class="card-title">Channel Summary</div>
<div id="ov-ch-list"></div>
</div>
<div class="card">
<div class="card-title">Today's Schedule</div>
<div id="ov-schedule"></div>
</div>
<div class="card" style="border-top: 1px solid var(--accent);">
<div class="card-title" style="color:var(--accent)">Global Bot Branding & URLs</div>
<div class="page-sub">Edit bottom-button links and main channel references</div>
<div style="display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:15px;">
<div class="form-group">
<label class="form-label">Main Channel Name</label>
<input type="text" id="set-main-name" class="form-input" placeholder="e.g. CrazyLearners">
</div>
<div class="form-group">
<label class="form-label">Primary Channel Link (t.me)</label>
<input type="text" id="set-main-link" class="form-input" placeholder="https://t.me/...">
</div>
</div>
<div class="form-group" style="margin-top:12px;">
<label class="form-label">Dashboard URL (for bot keyboard)</label>
<input type="text" id="set-dash-url" class="form-input" placeholder="https://huggingface.co/...">
</div>
<div style="margin-top:15px; text-align:right;">
<button class="btn btn-primary" onclick="saveGlobalSettings()">πΎ Update Branding & URLs</button>
</div>
</div>
</section>
<!-- ββ Channels ββ -->
<section id="s-channels" class="section">
<div class="page-title">π‘ Channel Manager</div>
<div class="page-sub">Add, remove, verify and configure connected Telegram channels</div>
<div style="display:flex;justify-content:flex-end;margin-bottom:14px;">
<button class="btn btn-primary" onclick="openModal('add-channel-modal')">β Add Channel</button>
</div>
<div class="card">
<div id="ch-list">Loadingβ¦</div>
</div>
</section>
<!-- ββ Content Settings ββ -->
<section id="s-content" class="section">
<div class="page-title">ποΈ Content Settings</div>
<div class="page-sub">Toggle which post types are active per channel</div>
<div class="ch-tabs" id="content-ch-tabs"></div>
<div class="card">
<div class="card-title">Post Types for <span id="content-ch-name">β</span></div>
<div class="ct-grid" id="ct-grid"></div>
<div style="margin-top:14px;display:flex;gap:8px;">
<button class="btn btn-ghost btn-sm" onclick="enableAll()">β
Enable All</button>
<button class="btn btn-ghost btn-sm" onclick="disableAll()">π΄ Disable All</button>
</div>
<div class="card" style="margin-top:20px; border-top: 1px dashed var(--border);">
<div class="card-title">π Manual Trigger</div>
<div class="page-sub">Force generate and post a specific content type to this channel right now.</div>
<div style="display:flex; gap:8px; margin-top:10px;">
<select id="force-post-type" class="form-select" style="flex:1; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 10px;">
<!-- Dynamically populated via JS -->
</select>
<button class="btn btn-primary" onclick="forcePost()">π Post Now</button>
</div>
</div>
</div>
</section>
<!-- ββ MCQ Sessions ββ -->
<section id="s-mcq" class="section">
<div class="page-title">π§ͺ MCQ Session Config</div>
<div class="page-sub">Configure the 8 PM interactive poll session per channel</div>
<div id="mcq-list"></div>
</section>
<!-- ββ Library ββ -->
<section id="s-library" class="section">
<div class="page-title">π Content Library</div>
<div class="page-sub">Manage your syllabus, subjects, and chapters. Changes apply to future AI generations.</div>
<div style="display:flex;justify-content:flex-end;margin-bottom:14px;gap:8px;">
<button class="btn btn-ghost" onclick="loadLibrary()">π Refresh</button>
<button class="btn btn-primary" onclick="saveLibrary()">πΎ Save All Changes</button>
</div>
<div class="card">
<div class="card-title">Syllabus Editor</div>
<div id="syllabus-editor" style="min-height:400px; display:flex; flex-direction:column; gap:16px;">
<div style="color:var(--muted);text-align:center;padding:40px;">Click "Refresh" to load syllabus data.</div>
</div>
</div>
</section>
<!-- ββ Style ββ -->
<section id="s-style" class="section">
<div class="page-title">π¨ AI Style & prompts</div>
<div class="page-sub">Directly edit the AI system prompts and templates for each content type.</div>
<div style="display:flex;justify-content:flex-end;margin-bottom:14px;gap:8px;">
<button class="btn btn-ghost" onclick="loadStyle()">π Refresh</button>
<button class="btn btn-primary" onclick="saveStyle()">πΎ Save All Prompts</button>
</div>
<div class="card">
<div class="card-title">System Instruction</div>
<div class="page-sub">The global instructions given to AI before every request.</div>
<div class="form-group" style="margin-top:10px;">
<textarea class="form-textarea" id="style-system" rows="6" style="font-family:monospace;font-size:12px;"></textarea>
</div>
</div>
<div id="style-templates"></div>
</section>
<!-- ββ Schedule ββ -->
<section id="s-schedule" class="section">
<div class="page-title">π
Posting Schedule</div>
<div class="page-sub">Set IST time for each content type. Changes apply immediately.</div>
<div class="card">
<table class="sched-table" id="sched-table"></table>
</div>
</section>
<!-- ββ Broadcast ββ -->
<section id="s-broadcast" class="section">
<div class="page-title" style="background: linear-gradient(to right, #fff, var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent;">π’ Broadcast Hub</div>
<div class="page-sub">Send a high-impact announcement to all registered students.</div>
<div class="card">
<div class="card-title">Compose Message</div>
<div class="user-count-badge">π€ <span id="bc-count">?</span> registered users will receive this</div>
<div class="form-group">
<label class="form-label">Message (Markdown supported)</label>
<textarea class="form-textarea" id="bc-msg" rows="5" placeholder="π *Important update!* Today's topic is **Fluid Mechanics**. Drop your score in the MCQ channel comments! π―"></textarea>
</div>
<div style="display:flex; gap:12px; margin-top:10px;">
<button class="btn btn-primary" style="flex:1" onclick="sendBroadcast()">π€ Send to Users</button>
<button class="btn btn-ghost" style="flex:1; border-color:var(--accent); color:var(--accent)" onclick="sendChannelBroadcast()">π‘ Send to Channels</button>
</div>
<div id="bc-result" style="margin-top:16px; font-size:13px; padding:12px; border-radius:12px; background:rgba(255,255,255,0.02); display:none;"></div>
</div>
</section>
<!-- ββ Health ββ -->
<section id="s-health" class="section">
<div class="page-title">π©Ί System Health</div>
<div class="page-sub">Live status of all bot subsystems</div>
<div style="display:flex;gap:8px;margin-bottom:14px;">
<button class="btn btn-primary" onclick="runHealthCheck()">π Run Check</button>
</div>
<div class="card">
<div id="health-checks">Click "Run Check" to test all services.</div>
</div>
<div class="card">
<div class="card-title">Recent Logs</div>
<div id="log-box" class="log-box">Loadingβ¦</div>
<div style="margin-top:8px;"><button class="btn btn-ghost btn-sm" onclick="loadLogs()">π Refresh</button></div>
</div>
</section>
<!-- ββ Help ββ -->
<section id="s-help" class="section">
<div class="page-title">β Help & Setup Guide</div>
<div class="page-sub">Step-by-step instructions for setting up and managing the bot</div>
<div class="card">
<div class="guide-section">
<h3>π Getting Started</h3>
<div class="guide-step">
<div class="step-num">1</div>
<div class="step-body"><h4>Add Bot to Your Telegram Channel</h4>
<p>Go to your Telegram channel β <strong>Admins</strong> β <strong>Add Admin</strong> β search for your bot username β Grant it <strong>Post Messages</strong>, <strong>Edit Messages</strong>, and <strong>Delete Messages</strong> permissions.</p></div>
</div>
<div class="guide-step">
<div class="step-num">2</div>
<div class="step-body"><h4>Verify the Channel</h4>
<p>Go to <strong>π‘ Channels β Add Channel</strong>. Enter the channel username (e.g. <code>@YourChannel</code>). Click <strong>π Verify</strong> first β it will confirm the bot has admin access. If verification passes, click <strong>Add Channel</strong>.</p></div>
</div>
<div class="guide-step">
<div class="step-num">3</div>
<div class="step-body"><h4>Configure What to Post</h4>
<p>Go to <strong>ποΈ Content Settings</strong> β Select your channel β Toggle each post type on or off. Green = will post, Red = skipped.</p></div>
</div>
<div class="guide-step">
<div class="step-num">4</div>
<div class="step-body"><h4>Set Posting Times</h4>
<p>Go to <strong>π
Schedule</strong> β Set the IST time for each content type. All posts are automatically distributed through the day.</p></div>
</div>
<div class="guide-step">
<div class="step-num">5</div>
<div class="step-body"><h4>Enable MCQ Sessions (optional)</h4>
<p>Go to <strong>π§ͺ MCQ Sessions</strong> β Enable for any channel β Set the delay between polls (60β120 seconds recommended). The bot will post 10 polls from the syllabus at 8 PM.</p></div>
</div>
</div>
<div class="guide-section">
<h3>π‘ Channel Types</h3>
<div class="guide-step">
<div class="step-num">π</div>
<div class="step-body"><h4>Full Content Channel</h4>
<p>Receives all post types: PYQ questions, formula sheets, short notes, mnemonics, concept recaps, mock questions, and motivation. Best for general JEE/NEET channels.</p></div>
</div>
<div class="guide-step">
<div class="step-num">π§ͺ</div>
<div class="step-body"><h4>MCQ-Only Channel</h4>
<p>Only the evening interactive poll session (10 MCQs at 8 PM). Check <strong>"MCQ Only"</strong> when adding a channel. Best for a dedicated practice channel.</p></div>
</div>
</div>
<div class="guide-section">
<h3>π Content Types Explained</h3>
<table class="sched-table">
<tr><td>π
PYQ Question</td><td style="color:var(--muted)">Previous Year Question with explanation as a quiz poll</td></tr>
<tr><td>π Formula Sheet</td><td style="color:var(--muted)">Key formulas for a topic as a formatted message</td></tr>
<tr><td>π Short Notes</td><td style="color:var(--muted)">Concise revision notes for a chapter</td></tr>
<tr><td>π§ Memory Tricks</td><td style="color:var(--muted)">Mnemonics and tricks to remember concepts</td></tr>
<tr><td>π
Concept Recap</td><td style="color:var(--muted)">Evening summary of today's important concepts</td></tr>
<tr><td>π― Daily Mock</td><td style="color:var(--muted)">3 unseen MCQs as text for self-assessment</td></tr>
<tr><td>π Motivation</td><td style="color:var(--muted)">Nightly motivational message for students</td></tr>
<tr><td>π§ͺ MCQ Session</td><td style="color:var(--muted)">10 interactive poll questions posted with 60-90s gaps</td></tr>
</table>
</div>
<div class="guide-section">
<h3>βοΈ Bot Commands (in Telegram)</h3>
<table class="sched-table">
<tr><td><code>/start</code></td><td style="color:var(--muted)">Open admin panel + dashboard button</td></tr>
<tr><td><code>/channels</code></td><td style="color:var(--muted)">Manage channels via inline buttons</td></tr>
<tr><td><code>/preview</code></td><td style="color:var(--muted)">Generate and preview a post before publishing</td></tr>
<tr><td><code>/mcq_session</code></td><td style="color:var(--muted)">Manually trigger the MCQ session</td></tr>
<tr><td><code>/broadcast msg</code></td><td style="color:var(--muted)">Send message to all bot users</td></tr>
<tr><td><code>/healthcheck</code></td><td style="color:var(--muted)">Check all systems via bot reply</td></tr>
<tr><td><code>/stats</code></td><td style="color:var(--muted)">View syllabus coverage analytics</td></tr>
</table>
</div>
</div>
</section>
</main>
<!-- ββββββββββββββ MOBILE NAV ββββββββββββββ -->
<nav id="mobile-nav">
<div class="mobile-nav-content">
<button class="nav-item mob-btn active" onclick="nav('overview')"><span class="icon">π</span><span class="label">Overview</span></button>
<button class="nav-item mob-btn" onclick="nav('channels')"><span class="icon">π‘</span><span class="label">Channels</span></button>
<button class="nav-item mob-btn" onclick="nav('content')"><span class="icon">ποΈ</span><span class="label">Content</span></button>
<button class="nav-item mob-btn" onclick="nav('mcq')"><span class="icon">π§ͺ</span><span class="label">MCQs</span></button>
<button class="nav-item mob-btn" onclick="nav('library')"><span class="icon">π</span><span class="label">Library</span></button>
<button class="nav-item mob-btn" onclick="nav('schedule')"><span class="icon">π
</span><span class="label">Schedule</span></button>
<button class="nav-item mob-btn" onclick="nav('broadcast')"><span class="icon">π’</span><span class="label">Broadcast</span></button>
<button class="nav-item mob-btn" onclick="nav('health')"><span class="icon">π©Ί</span><span class="label">Health</span></button>
<button class="nav-item mob-btn" onclick="nav('help')"><span class="icon">β</span><span class="label">Help</span></button>
</div>
</nav>
<!-- ββββββββββββββ MODALS ββββββββββββββ -->
<!-- Add Channel -->
<div class="modal-overlay" id="add-channel-modal">
<div class="modal">
<div class="modal-header">
<h3>β Add New Channel</h3>
<button class="modal-close" onclick="closeModal('add-channel-modal')">β</button>
</div>
<div style="background:rgba(251,191,36,.08);border:1px solid var(--yellow);border-radius:var(--radius2);padding:10px 12px;font-size:12px;margin-bottom:16px;color:var(--yellow);">
β οΈ Make sure you've added the bot as <strong>Admin</strong> to the channel BEFORE adding it here. Use <strong>Verify</strong> to confirm.
</div>
<div class="form-group">
<label class="form-label">Channel Username or ID *</label>
<input class="form-input" id="new-ch-id" placeholder="@YourChannel or -100XXXXXXX" oninput="resetVerify()"/>
<div class="form-hint">Use @username for public channels or -100... integer ID for private channels. The bot must already be an admin.</div>
</div>
<button class="btn btn-ghost btn-sm" onclick="verifyChannel()" id="verify-btn">π Verify Channel</button>
<div id="verify-result" class="verify-box"></div>
<div id="add-ch-form" style="display:none;margin-top:16px;">
<div class="form-group">
<label class="form-label">Internal Key * (letters, numbers, underscore)</label>
<input class="form-input" id="new-ch-key" placeholder="my_channel"/>
<div class="form-hint">Used internally, not shown to users. E.g. neet_biology</div>
</div>
<div class="form-group">
<label class="form-label">Display Label *</label>
<input class="form-input" id="new-ch-label" placeholder="NEET Biology Daily"/>
</div>
<div class="form-row">
<div class="form-group">
<label class="form-label">Exam Focus</label>
<select class="form-select" id="new-ch-exam">
<option value="JEE Main">JEE Main</option>
<option value="JEE Advanced">JEE Advanced</option>
<option value="NEET">NEET</option>
<option value="Both">JEE + NEET</option>
</select>
</div>
<div class="form-group">
<label class="form-label">Subjects</label>
<select class="form-select" id="new-ch-subjects">
<option value="pcm">Physics, Chemistry, Maths</option>
<option value="pcb">Physics, Chemistry, Biology</option>
<option value="physics">Physics only</option>
<option value="chemistry">Chemistry only</option>
<option value="maths">Maths only</option>
<option value="biology">Biology only</option>
</select>
</div>
</div>
<label class="form-check">
<input type="checkbox" id="new-ch-mcqonly"/>
<div><strong>MCQ Only Mode</strong> β Only post the 8 PM MCQ poll session (no text posts)</div>
</label>
</div>
<div class="modal-footer">
<button class="btn btn-ghost" onclick="closeModal('add-channel-modal')">Cancel</button>
<button class="btn btn-primary" onclick="addChannel()" id="add-ch-btn" disabled>Add Channel</button>
</div>
</div>
</div>
<!-- Edit Channel -->
<div class="modal-overlay" id="edit-channel-modal">
<div class="modal">
<div class="modal-header">
<h3>βοΈ Edit Channel Configuration</h3>
<button class="modal-close" onclick="closeModal('edit-channel-modal')">β</button>
</div>
<div class="form-group">
<label class="form-label">Display Label</label>
<input class="form-input" id="ed-ch-label" placeholder="NEET Biology Daily"/>
</div>
<div class="form-group">
<label class="form-label">Telegram ID (Numerical or @username)</label>
<input class="form-input" id="ed-ch-id" placeholder="-100123456789"/>
<div class="form-hint">Incorrect ID causes "Chat not found" errors.</div>
</div>
<div class="form-row">
<div class="form-group">
<label class="form-label">Exam Focus</label>
<select class="form-select" id="ed-ch-exam">
<option value="JEE Main">JEE Main</option>
<option value="JEE Advanced">JEE Advanced</option>
<option value="NEET">NEET</option>
<option value="Both">JEE + NEET</option>
</select>
</div>
<div class="form-group">
<label class="form-label">Subjects</label>
<select class="form-select" id="ed-ch-subjects">
<option value="pcm">Physics, Chemistry, Maths</option>
<option value="pcb">Physics, Chemistry, Biology</option>
<option value="physics">Physics only</option>
<option value="chemistry">Chemistry only</option>
<option value="maths">Maths only</option>
<option value="biology">Biology only</option>
</select>
</div>
</div>
<div class="form-group">
<label class="form-label">Post Footer (Markdown)</label>
<textarea class="form-textarea" id="ed-ch-footer" placeholder="π― Share with your batch!"></textarea>
<div class="form-hint">Appended to the bottom of EVERY post in this channel.</div>
</div>
<div style="background:rgba(34,211,238,.05); border:1px dashed var(--accent); border-radius:var(--radius2); padding:12px; margin-top:10px;">
<div style="font-size:12px;font-weight:700;margin-bottom:8px;color:var(--accent);">π CALL-TO-ACTION BUTTON</div>
<div class="form-group">
<label class="form-label">Button Text</label>
<input class="form-input" id="ed-ch-btn-text" placeholder="Join VIP Group / Download PDF"/>
</div>
<div class="form-group" style="margin-bottom:0">
<label class="form-label">Button URL</label>
<input class="form-input" id="ed-ch-btn-url" placeholder="https://t.me/your_channel_link"/>
</div>
<div class="form-hint">Shown as a clickable button below the post. Leave empty to disable.</div>
</div>
<div class="modal-footer">
<input type="hidden" id="ed-ch-key">
<button class="btn btn-ghost" onclick="closeModal('edit-channel-modal')">Cancel</button>
<button class="btn btn-primary" onclick="saveChannelUpdate()" id="save-ch-btn">Save Changes</button>
</div>
</div>
</div>
<!-- Delete Confirm -->
<div class="modal-overlay" id="delete-modal">
<div class="modal">
<div class="modal-header">
<h3>ποΈ Delete Channel</h3>
<button class="modal-close" onclick="closeModal('delete-modal')">β</button>
</div>
<p style="font-size:14px;color:var(--muted2);margin-bottom:8px;">Are you sure you want to remove <strong id="del-ch-label"></strong>?</p>
<p style="font-size:12px;color:var(--red);">This will stop all scheduled posts to this channel permanently.</p>
<div class="modal-footer">
<button class="btn btn-ghost" onclick="closeModal('delete-modal')">Cancel</button>
<button class="btn btn-danger" onclick="confirmDelete()">ποΈ Delete</button>
</div>
</div>
</div>
<div id="toast"></div>
<script>
</script>
</body>
</html>
|