*{box-sizing:border-box;margin:0;padding:0}body{font-family:Poppins,sans-serif;background:linear-gradient(135deg,#dff3f5,#f3f9fd);color:#222;min-height:100vh;overflow-x:hidden}.navbar{background:linear-gradient(90deg,#007acc,#00a2ff);color:#fff;padding:1.2rem 1.5rem;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.8rem;box-shadow:0 3px 8px #0000001a}.logo{font-weight:700;font-size:1.5rem;letter-spacing:.5px}.tagline{font-size:.95rem;opacity:.9;font-weight:300}.dashboard-container{display:flex;flex-wrap:wrap;gap:2rem;padding:2rem;justify-content:center;align-items:center;max-width:1300px;margin:0 auto;min-height:calc(100vh - 120px)}.lesson-form{width:420px;min-width:320px;max-width:420px;background:#fffffff2;border-radius:16px;padding:2rem;box-shadow:0 8px 20px #0000000d;transition:transform .2s ease;flex-shrink:0}.lesson-form:hover{transform:translateY(-3px)}.lesson-form h2{margin-bottom:1rem;color:#007acc;font-size:1.4rem;font-weight:600}.lesson-form label{display:block;margin-top:1rem;font-weight:500;font-size:.9rem;color:#333}.lesson-form input{width:100%;margin-top:.5rem;padding:.7rem;border-radius:8px;border:1px solid #ccc;outline:none;transition:border .2s}.lesson-form input[type=checkbox]{width:auto!important;margin-right:.5rem;margin-top:0!important;padding:0!important;border-radius:3px!important;cursor:pointer}.lesson-form input:focus{border-color:#007acc;box-shadow:0 0 0 3px #007acc33}.lesson-form button{width:100%;background:linear-gradient(90deg,#007acc,#00a2ff);color:#fff;border:none;border-radius:10px;padding:.8rem;margin-top:1.5rem;font-size:1rem;font-weight:600;cursor:pointer;transition:transform .2s,box-shadow .2s}.lesson-form button:hover{transform:translateY(-2px);box-shadow:0 5px 12px #007acc4d}.lesson-output-container{flex:2;min-width:400px;background:#fffffff2;border-radius:16px;padding:1.5rem 2rem;box-shadow:0 8px 20px #0000000d;display:flex;flex-direction:column;height:fit-content}.lesson-output-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.5rem;margin-bottom:1rem}.lesson-output-header h2{color:#007acc;font-weight:600}.btn-group{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:.5rem}@media(max-width:600px){.btn-group{justify-content:center;flex-direction:column;align-items:stretch;gap:.6rem}.export-btn{width:100%;padding:.6rem 1rem;border-radius:6px;font-size:.9rem}}.regen-select{border-radius:8px;padding:.5rem;border:1px solid #ccc;min-width:160px}.export-btn{background:#00b36b;color:#fff;border:none;padding:.6rem 1rem;border-radius:8px;font-weight:600;cursor:pointer;transition:background .2s}.export-btn:hover{background:#00995c}.lesson-output{background:#fff;border-radius:12px;padding:1.2rem;overflow-y:auto;line-height:1.7;color:#222;font-size:.95rem;max-height:70vh}.lesson-output h2,.lesson-output h3{color:#007acc;margin-top:1.2rem}.lesson-output p{margin-bottom:1rem}.placeholder{color:#888;text-align:center;margin-top:3rem}.markdown-content h2{color:#007acc;border-bottom:2px solid #e0f2f9;padding-bottom:4px;margin-top:1.5rem}.markdown-content p{color:#333;font-size:15px;margin:.4rem 0;line-height:1.6}.markdown-content ul{padding-left:1.5rem;margin:.4rem 0}.markdown-content li{margin-bottom:.3rem}.markdown-content strong{color:#005fa3}.markdown-content h3{color:#006ba1;margin-top:1rem}.loader{text-align:center;color:#007acc;font-weight:500;padding:3rem;animation:blink 1s infinite alternate}@keyframes blink{0%{opacity:.4}to{opacity:1}}@media(max-width:1200px)and (min-width:1025px){.lesson-form{width:380px;max-width:380px}.lesson-output-container{flex:1}}@media(max-width:1024px){.navbar{flex-direction:column;text-align:center;gap:.3rem}.dashboard-container{flex-direction:column;align-items:center;justify-content:flex-start;padding:1rem;min-height:unset}.lesson-form,.lesson-output-container{width:100%;max-width:600px;margin:0 auto}.lesson-form{padding:1.5rem}.lesson-form input,.lesson-form button,.lesson-form label{width:100%}.btn-group{justify-content:center;flex-wrap:wrap;gap:.6rem;width:100%}.export-btn{background:#00b36b;padding:.5rem .8rem;font-size:.9rem;border-radius:6px}.lesson-output-container{min-width:100%}}@media(max-width:600px){.navbar{padding:.8rem}.logo{font-size:1.25rem}.tagline{font-size:.85rem}.dashboard-container{padding:.75rem;gap:1rem}.lesson-form,.lesson-output-container{padding:1.2rem}.lesson-form input{width:100%;font-size:16px}.lesson-form button{width:100%;padding:.75rem;font-size:1rem}.lesson-form h2,.lesson-output-container h2{font-size:1.2rem}.lesson-output{max-height:50vh;font-size:.9rem}.btn-group{flex-direction:column;align-items:stretch;gap:.5rem}.export-btn{width:100%;padding:.6rem;font-size:.9rem}.lesson-output-header{flex-direction:column;align-items:flex-start}.lesson-output-header h2{margin-bottom:.5rem}.markdown-content h2{font-size:1.3rem}.markdown-content h3{font-size:1.1rem}}@media(max-width:400px){.dashboard-container{padding:.5rem}.lesson-form,.lesson-output-container{padding:1rem}.lesson-form h2,.lesson-output-container h2,.logo{font-size:1.1rem}.tagline{font-size:.8rem}.lesson-output{max-height:40vh;font-size:.85rem}}
