*,:before,:after{box-sizing:border-box;margin:0;padding:0}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#111827;background:#f8fafc;font-family:Segoe UI,system-ui,-apple-system,sans-serif}#root{min-height:100vh}@keyframes cardIn{0%{opacity:0;transform:translateY(24px)scale(.97)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes slideUp{0%{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}@keyframes blobFloat1{0%{transform:translate(0)scale(1)rotate(0)}25%{transform:translate(60px,-50px)scale(1.08)rotate(15deg)}50%{transform:translate(30px,-90px)scale(.95)rotate(30deg)}75%{transform:translate(-40px,-40px)scale(1.05)rotate(10deg)}to{transform:translate(0)scale(1)rotate(0)}}@keyframes blobFloat2{0%{transform:translate(0)scale(1)rotate(0)}33%{transform:translate(-70px,50px)scale(1.1)rotate(-20deg)}66%{transform:translate(40px,80px)scale(.92)rotate(-10deg)}to{transform:translate(0)scale(1)rotate(0)}}@keyframes blobFloat3{0%{transform:translate(0)scale(1)}20%{transform:translate(50px,-30px)scale(1.15)}50%{transform:translate(-30px,50px)scale(.9)}80%{transform:translate(40px,20px)scale(1.05)}to{transform:translate(0)scale(1)}}@keyframes blobFloat4{0%{transform:translate(0)scale(1)}30%{transform:translate(-60px,-40px)scale(1.2)}60%{transform:translate(50px,30px)scale(.85)}to{transform:translate(0)scale(1)}}@keyframes shimmer{0%{left:-100%}to{left:150%}}.auth-container{background:#070f1c;justify-content:center;align-items:center;min-height:100vh;padding:24px;display:flex;position:relative;overflow:hidden}.auth-bg{filter:blur(90px);pointer-events:none;z-index:0;position:absolute;inset:-150px}.auth-blob{will-change:transform;border-radius:50%;position:absolute}.auth-blob-1{background:#1e3a8ad9;width:550px;height:550px;animation:5s ease-in-out infinite blobFloat1;top:5%;left:-5%}.auth-blob-2{background:#11255ae6;width:500px;height:500px;animation:4s ease-in-out infinite blobFloat2;bottom:0%;right:-5%}.auth-blob-3{background:#f5c51838;width:300px;height:300px;animation:5s ease-in-out infinite blobFloat3;top:35%;right:20%}.auth-blob-4{background:#3b82f633;width:260px;height:260px;animation:4s ease-in-out infinite blobFloat4;top:15%;left:35%}.auth-card{z-index:1;-webkit-backdrop-filter:blur(28px);background:#ffffff0f;border:1px solid #ffffff1c;border-radius:24px;width:100%;max-width:420px;padding:48px 44px;animation:.6s both cardIn;position:relative;box-shadow:0 8px 40px #00000080,inset 0 1px #ffffff1a}.auth-logo{filter:drop-shadow(0 4px 16px #0006);width:260px;margin:0 auto 28px;display:block}.auth-title{color:#fff;text-align:center;margin-bottom:6px;font-size:1.65rem;font-weight:700;animation:.5s .15s both slideUp}.auth-subtitle-text{color:#ffffff80;text-align:center;margin-bottom:32px;font-size:.875rem;animation:.5s .2s both slideUp}.auth-form{flex-direction:column;gap:18px;display:flex}.form-group{flex-direction:column;gap:7px;display:flex}.form-group:first-child{animation:.5s .25s both slideUp}.form-group:nth-child(2){animation:.5s .32s both slideUp}.form-group:nth-child(3){animation:.5s .39s both slideUp}.form-group label{color:#ffffffa6;text-transform:uppercase;letter-spacing:.07em;font-size:.75rem;font-weight:600}.form-group input{color:#fff;background:#ffffff12;border:1px solid #ffffff1f;border-radius:10px;outline:none;padding:12px 16px;font-size:.95rem;transition:border-color .2s,background .2s,box-shadow .2s}.form-group input::placeholder{color:#ffffff40}.form-group input:focus{background:#ffffff1a;border-color:#f5c51899;box-shadow:0 0 0 3px #f5c5181a}.auth-error{color:#fca5a5;text-align:center;background:#dc262626;border:1px solid #dc26264d;border-radius:8px;padding:10px 14px;font-size:.85rem;animation:.3s both slideUp}.auth-button{color:#0d1b2a;cursor:pointer;background:linear-gradient(135deg,#f5c518 0%,#f59e0b 100%);border:none;border-radius:10px;margin-top:6px;padding:14px;font-size:.95rem;font-weight:700;transition:transform .15s,box-shadow .2s,opacity .2s;animation:.5s .45s both slideUp;position:relative;overflow:hidden}.auth-button:before{content:"";background:linear-gradient(90deg,#0000,#ffffff40,#0000);width:60%;height:100%;transition:left .5s;position:absolute;top:0;left:-100%}.auth-button:hover:not(:disabled):before{left:150%}.auth-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 8px 24px #f5c51866}.auth-button:active:not(:disabled){transform:translateY(0)}.auth-button:disabled{opacity:.55;cursor:not-allowed}.auth-footer{text-align:center;color:#ffffff73;margin-top:24px;font-size:.875rem;animation:.5s .5s both slideUp}.auth-footer a{color:#f5c518;font-weight:600;text-decoration:none;transition:opacity .2s}.auth-footer a:hover{opacity:.8}.auth-divider{background:linear-gradient(90deg,#f5c518,#f59e0b);border-radius:2px;width:40px;height:3px;margin:0 auto 28px;animation:.5s .18s both slideUp}@media (width<=480px){.auth-card{padding:36px 24px}}@keyframes fadeInDown{0%{opacity:0;transform:translateY(-16px)}to{opacity:1;transform:translateY(0)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes stepIn{0%{opacity:0;transform:translate(-10px)}to{opacity:1;transform:translate(0)}}.teacher-container{background:#f1f5f9;flex-direction:column;min-height:100vh;display:flex}.teacher-header{z-index:100;background:linear-gradient(135deg,#0d1b2a 0%,#1a2f5e 100%);justify-content:space-between;align-items:center;height:68px;padding:0 40px;animation:.5s both fadeInDown;display:flex;position:sticky;top:0;box-shadow:0 2px 16px #0d1b2a66}.teacher-logo{filter:drop-shadow(0 2px 8px #0000004d);width:auto;height:36px}.teacher-header-right{align-items:center;gap:16px;display:flex}.teacher-greeting{color:#ffffffb3;font-size:.875rem}.teacher-greeting strong{color:#fff;font-weight:600}.teacher-logout{color:#ffffffd9;cursor:pointer;background:0 0;border:1.5px solid #ffffff40;border-radius:8px;padding:8px 18px;font-size:.85rem;font-weight:500;transition:background .2s,border-color .2s}.teacher-logout:hover{color:#fff;background:#ffffff1a;border-color:#ffffff80}.teacher-subjects-main{flex-direction:column;flex:1;gap:32px;width:100%;max-width:1100px;margin:0 auto;padding:48px 40px;animation:.5s .15s both fadeIn;display:flex}.teacher-main{flex-direction:column;flex:1;gap:24px;width:100%;max-width:760px;margin:0 auto;padding:48px 40px;animation:.5s .15s both fadeIn;display:flex}.subjects-header{justify-content:space-between;align-items:center;gap:16px;animation:.5s .1s both slideUp;display:flex}.subjects-title{color:#0d1b2a;font-size:1.5rem;font-weight:700}.subjects-subtitle{color:#6b7280;margin-top:4px;font-size:.875rem}.subjects-create-btn{color:#fff;cursor:pointer;white-space:nowrap;background:linear-gradient(135deg,#1a2f5e 0%,#1e3a8a 100%);border:none;border-radius:10px;flex-shrink:0;align-items:center;gap:8px;padding:12px 22px;font-size:.9rem;font-weight:600;transition:transform .15s,box-shadow .2s;display:flex}.subjects-create-btn:hover{transform:translateY(-2px);box-shadow:0 8px 24px #1a2f5e59}.subjects-grid{grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:20px;display:grid}.subject-card{cursor:pointer;background:#fff;border:1.5px solid #0000;border-radius:16px;flex-direction:column;gap:10px;padding:28px 24px;transition:transform .2s,box-shadow .2s,border-color .2s;animation:.4s both slideUp;display:flex;box-shadow:0 2px 12px #0000000f}.subject-card:hover{border-color:#1a2f5e;transform:translateY(-4px);box-shadow:0 12px 32px #1a2f5e1f}.subject-card-icon{font-size:2rem;line-height:1}.subject-card-name{color:#0d1b2a;font-size:1.05rem;font-weight:700;line-height:1.3}.subject-card-desc{color:#6b7280;font-size:.85rem;line-height:1.5}.subject-card-footer{border-top:1px solid #f3f4f6;justify-content:space-between;align-items:center;margin-top:auto;padding-top:14px;display:flex}.subject-badge{border-radius:20px;align-items:center;gap:6px;padding:4px 10px;font-size:.75rem;font-weight:600;display:inline-flex}.subject-badge.has-doc{color:#16a34a;background:#dcfce7}.subject-badge.no-doc{color:#a16207;background:#fef9c3}.subject-badge-dot{background:currentColor;border-radius:50%;flex-shrink:0;width:6px;height:6px}.subject-delete-btn{cursor:pointer;color:#d1d5db;background:0 0;border:none;border-radius:6px;padding:4px 6px;font-size:1rem;line-height:1;transition:color .2s,background .2s}.subject-delete-btn:hover{color:#dc2626;background:#fef2f2}.subjects-empty{text-align:center;padding:80px 40px;animation:.5s both fadeIn}.subjects-empty-icon{margin-bottom:16px;font-size:3rem}.subjects-empty-text{color:#6b7280;margin-bottom:6px;font-size:1rem;font-weight:500}.subjects-empty-hint{color:#9ca3af;font-size:.875rem}.teacher-back-btn{color:#6b7280;cursor:pointer;background:0 0;border:none;align-items:center;gap:6px;padding:0;font-size:.875rem;font-weight:500;transition:color .2s;animation:.4s both fadeIn;display:inline-flex}.teacher-back-btn:hover{color:#0d1b2a}.teacher-subject-header{animation:.4s .1s both slideUp}.teacher-subject-title{color:#0d1b2a;margin-bottom:6px;font-size:1.5rem;font-weight:700}.teacher-subject-subtitle{color:#6b7280;margin-bottom:4px;font-size:.875rem}.teacher-subject-current{color:#6b7280;margin-top:6px;font-size:.875rem}.teacher-subject-current strong{color:#0d1b2a}.teacher-card{background:#fff;border-radius:16px;padding:36px;animation:.5s .2s both slideUp;box-shadow:0 4px 24px #0000000f}.teacher-card-header h2{color:#0d1b2a;margin-bottom:6px;font-size:1.15rem;font-weight:700}.teacher-card-header p{color:#6b7280;margin-bottom:28px;font-size:.875rem}.teacher-dropzone{text-align:center;cursor:pointer;border:2px dashed #d1d5db;border-radius:12px;margin-bottom:20px;padding:40px 24px;transition:border-color .2s,background .2s}.teacher-dropzone:hover,.teacher-dropzone.has-file{background:#f0f4ff;border-color:#1a2f5e}.teacher-dropzone-icon{margin-bottom:12px;font-size:2.5rem}.teacher-dropzone-text{color:#374151;margin-bottom:4px;font-size:.95rem;font-weight:500}.teacher-dropzone-hint{color:#9ca3af;font-size:.8rem}.teacher-dropzone-name{color:#1a2f5e;font-size:.95rem;font-weight:600}.teacher-dropzone.is-loading{cursor:default;opacity:.6}.teacher-progress{margin-bottom:20px;animation:.3s both fadeIn}.teacher-progress-bar-track{background:#e5e7eb;border-radius:99px;width:100%;height:6px;margin-bottom:6px;overflow:hidden}.teacher-progress-bar-fill{background:linear-gradient(90deg,#1a2f5e,#f5c518);border-radius:99px;height:100%;transition:width .5s}.teacher-progress-percent{color:#1a2f5e;text-align:right;margin-bottom:12px;font-size:.78rem;font-weight:600;display:block}.teacher-steps{flex-direction:column;gap:6px;list-style:none;display:flex}.teacher-steps li{color:#6b7280;align-items:center;gap:8px;font-size:.85rem;animation:.3s both stepIn;display:flex}.teacher-steps li.active{color:#1a2f5e;font-weight:600}.teacher-steps li.done{color:#9ca3af}.step-icon{flex-shrink:0;font-size:.9rem}.teacher-error{color:#dc2626;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;margin-bottom:16px;padding:10px 14px;font-size:.85rem}.teacher-success{color:#16a34a;background:#dcfce7;border:1px solid #bbf7d0;border-radius:8px;margin-bottom:16px;padding:10px 14px;font-size:.85rem;animation:.3s both slideUp}.teacher-button{color:#fff;cursor:pointer;background:linear-gradient(135deg,#1a2f5e 0%,#1e3a8a 100%);border:none;border-radius:10px;width:100%;padding:14px;font-size:.95rem;font-weight:600;transition:transform .15s,box-shadow .2s}.teacher-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 8px 24px #1a2f5e59}.teacher-button:disabled{opacity:.6;cursor:not-allowed}.teacher-button-loading{justify-content:center;align-items:center;gap:10px;display:flex}.spinner{border:2px solid #ffffff4d;border-top-color:#fff;border-radius:50%;width:16px;height:16px;animation:.7s linear infinite spin;display:inline-block}.disciplina-header-left{align-items:center;gap:20px;display:flex}.disciplina-thumb-edit{cursor:pointer;background:linear-gradient(135deg,#e8edf5,#d1d9ee);border:2px dashed #cbd5e1;border-radius:12px;flex-shrink:0;width:80px;height:80px;transition:border-color .2s;position:relative;overflow:hidden}.disciplina-thumb-edit:hover{border-color:#1a2f5e}.disciplina-thumb-edit img{object-fit:cover;width:100%;height:100%;display:block}.disciplina-thumb-add{color:#94a3b8;justify-content:center;align-items:center;font-size:1.6rem;display:flex;position:absolute;inset:0}.disciplina-thumb-overlay{color:#fff;opacity:0;letter-spacing:.05em;background:#0d1b2a8c;justify-content:center;align-items:center;font-size:.7rem;font-weight:600;transition:opacity .2s;display:flex;position:absolute;inset:0}.disciplina-thumb-edit:hover .disciplina-thumb-overlay{opacity:1}.quiz-card{margin-top:0;animation:.5s .3s both slideUp}.quiz-actions{flex-wrap:wrap;gap:12px;display:flex}.quiz-regen-btn{color:#475569;cursor:pointer;background:#fff;border:1.5px solid #cbd5e1;border-radius:10px;padding:10px 20px;font-size:14px;font-weight:600;transition:border-color .2s,background .2s}.quiz-regen-btn:hover:not(:disabled){background:#f8fafc;border-color:#94a3b8}.quiz-regen-btn:disabled{opacity:.5;cursor:wait}@media (width<=640px){.teacher-header{padding:0 20px}.teacher-main,.teacher-subjects-main{padding:24px 16px}.teacher-card{padding:24px 20px}.subjects-header{flex-direction:column;align-items:flex-start}.subjects-create-btn{justify-content:center;width:100%}.subjects-grid{grid-template-columns:1fr}}.quiz-questions-list{flex-direction:column;gap:16px;margin-top:8px;display:flex}.quiz-question-card{background:#fff;border-radius:14px;padding:20px 24px;transition:box-shadow .2s;box-shadow:0 2px 10px #00000012}.quiz-question-card.student{cursor:default}.quiz-question-card.correct-q{border-left:4px solid #22c55e}.quiz-question-card.wrong-q{border-left:4px solid #ef4444}.quiz-question-top{align-items:flex-start;gap:12px;margin-bottom:16px;display:flex}.quiz-question-num{color:#6366f1;white-space:nowrap;background:#eef2ff;border-radius:6px;flex-shrink:0;margin-top:2px;padding:2px 8px;font-size:12px;font-weight:700}.quiz-question-text{color:#1e293b;flex:1;font-size:15px;font-weight:600;line-height:1.5}.quiz-q-result-icon{color:#22c55e;flex-shrink:0;font-size:18px;font-weight:700}.quiz-question-card.wrong-q .quiz-q-result-icon{color:#ef4444}.quiz-question-btns{flex-shrink:0;gap:6px;display:flex}.quiz-btn-edit,.quiz-btn-regen,.quiz-btn-del{cursor:pointer;border:none;border-radius:8px;padding:4px 10px;font-size:13px;font-weight:600;transition:opacity .15s}.quiz-btn-edit{color:#4338ca;background:#e0e7ff}.quiz-btn-regen{color:#92400e;background:#fef3c7;padding:4px 9px;font-size:15px}.quiz-btn-del{color:#b91c1c;background:#fee2e2}.quiz-btn-edit:hover,.quiz-btn-regen:hover,.quiz-btn-del:hover{opacity:.75}.quiz-btn-regen:disabled{opacity:.5;cursor:wait}.quiz-options-grid{grid-template-columns:1fr 1fr;gap:10px;display:grid}@media (width<=540px){.quiz-options-grid{grid-template-columns:1fr}}.quiz-option-pill{color:#334155;background:#f8fafc;border:2px solid #e2e8f0;border-radius:10px;align-items:center;gap:6px;padding:10px 14px;font-size:14px;transition:border-color .15s,background .15s;display:flex}.quiz-option-pill.student{cursor:pointer;background:#fff}.quiz-option-pill.student:hover:not(:disabled){background:#eef2ff;border-color:#a5b4fc}.quiz-option-pill.selected{color:#3730a3;background:#eef2ff;border-color:#6366f1;font-weight:600}.quiz-option-pill.correct{color:#166534;background:#f0fdf4;border-color:#22c55e;font-weight:600}.quiz-option-pill.wrong{color:#991b1b;background:#fef2f2;border-color:#ef4444}.quiz-option-pill:disabled{cursor:default}.quiz-correct-mark{color:#16a34a;font-weight:700}.quiz-score-banner{border-radius:16px;align-items:center;gap:16px;margin-bottom:8px;padding:20px 28px;animation:.4s both slideUp;display:flex}.quiz-score-banner.perfect{background:linear-gradient(135deg,#dcfce7,#bbf7d0);border:1.5px solid #86efac}.quiz-score-banner.good{background:linear-gradient(135deg,#fef9c3,#fde68a);border:1.5px solid #fcd34d}.quiz-score-banner.low{background:linear-gradient(135deg,#fee2e2,#fecaca);border:1.5px solid #fca5a5}.quiz-score-number{color:#1e293b;font-size:32px;font-weight:800;line-height:1}.quiz-score-label{color:#334155;font-size:16px;font-weight:600}.quiz-submit-btn{width:100%;margin-top:24px}.quiz-back-btn{margin-bottom:0}.quiz-header-actions{align-items:center;gap:10px;display:flex}.quiz-unpublish-btn{color:#b91c1c;cursor:pointer;background:#fff;border:2px solid #fca5a5;border-radius:10px;padding:8px 18px;font-size:14px;font-weight:600;transition:background .15s}.quiz-unpublish-btn:hover{background:#fee2e2}.quiz-add-btn{background:#0d1b2a!important}.quiz-results-panel{background:#fff;border-radius:16px;flex-wrap:wrap;gap:24px;margin-bottom:8px;padding:24px 28px;display:flex;box-shadow:0 2px 10px #00000012}.quiz-results-stat{flex-direction:column;align-items:center;min-width:80px;display:flex}.quiz-results-num{color:#3730a3;font-size:28px;font-weight:800}.quiz-results-label{color:#64748b;text-align:center;font-size:12px;font-weight:500}.quiz-results-questions{flex-direction:column;flex:1;gap:10px;min-width:200px;display:flex}.quiz-results-row{flex-direction:column;gap:4px;display:flex}.quiz-results-q{color:#334155;font-size:13px;font-weight:500}.quiz-results-bar-wrap{align-items:center;gap:8px;display:flex}.quiz-results-bar{background:linear-gradient(90deg,#6366f1,#818cf8);border-radius:99px;min-width:4px;height:8px;transition:width .6s}.quiz-results-pct{color:#6366f1;font-size:12px;font-weight:700}.quiz-edit-modal{flex-direction:column;gap:14px;width:min(520px,92vw);display:flex}.quiz-edit-option{align-items:center;gap:10px;display:flex}.quiz-edit-option input[type=radio]{accent-color:#6366f1;flex-shrink:0;width:16px;height:16px}.quiz-edit-option input[type=text]{color:#1e293b;border:1.5px solid #cbd5e1;border-radius:8px;outline:none;flex:1;padding:8px 12px;font-size:14px;transition:border-color .15s}.quiz-edit-option input[type=text]:focus{border-color:#6366f1}.subject-card-actions{align-items:center;gap:8px;display:flex}.subject-quiz-badge{color:#4338ca;cursor:pointer;white-space:nowrap;background:#eef2ff;border:1.5px solid #a5b4fc;border-radius:99px;padding:3px 10px;font-size:12px;font-weight:700;transition:background .15s,transform .15s}.subject-quiz-badge:hover{background:#e0e7ff;transform:scale(1.05)}@keyframes messagePop{0%{opacity:0;transform:translateY(10px)scale(.97)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes typing{0%,80%,to{opacity:.4;transform:scale(.6)}40%{opacity:1;transform:scale(1)}}.student-container{background:#f1f5f9;flex-direction:column;min-height:100vh;display:flex}.student-header{z-index:100;background:linear-gradient(135deg,#0d1b2a 0%,#1a2f5e 100%);justify-content:space-between;align-items:center;height:68px;padding:0 40px;animation:.5s both fadeInDown;display:flex;position:sticky;top:0;box-shadow:0 2px 16px #0d1b2a66}.student-logo{filter:drop-shadow(0 2px 8px #0000004d);width:auto;height:36px}.student-header-right{align-items:center;gap:16px;display:flex}.student-greeting{color:#ffffffb3;font-size:.875rem}.student-greeting strong{color:#fff;font-weight:600}.student-logout{color:#ffffffd9;cursor:pointer;background:0 0;border:1.5px solid #ffffff40;border-radius:8px;padding:8px 18px;font-size:.85rem;transition:background .2s,border-color .2s}.student-logout:hover{color:#fff;background:#ffffff1a;border-color:#ffffff80}.student-subjects-main{flex-direction:column;flex:1;gap:32px;width:100%;max-width:1100px;margin:0 auto;padding:48px 40px;animation:.5s .15s both fadeIn;display:flex}.subject-enter-hint{color:#1a2f5e;font-size:.8rem;font-weight:600}.subject-card-meta{color:#9ca3af;font-size:.8rem}.student-main{flex:1;padding:32px 40px;animation:.5s .15s both fadeIn;display:flex}.student-chat-wrapper{background:#fff;border-radius:20px;flex-direction:column;flex:1;width:100%;max-width:800px;margin:0 auto;animation:.5s .2s both slideUp;display:flex;overflow:hidden;box-shadow:0 4px 32px #00000014}.student-chat-header{background:#fafafa;border-bottom:1px solid #f0f0f0;align-items:center;gap:12px;padding:14px 20px;display:flex}.student-back-btn{color:#6b7280;cursor:pointer;background:0 0;border:1.5px solid #e5e7eb;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:34px;height:34px;font-size:1rem;transition:background .2s,border-color .2s,color .2s;display:flex}.student-back-btn:hover{color:#0d1b2a;background:#f3f4f6;border-color:#d1d5db}.student-chat-status{background:#22c55e;border-radius:50%;flex-shrink:0;width:10px;height:10px;box-shadow:0 0 0 3px #22c55e33}.student-chat-title{flex-direction:column;gap:2px;min-width:0;display:flex}.student-chat-title>span:first-child{color:#0d1b2a;white-space:nowrap;text-overflow:ellipsis;font-size:.9rem;font-weight:600;overflow:hidden}.student-chat-subtitle{color:#9ca3af;font-size:.75rem;font-weight:400}.student-messages{flex-direction:column;flex:1;gap:16px;min-height:0;max-height:calc(100vh - 280px);padding:24px 20px;display:flex;overflow-y:auto}.student-messages::-webkit-scrollbar{width:4px}.student-messages::-webkit-scrollbar-track{background:0 0}.student-messages::-webkit-scrollbar-thumb{background:#e5e7eb;border-radius:4px}.student-message{gap:12px;animation:.3s both messagePop;display:flex}.student-message.user{flex-direction:row-reverse}.student-avatar{color:#fff;background:linear-gradient(135deg,#1a2f5e,#1e3a8a);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:34px;height:34px;margin-top:2px;font-size:.7rem;font-weight:700;display:flex}.student-bubble{color:#1f2937;border-radius:16px;max-width:70%;padding:12px 16px;font-size:.9rem;line-height:1.6}.student-message.assistant .student-bubble{background:#f3f4f6;border-radius:4px 16px 16px}.student-message.user .student-bubble{color:#fff;background:linear-gradient(135deg,#1a2f5e,#1e3a8a);border-radius:16px 4px 16px 16px}.student-bubble p{margin:0 0 4px}.student-bubble p:last-child{margin:0}.student-bubble p:empty{display:none}.student-typing{align-items:center;gap:5px;padding:16px 20px;display:flex}.student-typing span{background:#9ca3af;border-radius:50%;width:8px;height:8px;animation:1.2s ease-in-out infinite typing;display:inline-block}.student-typing span:nth-child(2){animation-delay:.2s}.student-typing span:nth-child(3){animation-delay:.4s}.student-suggestions{background:#fafafa;border-top:1px solid #f0f0f0;flex-wrap:wrap;gap:8px;padding:10px 20px 4px;animation:.3s both fadeIn;display:flex}.student-suggestion-chip{color:#1a2f5e;cursor:pointer;text-align:left;background:#fff;border:1.5px solid #e5e7eb;border-radius:20px;padding:6px 14px;font-size:.78rem;font-weight:500;line-height:1.4;transition:background .15s,border-color .15s,transform .15s}.student-suggestion-chip:hover{background:#f0f4ff;border-color:#1a2f5e;transform:translateY(-1px)}.student-input-area{background:#fafafa;border-top:1px solid #f0f0f0;align-items:flex-end;gap:12px;padding:16px 20px;display:flex}.student-input-area textarea{resize:none;color:#111;background:#fff;border:1.5px solid #e5e7eb;border-radius:12px;outline:none;flex:1;max-height:120px;padding:12px 16px;font-family:inherit;font-size:.9rem;line-height:1.5;transition:border-color .2s,box-shadow .2s;overflow-y:auto}.student-input-area textarea:focus{border-color:#1a2f5e;box-shadow:0 0 0 3px #1a2f5e1a}.student-input-area textarea::placeholder{color:#9ca3af}.student-input-area button{color:#fff;cursor:pointer;background:linear-gradient(135deg,#1a2f5e,#1e3a8a);border:none;border-radius:12px;flex-shrink:0;width:44px;height:44px;font-size:1rem;transition:transform .15s,box-shadow .2s,opacity .2s}.student-input-area button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 18px #1a2f5e59}.student-input-area button:disabled{opacity:.45;cursor:not-allowed}.disciplina-thumb{object-fit:cover;border-radius:10px;width:100%;height:140px;display:block}.disciplina-thumb-placeholder{background:linear-gradient(135deg,#e8edf5,#d1d9ee);border-radius:10px;justify-content:center;align-items:center;width:100%;height:140px;font-size:2.5rem;display:flex}.modal-overlay{z-index:200;background:#00000073;justify-content:center;align-items:center;padding:20px;animation:.2s both fadeIn;display:flex;position:fixed;inset:0}.modal{background:#fff;border-radius:20px;width:100%;max-width:440px;padding:36px;animation:.3s both slideUp;box-shadow:0 20px 60px #0000002e}.modal-title{color:#0d1b2a;margin-bottom:24px;font-size:1.2rem;font-weight:700}.modal-group{flex-direction:column;gap:6px;margin-bottom:16px;display:flex}.modal-group label{color:#6b7280;text-transform:uppercase;letter-spacing:.06em;font-size:.75rem;font-weight:600}.modal-group input,.modal-group textarea{color:#111;resize:none;border:1.5px solid #e5e7eb;border-radius:10px;outline:none;padding:11px 14px;font-family:inherit;font-size:.9rem;transition:border-color .2s,box-shadow .2s}.modal-group input:focus,.modal-group textarea:focus{border-color:#1a2f5e;box-shadow:0 0 0 3px #1a2f5e1a}.modal-actions{justify-content:flex-end;gap:12px;margin-top:24px;display:flex}.modal-cancel{color:#6b7280;cursor:pointer;background:#f3f4f6;border:none;border-radius:8px;padding:10px 20px;font-size:.9rem;font-weight:500;transition:background .2s}.modal-cancel:hover{background:#e5e7eb}.modal-confirm{color:#fff;cursor:pointer;background:linear-gradient(135deg,#1a2f5e 0%,#1e3a8a 100%);border:none;border-radius:8px;padding:10px 24px;font-size:.9rem;font-weight:600;transition:transform .15s,box-shadow .2s}.modal-confirm:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 6px 18px #1a2f5e59}.modal-confirm:disabled{opacity:.55;cursor:not-allowed}@media (width<=640px){.student-header{padding:0 20px}.student-subjects-main{padding:24px 16px}.student-main{padding:16px}.student-messages{max-height:calc(100vh - 260px)}.student-bubble{max-width:85%}}.student-tools-row{grid-template-columns:1fr 1fr;gap:14px;margin-bottom:8px;animation:.4s both slideUp;display:grid}.student-tool-card{cursor:pointer;background:#fff;border:1.5px solid #0000;border-radius:14px;align-items:center;gap:14px;padding:16px 20px;transition:border-color .2s,box-shadow .2s,transform .15s;display:flex;box-shadow:0 2px 8px #0000000f}.student-tool-card:hover{border-color:#a5b4fc;transform:translateY(-2px);box-shadow:0 4px 16px #6366f11f}.student-tool-icon{flex-shrink:0;font-size:28px}.student-tool-name{color:#1e293b;margin-bottom:2px;font-size:15px;font-weight:700}.student-tool-desc{color:#64748b;font-size:12px}@media (width<=480px){.student-tools-row{grid-template-columns:1fr}}.fc-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:18px;margin-top:8px;display:grid}.fc-wrapper{perspective:1200px;cursor:pointer;height:200px;animation:.4s both slideUp}.fc-inner{width:100%;height:100%;transform-style:preserve-3d;transition:transform .55s cubic-bezier(.4,0,.2,1);position:relative}.fc-inner.flipped{transform:rotateY(180deg)}.fc-face{backface-visibility:hidden;text-align:center;border-radius:16px;flex-direction:column;justify-content:center;align-items:center;padding:20px 18px 14px;display:flex;position:absolute;inset:0;box-shadow:0 4px 16px #0000001a}.fc-front{color:#fff;background:linear-gradient(145deg,#1a2f5e,#0d1b2a)}.fc-back{color:#1e293b;background:#fff;border:2px solid #e2e8f0;transform:rotateY(180deg)}.fc-label{letter-spacing:.08em;text-transform:uppercase;opacity:.55;margin-bottom:10px;font-size:10px;font-weight:700}.fc-front .fc-label{color:#a5b4fc}.fc-back .fc-label{color:#94a3b8}.fc-front-text{flex:1;align-items:center;font-size:17px;font-weight:700;line-height:1.35;display:flex}.fc-back-text{color:#334155;flex:1;align-items:center;font-size:13px;line-height:1.55;display:flex;overflow-y:auto}.fc-hint{opacity:.45;margin-top:8px;font-size:10px}.fc-actions{gap:6px;margin-top:10px;display:flex}.fc-btn-edit,.fc-btn-del{cursor:pointer;opacity:.7;border:none;border-radius:6px;padding:3px 8px;font-size:13px;transition:opacity .15s}.fc-front .fc-btn-edit{color:#fff;background:#ffffff26}.fc-front .fc-btn-del{color:#fca5a5;background:#ef444440}.fc-back .fc-btn-edit{color:#4338ca;background:#e0e7ff}.fc-back .fc-btn-del{color:#b91c1c;background:#fee2e2}.fc-btn-edit:hover,.fc-btn-del:hover{opacity:1}.fc-modal{flex-direction:column;gap:14px;width:min(480px,92vw);display:flex}.fc-char-count{color:#94a3b8;text-align:right;margin-top:4px;font-size:11px;display:block}.notes-layout{flex:1;height:calc(100vh - 68px);min-height:0;display:flex;overflow:hidden}.notes-sidebar{background:#fff;border-right:1.5px solid #e2e8f0;flex-direction:column;width:280px;min-width:240px;display:flex;overflow:hidden}.notes-sidebar-header{border-bottom:1px solid #f1f5f9;justify-content:space-between;align-items:center;gap:8px;padding:16px 16px 8px;display:flex}.notes-back-btn{font-size:13px!important}.notes-new-btn{white-space:nowrap;padding:6px 14px!important;font-size:13px!important}.notes-sidebar-title{text-transform:uppercase;letter-spacing:.07em;color:#94a3b8;padding:10px 16px 6px;font-size:11px;font-weight:700}.notes-list{flex:1;padding:0 8px 16px;list-style:none;overflow-y:auto}.notes-item{cursor:pointer;border-radius:10px;margin-bottom:2px;padding:10px 32px 10px 10px;transition:background .15s;position:relative}.notes-item:hover{background:#f8fafc}.notes-item.active{background:#eef2ff}.notes-item-title{color:#1e293b;white-space:nowrap;text-overflow:ellipsis;margin-bottom:3px;font-size:14px;font-weight:600;overflow:hidden}.notes-item.active .notes-item-title{color:#3730a3}.notes-item-meta{flex-direction:column;gap:1px;display:flex}.notes-item-snippet{color:#94a3b8;white-space:nowrap;text-overflow:ellipsis;font-size:12px;overflow:hidden}.notes-item-date{color:#cbd5e1;font-size:11px}.notes-item-del{color:#cbd5e1;cursor:pointer;opacity:0;background:0 0;border:none;border-radius:4px;padding:2px 4px;font-size:12px;transition:opacity .15s,color .15s;position:absolute;top:10px;right:8px}.notes-item:hover .notes-item-del{opacity:1}.notes-item-del:hover{color:#ef4444}.notes-empty{color:#94a3b8;text-align:center;flex-direction:column;align-items:center;gap:8px;padding:40px 16px;font-size:14px;display:flex}.notes-empty-icon{font-size:32px}.notes-empty-hint{color:#94a3b8;padding:0 16px;font-size:13px}.notes-editor{background:#fafbfc;flex-direction:column;flex:1;display:flex;overflow:hidden}.notes-editor-empty{color:#94a3b8;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:12px;font-size:15px;display:flex}.notes-editor-empty-icon{font-size:48px}.notes-editor-header{border-bottom:1.5px solid #e2e8f0;align-items:center;gap:12px;padding:20px 28px 12px;display:flex}.notes-editor-title{color:#0d1b2a;background:0 0;border:none;outline:none;flex:1;padding:0;font-size:22px;font-weight:700}.notes-save-indicator{color:#94a3b8;text-align:right;flex-shrink:0;min-width:70px;font-size:13px}.notes-editor-body{color:#334155;resize:none;background:0 0;border:none;outline:none;flex:1;padding:20px 28px;font-family:inherit;font-size:15px;line-height:1.7}@media (width<=640px){.notes-layout{flex-direction:column;height:auto}.notes-sidebar{width:100%;min-width:unset;border-bottom:1.5px solid #e2e8f0;border-right:none;height:40vh}.notes-editor{height:60vh}.notes-editor-header{padding:14px 16px 10px}.notes-editor-body{padding:12px 16px}}
