.notes-list{width:100%;display:flex;flex-direction:column;gap:1.5rem}.notes-layout{display:grid;grid-template-columns:280px 1fr;gap:1.5rem;width:100%}.tree-panel{background:#fff;border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 10px 24px #0f172a14;padding:1rem;display:flex;flex-direction:column;gap:.75rem}.tree-header{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.tree-title{font-weight:700;color:#111827}.tree-body{display:flex;flex-direction:column;gap:.35rem;max-height:75vh;overflow-y:auto}.tree-node{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.45rem .65rem;border-radius:10px;cursor:pointer;transition:background .2s ease;border:1px solid transparent}.tree-node.root{font-weight:700}.tree-node:hover{background:#f3f4f6}.tree-node.active{background:#eef2ff;border-color:#c7d2fe}.tree-node-label{flex:1;color:#111827}.tree-children{display:flex;flex-direction:column;gap:.25rem}.tree-folder{width:100%}.tree-toggle{width:18px;display:inline-flex;justify-content:center;color:#6b7280}.tree-actions{display:inline-flex;gap:.25rem}.tree-action{border:none;background:#f3f4f6;border-radius:6px;padding:.1rem .45rem;cursor:pointer;font-size:.9rem;color:#374151}.tree-action:hover{background:#e5e7eb}.btn-compact{padding:.45rem .9rem;font-size:.9rem}.notes-header{display:flex;justify-content:space-between;align-items:center;padding:1.25rem 1.5rem;background:linear-gradient(135deg,#f6f9ff,#f1f5ff);border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 10px 30px #0f172a14}.breadcrumb{font-weight:700;color:#1f2937;letter-spacing:-.01em}.notes-header.top-bar{align-items:center}.header-actions{display:flex;justify-content:flex-end;align-items:center;gap:.75rem}.notes-header h2{font-size:2rem;color:#333}.btn{padding:.8rem 1.6rem;border:none;border-radius:10px;font-size:1rem;cursor:pointer;transition:all .25s ease;font-weight:600}.btn-primary{background:linear-gradient(135deg,#7c3aed,#4f46e5);color:#fff;box-shadow:0 8px 20px #4f46e540}.btn-primary:hover{transform:translateY(-1px) scale(1.01);box-shadow:0 12px 26px #4f46e559}.loading{text-align:center;padding:3rem;font-size:1.2rem;color:#666}.error-message{background-color:#fee;color:#c33;padding:1rem;border-radius:8px;margin-bottom:1rem;border-left:4px solid #c33}.empty-state{text-align:center;padding:4rem 2rem;color:#666;font-size:1.1rem}.notes-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:1.25rem}.note-card{background:#fff;border-radius:14px;padding:1.25rem 1.25rem 1rem;box-shadow:0 12px 30px #0f172a1a;cursor:pointer;transition:all .28s ease;display:flex;flex-direction:column;border:1px solid #e5e7eb;position:relative;overflow:hidden}.note-card:hover{transform:translateY(-3px);box-shadow:0 18px 36px #0f172a24}.note-card-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:1rem}.note-card-header h3{font-size:1.2rem;color:#111827;flex:1;margin-right:1rem;letter-spacing:-.01em}.note-chip{position:absolute;top:12px;right:12px;padding:.35rem .75rem;border-radius:999px;font-size:.8rem;font-weight:700;color:#1f2937;background:#eef2ff;border:1px solid #e0e7ff;box-shadow:0 6px 14px #4f46e51f}.btn-delete{background:#fee2e2;color:#b91c1c;border:none;border-radius:50%;width:28px;height:28px;font-size:1.4rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease;flex-shrink:0}.btn-delete:hover{background:#fecaca;transform:scale(1.08)}.note-meta{font-size:.88rem;color:#6b7280;margin-top:.25rem;padding-top:.75rem;border-top:1px solid #edf2f7;display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:.5rem}.note-status-label,.note-comment-label{display:inline-flex;align-items:center;gap:.4rem;font-weight:700;color:#111827;padding:.35rem .6rem;border-radius:10px;background:#eef2ff;width:fit-content;border:1px solid #e5e7eb}.note-meta.simple{border:none;padding-top:.25rem;flex-direction:column;align-items:flex-start;gap:.4rem}.note-meta.footer{margin-top:auto}.note-line{display:flex;gap:.35rem;align-items:center;color:#1f2937}.note-line .label{font-weight:700;color:#4b5563}.note-line .value{font-weight:600;color:#111827}.note-card.status-red{border:2px solid #fecdd3;box-shadow:0 12px 26px #f43f5e1f}.note-card.status-orange{border:2px solid #fed7aa;box-shadow:0 12px 26px #f973161f}.note-card.status-green{border:2px solid #bbf7d0;box-shadow:0 12px 26px #22c55e1f}.note-card.status-yellow{border:2px solid #fef08a;box-shadow:0 12px 26px #eab3081f}.note-card.status-blue{border:2px solid #bfdbfe;box-shadow:0 12px 26px #3b82f61f}.user-form{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:1.25rem 1.25rem 1.5rem;box-shadow:0 10px 24px #0f172a0f;display:flex;flex-direction:column;gap:.75rem}.user-form .field-label{font-size:.95rem;color:#111827;font-weight:700}.user-form .select-input,.user-form input{font-size:1rem}.user-form .editor-row{gap:.75rem}.user-form .editor-actions{margin-top:.5rem}.subject-checkbox-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:.5rem 1rem;padding:.5rem 0}.checkbox-item{display:flex;gap:.4rem;align-items:center;font-weight:500;color:#374151}.user-card-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1rem}.user-admin-grid{display:grid;grid-template-columns:280px 220px minmax(480px,1fr);gap:1.25rem;align-items:start;width:100%}.user-admin-wrapper{max-width:none;margin:0 auto;width:100%}.user-admin-right{display:flex;flex-direction:column;gap:1rem;min-width:0}.user-list-panel{width:100%;background:#fff;border-radius:12px;border:1px solid #e5e7eb;box-shadow:0 8px 18px #0f172a0f;padding:.75rem .9rem 1rem;min-height:520px;max-height:calc(100vh - 220px);overflow:hidden;display:flex;flex-direction:column}.form-header{display:flex;justify-content:space-between;align-items:flex-start;gap:.75rem}.form-header h3{margin:0}.form-header .muted{color:#6b7280}.subject-header{display:flex;justify-content:space-between;align-items:center;gap:.5rem}.subject-actions{display:flex;gap:.5rem}.subject-actions-top{justify-content:flex-start;margin-bottom:.35rem}.role-pill{padding:.3rem .65rem;border-radius:999px;font-weight:700;text-transform:capitalize;background:#eef2ff;border:1px solid #e0e7ff;color:#312e81}.role-admin{background:#eef2ff;color:#312e81}.role-tutor{background:#ecfdf3;color:#065f46;border-color:#bbf7d0}.role-intern{background:#fef9c3;color:#92400e;border-color:#fef08a}.user-card-actions{display:flex;gap:.5rem;align-items:center}.subject-chips{display:flex;flex-wrap:wrap;gap:.35rem;align-items:center}.chip{background:#f3f4f6;border-radius:999px;padding:.2rem .65rem;font-weight:600;color:#374151;border:1px solid #e5e7eb;font-size:.85rem}.chip-more{background:#eef2ff;color:#312e81;border-color:#e0e7ff}.user-stats{display:flex;flex-wrap:wrap;gap:.75rem;margin-bottom:.75rem;width:100%}.list-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.35rem}.role-tabs{display:flex;gap:.5rem;margin-bottom:.75rem;flex-wrap:wrap}.role-tab{border:1px solid #e5e7eb;background:#f9fafb;border-radius:999px;padding:.35rem .75rem;display:inline-flex;align-items:center;gap:.45rem;font-weight:700;cursor:pointer;color:#1f2937;transition:all .15s ease}.role-tab .role-count{padding:.15rem .5rem;border-radius:999px;background:#eef2ff;border:1px solid #e0e7ff;color:#312e81;font-weight:700;font-size:.9rem}.role-tab.active{background:#ede9fe;border-color:#c7d2fe;color:#312e81}.stat-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:.85rem 1rem;box-shadow:0 6px 16px #0f172a0f;min-height:92px;min-width:160px;flex:0 0 auto}.user-admin-stats{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:.9rem;box-shadow:0 8px 18px #0f172a0f;display:flex;flex-direction:column;gap:.65rem}.role-section{border:1px solid #e5e7eb;border-radius:12px;background:#fff;margin-bottom:.75rem;box-shadow:0 8px 18px #0f172a0f;overflow:hidden}.role-header{width:100%;border:none;background:#f9fafb;padding:.65rem .9rem;display:flex;align-items:center;justify-content:space-between;cursor:pointer;font-weight:700;color:#1f2937}.role-header-left{display:flex;align-items:center;gap:.5rem}.role-title{text-transform:capitalize}.role-count{background:#eef2ff;border:1px solid #e0e7ff;padding:.25rem .55rem;border-radius:999px;font-weight:700;color:#312e81;font-size:.9rem}.role-caret{transition:transform .2s ease;font-size:1rem;color:#4b5563}.role-caret.open{transform:rotate(180deg)}.role-body{padding:.75rem .9rem 1rem;background:#fff;flex:1 1 auto;overflow-y:auto}.user-list-scroll{flex:1 1 auto;overflow-y:auto;padding-right:.35rem;max-height:calc(100vh - 260px)}.stat-label{font-weight:600;color:#6b7280;font-size:.9rem}.stat-value{font-weight:800;font-size:1.5rem;color:#111827;margin-top:.1rem}@media (max-width: 1100px){.user-admin-grid{grid-template-columns:1fr}}@media (max-width: 768px){.notes-layout{grid-template-columns:1fr}.tree-panel{max-height:none}.notes-header{flex-direction:column;align-items:flex-start;gap:1rem}.notes-grid{grid-template-columns:1fr}}.comments-panel{flex:0 1 320px;width:100%;max-width:380px;background:#fff;border-radius:14px;padding:1.5rem;box-shadow:0 18px 36px #0f172a1f;max-height:calc(100vh - 140px);overflow-y:auto;position:sticky;top:1rem;border:1px solid #e5e7eb}.comments-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.25rem;padding-bottom:1rem;border-bottom:2px solid #eef2ff}.comments-header h3{font-size:1.45rem;color:#0f172a;letter-spacing:-.01em}.unresolved-count{background:#fee2e2;color:#b91c1c;padding:.3rem .85rem;border-radius:999px;font-size:.9rem;font-weight:700;border:1px solid #fecdd3;box-shadow:0 8px 16px #f871712e}.comment-message{padding:1rem;background:#fef9c3;border:1px solid #fde68a;border-radius:10px;color:#92400e;margin-bottom:1rem;box-shadow:0 6px 14px #facc1529}.btn-add-comment{width:100%;background:linear-gradient(135deg,#10b981,#059669);color:#fff;margin-bottom:1.5rem;border-radius:12px;box-shadow:0 10px 24px #05966940}.btn-add-comment:hover{background:linear-gradient(135deg,#059669,#047857)}.add-comment-form{margin-bottom:1.5rem;padding:1rem;background:#f8fafc;border-radius:12px;border:1px solid #e5e7eb}.comment-author-input,.comment-text-input{width:100%;padding:.8rem;border:1px solid #e5e7eb;border-radius:10px;font-family:inherit;font-size:.95rem;margin-bottom:.75rem;background:#fff;box-shadow:inset 0 1px #fff9}.comment-author-input:focus,.comment-text-input:focus{outline:none;border-color:#4f46e5;box-shadow:0 0 0 3px #4f46e52e}.comment-text-input{resize:vertical;min-height:80px}.comment-form-actions{display:flex;gap:.6rem}.comment-form-actions .btn{flex:1;padding:.65rem;font-size:.92rem;border-radius:10px}.comments-section{margin-bottom:2rem}.section-title{font-size:1rem;font-weight:700;margin-bottom:1rem;color:#111827;letter-spacing:-.01em}.unresolved-title{color:#b91c1c}.resolved-title{color:#c2410c}.approved-title{color:#15803d}.comment-item{padding:1rem;border-radius:12px;margin-bottom:1rem;border:1px solid #e5e7eb;transition:all .2s ease;box-shadow:0 10px 20px #0f172a0f}.comment-item.unresolved{background:#fff5f5;border-color:#fecdd3}.comment-item.tutor-rejected{background:#fff1f2;border-color:#fecdd3}.comment-item.admin-resolved{background:#fff7ed;border-color:#fed7aa}.comment-item.approved{background:#f0fdf4;border-color:#bbf7d0}.comment-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem}.comment-author{font-weight:700;color:#0f172a}.comment-date{font-size:.85rem;color:#6b7280}.comment-content{color:#1f2937;line-height:1.65;margin-bottom:.75rem;white-space:pre-wrap}.state-pill{display:inline-block;padding:4px 10px;border-radius:999px;font-size:.78rem;font-weight:800;margin-bottom:6px;margin-right:6px;color:#0f172a;background:#eef2ff;border:1px solid #e5e7eb}.state-pill.rejected{background:#fee2e2;border-color:#fecdd3;color:#b91c1c}.comment-actions{display:flex;gap:.5rem}.btn-resolve{background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff;padding:.55rem 1rem;font-size:.9rem;border-radius:10px}.btn-resolve:hover{background:linear-gradient(135deg,#16a34a,#15803d)}.btn-reject{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff;padding:.55rem 1rem;font-size:.9rem;border-radius:10px}.btn-reject:hover{background:linear-gradient(135deg,#dc2626,#b91c1c)}.btn-approve{background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff;padding:.55rem 1rem;font-size:.9rem;border-radius:10px}.btn-approve:hover{background:linear-gradient(135deg,#16a34a,#15803d)}.btn-unresolve{background:#fef3c7;color:#92400e;padding:.55rem 1rem;font-size:.9rem;border-radius:10px;border:1px solid #fde68a}.btn-unresolve:hover{background:#fde68a}.btn-delete-small{background:#f43f5e;color:#fff;padding:.55rem 1rem;font-size:.9rem;border-radius:10px}.btn-delete-small:hover{background:#e11d48}.no-comments{text-align:center;padding:2rem;color:#999;font-style:italic}@media (max-width: 1024px){.comments-panel{width:100%;max-width:none;position:static;max-height:none}}.styles-settings{background:#fff;padding:1.75rem;border-radius:16px;box-shadow:0 18px 40px #0f172a1f;max-width:900px;margin:0 auto;border:1px solid #e5e7eb}.styles-settings h2{margin-bottom:.35rem;font-size:1.6rem;color:#0f172a;letter-spacing:-.01em}.help-text{color:#475569;margin-bottom:1rem;line-height:1.5}.styles-textarea{width:100%;min-height:320px;font-family:Courier New,monospace;font-size:.96rem;border:1px solid #e5e7eb;border-radius:12px;padding:1rem 1.1rem;resize:vertical;background:#f8fafc;color:#0f172a;box-shadow:inset 0 1px #ffffffb3}.styles-actions{display:flex;gap:.75rem;margin-top:1rem}.info-message{margin-top:.75rem;padding:.9rem;background:#ecfdf3;color:#166534;border-radius:10px;border:1px solid #bbf7d0}.error-message{margin-top:.75rem;padding:.9rem;background:#fef2f2;color:#b91c1c;border-radius:10px;border:1px solid #fecdd3}.note-editor{width:100%;display:flex;flex-direction:column;gap:.75rem}.editor-row{display:flex;gap:.75rem;flex-wrap:wrap}.select-group{display:flex;flex-direction:column;gap:6px;min-width:200px;flex:1 1 240px}.select-group label{font-weight:700;color:#0f172a;font-size:.9rem}.select-group select{padding:.55rem .75rem;border-radius:8px;border:1px solid #e5e7eb;background:#fff;font-size:.95rem}.editor-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem;padding:1rem 1.25rem;background:linear-gradient(135deg,#f6f9ff,#f1f5ff);border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 10px 30px #0f172a14}.editor-actions{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap}.btn-secondary{background:#111827;color:#fff;box-shadow:0 8px 20px #11182726}.btn-secondary:hover{background:#0f172a}.btn-comments{background:#17a2b8;color:#fff;position:relative}.btn-comments:hover{background:#138496}.comment-badge{background:#f44;color:#fff;border-radius:50%;width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:700;margin-left:.5rem}.note-title-input{width:100%;padding:1rem 1.2rem;font-size:1.45rem;font-weight:700;border:2px solid #e5e7eb;border-radius:10px;margin-bottom:.5rem;font-family:inherit;box-shadow:0 8px 20px #0f172a0a}.note-title-input:focus{outline:none;border-color:#4f46e5;box-shadow:0 12px 26px #4f46e52e}.folder-select{margin-bottom:1rem;display:flex;gap:.5rem;align-items:center}.folder-select label{font-weight:600;color:#444}.folder-select select{padding:.5rem;border:1px solid #ccc;border-radius:6px}.editor-mode-toggle{margin:.5rem 0 1rem}.raw-editor{width:100%;min-height:500px;font-family:Courier New,monospace;font-size:.95rem;border:1px solid #ccc;border-radius:8px;padding:1rem;resize:vertical;background:#fafafa}.editor-content{display:flex;gap:1rem;align-items:flex-start;flex-wrap:wrap}.editor-main{flex:1 1 720px;display:flex;flex-direction:column;background:#fff;border-radius:14px;padding:1.25rem;box-shadow:0 14px 32px #0f172a1a;border:1px solid #e5e7eb}.preview-pane{width:100%;min-height:400px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;height:auto;flex:1 1 auto;box-shadow:inset 0 1px #ffffffb3}.preview-wrapper{display:flex;flex-direction:column;gap:.75rem;flex:1 1 400px;min-height:0;width:100%}.selection-comment-bar{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;background:#f8fafc;border:1px solid #e5e7eb;border-radius:10px;padding:.85rem 1rem;position:sticky;top:0;z-index:2}.selection-text{color:#111827;font-size:.96rem;flex:1}.note-context{display:flex;flex-direction:column;gap:.35rem;margin-bottom:.75rem}.field-label{font-weight:600;color:#374151}.select-input{padding:.6rem .75rem;border:1px solid #e5e7eb;border-radius:10px;font-size:.95rem;background:#fff}.context-labels{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:.75rem}.context-pill{background:#eef2ff;border:1px solid #c7d2fe;color:#111827;padding:.4rem .65rem;border-radius:999px;font-weight:600;display:inline-flex;gap:.25rem}@media (max-width: 1024px){.editor-content{flex-direction:column}}@media (max-width: 768px){.editor-header{flex-direction:column;align-items:stretch}.editor-actions{flex-direction:column;width:100%}.editor-actions .btn{width:100%}}.login-page{width:100%;min-height:60vh;display:flex;align-items:center;justify-content:center;padding:2rem}.login-card{width:100%;max-width:420px;background:#fff;border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 12px 32px #0f172a14;padding:1.75rem;display:flex;flex-direction:column;gap:1rem}.login-card h2{margin:0 0 .25rem;color:#111827}.login-card label{display:flex;flex-direction:column;gap:.35rem;font-weight:600;color:#374151}.login-card input{padding:.65rem .8rem;border-radius:10px;border:1px solid #e5e7eb;font-size:.95rem}.App{min-height:100vh;display:flex;flex-direction:column}.app-header{background:radial-gradient(circle at 20% 20%,rgba(124,58,237,.25),transparent 32%),radial-gradient(circle at 80% 10%,rgba(79,70,229,.25),transparent 28%),linear-gradient(135deg,#312e81,#4f46e5 40%,#7c3aed);color:#fff;padding:2.2rem 2rem 2rem;text-align:center;box-shadow:0 18px 48px #3b377a73;border-bottom-left-radius:22px;border-bottom-right-radius:22px}.app-header h1{font-size:2.7rem;margin-bottom:.35rem;letter-spacing:-.01em}.app-header p{font-size:1.05rem;opacity:.92}.app-links{margin-top:.75rem;display:flex;justify-content:center;gap:.75rem}.app-user{margin-top:.75rem;display:flex;justify-content:center;align-items:center;gap:.75rem;font-weight:700}.app-user .btn{padding:.45rem 1rem}.app-link{color:#fff;text-decoration:none;font-weight:700;padding:.55rem 1.25rem;border-radius:999px;border:1px solid rgba(255,255,255,.28);background:#ffffff14;box-shadow:inset 0 1px #ffffff59;transition:all .2s ease}.app-link:hover{transform:translateY(-1px);background:#ffffff29}.app-main{flex:1;max-width:none;width:100%;margin:0;padding:1rem 1.25rem 1.5rem}.app-shell{width:100%;max-width:none;min-height:calc(100vh - 140px);background:#ffffffbf;border-radius:12px;box-shadow:0 10px 40px #4454961f;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);padding:1.25rem;border:1px solid rgba(255,255,255,.5)}@media (max-width: 768px){.app-header h1{font-size:2rem}.app-main{padding:1rem}}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:radial-gradient(circle at 20% 20%,#eef2ff 0,transparent 28%),radial-gradient(circle at 80% 10%,#e0f7ff 0,transparent 26%),radial-gradient(circle at 50% 80%,#ffeef6 0,transparent 30%),#f7f9fc;color:#1f2937}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}
