:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;--primary: #4f46e5;--primary-hover: #4338ca;--danger: #ef4444;--success: #22c55e;--warning: #f59e0b}*{box-sizing:border-box}body{margin:0;background:#f5f7fb;color:#1f1f1f;line-height:1.5;overflow-x:hidden;max-width:100vw}a{color:var(--primary);text-decoration:none}.dashboard{max-width:1200px;margin:0 auto;padding:20px}header{display:flex;align-items:center;gap:20px;margin-bottom:30px;padding-bottom:20px;border-bottom:1px solid #e5e7eb}header h1{margin:0;font-size:24px}header .user-info{margin-left:auto;display:flex;gap:10px;align-items:center}button{padding:8px 16px;border:1px solid #e5e7eb;border-radius:6px;background:#fff;cursor:pointer;font-size:14px}button:hover{background:#f9fafb}button.primary{background:var(--primary);color:#fff;border-color:var(--primary)}button.primary:hover{background:var(--primary-hover)}button.danger{color:var(--danger);border-color:var(--danger)}.error{color:var(--danger);padding:10px;background:#fef2f2;border-radius:6px;margin-bottom:15px}.success{color:var(--success);padding:10px;background:#f0fdf4;border-radius:6px;margin-bottom:15px}.warning{color:var(--warning);padding:10px;background:#fffbeb;border-radius:6px;margin-bottom:15px}.auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center}.auth-card{background:#fff;padding:40px;border-radius:12px;box-shadow:0 4px 20px #00000014;width:100%;max-width:400px}.auth-card h1{text-align:center;margin:0 0 10px;color:var(--primary)}.auth-card h2{text-align:center;margin:0 0 20px;font-weight:500}.auth-card form{display:flex;flex-direction:column;gap:12px}.auth-card input,.auth-card select,.auth-card textarea{padding:12px;border:1px solid #e5e7eb;border-radius:6px;font-size:14px}.auth-card button[type=submit]{background:var(--primary);color:#fff;padding:12px;margin-top:10px}.role-select button{flex:1;padding:10px}.role-select button.active{background:var(--primary);color:#fff;border-color:var(--primary)}.auth-links{text-align:center;margin-top:15px}.version-info{text-align:center;margin-top:20px;padding-top:15px;border-top:1px solid #e5e7eb;font-size:12px;color:#9ca3af}.class-card{background:#fff;padding:20px;border-radius:10px;box-shadow:0 2px 8px #0000000d;display:block;transition:transform .2s,box-shadow .2s}.class-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #0000001a}.class-card h3{margin:0 0 8px;font-size:20px}.class-card p{margin:0 0 8px;color:#6b7280}.class-card .students-count{display:block;color:#9ca3af;font-size:14px}.class-card .join-code{display:block;margin-top:8px;color:var(--primary);font-weight:500}.tabs{display:flex;gap:10px;margin-bottom:20px;border-bottom:1px solid #e5e7eb;padding-bottom:10px}.tabs button{background:none;border:none;padding:10px 16px;border-radius:6px 6px 0 0;color:#6b7280}.tabs button.active{background:var(--primary);color:#fff}.modal{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:100}.modal-content{background:#fff;padding:30px;border-radius:12px;width:100%;max-width:500px;max-height:80vh;overflow-y:auto}.modal-content h3{margin:0 0 20px}.modal-content label{font-weight:500}.modal-buttons{display:flex;gap:10px;justify-content:flex-end;margin-top:20px}.task-card{background:#fff;padding:16px;border-radius:8px;border-left:4px solid var(--primary)}.task-card.homework{border-left-color:var(--success)}.task-card.classwork{border-left-color:var(--warning)}.task-card h4{margin:0 0 8px}.task-card p{margin:0 0 8px;color:#6b7280}.task-card .task-type{display:inline-block;padding:4px 8px;background:#f3f4f6;border-radius:4px;font-size:12px}table{width:100%;border-collapse:collapse;background:#fff;border-radius:8px;overflow:hidden}th,td{padding:12px 16px;text-align:left;border-bottom:1px solid #e5e7eb}.stats-card{background:#fff;padding:20px;border-radius:10px;margin-bottom:20px}.stats-card h3{margin:0 0 10px}.stats-card p{margin:5px 0}.join-class{background:#fff;padding:20px;border-radius:10px;margin-bottom:20px}.join-class form{display:flex;gap:10px;margin-top:10px}.loading{display:flex;justify-content:center;align-items:center;min-height:200px;color:#6b7280}*{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:#f5f5f5;color:#333}.auth-page{display:flex;justify-content:center;align-items:center;min-height:100vh;padding:20px;background:linear-gradient(135deg,#1e3a8a,#3b82f6)}.auth-card{background:#fff;padding:40px;border-radius:16px;box-shadow:0 20px 40px #0003;width:100%;max-width:420px}.auth-card .logo{text-align:center;font-size:32px;font-weight:700;color:#2563eb;margin-bottom:10px}.auth-card h1{display:none}.auth-card h2{text-align:center;margin-bottom:30px;color:#374151;font-size:24px}.auth-card form{display:flex;flex-direction:column;gap:16px}.auth-card input,.auth-card select,.auth-card textarea{padding:14px 16px;border:2px solid #e5e7eb;border-radius:8px;font-size:15px;transition:border-color .2s}.auth-card input:focus{outline:none;border-color:#2563eb}.auth-card button{padding:14px;background:#2563eb;color:#fff;border:none;border-radius:8px;cursor:pointer;font-size:16px;font-weight:600;transition:background .2s}.auth-card button:hover{background:#1d4ed8}.auth-links{text-align:center;margin-top:20px;color:#6b7280}.auth-links a{color:#2563eb;text-decoration:none;font-weight:500}.auth-links a:hover{text-decoration:underline}.role-select{display:flex;gap:10px;margin-bottom:10px}.role-select button{flex:1;padding:12px;background:#f3f4f6;border:2px solid #e5e7eb;border-radius:8px;cursor:pointer;font-weight:500;transition:all .2s}.role-select button.active{background:#2563eb;color:#fff;border-color:#2563eb}.dashboard header{background:#fff;padding:15px 30px;display:flex;justify-content:space-between;align-items:center;box-shadow:0 1px 3px #0000001a}.dashboard header h1{font-size:20px;color:#2563eb}.user-info{display:flex;gap:15px;align-items:center}.user-info button{padding:8px 16px;background:#ef4444;color:#fff;border:none;border-radius:6px;cursor:pointer}.content{padding:30px;max-width:1200px;margin:0 auto}.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.section-header h2{font-size:24px}button.primary{background:#2563eb;color:#fff;border:none;padding:10px 20px;border-radius:6px;cursor:pointer}button.primary:hover{background:#1d4ed8}.classes-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:20px}.class-card{background:#fff;padding:20px;border-radius:12px;box-shadow:0 1px 3px #0000001a;text-decoration:none;color:inherit;transition:transform .2s}.class-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #00000026}.class-card h3{font-size:24px;color:#2563eb;margin-bottom:5px}.class-card p{color:#666;margin-bottom:10px}.students-count{font-size:14px;color:#999}.error{background:#fee2e2;color:#dc2626;padding:12px;border-radius:6px;margin-bottom:15px}.success{background:#dcfce7;color:#16a34a;padding:12px;border-radius:6px;margin-bottom:15px}.modal{position:fixed;inset:0;background:#00000080;display:flex;justify-content:center;align-items:center;z-index:1000}.modal-content{background:#fff;padding:30px;border-radius:12px;width:90%;max-width:500px}.modal-content h3{margin-bottom:20px}.modal-content form{display:flex;flex-direction:column;gap:12px}.modal-buttons{display:flex;gap:10px;justify-content:flex-end;margin-top:10px}.modal-buttons button{padding:10px 20px;border-radius:6px;cursor:pointer}.modal-buttons button:first-child{background:#f3f4f6;border:1px solid #ddd}.class-page header{background:#fff;padding:15px 30px;display:flex;align-items:center;gap:20px;box-shadow:0 1px 3px #0000001a}.class-page header button{padding:8px 16px;background:#f3f4f6;border:1px solid #ddd;border-radius:6px;cursor:pointer}.class-page header h2{flex:1}.join-code{background:#dbeafe;padding:8px 16px;border-radius:6px}.join-code strong{color:#2563eb}.tabs{display:flex;background:#fff;padding:0 30px;border-bottom:1px solid #e5e7eb}.tabs button{padding:15px 20px;background:none;border:none;border-bottom:2px solid transparent;cursor:pointer;font-size:14px}.tabs button.active{border-bottom-color:#2563eb;color:#2563eb}.tasks-section,.students-section{padding:30px}.tasks-section button{margin-bottom:20px}.tasks-list{display:flex;flex-direction:column;gap:15px}.task-card{background:#fff;padding:20px;border-radius:8px;box-shadow:0 1px 3px #0000001a}.task-card.homework{border-left:4px solid #22c55e}.task-card.classwork{border-left:4px solid #f59e0b}.task-card h4{margin-bottom:5px}.task-card p{color:#666;font-size:14px;margin-bottom:10px}.task-type{display:inline-block;background:#f3f4f6;padding:4px 8px;border-radius:4px;font-size:12px;margin-right:10px}.due-date{font-size:12px;color:#999}table{width:100%;background:#fff;border-radius:8px;overflow:hidden}th,td{padding:12px 15px;text-align:left;border-bottom:1px solid #e5e7eb}th{background:#f9fafb;font-weight:600}td button{padding:6px 12px;margin-right:5px;background:#f3f4f6;border:1px solid #ddd;border-radius:4px;cursor:pointer;font-size:12px}td button.danger{background:#fee2e2;color:#dc2626;border-color:#fecaca}.loading{display:flex;justify-content:center;align-items:center;min-height:100vh;font-size:18px;color:#666}.warning{background:#fef3c7;color:#92400e;padding:12px;border-radius:6px;margin-bottom:15px;font-size:14px}.join-class{background:#fff;padding:20px;border-radius:12px;margin-bottom:30px}.join-class h3{margin-bottom:15px}.join-class form{display:flex;gap:10px}.join-class input{flex:1}.landing{min-height:100vh;display:flex;flex-direction:column}.landing-header{display:flex;justify-content:space-between;align-items:center;padding:20px 40px;background:#fff;box-shadow:0 1px 3px #0000001a}.landing-header .logo{font-size:24px;font-weight:700;color:#2563eb}.landing-header nav{display:flex;gap:15px}.landing-header .btn-login{padding:10px 20px;color:#2563eb;text-decoration:none;font-weight:500}.landing-header .btn-register{padding:10px 20px;background:#2563eb;color:#fff;text-decoration:none;border-radius:6px;font-weight:500}.hero{background:linear-gradient(135deg,#1e3a8a,#3b82f6);color:#fff;padding:80px 40px;text-align:center}.hero-content{max-width:800px;margin:0 auto}.hero h1{font-size:48px;margin-bottom:20px}.hero p{font-size:20px;opacity:.9;margin-bottom:30px;line-height:1.6}.hero-buttons{display:flex;gap:15px;justify-content:center}.hero .btn-primary{padding:15px 30px;background:#fff;color:#2563eb;text-decoration:none;border-radius:8px;font-weight:600;font-size:16px}.hero .btn-secondary{padding:15px 30px;background:transparent;border:2px solid white;color:#fff;text-decoration:none;border-radius:8px;font-weight:600;font-size:16px}.features{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:30px;padding:60px 40px;background:#f8fafc}.feature{background:#fff;padding:30px;border-radius:12px;text-align:center;box-shadow:0 1px 3px #0000001a}.feature-icon{font-size:40px;margin-bottom:15px}.feature h3{margin-bottom:10px;color:#1e293b}.feature p{color:#64748b;line-height:1.5}.for-students{display:grid;grid-template-columns:1fr 1fr;gap:40px;padding:60px 40px;background:#fff}.for-students h2{margin-bottom:20px;color:#1e293b}.for-students ul{list-style:none}.for-students li{padding:10px 0 10px 30px;position:relative;color:#475569}.for-students li:before{content:"✓";position:absolute;left:0;color:#22c55e;font-weight:700}.landing-footer{background:#1e293b;color:#fff;padding:30px;text-align:center;margin-top:auto}@media(max-width:768px){.hero h1{font-size:32px}.for-students{grid-template-columns:1fr}.landing-header{padding:15px 20px}.hero{padding:50px 20px}.features{padding:40px 20px}}.notifications-container{position:relative}.notifications-bell{position:relative;background:none;border:none;font-size:20px;cursor:pointer;padding:8px;border-radius:8px;transition:background .2s}.notifications-bell:hover{background:#f1f5f9}.notification-badge{position:absolute;top:2px;right:2px;background:#ef4444;color:#fff;font-size:10px;font-weight:600;min-width:16px;height:16px;border-radius:8px;display:flex;align-items:center;justify-content:center;padding:0 4px}.notifications-dropdown{position:absolute;top:100%;right:0;width:360px;max-height:480px;background:#fff;border-radius:12px;box-shadow:0 10px 40px #00000026;z-index:1000;overflow:hidden}.notifications-header{display:flex;justify-content:space-between;align-items:center;padding:16px;border-bottom:1px solid #e2e8f0}.notifications-header h4{margin:0;font-size:16px;color:#1e293b}.mark-all-read{background:none;border:none;color:#4f46e5;font-size:13px;cursor:pointer}.mark-all-read:hover{text-decoration:underline}.notifications-list{max-height:400px;overflow-y:auto}.no-notifications{padding:40px;text-align:center;color:#94a3b8}.notification-item{display:flex;gap:12px;padding:12px 16px;cursor:pointer;transition:background .2s;border-bottom:1px solid #f1f5f9}.notification-item:hover{background:#f8fafc}.notification-item.unread{background:#f0f9ff}.notification-item.unread:hover{background:#e0f2fe}.notification-icon{font-size:20px;flex-shrink:0}.notification-content{flex:1;min-width:0}.notification-title{font-weight:600;font-size:14px;color:#1e293b}.notification-message{font-size:13px;color:#64748b;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.notification-time{font-size:12px;color:#94a3b8;margin-top:4px}.unread-dot{width:8px;height:8px;background:#4f46e5;border-radius:50%;flex-shrink:0;margin-top:6px}.desktop-sidebar{width:260px;background:#fff;border-right:1px solid #e2e8f0;padding:20px 16px;display:flex;flex-direction:column;position:fixed;top:0;left:0;bottom:0;z-index:100;box-shadow:2px 0 8px #0000000a}.desktop-logo{display:flex;align-items:center;gap:12px;padding:12px;margin-bottom:24px}.desktop-logo-icon{width:40px;height:40px;background:linear-gradient(135deg,#4f46e5,#7c3aed);border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:20px}.desktop-logo-text{color:#1e293b;font-weight:700;font-size:18px}.desktop-user-card{background:#f8fafc;border-radius:12px;padding:16px;margin-bottom:24px;border:1px solid #e2e8f0}.user-avatar-large{width:48px;height:48px;background:linear-gradient(135deg,#4f46e5,#7c3aed);border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:600;font-size:18px;margin-bottom:12px}.user-name{color:#1e293b;font-weight:600;font-size:15px;margin-bottom:4px}.user-role-badge{display:inline-block;background:#e0e7ff;color:#4f46e5;font-size:11px;padding:4px 8px;border-radius:4px}.desktop-nav{flex:1;display:flex;flex-direction:column;gap:4px}.desktop-nav-item{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:10px;color:#64748b;text-decoration:none;font-size:14px;font-weight:500;transition:all .2s;cursor:pointer;border:none;background:none;width:100%;text-align:left}.desktop-nav-item:hover{background:#f1f5f9;color:#1e293b}.desktop-nav-item.active{background:#e0e7ff;color:#4f46e5}.desktop-nav-item .nav-icon{font-size:18px;width:24px;text-align:center}.desktop-sidebar-footer{padding-top:16px;border-top:1px solid #e2e8f0}.desktop-logout-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:12px;background:#fef2f2;color:#dc2626;border:none;border-radius:8px;cursor:pointer;font-size:14px;font-weight:500;transition:all .2s}.desktop-logout-btn:hover{background:#fee2e2}@media(max-width:768px){.desktop-sidebar{display:none}}.mobile-nav button.active{background:#eff6ff;color:#4f46e5;font-weight:600}.mobile-nav button.active .nav-icon{filter:none}.app-layout{display:flex;min-height:100vh;background:#f1f5f9}.app-main{flex:1;margin-left:260px;padding:24px;min-height:100vh;max-width:100%;overflow-x:hidden}.mobile-menu-btn,.mobile-header{display:none}@media(max-width:768px){.app-layout{flex-direction:column}.app-main{margin-left:0;padding:0}.mobile-header{display:flex;align-items:center;gap:12px;padding:12px 16px;background:#fff;border-bottom:1px solid #e2e8f0;position:sticky;top:0;z-index:50}.mobile-logo{font-size:18px;font-weight:700;color:#1e293b}.mobile-menu-btn{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;width:40px;height:40px;background:#f1f5f9;border:none;border-radius:8px;cursor:pointer;flex-shrink:0}.mobile-menu-btn span{display:block;width:20px;height:2px;background:#475569;border-radius:2px}}.teacher-dashboard-content{max-width:1200px}@media(max-width:768px){.mobile-page-header{display:flex;align-items:center;gap:12px;padding:12px 16px;background:#fff;box-shadow:0 1px 3px #00000014;position:sticky;top:0;z-index:100;margin-bottom:16px;margin-left:-16px;margin-right:-16px;width:calc(100% + 32px);box-sizing:border-box}.mobile-page-header h1{font-size:16px;color:#1e293b;margin:0;flex:1}}.dashboard-content{display:grid;grid-template-columns:1fr 1fr;gap:20px;max-width:1200px}@media(max-width:1024px){.dashboard-content{grid-template-columns:1fr}}.desktop-panel{background:#fff;border-radius:16px;border:1px solid #e2e8f0;padding:20px;box-shadow:0 1px 3px #0000000d}.desktop-panel-full{grid-column:1 / -1}.desktop-panel-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid #f1f5f9}.desktop-panel-header h2{color:#1e293b;font-size:18px;font-weight:600;margin:0;display:flex;align-items:center;gap:8px}.stats-section{display:grid;grid-template-columns:1fr 1fr;gap:12px}.stat-card{background:#f8fafc;border:1px solid #e2e8f0;padding:16px;border-radius:12px;display:flex;align-items:center;gap:12px;transition:all .2s}.stat-card:hover{background:#fff;border-color:#4f46e5;transform:translateY(-2px);box-shadow:0 4px 12px #4f46e51a}.stat-icon{font-size:24px;width:44px;height:44px;display:flex;align-items:center;justify-content:center;background:#e0e7ff;border-radius:10px}.stat-info{display:flex;flex-direction:column}.stat-value{font-size:24px;font-weight:700;color:#1e293b;line-height:1}.stat-label{font-size:13px;color:#64748b;margin-top:4px}.quick-actions{margin-bottom:0}.quick-actions h2{font-size:18px;color:#1e293b;margin-bottom:16px}.actions-grid{display:grid;grid-template-columns:1fr;gap:8px}.action-btn{display:flex;align-items:center;gap:10px;padding:12px 16px;background:#fff;border:1px solid #e2e8f0;border-radius:10px;cursor:pointer;font-size:14px;font-weight:500;color:#475569;transition:all .2s}.action-btn:hover{background:#f8fafc;border-color:#4f46e5;color:#4f46e5;transform:translateY(-1px)}.action-btn.primary{background:linear-gradient(135deg,#4f46e5,#7c3aed);border-color:transparent;color:#fff}.action-btn.primary:hover{background:linear-gradient(135deg,#4338ca,#6d28d9)}.action-icon{font-size:16px}.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid #f1f5f9}.section-header h2{font-size:18px;color:#1e293b;margin:0}.btn-primary{padding:10px 20px;background:linear-gradient(135deg,#4f46e5,#7c3aed);color:#fff;border:none;border-radius:8px;cursor:pointer;font-weight:500;font-size:14px;transition:all .2s}.btn-primary:hover{background:linear-gradient(135deg,#4338ca,#6d28d9);transform:translateY(-1px)}.empty-state{background:#f8fafc;padding:40px 20px;border-radius:12px;text-align:center;color:#64748b;border:1px dashed #e2e8f0}.empty-state p{margin-bottom:20px}.classes-grid{display:grid;grid-template-columns:1fr;gap:12px}.class-card{background:#fff;border:1px solid #e2e8f0;padding:16px;border-radius:12px;text-decoration:none;color:inherit;transition:all .2s}.class-card:hover{background:#f8fafc;border-color:#4f46e5;transform:translateY(-2px);box-shadow:0 4px 12px #4f46e51a}.class-card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.class-card h3{font-size:20px;color:#4f46e5;margin:0}.class-card .join-code{background:#dcfce7;color:#16a34a;padding:4px 10px;border-radius:20px;font-size:12px;font-weight:600}.class-subject{color:#64748b;margin:0 0 12px;font-size:14px}.class-stats{display:flex;justify-content:space-between;align-items:center;padding-top:12px;border-top:1px solid #f1f5f9}.students-count{display:flex;align-items:center;gap:6px;font-size:13px;color:#64748b}.students-count .icon{font-size:14px}.last-updated{font-size:11px;color:#94a3b8}.curriculum-section{margin-top:0}.curriculum-list{display:grid;grid-template-columns:1fr;gap:12px}.curriculum-card{background:#fff;border:1px solid #e2e8f0;padding:14px;border-radius:10px;border-left:3px solid #f59e0b;text-decoration:none;display:block;transition:all .2s}.curriculum-card:hover{background:#f8fafc;border-color:#f59e0b;transform:translateY(-2px)}.curriculum-card h4{margin:0 0 4px;color:#1e293b}.curriculum-card p{margin:0 0 8px;color:#64748b;font-size:13px}.topics-count{font-size:12px;color:#94a3b8}.modal-content{background:#fff;padding:28px;border-radius:16px;width:100%;max-width:440px;max-height:80vh;overflow-y:auto}.modal-content.large{max-width:600px}.form-group input,.form-group select,.form-group textarea{width:100%;padding:10px 14px;border:1px solid #e2e8f0;border-radius:8px;font-size:14px;transition:border-color .2s;background:#fff;color:#1e293b}.form-group input::placeholder,.form-group textarea::placeholder{color:#94a3b8}.form-group select{color:#1e293b}.form-group select option{background:#fff}.form-group textarea{resize:vertical;min-height:100px;font-family:inherit}.empty-message{text-align:center;color:#64748b;padding:40px 20px}.library-list{display:flex;flex-direction:column;gap:12px;max-height:400px;overflow-y:auto}.library-item{padding:16px;background:#f8fafc;border-radius:8px;border:1px solid #e2e8f0}.library-item h4{margin:0 0 8px;color:#1e293b}.library-item p{margin:0 0 10px;color:#64748b;font-size:14px}.library-meta{display:flex;gap:8px}.task-type-badge,.task-worktype-badge{font-size:11px;padding:3px 8px;border-radius:4px;text-transform:capitalize}.task-type-badge{background:#e0e7ff;color:#4f46e5}.task-worktype-badge{background:#dcfce7;color:#16a34a}.error-banner{background:#fee2e2;color:#dc2626;padding:12px 16px;border-radius:8px;margin-bottom:16px}.success-banner{background:#dcfce7;color:#16a34a;padding:12px 16px;border-radius:8px;margin-bottom:16px}@media(max-width:768px){.teacher-dashboard{background:#f8fafc}.desktop-sidebar{display:none}.main-wrapper{margin-left:0;padding:0}.page-header{display:flex;align-items:center;gap:12px;padding:12px 16px;background:#fff;box-shadow:0 1px 3px #00000014;position:sticky;top:0;z-index:100}.mobile-menu-btn{display:flex!important;flex-direction:column;justify-content:center;align-items:center;gap:4px;width:40px;height:40px;background:#f1f5f9;border:none;border-radius:8px;cursor:pointer;flex-shrink:0}.page-header h1{font-size:16px;color:#1e293b;margin:0;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-menu-btn{display:flex;flex-direction:column;justify-content:center;gap:5px;width:36px;height:36px;background:#f1f5f9;border:none;border-radius:8px;cursor:pointer;padding:6px;flex-shrink:0}.mobile-menu-btn span{display:block;width:20px;height:2px;background:#475569;border-radius:2px}.header-right{display:flex;align-items:center}.btn-logout{padding:6px 12px;background:#fee2e2;color:#dc2626;border:none;border-radius:6px;cursor:pointer;font-weight:500;font-size:12px}.dashboard-content{display:block;padding:16px}.desktop-panel{background:#fff;border:none;padding:16px;margin-bottom:16px;border-radius:12px}.stats-section{display:grid;grid-template-columns:1fr 1fr;gap:8px;overflow-x:hidden}.stat-card{padding:8px;gap:4px;flex-direction:column;text-align:center;overflow:hidden;word-wrap:break-word}.stat-icon{width:28px;height:28px;font-size:16px;margin:0 auto}.stat-info{align-items:center;min-width:0}.stat-value{font-size:14px;word-break:break-all}.stat-label{font-size:9px;text-align:center;word-break:break-word}.actions-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.action-btn{padding:10px 12px;font-size:12px;justify-content:center}.classes-grid{display:block}.class-card{margin-bottom:12px}}.student-dashboard{max-width:1400px;margin:0 auto;padding:16px}@media(min-width:1600px){.student-dashboard{max-width:1300px}}.student-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid #e5e7eb;gap:8px;flex-wrap:nowrap}.desktop-only{display:flex;align-items:center;gap:8px}.header-left{flex:1;min-width:0}.header-left h1{margin:0;font-size:18px;font-weight:600;color:#111827;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.header-subtitle{margin:0;color:#6b7280;font-size:13px}.student-header .user-info{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.logout-btn{padding:6px 10px;font-size:12px}.storage-btn{padding:6px 10px;font-size:12px;background:#e0e7ff;border:none;border-radius:6px;color:#3730a3;cursor:pointer;transition:background .2s}.storage-btn:hover{background:#c7d2fe}.logout-btn:hover{background:#e5e7eb}.dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}@media(max-width:1024px){.dashboard-grid{grid-template-columns:1fr}}.stats-section{grid-column:1 / -1;display:grid;grid-template-columns:1fr;gap:12px;max-width:600px}@media(max-width:768px){.mobile-menu-btn{display:flex}.desktop-only{display:none}.student-header{flex-wrap:nowrap}.header-left h1{font-size:16px}.stats-section{grid-template-columns:repeat(2,1fr)}.classes-grid{grid-template-columns:1fr;gap:8px}.class-card,.tasks-section,.task-item{padding:12px}}.stats-card{background:#fff;padding:20px;border-radius:12px;display:flex;align-items:center;gap:16px;box-shadow:0 1px 3px #0000000d;transition:transform .2s,box-shadow .2s}.stats-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #00000014}.stat-icon{font-size:32px;width:48px;height:48px;display:flex;align-items:center;justify-content:center;background:#f5f7fb;border-radius:10px}.stat-content{display:flex;flex-direction:column}.stat-value{font-size:28px;font-weight:700;color:#111827;line-height:1}.stat-label{font-size:13px;color:#6b7280;margin-top:4px}.join-section{grid-column:1 / -1}.join-card{background:linear-gradient(135deg,#667eea,#764ba2);padding:24px;border-radius:12px;color:#fff}.join-card h3{margin:0 0 8px;font-size:18px}.join-card p{margin:0 0 16px;opacity:.9;font-size:14px}.join-form{display:flex;gap:12px}.join-form input{flex:1;padding:12px 16px;border:none;border-radius:8px;font-size:14px;background:#fffffff2}.join-form input:focus{outline:none;box-shadow:0 0 0 3px #ffffff4d}.join-form button{padding:12px 24px;background:#111827;color:#fff;border:none;border-radius:8px;font-weight:500;cursor:pointer;transition:background .2s}.join-form button:hover{background:#1f2937}.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.section-header h2{margin:0;font-size:18px;font-weight:600;color:#111827}.view-all{font-size:14px;color:#4f46e5;text-decoration:none}.view-all:hover{text-decoration:underline}.classes-section{background:#fff;padding:20px;border-radius:12px;box-shadow:0 1px 3px #0000000d}.classes-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}.class-card{display:flex;align-items:center;gap:12px;padding:16px;background:#f9fafb;border-radius:10px;text-decoration:none;color:inherit;transition:all .2s}.class-card:hover{background:#f5f7fb;transform:translate(4px)}.class-icon{font-size:28px}.class-info h3{margin:0;font-size:15px;font-weight:600;color:#111827}.class-grade{margin:2px 0 0;font-size:13px;color:#4f46e5;font-weight:500}.class-info .teacher{margin:2px 0 0;font-size:12px;color:#6b7280}.tasks-section,.submissions-section{background:#fff;padding:20px;border-radius:12px;box-shadow:0 1px 3px #0000000d}.task-card{display:block;padding:16px;background:#f9fafb;border-radius:10px;text-decoration:none;color:inherit;transition:all .2s;border-left:4px solid #e5e7eb}.task-card:hover{background:#f5f7fb}.task-header{display:flex;align-items:center;gap:8px;margin-bottom:8px}.task-type-badge{display:inline-block;padding:2px 8px;background:#e5e7eb;border-radius:4px;font-size:11px;font-weight:600;text-transform:uppercase}.task-card.homework .task-type-badge{background:#dcfce7;color:#16a34a}.task-card.classwork .task-type-badge{background:#fef3c7;color:#d97706}.task-subject{font-size:12px;color:#6b7280}.task-card h4{margin:0 0 8px;font-size:15px;font-weight:600;color:#111827}.task-description{margin:0 0 12px;font-size:13px;color:#6b7280;line-height:1.4}.task-footer{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#6b7280}.due-date{display:flex;align-items:center;gap:4px}.submissions-list{display:flex;flex-direction:column;gap:12px}.submission-item{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:#f9fafb;border-radius:8px}.submission-info h4{margin:0;font-size:14px;font-weight:500;color:#111827}.submission-info p{margin:4px 0 0;font-size:12px;color:#6b7280}.submission-status{padding:4px 12px;border-radius:20px;font-size:12px;font-weight:500}.submission-status.pending{background:#fef3c7;color:#d97706}.submission-status.graded{background:#dcfce7;color:#16a34a}.empty-state{text-align:center;padding:40px 20px;color:#9ca3af}.empty-state p{margin:0}.overdue-section{background:#fef2f2;border:1px solid #fecaca}.overdue-section h2{color:#dc2626}.task-card.overdue{border-left:4px solid #dc2626}.task-card.overdue .due-date.overdue{color:#dc2626;font-weight:600}.task-type-badge.overdue{background:#fee2e2;color:#dc2626}.subjects-progress-section{background:#fff;padding:20px;border-radius:12px;box-shadow:0 1px 3px #0000000d}.subjects-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px}.subject-card{background:#f9fafb;border-radius:10px;padding:16px;text-align:center}.subject-card .subject-name{font-weight:600;color:#1f2937;margin-bottom:12px}.subject-stats{display:flex;justify-content:space-around;margin-bottom:12px}.subject-avg,.subject-total{display:flex;flex-direction:column;align-items:center}.avg-value,.total-value{font-size:24px;font-weight:700;color:#4f46e5}.avg-label,.total-label{font-size:11px;color:#6b7280;text-transform:uppercase}.subject-grade{padding:6px 12px;border-radius:6px;font-weight:600;font-size:14px}.subject-grade.good{background:#dcfce7;color:#16a34a}.subject-grade.middle{background:#fef3c7;color:#d97706}.subject-grade.bad{background:#fee2e2;color:#dc2626}.mobile-menu-overlay{position:fixed;inset:0;background:#00000080;z-index:1000;animation:fadeIn .2s ease}.mobile-menu{position:fixed;top:0;left:0;bottom:0;width:280px;background:#fff;z-index:1001;animation:slideIn .3s ease;display:flex;flex-direction:column;box-shadow:4px 0 20px #00000026}@keyframes slideIn{0%{transform:translate(-100%)}to{transform:translate(0)}}.close-btn{width:32px;height:32px;border:none;background:#f1f5f9;border-radius:8px;font-size:24px;color:#64748b;cursor:pointer;display:flex;align-items:center;justify-content:center}.mobile-user-info{display:flex;align-items:center;gap:12px;padding:16px;background:#f8fafc}.user-avatar{width:48px;height:48px;border-radius:50%;background:linear-gradient(135deg,#4f46e5,#6366f1);color:#fff;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:600}.user-details{display:flex;flex-direction:column}.user-name{font-weight:600;color:#1e293b}.user-role{font-size:13px;color:#64748b}.mobile-nav button{display:flex;align-items:center;gap:12px;padding:14px 16px;border:none;background:none;border-radius:10px;cursor:pointer;font-size:15px;color:#334155;text-align:left;transition:all .2s}.mobile-menu-footer{padding:16px;border-top:1px solid #e2e8f0}.mobile-menu-footer .logout-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:14px;background:#fee2e2;color:#dc2626;border:none;border-radius:10px;font-size:15px;font-weight:500;cursor:pointer}.task-view{max-width:900px;margin:0 auto;padding:24px}.back-btn{display:inline-flex;align-items:center;gap:8px;padding:8px 16px;background:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#374151;font-size:14px;cursor:pointer;margin-bottom:24px;transition:all .2s}.back-btn:hover{background:#f9fafb;border-color:#d1d5db}.task-container{background:#fff;border-radius:16px;box-shadow:0 1px 3px #0000000d;overflow:hidden}.task-header{padding:32px;border-bottom:1px solid #e5e7eb;background:linear-gradient(135deg,#f9fafb,#f5f7fb)}.task-meta{display:flex;align-items:center;gap:12px;margin-bottom:12px}.task-type-badge{display:inline-block;padding:4px 12px;border-radius:20px;font-size:12px;font-weight:600;text-transform:uppercase}.task-type-badge.homework{background:#dcfce7;color:#16a34a}.task-type-badge.classwork{background:#fef3c7;color:#d97706}.task-type-badge.test{background:#dbeafe;color:#2563eb}.task-type-badge.text,.task-type-badge.file{background:#f3e8ff;color:#9333ea}.class-name{font-size:14px;color:#6b7280}.task-header h1{margin:0 0 12px;font-size:28px;font-weight:700;color:#111827}.task-description{margin:0 0 16px;font-size:16px;color:#4b5563;line-height:1.6}.task-due{display:flex;align-items:center;gap:8px;font-size:14px;color:#6b7280}.task-content{padding:32px}.test-section h2,.text-section h2,.file-section h2{margin:0 0 24px;font-size:20px;font-weight:600;color:#111827}.question-block{margin-bottom:32px;padding-bottom:24px;border-bottom:1px solid #e5e7eb}.question-block:last-child{border-bottom:none}.question-text{margin:0 0 16px;font-size:16px;font-weight:500;color:#111827}.question-number{color:#4f46e5;font-weight:700}.options-list{display:flex;flex-direction:column;gap:10px}.option-item{display:flex;align-items:center;gap:12px;padding:14px 16px;background:#f9fafb;border:2px solid #e5e7eb;border-radius:10px;cursor:pointer;transition:all .2s}.option-item:hover:not(.selected){background:#f5f7fb;border-color:#d1d5db}.option-item.selected{background:#eef2ff;border-color:#4f46e5}.option-item input{display:none}.option-letter{display:flex;align-items:center;justify-content:center;width:28px;height:28px;background:#e5e7eb;border-radius:50%;font-size:13px;font-weight:600;color:#374151}.option-item.selected .option-letter{background:#4f46e5;color:#fff}.option-text{flex:1;font-size:15px;color:#374151}.text-section textarea{width:100%;padding:16px;border:2px solid #e5e7eb;border-radius:10px;font-size:15px;font-family:inherit;resize:vertical;transition:border-color .2s}.text-section textarea:focus{outline:none;border-color:#4f46e5}.file-section .file-upload-area{margin-bottom:16px}.file-section input[type=file]{display:none}.file-label{display:flex;flex-direction:column;align-items:center;gap:12px;padding:40px;background:#f9fafb;border:2px dashed #d1d5db;border-radius:12px;cursor:pointer;transition:all .2s}.file-label:hover{background:#f5f7fb;border-color:#4f46e5}.file-icon{font-size:40px}.file-name{font-size:14px;color:#4f46e5;font-weight:500}.file-uploaded{padding:20px;background:#dcfce7;border-radius:8px;color:#16a34a;text-align:center}.allowed-formats{font-size:13px;color:#6b7280}.task-actions{padding:24px 32px;border-top:1px solid #e5e7eb;display:flex;justify-content:flex-end}.submit-btn{padding:14px 32px;border:none;border-radius:10px;font-size:16px;font-weight:600;cursor:pointer;transition:all .2s}.submit-btn.primary{background:#4f46e5;color:#fff}.submit-btn.primary:hover:not(:disabled){background:#4338ca}.submit-btn:disabled{background:#d1d5db;cursor:not-allowed}.submitted-notice{padding:20px 24px;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:10px}.submitted-info{display:flex;align-items:center;gap:12px}.submitted-icon{width:32px;height:32px;background:#22c55e;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:18px}.submitted-text{display:flex;flex-direction:column}.submitted-text strong{color:#166534}.submitted-time{font-size:13px;color:#6b7280}.grade-display{display:flex;flex-direction:column;align-items:center;margin-top:16px;padding:16px;background:#fff;border-radius:8px}.grade-display.grade-5{border:2px solid #22c55e}.grade-display.grade-4{border:2px solid #3b82f6}.grade-display.grade-3{border:2px solid #f59e0b}.grade-display.grade-2{border:2px solid #ef4444}.grade-label{font-size:12px;color:#6b7280;text-transform:uppercase}.grade-value{font-size:36px;font-weight:700}.grade-display.grade-5 .grade-value{color:#22c55e}.grade-display.grade-4 .grade-value{color:#3b82f6}.grade-display.grade-3 .grade-value{color:#f59e0b}.grade-display.grade-2 .grade-value{color:#ef4444}.teacher-comment{margin-top:16px;padding:12px;background:#fef9c3;border-radius:8px}.teacher-comment strong{color:#92400e;font-size:13px}.teacher-comment p{margin:4px 0 0;color:#78350f}.task-due{margin-top:12px}.deadline-badge{display:inline-flex;align-items:center;padding:6px 12px;border-radius:6px;font-size:14px}.deadline-badge.overdue{background:#fef2f2;color:#dc2626;border:1px solid #fecaca}.deadline-badge.urgent{background:#fef3c7;color:#d97706;border:1px solid #fde68a}.deadline-badge.soon{background:#fefce8;color:#a16207;border:1px solid #fde047}.loading{display:flex;justify-content:center;align-items:center;min-height:400px;color:#6b7280;font-size:16px}.class-page{min-height:100vh;background:#f8fafc}.class-header{background:#fff;padding:12px 16px;display:flex;align-items:center;gap:12px;box-shadow:0 1px 3px #0000000f}.class-title{flex:1;min-width:0}.class-title h1{font-size:24px;color:#1e293b;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.subject-name{color:#64748b;font-size:14px}.join-code-badge{display:flex;flex-direction:column;align-items:center;background:#f0fdf4;padding:8px 16px;border-radius:8px}.code-label{font-size:11px;color:#16a34a;text-transform:uppercase;letter-spacing:.5px}.code-value{font-size:20px;font-weight:700;color:#16a34a}.tabs-nav{background:#fff;padding:0 32px;display:flex;gap:4px;border-bottom:1px solid #e2e8f0}.tab-btn{padding:14px 20px;background:none;border:none;border-bottom:2px solid transparent;cursor:pointer;font-size:14px;font-weight:500;color:#64748b;transition:all .2s}.tab-btn:hover{color:#4f46e5}.tab-btn.active{color:#4f46e5;border-bottom-color:#4f46e5}.tab-content{padding:24px 32px}.tab-actions{margin-bottom:20px}.empty-state{background:#fff;padding:60px 20px;border-radius:12px;text-align:center;color:#64748b}.tasks-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}.task-card{background:#fff;padding:20px;border-radius:12px;border-left:4px solid #4f46e5;box-shadow:0 1px 3px #0000000d}.task-card.homework{border-left-color:#22c55e}.task-card.classwork{border-left-color:#f59e0b}.task-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:8px}.task-card h4{margin:0;color:#1e293b;font-size:16px}.task-actions{display:flex;gap:4px}.btn-icon{padding:4px 8px;background:none;border:none;cursor:pointer;opacity:.5;transition:opacity .2s}.btn-icon:hover{opacity:1}.task-desc{color:#64748b;font-size:14px;margin:0 0 12px}.task-meta{display:flex;gap:8px}.type-badge,.worktype-badge{padding:4px 10px;border-radius:20px;font-size:12px;font-weight:500}.type-badge{background:#e0e7ff;color:#4f46e5}.worktype-badge{background:#dcfce7;color:#16a34a}.students-list{display:flex;flex-direction:column;gap:8px}.student-row{display:flex;align-items:center;gap:16px;background:#fff;padding:16px 20px;border-radius:10px;box-shadow:0 1px 2px #0000000a}.student-avatar{width:44px;height:44px;border-radius:50%;background:linear-gradient(135deg,#4f46e5,#7c3aed);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:18px;text-transform:uppercase}.student-info{flex:1}.student-name{font-weight:600;color:#1e293b}.student-name .nickname{font-weight:400;color:#64748b;margin-left:4px}.student-login{font-size:13px;color:#94a3b8}.student-login-time{display:flex;flex-direction:column;align-items:flex-end}.login-label{font-size:11px;color:#94a3b8;text-transform:uppercase}.login-date{font-size:14px;color:#475569}.student-actions{display:flex;gap:6px}.btn-action{padding:8px 10px;background:#f1f5f9;border:none;border-radius:6px;cursor:pointer;transition:background .2s}.btn-action:hover{background:#e2e8f0}.btn-action.danger:hover{background:#fee2e2}.grade-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px;margin-bottom:24px}.stat-box{background:#fff;padding:16px;border-radius:10px;text-align:center;box-shadow:0 1px 2px #0000000a}.stat-box.highlight{background:linear-gradient(135deg,#4f46e5,#7c3aed);color:#fff}.stat-box.five .stat-num{color:#22c55e}.stat-box.four .stat-num{color:#3b82f6}.stat-box.three .stat-num{color:#f59e0b}.stat-box.two .stat-num{color:#ef4444}.stat-num{display:block;font-size:28px;font-weight:700;line-height:1;margin-bottom:4px}.stat-lbl{font-size:12px;color:#64748b}.stat-box.highlight .stat-lbl{color:#fffc}.grades-table{width:100%;background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 1px 3px #0000000d}.grades-table th,.grades-table td{padding:14px 16px;text-align:left;border-bottom:1px solid #f1f5f9}.grades-table th{background:#f8fafc;font-weight:600;font-size:13px;color:#64748b;text-transform:uppercase;letter-spacing:.5px}.grade-value{display:inline-block;width:32px;height:32px;line-height:32px;text-align:center;border-radius:50%;font-weight:600}.grade-5{background:#dcfce7;color:#16a34a}.grade-4{background:#dbeafe;color:#2563eb}.grade-3{background:#fef3c7;color:#d97706}.grade-2{background:#fee2e2;color:#dc2626}.curriculum-tab .curriculum-placeholder{background:#fff;padding:60px 20px;border-radius:12px;text-align:center}.curriculum-placeholder p{font-size:18px;color:#1e293b;margin:0 0 8px}.curriculum-placeholder span{color:#94a3b8}.modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}.modal-content{background:#fff;padding:28px;border-radius:16px;width:100%;max-width:480px}.modal-content h3{margin:0 0 24px;font-size:20px;color:#1e293b}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.checkbox-label{display:flex;align-items:center;gap:8px;font-size:14px;color:#475569;cursor:pointer}.checkbox-label input{width:auto}.modal-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:24px}@media(max-width:768px){.class-header{padding:12px;flex-wrap:nowrap}.mobile-menu-btn{display:flex}.class-title h1{font-size:18px}.tabs-nav{padding:0 12px;overflow-x:auto}.tab-content{padding:12px}.student-row{flex-wrap:wrap}.student-login-time{display:none}.grade-stats{grid-template-columns:repeat(3,1fr)}}.curriculum-tab{padding:20px}.curriculum-empty{text-align:center;padding:40px;background:#fff;border-radius:12px}.curriculum-empty p{color:#64748b;margin-bottom:16px}.curriculum-content{background:#fff;border-radius:12px;padding:24px}.curriculum-header{display:flex;align-items:center;gap:12px;margin-bottom:24px;padding-bottom:16px;border-bottom:1px solid #e2e8f0}.curriculum-header h3{margin:0;color:#1e293b}.subject-badge{background:#e0e7ff;color:#4338ca;padding:4px 12px;border-radius:20px;font-size:13px}.topics-list{display:flex;flex-direction:column;gap:20px}.topic-block{background:#f8fafc;border-radius:10px;padding:16px}.topic-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.topic-header h4{margin:0;color:#1e293b}.hours{color:#64748b;font-size:13px}.lessons-list{display:flex;flex-direction:column;gap:8px}.lesson-item{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:#fff;border-radius:8px;border:1px solid #e2e8f0}.lesson-item.held{background:#f0fdf4;border-color:#bbf7d0}.lesson-info{display:flex;align-items:center;gap:8px}.lesson-number{color:#94a3b8;font-size:13px}.lesson-title{color:#334155}.materials-badge{background:#dbeafe;color:#1d4ed8;padding:2px 8px;border-radius:4px;font-size:11px}.lesson-actions{display:flex;align-items:center;gap:8px}.btn-mark-held{padding:6px 12px;background:#f0fdf4;color:#15803d;border:1px solid #bbf7d0;border-radius:6px;cursor:pointer;font-size:12px}.btn-mark-held:hover{background:#dcfce7}.held-badge{color:#15803d;font-size:13px;font-weight:500}.curriculum-list-modal{display:flex;flex-direction:column;gap:8px;max-height:300px;overflow-y:auto}.curriculum-option{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:#f8fafc;border-radius:8px;cursor:pointer;transition:background .2s}.curriculum-option:hover{background:#e2e8f0}.curriculum-title{font-weight:500;color:#1e293b}.curriculum-grade{color:#64748b;font-size:13px}.task-filters-bar{display:flex;align-items:center;gap:16px;background:#fff;padding:16px;border-radius:12px;margin-bottom:20px;flex-wrap:wrap}.task-stats{display:flex;gap:16px}.task-stats .stat{font-size:14px;color:#64748b}.task-stats .stat strong{color:#1e293b}.task-stats .stat.hw strong{color:#0ea5e9}.task-stats .stat.kr strong{color:#f59e0b}.filter-controls{display:flex;gap:12px;flex:1}.filter-controls select,.filter-controls .search-input{padding:8px 12px;border:1px solid #e2e8f0;border-radius:6px;font-size:14px}.filter-controls .search-input{flex:1;min-width:200px}.task-card{cursor:pointer;transition:box-shadow .2s,transform .2s}.task-card:hover{box-shadow:0 4px 12px #0000001a;transform:translateY(-2px)}.task-meta .due-date{font-size:12px;color:#64748b}.task-details-modal{max-width:600px;max-height:80vh;overflow-y:auto}.task-details-modal .modal-header{display:flex;justify-content:space-between;align-items:center;padding-bottom:16px;border-bottom:1px solid #e2e8f0;margin-bottom:16px}.task-details-modal .modal-header h3{margin:0}.btn-close{background:none;border:none;font-size:24px;cursor:pointer;color:#64748b;padding:0 8px}.task-info-row{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:16px}.task-description{background:#f8fafc;padding:12px;border-radius:8px;margin-bottom:16px}.task-description h4{margin:0 0 8px;color:#475569}.task-description p{margin:0;color:#64748b}.submissions-section h4{margin:0 0 12px;color:#1e293b}.no-submissions{color:#94a3b8;font-style:italic}.submissions-list{display:flex;flex-direction:column;gap:8px}.submission-row{display:flex;align-items:center;padding:12px;background:#f8fafc;border-radius:8px}.submission-student{flex:1;font-weight:500}.submission-status .grade-badge{background:#dcfce7;color:#166534;padding:4px 8px;border-radius:4px;font-size:13px}.submission-status .pending-badge{background:#fef3c7;color:#92400e;padding:4px 8px;border-radius:4px;font-size:13px}.submission-date{color:#94a3b8;font-size:13px}.grades-list{background:#fff;border-radius:12px;padding:16px}.grade-item{display:flex;justify-content:space-between;align-items:center;padding:12px;border-bottom:1px solid #e2e8f0}.grade-item:last-child{border-bottom:none}.grade-item .grade-value{font-size:28px;font-weight:700;width:50px;height:50px;display:flex;align-items:center;justify-content:center;border-radius:50%}.grade-value.grade-5{background:#dcfce7;color:#16a34a}.grade-value.grade-4{background:#dbeafe;color:#2563eb}.grade-value.grade-3{background:#fef3c7;color:#d97706}.grade-value.grade-2{background:#fee2e2;color:#dc2626}.grade-info{display:flex;align-items:center;gap:16px}.grade-details{display:flex;flex-direction:column}.grade-type{font-weight:500;color:#1f2937}.grade-comment{font-size:13px;color:#6b7280;margin:4px 0 0}.grade-date{color:#6b7280;font-size:14px}.grades-toolbar{display:flex;justify-content:space-between;align-items:center;background:#fff;padding:16px;border-radius:12px;margin-bottom:20px;flex-wrap:wrap;gap:12px}.grade-filters{display:flex;gap:12px}.grade-filters select,.grade-filters input{padding:8px 12px;border:1px solid #e2e8f0;border-radius:6px;font-size:14px}.grade-stats-mini{display:flex;gap:16px;font-size:14px;color:#64748b}.grade-stats-mini strong{color:#1e293b}.journal-view{background:#fff;border-radius:12px;overflow-x:auto}.journal-view .grades-table{min-width:100%}.student-col{min-width:150px}.date-col{min-width:60px;text-align:center;font-size:12px}.date-col .work-type{display:block;font-size:10px;color:#94a3b8;font-weight:400}.avg-col{min-width:60px;text-align:center;background:#f8fafc}.student-name{font-weight:500}.student-name .nickname{display:block;font-size:12px;color:#64748b;font-weight:400}.grade-cell{text-align:center;padding:8px 4px}.grade-cell.has-grade{background:#f0fdf4}.avg-cell{text-align:center;font-weight:600;background:#f8fafc}.all-grades{margin-top:20px;padding:16px;border-top:1px solid #e2e8f0}.all-grades summary{cursor:pointer;color:#4f46e5;font-weight:500;padding:8px 0}.all-grades .grades-table{margin-top:12px}.modal-subtitle{color:#64748b;margin-top:-8px;margin-bottom:16px}.worktype-badge{padding:4px 8px;border-radius:4px;font-size:12px}.worktype-badge.homework{background:#dbeafe;color:#1d4ed8}.worktype-badge.classwork{background:#fef3c7;color:#92400e}.worktype-badge.control{background:#fce7f3;color:#be185d}.student-class-page .tasks-list{background:#fff;border-radius:12px;padding:16px}.student-class-page .task-item{display:flex;justify-content:space-between;align-items:center;padding:16px;border-bottom:1px solid #e2e8f0;transition:background .2s}.student-class-page .task-item:last-child{border-bottom:none}.student-class-page .task-item:hover{background:#f9fafb}.student-class-page .task-item.overdue{border-left:4px solid #ef4444;background:#fef2f2}.student-class-page .task-info h4{margin:0 0 8px;font-size:16px;color:#1f2937}.student-class-page .task-desc{margin:0 0 12px;font-size:14px;color:#6b7280}.student-class-page .task-meta{display:flex;gap:12px;flex-wrap:wrap}.student-class-page .type-badge{padding:4px 8px;border-radius:4px;font-size:12px;font-weight:500}.student-class-page .type-badge.test{background:#dbeafe;color:#1d4ed8}.student-class-page .type-badge.task{background:#fef3c7;color:#92400e}.student-class-page .type-badge.file{background:#d1fae5;color:#065f46}.student-class-page .worktype-badge{padding:4px 8px;border-radius:4px;font-size:12px}.student-class-page .worktype-badge.homework{background:#dbeafe;color:#1d4ed8}.student-class-page .worktype-badge.classwork{background:#fef3c7;color:#92400e}.student-class-page .worktype-badge.control{background:#fce7f3;color:#be185d}.student-class-page .due-date{font-size:13px;color:#6b7280}.student-class-page .due-date.overdue{color:#ef4444;font-weight:600}.student-class-page .due-date.urgent{color:#f59e0b;font-weight:600}.student-class-page .lesson-homework{margin-top:8px;padding:8px 12px;background:#fef3c7;border-radius:6px;border-left:3px solid #f59e0b}.student-class-page .homework-label{font-size:12px;font-weight:600;color:#92400e}.student-class-page .lesson-homework p{margin:4px 0 0;font-size:13px;color:#78350f}.student-class-page .lesson-materials{margin-top:8px}.student-class-page .materials-label{font-size:12px;font-weight:600;color:#64748b}.student-class-page .materials-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}.student-class-page .material-link{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;background:#eff6ff;color:#2563eb;border-radius:4px;font-size:13px;text-decoration:none;transition:background .2s}.student-class-page .material-link:hover{background:#dbeafe}.btn-attendance{padding:6px 12px;background:#dbeafe;color:#1d4ed8;border:1px solid #bfdbfe;border-radius:6px;cursor:pointer;font-size:12px}.btn-attendance:hover{background:#bfdbfe}.attendance-tab{padding:24px}.attendance-tab h3{margin:0 0 20px;color:#1e293b}.attendance-history{background:#fff;border-radius:12px;overflow:hidden}.attendance-table{width:100%;border-collapse:collapse}.attendance-table th,.attendance-table td{padding:12px 16px;text-align:left;border-bottom:1px solid #e2e8f0}.attendance-table th{background:#f8fafc;font-weight:600;color:#475569;font-size:13px}.attendance-table td.present{color:#16a34a}.attendance-table td.absent{color:#dc2626}.attendance-modal{max-width:600px;width:100%}.attendance-modal .modal-subtitle{color:#475569;margin:8px 0 4px}.attendance-modal .modal-date{color:#64748b;font-size:14px;margin:0 0 20px}.attendance-editor{max-height:60vh;overflow-y:auto}.attendance-stats{display:flex;gap:16px;margin-bottom:16px;padding:12px;background:#f8fafc;border-radius:8px}.attendance-stats .stat{font-size:13px;font-weight:500}.attendance-stats .present{color:#16a34a}.attendance-stats .absent{color:#dc2626}.attendance-stats .late{color:#f59e0b}.attendance-stats .excused{color:#6366f1}.attendance-edit-table{width:100%;border-collapse:collapse;margin-bottom:20px}.attendance-edit-table th,.attendance-edit-table td{padding:10px 12px;text-align:left;border-bottom:1px solid #e2e8f0}.attendance-edit-table th{background:#f8fafc;font-weight:600;color:#475569;font-size:13px}.attendance-edit-table tr.present{background:#f0fdf4}.attendance-edit-table tr.absent{background:#fef2f2}.attendance-edit-table tr.late{background:#fffbeb}.attendance-edit-table tr.excused{background:#eef2ff}.status-select{padding:6px 10px;border-radius:6px;border:1px solid #e2e8f0;font-size:13px;cursor:pointer}.status-select.present{background:#dcfce7;color:#166534}.status-select.absent{background:#fee2e2;color:#991b1b}.status-select.late{background:#fef3c7;color:#92400e}.status-select.excused{background:#e0e7ff;color:#3730a3}.student-class-page .attendance-tab{padding:24px}.student-class-page .attendance-tab h3{margin:0 0 20px;color:#1e293b}.student-class-page .attendance-stats-card{background:#fff;border-radius:12px;padding:24px;max-width:400px}.student-class-page .stat-big{text-align:center;padding-bottom:20px;border-bottom:1px solid #e2e8f0;margin-bottom:20px}.student-class-page .stat-value{display:block;font-size:48px;font-weight:700;color:#4f46e5}.student-class-page .stat-label{color:#64748b;font-size:14px}.student-class-page .stat-details{display:flex;flex-direction:column;gap:12px}.student-class-page .stat-row{display:flex;justify-content:space-between;align-items:center}.student-class-page .stat-row.total{padding-top:12px;border-top:1px solid #e2e8f0;font-weight:600;margin-top:4px}.student-class-page .stat-row .present{color:#16a34a}.student-class-page .stat-row .absent{color:#dc2626}.student-class-page .stat-row .late{color:#f59e0b}.student-class-page .stat-row .excused{color:#6366f1}.student-class-page .stat-row .count{font-weight:500;color:#334155}.mobile-menu-overlay{position:fixed;inset:0;background:#00000080;z-index:1000}.mobile-menu{position:fixed;top:0;left:0;bottom:0;width:280px;background:#fff;z-index:1001;display:flex;flex-direction:column;box-shadow:4px 0 20px #00000026}.mobile-menu-header{display:flex;justify-content:space-between;align-items:center;padding:16px;border-bottom:1px solid #e2e8f0}.mobile-menu-header span{font-size:18px;font-weight:600;color:#1e293b}.close-btn{width:32px;height:32px;border:none;background:#f1f5f9;border-radius:8px;font-size:24px;color:#64748b;cursor:pointer}.mobile-nav{flex:1;padding:16px;display:flex;flex-direction:column;gap:4px}.mobile-nav button{display:flex;align-items:center;gap:12px;padding:14px 16px;border:none;background:none;border-radius:10px;cursor:pointer;font-size:15px;color:#334155;text-align:left}.mobile-nav button:hover{background:#f1f5f9}.nav-icon{font-size:18px}.curriculum-page{min-height:100vh;background:#f8fafc}.curriculum-title-bar{background:#fff;padding:20px 24px;border-radius:12px;margin-bottom:24px;box-shadow:0 1px 3px #0000000f}.curriculum-title-bar h1{font-size:24px;color:#1e293b;margin:0 0 12px}.curriculum-meta{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:16px}.curriculum-meta .meta-item{font-size:14px;color:#64748b}.curriculum-meta .meta-item:after{content:"•";margin-left:16px;color:#cbd5e1}.curriculum-meta .meta-badge{background:#e0e7ff;color:#4f46e5;padding:4px 10px;border-radius:20px;font-size:12px;font-weight:500}.curriculum-title-bar .header-actions{display:flex;gap:12px}.btn-back{padding:8px 16px;background:#f1f5f9;border:none;border-radius:6px;cursor:pointer;font-size:14px;color:#475569}.btn-back:hover{background:#e2e8f0}.mobile-menu-btn{display:flex}.header-info h1{font-size:16px}.header-actions{width:100%;justify-content:flex-end}.curriculum-content{padding:20px}.edit-form .form-row{grid-template-columns:1fr}.add-topic-form{flex-wrap:wrap}.topics-table{font-size:13px}.topics-table th,.topics-table td{padding:10px 8px}} .edit-section{background:#fff;padding:24px;border-radius:12px;margin-bottom:24px;box-shadow:0 1px 3px #0000000d}.edit-section h2{margin:0 0 16px;font-size:18px;color:#1e293b}.modal-form{display:flex;flex-direction:column;gap:16px}.modal-form .form-group{margin-bottom:0}.modal-form textarea{width:100%;padding:10px 14px;border:1px solid #e2e8f0;border-radius:8px;font-size:14px;font-family:inherit;resize:vertical;min-height:80px}.modal-form textarea:focus{outline:none;border-color:#4f46e5}.topics-management{background:#fff;padding:20px;border-radius:12px;margin-bottom:24px;box-shadow:0 1px 3px #0000000d}.topic-card{background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000000d;overflow:hidden;transition:all .2s}.topic-card.expanded{box-shadow:0 4px 12px #0000001a}.topic-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;cursor:pointer;background:#f8fafc;transition:background .2s}.topic-header:hover{background:#f1f5f9}.topic-info{display:flex;align-items:center;gap:12px;flex:1}.expand-icon{font-size:10px;color:#94a3b8;width:16px}.topic-number{background:#4f46e5;color:#fff;width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600}.topic-title{font-weight:600;color:#1e293b;font-size:16px}.topic-desc{font-size:13px;color:#64748b;margin-left:8px}.topic-stats{display:flex;gap:16px}.topic-stats .stat{font-size:13px;color:#64748b}.topic-stats .stat.held{color:#16a34a;font-weight:500}.btn-delete-topic{background:none;border:none;cursor:pointer;padding:4px 8px;opacity:.5;transition:opacity .2s}.btn-delete-topic:hover{opacity:1}.topic-content{padding:20px;border-top:1px solid #f1f5f9}.lessons-list{display:flex;flex-direction:column;gap:12px}.lesson-card{background:#fafbfc;border-radius:10px;border:1px solid #f1f5f9;overflow:hidden}.lesson-card.held{background:#f0fdf4;border-color:#bbf7d0}.lesson-header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;cursor:pointer;transition:background .2s}.lesson-header:hover{background:#00000005}.lesson-info{display:flex;align-items:center;gap:10px;flex:1}.lesson-number{font-size:12px;color:#94a3b8;font-weight:500}.lesson-title{font-weight:500;color:#334155}.held-badge{background:#dcfce7;color:#16a34a;padding:2px 8px;border-radius:10px;font-size:11px;font-weight:500}.lesson-stats{display:flex;gap:12px;font-size:12px;color:#94a3b8}.lesson-actions{display:flex;gap:8px;align-items:center}.btn-mark-held{padding:4px 10px;background:#16a34a;color:#fff;border:none;border-radius:6px;font-size:12px;cursor:pointer;transition:background .2s}.btn-mark-held:hover{background:#15803d}.btn-delete-lesson{background:none;border:none;cursor:pointer;padding:4px;opacity:.5}.btn-delete-lesson:hover{opacity:1}.lesson-content{padding:16px;border-top:1px solid #f1f5f9;background:#fff}.lesson-description{color:#475569;font-size:14px;margin:0 0 12px}.lesson-homework{background:#fef3c7;padding:12px;border-radius:8px;font-size:14px;color:#92400e;margin-bottom:16px}.materials-section{margin-top:16px}.materials-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.materials-header h4{margin:0;font-size:14px;color:#64748b}.btn-add-material{padding:6px 12px;background:#f1f5f9;border:1px dashed #94a3b8;border-radius:6px;font-size:12px;color:#64748b;cursor:pointer;transition:all .2s}.btn-add-material:hover{background:#e2e8f0;border-color:#64748b}.materials-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}.material-card{display:flex;gap:10px;padding:12px;background:#f8fafc;border-radius:8px;border:1px solid #f1f5f9;position:relative}.material-card.type-presentation{border-left:3px solid #3b82f6}.material-card.type-homework{border-left:3px solid #f59e0b}.material-card.type-test{border-left:3px solid #10b981}.material-card.type-video{border-left:3px solid #8b5cf6}.material-card.type-link{border-left:3px solid #06b6d4}.material-card.type-file{border-left:3px solid #64748b}.material-icon{font-size:20px}.material-info{display:flex;flex-direction:column;gap:2px;flex:1}.material-title{font-weight:500;font-size:13px;color:#1e293b}.material-type{font-size:11px;color:#64748b}.material-desc{font-size:12px;color:#94a3b8}.material-file{font-size:11px;color:#64748b}.material-link{font-size:12px;color:#4f46e5;text-decoration:none}.material-link:hover{text-decoration:underline}.btn-delete-material{position:absolute;top:8px;right:8px;background:none;border:none;cursor:pointer;opacity:0;color:#dc2626;font-size:12px;padding:2px 6px;transition:opacity .2s}.material-card:hover .btn-delete-material{opacity:.6}.btn-delete-material:hover{opacity:1}.no-materials{color:#94a3b8;font-size:13px;text-align:center;padding:20px}.btn-add-lesson{margin-top:12px;width:100%;padding:12px;background:#f8fafc;border:1px dashed #94a3b8;border-radius:8px;cursor:pointer;font-size:14px;color:#64748b;transition:all .2s}.btn-add-lesson:hover{background:#f1f5f9;border-color:#64748b}.class-list{display:flex;flex-direction:column;gap:8px}.class-item{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;cursor:pointer;text-align:left;transition:all .2s}.class-item:hover{background:#f1f5f9;border-color:#4f46e5}.class-item .class-name{font-weight:600;color:#1e293b}.class-item .class-subject{font-size:13px;color:#64748b}.meta-badge{background:#e0e7ff;color:#4f46e5;padding:2px 8px;border-radius:10px;font-size:11px;font-weight:500}.form-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}.btn-primary:disabled{opacity:.5;cursor:not-allowed}.btn-secondary.published{background:#dcfce7;border-color:#86efac;color:#15803d}.create-task-page{background:#f8fafc;padding-bottom:40px}.back-btn{padding:8px 16px;background:transparent;border:1px solid #e2e8f0;border-radius:8px;cursor:pointer;color:#475569;font-size:14px;transition:all .2s}.back-btn:hover{background:#f1f5f9;border-color:#cbd5e1}.error-banner{background:#fee2e2;color:#dc2626;padding:12px 32px}.success-banner{background:#dcfce7;color:#16a34a;padding:12px 32px}.task-form{max-width:800px;margin:32px auto;padding:0 20px}.form-section{background:#fff;padding:24px;border-radius:12px;margin-bottom:24px;box-shadow:0 1px 3px #0000000d}.form-section h2{font-size:18px;color:#1e293b;margin:0 0 20px;padding-bottom:12px;border-bottom:1px solid #f1f5f9}.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;padding-bottom:12px;border-bottom:1px solid #f1f5f9}.section-header h2{margin:0;padding:0;border:none}.form-group{margin-bottom:16px}.form-group label{display:block;margin-bottom:6px;font-weight:500;color:#374151;font-size:14px}.form-group input,.form-group select,.form-group textarea{width:100%;padding:10px 14px;border:1px solid #e2e8f0;border-radius:8px;font-size:14px;transition:border-color .2s;font-family:inherit}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:#4f46e5}.form-group textarea{resize:vertical;min-height:80px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.checkbox-group{margin-top:8px}.checkbox-label{display:flex!important;align-items:center;gap:10px;cursor:pointer}.checkbox-label input[type=checkbox]{width:18px;height:18px;accent-color:#4f46e5}.class-selector{margin-top:8px}.no-classes{color:#64748b;font-size:14px}.class-chips{display:flex;flex-wrap:wrap;gap:8px}.class-chip{padding:8px 16px;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:20px;font-size:13px;color:#475569;cursor:pointer;transition:all .2s}.class-chip:hover{border-color:#4f46e5;color:#4f46e5}.class-chip.selected{background:#e0e7ff;border-color:#4f46e5;color:#4f46e5}.btn-add{padding:8px 16px;background:#4f46e5;color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:background .2s}.btn-add:hover{background:#4338ca}.empty-questions{text-align:center;padding:40px 20px;color:#64748b #f8f;background:afc;border-radius:8px}.questions-list{display:flex;flex-direction:column;gap:16px}.question-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:20px}.question-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.question-number{font-weight:600;color:#1e293b}.btn-remove{width:28px;height:28px;background:#fee2e2;color:#dc2626;border:none;border-radius:6px;font-size:18px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s}.btn-remove:hover{background:#fecaca}.options-list{margin-top:12px}.options-list>label{margin-bottom:10px}.option-row{display:flex;align-items:center;gap:10px;margin-bottom:8px}.option-row input[type=radio]{width:18px;height:18px;accent-color:#4f46e5}.option-letter{width:28px;height:28px;background:#e0e7ff;color:#4f46e5;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600}.option-row input[type=text]{flex:1}.extension-selector{display:flex;flex-wrap:wrap;gap:8px}.extension-chip{padding:6px 14px;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:6px;font-size:13px;color:#475569;cursor:pointer;transition:all .2s;text-transform:lowercase}.extension-chip:hover{border-color:#4f46e5;color:#4f46e5}.extension-chip.selected{background:#e0e7ff;border-color:#4f46e5;color:#4f46e5}.form-actions{display:flex;gap:12px;justify-content:flex-end;padding-top:20px}.btn-primary{padding:12px 24px;background:#4f46e5;color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:background .2s}.btn-primary:disabled{background:#94a3b8;cursor:not-allowed}.btn-secondary{padding:12px 24px;background:#f1f5f9;color:#475569;border:1px solid #e2e8f0;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer}@media(max-width:768px){.page-header{padding:12px;gap:8px}.page-header h1{font-size:16px}.mobile-menu-btn{display:flex}.task-form{padding:0 16px}.form-row{grid-template-columns:1fr}.form-actions{flex-direction:column}.form-actions button{width:100%}}.library-fields{background:#f0fdf4;padding:16px;border-radius:8px;border:1px solid #bbf7d0}.library-fields .form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.tasks-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px}.task-card-modern{background:#fff;border-radius:16px;padding:20px;box-shadow:0 1px 3px #0000000f;transition:all .3s;border:1px solid transparent}.task-card-modern:hover{box-shadow:0 8px 24px #0000001a;border-color:#4f46e5;transform:translateY(-4px)}.task-card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.task-type-icon{width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:20px}.task-type-icon.large{width:56px;height:56px;font-size:28px}.task-type-icon.test{background:#dbeafe}.task-type-icon.homework{background:#dcfce7}.task-type-icon.control{background:#fef3c7}.task-type-badge{padding:4px 12px;border-radius:20px;font-size:12px;font-weight:600}.task-type-badge.test{background:#dbeafe;color:#1d4ed8}.task-type-badge.homework{background:#dcfce7;color:#15803d}.task-type-badge.control{background:#fef3c7;color:#b45309}.task-title{margin:0 0 12px;font-size:17px;font-weight:600;color:#1e293b;line-height:1.4}.task-description{margin:0 0 16px;font-size:14px;color:#64748b;line-height:1.5}.task-info-row{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.info-tag{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border-radius:6px;font-size:12px;font-weight:500}.info-tag.grade{background:#f0fdf4;color:#15803d}.info-tag.subject{background:#f5f3ff;color:#7c3aed}.tag-icon{font-size:12px}.task-meta-row{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-top:1px solid #f1f5f9;border-bottom:1px solid #f1f5f9;margin-bottom:12px;font-size:12px;color:#94a3b8}.task-card-actions{display:flex;gap:8px;flex-wrap:wrap}.task-card-actions .btn-edit,.task-card-actions .btn-preview,.task-card-actions .btn-use,.task-card-actions .btn-publish,.task-card-actions .btn-delete{flex:1;min-width:calc(50% - 4px);padding:8px 10px;border-radius:8px;cursor:pointer;font-size:12px;font-weight:500;transition:all .2s;text-align:center}.btn-use{background:#dcfce7;border:1px solid #bbf7d0;color:#15803d}.btn-use:hover{background:#bbf7d0}.task-badges{display:flex;gap:6px;flex-wrap:wrap}.task-badge{padding:4px 10px;border-radius:6px;font-size:11px;font-weight:600}.task-badge.library{background:#dbeafe;color:#1d4ed8}.task-badge.private{background:#f1f5f9;color:#64748b}.btn-edit{flex:1;padding:10px 12px;border-radius:8px;cursor:pointer;font-size:13px;font-weight:500;transition:all .2s;background:#f1f5f9;border:1px solid #e2e8f0;color:#475569}.btn-edit:hover{background:#e2e8f0;color:#1e293b}.modal-content select{width:100%;padding:12px 14px;border:1px solid #e2e8f0;border-radius:8px;font-size:14px}.preview-section p{color:#334155;line-height:1.6;margin:0}.questions-list{display:flex;flex-direction:column;gap:8px}.question-item{display:flex;gap:12px;padding:12px;background:#f8fafc;border-radius:8px}.question-number{width:24px;height:24px;background:#4f46e5;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;flex-shrink:0}.question-text{color:#334155;line-height:1.5}.answer-box{padding:12px 16px;background:#dcfce7;border-radius:8px;color:#15803d;font-weight:500}@media(max-width:768px){.library-content{padding:16px}.library-header-section{flex-direction:column;align-items:stretch}.library-tabs{width:100%;gap:4px;flex-wrap:wrap}.tab-btn{flex:1 1 calc(50% - 2px);justify-content:center;padding:6px 4px;font-size:11px;gap:2px;min-width:0;white-space:nowrap}.tab-icon{display:none}.tab-count{padding:1px 3px;font-size:9px}.btn-create-task{justify-content:center;padding:8px 16px;font-size:13px;width:100%;margin-top:8px}.btn-create-task span{font-size:16px}.filters-row{flex-direction:column}.filter-group,.filter-group.search-group{width:100%;min-width:0}.filter-group select,.filter-group input{padding:8px 12px;font-size:13px}.filter-group label{font-size:11px}.btn-clear-filters{width:100%}.tasks-grid{grid-template-columns:1fr}.task-card-modern{padding:16px}.task-title{font-size:15px}.task-description{font-size:13px}.preview-header{flex-direction:column;align-items:center;text-align:center}.preview-tags{justify-content:center}.preview-actions{flex-direction:column}.preview-actions .btn-primary,.preview-actions .btn-secondary{width:100%}}.file-explorer{display:flex;flex-direction:column;height:calc(100vh - 80px);background:#f3f3f3;font-family:Segoe UI,-apple-system,BlinkMacSystemFont,sans-serif;font-size:14px;color:#1a1a1a}@media(max-width:768px){.mobile-page-header{display:flex;align-items:center;gap:12px;padding:12px 16px;background:#fff;box-shadow:0 1px 3px #00000014;margin-bottom:16px;margin-left:-16px;margin-right:-16px;width:calc(100% + 32px);box-sizing:border-box}.mobile-page-header h1{font-size:16px;margin:0;flex:1}}.explorer-toolbar{background:linear-gradient(180deg,#fff,#f8f9fa);border-bottom:1px solid #d1d5db;padding:8px 12px;display:flex;flex-direction:column;gap:8px;flex-shrink:0}.toolbar-buttons{display:flex;align-items:center;gap:4px}.toolbar-btn{width:36px;height:36px;border:none;background:transparent;border-radius:4px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s}.toolbar-btn:hover:not(:disabled){background:#e5e7eb}.toolbar-btn:active:not(:disabled){background:#d1d5db}.toolbar-btn:disabled{opacity:.4;cursor:not-allowed}.toolbar-icon{font-size:18px}.toolbar-separator{width:1px;height:24px;background:#d1d5db;margin:0 8px}.toolbar-address{display:flex;align-items:center;background:#fff;border:1px solid #d1d5db;border-radius:4px;padding:4px 8px;overflow-x:auto}.address-btn{background:none;border:none;padding:4px 8px;cursor:pointer;white-space:nowrap;border-radius:2px;font-size:13px;color:#1a1a1a}.address-btn:hover{background:#e5e7eb}.address-separator{color:#9ca3af;margin:0 2px}.explorer-content{flex:1;overflow:hidden;position:relative;background:#fff;margin:8px;border-radius:8px;border:1px solid #e5e7eb;box-shadow:0 1px 3px #00000014}.explorer-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:#6b7280;gap:12px}.loading-spinner{width:32px;height:32px;border:3px solid #e5e7eb;border-top-color:#3b82f6;border-radius:50%;animation:spin .8s linear infinite}.explorer-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:#6b7280}.empty-icon{font-size:64px;margin-bottom:16px;opacity:.5}.explorer-empty p{margin:4px 0;font-size:16px}.empty-hint{font-size:13px!important;color:#9ca3af}.file-list{display:flex;flex-direction:column;height:100%}.file-list-header{display:flex;background:#f8f9fa;border-bottom:1px solid #e5e7eb;font-weight:600;font-size:13px;color:#4b5563;flex-shrink:0}.header-cell{padding:10px 12px;border-right:1px solid #e5e7eb}.header-cell.name{flex:1;min-width:200px}.header-cell.size{width:100px;text-align:right}.header-cell.date{width:120px;text-align:left}.file-list-body{flex:1;overflow-y:auto;overflow-x:hidden}.file-item{display:flex;align-items:center;padding:6px 12px;border-bottom:1px solid #f3f4f6;cursor:default;transition:background .1s}.file-item:hover{background:#f8f9fa}.file-item.selected{background:#dbeafe!important}.file-item.selected:hover{background:#bfdbfe!important}.file-item.dragging{opacity:.5}.file-item[data-folder=true]:hover{background:#f0fdf4}.file-cell{display:flex;align-items:center}.file-cell.name{flex:1;min-width:200px;gap:10px}.file-cell.size{width:100px;justify-content:flex-end;color:#6b7280;font-size:13px}.file-cell.date{width:120px;color:#6b7280;font-size:13px}.file-icon{font-size:24px;flex-shrink:0}.file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rename-input{flex:1;padding:4px 8px;border:2px solid #3b82f6;border-radius:4px;font-size:14px;outline:none}.explorer-statusbar{display:flex;justify-content:space-between;align-items:center;padding:6px 16px;background:#f8f9fa;border-top:1px solid #d1d5db;font-size:13px;color:#4b5563;flex-shrink:0}.status-left,.status-right{display:flex;align-items:center;gap:8px}.modal-overlay{position:fixed;inset:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:1000}.modal{background:#fff;padding:24px;border-radius:8px;min-width:360px;box-shadow:0 8px 32px #0003}.modal h3{margin:0 0 16px;font-size:18px;font-weight:600}.modal input[type=text]{width:100%;padding:10px 12px;border:1px solid #d1d5db;border-radius:4px;font-size:14px;box-sizing:border-box;margin-bottom:16px}.modal input[type=text]:focus{outline:none;border-color:#3b82f6}.modal-buttons{display:flex;gap:8px;justify-content:flex-end}.modal-buttons button{padding:8px 20px;border:none;border-radius:4px;cursor:pointer;font-size:14px;transition:background .15s}.modal-buttons button:first-child{background:#3b82f6;color:#fff}.modal-buttons button:first-child:hover{background:#2563eb}.modal-buttons button:last-child{background:#e5e7eb}.modal-buttons button:last-child:hover{background:#d1d5db}.confirm-modal{text-align:center;max-width:400px}.confirm-modal .modal-icon{font-size:48px;margin-bottom:12px}.confirm-modal .modal-icon.danger{color:#dc2626}.confirm-modal h3{margin-bottom:12px}.confirm-modal p{margin:8px 0;color:#4b5563}.confirm-modal .modal-warning{font-size:13px;color:#9ca3af}.confirm-modal .modal-buttons{margin-top:20px;justify-content:center}.confirm-modal .btn-danger{background:#dc2626!important;color:#fff}.confirm-modal .btn-danger:hover{background:#b91c1c!important}.confirm-modal .btn-secondary{background:#e5e7eb!important;color:#374151}.confirm-modal .btn-secondary:hover{background:#d1d5db!important}.windows-context-menu{position:fixed;background:#fff;border:1px solid #d1d5db;border-radius:8px;box-shadow:0 8px 24px #00000026;z-index:1001;min-width:200px;padding:4px}.context-item{display:flex;align-items:center;gap:10px;padding:10px 14px;cursor:pointer;border-radius:4px;font-size:14px}.context-item:hover{background:#f3f4f6}.context-item.danger{color:#dc2626}.context-item.danger:hover{background:#fef2f2}.context-icon{font-size:16px;width:20px;text-align:center}.context-separator{height:1px;background:#e5e7eb;margin:4px 0}.drop-overlay{position:absolute;inset:0;background:#3b82f61a;border:2px dashed #3b82f6;border-radius:8px;display:flex;align-items:center;justify-content:center;pointer-events:none}.drop-indicator{background:#fff;padding:12px 24px;border-radius:8px;font-weight:500;box-shadow:0 4px 12px #00000026}.clipboard-toast{position:fixed;bottom:20px;right:20px;background:#1f2937;color:#fff;padding:12px 20px;border-radius:8px;font-size:14px;cursor:pointer;box-shadow:0 4px 12px #0003;z-index:100;transition:transform .2s}.clipboard-toast:hover{transform:scale(1.02)}.file-explorer{height:calc(100vh - 60px)}.explorer-toolbar{padding:8px}.toolbar-address{font-size:12px}.address-btn{padding:4px 6px;font-size:12px}.file-item{padding:10px 8px}.file-cell.size,.file-cell.date,.header-cell.size,.header-cell.date{display:none}.explorer-statusbar{font-size:12px;padding:8px 12px}.modal{min-width:90%;margin:16px}} @media (max-width: 480px){.toolbar-btn{width:32px;height:32px}.toolbar-icon{font-size:16px}.file-icon{font-size:20px}.file-name{font-size:13px}.storage-header{display:flex;padding:8px 12px}.storage-header h1{font-size:16px}.mobile-menu-btn{display:flex}}.calendar-page{background:#f8fafc}.mobile-page-header{display:none}.calendar-page .calendar-nav{display:flex;align-items:center;gap:16px;margin-bottom:20px;padding:16px 20px;background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000000f}.calendar-nav h2{flex:1;font-size:20px;color:#1e293b;margin:0;min-width:200px;text-align:center}.nav-btn{width:40px;height:40px;border:1px solid #e2e8f0;background:#fff;border-radius:8px;cursor:pointer;font-size:18px;color:#475569;transition:all .2s}.nav-btn:hover{background:#f1f5f9;border-color:#4f46e5;color:#4f46e5}.today-btn{padding:10px 20px;background:#4f46e5;color:#fff;border:none;border-radius:8px;cursor:pointer;font-weight:500;font-size:14px;transition:all .2s}.today-btn:hover{background:#4338ca}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 1px 3px #0000000f}.calendar-day-header{padding:14px;text-align:center;font-weight:600;font-size:13px;color:#64748b;background:#f8fafc;border-bottom:1px solid #e2e8f0}.calendar-cell{min-height:100px;padding:8px;border-right:1px solid #f1f5f9;border-bottom:1px solid #f1f5f9;background:#fff;transition:background .2s}.calendar-cell:nth-child(7n){border-right:none}.calendar-cell.empty{background:#fafafa}.calendar-cell.today{background:#f0f9ff}.calendar-cell.today .day-number{background:#4f46e5;color:#fff;width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center}.day-number{font-size:14px;font-weight:500;color:#1e293b;margin-bottom:6px}.cell-events{display:flex;flex-direction:column;gap:4px}.event-pill{padding:4px 8px;border-radius:4px;font-size:11px;font-weight:500;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:all .2s}.event-pill:hover{transform:translateY(-1px);box-shadow:0 2px 4px #0000001a}.event-pill.task{background:#dbeafe;color:#1d4ed8}.event-pill.lesson{background:#dcfce7;color:#15803d}.more-events{font-size:11px;color:#64748b;padding:2px 4px}.calendar-legend{display:flex;gap:20px;margin-top:16px;padding:12px 16px;background:#fff;border-radius:8px}.legend-item{display:flex;align-items:center;gap:8px;font-size:13px;color:#64748b}.legend-dot{width:12px;height:12px;border-radius:3px}.legend-dot.task{background:#dbeafe}.legend-dot.lesson{background:#dcfce7}.modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.event-modal{background:#fff;padding:24px;border-radius:16px;max-width:480px;width:90%}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.event-type-badge{padding:6px 12px;border-radius:20px;font-size:13px;font-weight:500}.event-type-badge.task{background:#dbeafe;color:#1d4ed8}.event-type-badge.lesson{background:#dcfce7;color:#15803d}.btn-close{width:32px;height:32px;border:none;background:#f1f5f9;border-radius:8px;font-size:20px;color:#64748b;cursor:pointer}.btn-close:hover{background:#e2e8f0}.event-modal h3{margin:0 0 12px;color:#1e293b;font-size:18px}.event-class{color:#64748b;font-size:14px;margin:0 0 8px}.event-date{color:#475569;font-size:14px;margin:0 0 16px}.event-details{padding:16px;background:#f8fafc;border-radius:8px;margin-bottom:16px}.event-details p{margin:0 0 8px;color:#475569;font-size:14px;line-height:1.5}.event-details p:last-child{margin-bottom:0}.worktype{color:#4f46e5!important;font-weight:500}.topic{color:#059669!important}.homework-section{margin-top:12px;padding-top:12px;border-top:1px solid #e2e8f0}.homework-section strong{color:#1e293b;font-size:13px}.modal-actions{display:flex;gap:12px;justify-content:flex-end}.btn-secondary{padding:10px 20px;background:#f1f5f9;color:#475569;border:1px solid #e2e8f0;border-radius:8px;cursor:pointer;font-weight:500;font-size:14px}.btn-secondary:hover{background:#e2e8f0;color:#1e293b}.btn-primary{padding:10px 20px;background:#4f46e5;color:#fff;border:none;border-radius:8px;cursor:pointer;font-weight:500;font-size:14px}.btn-primary:hover{background:#4338ca}@media(max-width:768px){.calendar-page{padding:0;margin:0}.mobile-page-header{display:flex;align-items:center;gap:12px;padding:12px 16px;background:#fff;box-shadow:0 1px 3px #00000014;margin-bottom:16px;margin-left:-16px;margin-right:-16px;width:calc(100% + 32px);box-sizing:border-box}.mobile-page-header h1{font-size:16px;color:#1e293b;margin:0;flex:1}.calendar-header h1{font-size:16px}.calendar-nav{gap:8px;margin-bottom:16px;flex-wrap:wrap}.calendar-nav h2{min-width:auto;font-size:16px;order:-1;width:100%;margin-bottom:8px}.nav-btn{width:36px;height:36px;font-size:16px}.today-btn{padding:6px 12px;font-size:13px;margin-left:auto}.calendar-grid{border-radius:8px}.calendar-day-header{padding:8px 4px;font-size:12px}.calendar-cell{min-height:60px;padding:4px}.day-number{font-size:12px}.event-pill{font-size:10px;padding:2px 4px}}.parent-dashboard{min-height:100vh;background:#f8fafc}.parent-header{background:#fff;padding:12px 16px;display:flex;justify-content:space-between;align-items:center;gap:12px;box-shadow:0 1px 3px #0000000f}.parent-header h1{margin:0;font-size:20px;color:#1e293b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}.mobile-menu-btn{display:none;flex-direction:column;justify-content:center;gap:5px;width:36px;height:36px;background:#f1f5f9;border:none;border-radius:8px;cursor:pointer;padding:6px;flex-shrink:0}.mobile-menu-btn span{display:block;width:24px;height:2px;background:#475569;border-radius:2px}.desktop-only{display:flex}.logout-btn{padding:8px 16px;background:#f1f5f9;border:none;border-radius:6px;cursor:pointer;color:#475569}.logout-btn:hover{background:#e2e8f0}.no-children{display:flex;justify-content:center;padding:60px 20px}.empty-card{background:#fff;padding:40px;border-radius:12px;text-align:center;max-width:400px;box-shadow:0 1px 3px #0000000f}.empty-card h2{margin:0 0 12px;color:#1e293b}.empty-card p{color:#64748b;margin:0 0 20px}.dashboard-content{display:flex;gap:24px;padding:24px;max-width:1200px;margin:0 auto}@media(min-width:1600px){.dashboard-content{max-width:1100px}}.children-sidebar{width:280px;flex-shrink:0}.children-sidebar h3{margin:0 0 16px;color:#1e293b;font-size:16px}.children-list{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 1px 3px #0000000f}.child-item{display:flex;align-items:center;gap:12px;padding:16px;cursor:pointer;border-bottom:1px solid #f1f5f9;transition:background .2s}.child-item:last-child{border-bottom:none}.child-item:hover{background:#f8fafc}.child-item.active{background:#eff6ff}.child-avatar{width:48px;height:48px;border-radius:50%;background:#4f46e5;color:#fff;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:600}.child-info{flex:1;min-width:0}.child-name{font-weight:600;color:#1e293b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.child-classes{font-size:13px;color:#64748b}.add-child-btn{width:100%;margin-top:16px}.child-dashboard{flex:1;min-width:0}.child-header{display:flex;align-items:center;gap:16px;margin-bottom:24px}.child-header h2{margin:0;color:#1e293b}.child-classes-badge{background:#e0e7ff;color:#4338ca;padding:4px 12px;border-radius:16px;font-size:14px}.attendance-card,.grades-card{background:#fff;border-radius:12px;padding:24px;margin-bottom:24px;box-shadow:0 1px 3px #0000000f}.attendance-card h3,.grades-card h3{margin:0 0 20px;color:#1e293b}.attendance-stats{display:flex;align-items:center;gap:32px}.stat-circle{width:120px;height:120px;border-radius:50%;background:linear-gradient(135deg,#4f46e5,#6366f1);display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff}.stat-circle .stat-value{font-size:32px;font-weight:700}.stat-circle .stat-label{font-size:12px;opacity:.9}.stat-details{flex:1}.stat-row{padding:8px 0;font-size:15px;border-bottom:1px solid #f1f5f9}.stat-row:last-child{border-bottom:none}.stat-row.present{color:#16a34a}.stat-row.absent{color:#dc2626}.stat-row.late{color:#f59e0b}.stat-row.excused{color:#6366f1}.grades-overview{display:flex;align-items:center;gap:32px;margin-bottom:24px}.grade-stat{text-align:center;padding:20px;background:#f8fafc;border-radius:12px;min-width:120px}.grade-stat .grade-value{display:block;font-size:36px;font-weight:700;color:#4f46e5}.grade-stat .grade-label{font-size:13px;color:#64748b}.grade-distribution{display:flex;gap:16px}.dist-item{display:flex;flex-direction:column;align-items:center;gap:4px}.dist-grade{width:40px;height:40px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-weight:700;color:#fff}.dist-grade.grade-5{background:#16a34a}.dist-grade.grade-4{background:#22c55e}.dist-grade.grade-3{background:#f59e0b}.dist-grade.grade-2{background:#dc2626}.dist-count{font-size:14px;color:#64748b}.grades-by-subject h4{margin:0 0 12px;color:#475569;font-size:14px}.grades-table{width:100%;border-collapse:collapse}.grades-table th,.grades-table td{padding:10px 12px;text-align:left;border-bottom:1px solid #f1f5f9}.grades-table th{background:#f8fafc;font-weight:600;color:#64748b;font-size:13px}.grades-table td.avg{font-weight:600}.grades-table td.avg.good{color:#16a34a}.grades-table td.avg.ok{color:#f59e0b}.grades-table td.avg.bad{color:#dc2626}.recent-grades h4{margin:0 0 12px;color:#475569;font-size:14px}.grades-list{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 1px 3px #0000000f}.grade-row{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid #f1f5f9}.grade-row:last-child{border-bottom:none}.grade-badge{width:32px;height:32px;border-radius:6px;display:flex;align-items:center;justify-content:center;font-weight:700;color:#fff}.grade-badge.grade-5{background:#16a34a}.grade-badge.grade-4{background:#22c55e}.grade-badge.grade-3{background:#f59e0b}.grade-badge.grade-2{background:#dc2626}.grade-type{color:#475569;font-size:14px}.grade-date{color:#94a3b8;font-size:13px;margin-left:auto}.grade-comment{color:#64748b;font-size:13px;font-style:italic}@media(max-width:768px){.mobile-menu-btn{display:flex}.desktop-only{display:none}.parent-header{padding:12px 16px}.parent-header h1{font-size:16px}.dashboard-content{flex-direction:column}.children-sidebar{width:100%}.attendance-stats,.grades-overview{flex-direction:column}}.parent-tabs{display:flex;gap:8px;margin-bottom:20px;border-bottom:1px solid #e2e8f0;padding-bottom:12px}.parent-tabs .tab-btn{padding:10px 16px;background:none;border:none;border-radius:8px;cursor:pointer;font-size:14px;font-weight:500;color:#64748b;transition:all .2s}.parent-tabs .tab-btn:hover{background:#f1f5f9;color:#4f46e5}.parent-tabs .tab-btn.active{background:#eff6ff;color:#4f46e5}.tasks-card,.curriculum-card{background:#fff;border-radius:12px;padding:24px;margin-bottom:24px;box-shadow:0 1px 3px #0000000f}.tasks-card h3,.curriculum-card h3{margin:0 0 20px;color:#1e293b}.tasks-list{display:flex;flex-direction:column;gap:12px}.task-item{padding:16px;background:#f8fafc;border-radius:8px;border:1px solid #e2e8f0}.task-item.overdue{background:#fef2f2;border-color:#fecaca}.task-info h4{margin:0 0 8px;color:#1e293b}.task-desc{color:#64748b;font-size:14px;margin:0 0 8px}.task-meta{display:flex;gap:12px;align-items:center}.status-badge{padding:4px 8px;border-radius:4px;font-size:12px;font-weight:500}.status-badge.pending{background:#fef3c7;color:#92400e}.status-badge.submitted{background:#dbeafe;color:#1d4ed8}.status-badge.graded{background:#dcfce7;color:#166534}.due-date{font-size:13px;color:#64748b}.due-date.overdue{color:#dc2626;font-weight:500}.task-comment{margin:12px 0 0;padding:8px 12px;background:#fffbeb;border-radius:6px;font-size:13px;color:#92400e;font-style:italic}.curriculum-content h4{margin:0 0 16px;color:#475569}.topics-list{display:flex;flex-direction:column;gap:16px}.topic-block h5{margin:0 0 8px;color:#334155;font-size:14px}.lesson-item{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;background:#f8fafc;border-radius:6px;margin-bottom:4px}.lesson-title{color:#475569;font-size:13px}.homework-badge{background:#fef3c7;color:#b45309;padding:2px 8px;border-radius:4px;font-size:11px}.create-class-page{max-width:1200px}.create-class-container{display:flex;justify-content:center;padding-top:20px}.create-class-card{background:#fff;padding:32px;border-radius:16px;box-shadow:0 2px 8px #00000014;width:100%;max-width:500px}.create-class-card h2{margin:0 0 8px;color:#1e293b}.create-class-desc{color:#64748b;margin-bottom:24px}.create-class-card .form-group{margin-bottom:16px}.create-class-card label{display:block;margin-bottom:6px;font-weight:500;color:#374151}.create-class-card input,.create-class-card select{width:100%;padding:12px;border:1px solid #e5e7eb;border-radius:8px;font-size:14px}.create-class-card input:focus,.create-class-card select:focus{outline:none;border-color:var(--primary)}.create-class-card button{width:100%;padding:12px;margin-top:8px;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer}.create-class-card .btn-primary{background:var(--primary);color:#fff;border:none}.create-class-card .btn-primary:hover{background:var(--primary-hover)}.create-class-card .btn-secondary{background:#fff;color:#6b7280;border:1px solid #e5e7eb}.create-class-card .btn-secondary:hover{background:#f9fafb}@media(max-width:768px){.mobile-page-header{display:flex;align-items:center;gap:12px;padding:12px 16px;background:#fff;box-shadow:0 1px 3px #00000014;position:sticky;top:0;z-index:100;margin-bottom:16px;margin-left:-16px;margin-right:-16px;width:calc(100% + 32px);box-sizing:border-box}.mobile-page-header h1{font-size:16px;color:#1e293b;margin:0;flex:1}.create-class-card{padding:20px;margin:0 16px}}.library-page{width:100%;max-width:1400px;margin:0 auto}.library-content{padding:24px}.library-header-section{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;flex-wrap:wrap;gap:16px}.library-tabs{display:flex;gap:8px}.tab-btn{display:flex;align-items:center;gap:8px;padding:10px 16px;background:#fff;border:1px solid #e2e8f0;border-radius:10px;cursor:pointer;font-size:14px;font-weight:500;color:#64748b;transition:all .2s}.tab-btn:hover{border-color:#4f46e5;color:#4f46e5}.tab-btn.active{background:#4f46e5;border-color:#4f46e5;color:#fff}.tab-icon{font-size:16px}.tab-count{background:#0000001a;padding:2px 8px;border-radius:12px;font-size:12px}.tab-btn.active .tab-count{background:#fff3}.btn-create-task{display:flex;align-items:center;gap:8px;padding:10px 20px;background:linear-gradient(135deg,#4f46e5,#7c3aed);color:#fff;border:none;border-radius:10px;cursor:pointer;font-size:14px;font-weight:600;transition:all .2s;box-shadow:0 2px 8px #4f46e54d}.btn-create-task:hover{transform:translateY(-2px);box-shadow:0 4px 12px #4f46e566}.btn-create-task span{font-size:18px;font-weight:700}.filters-section{background:#fff;border-radius:12px;padding:20px;margin-bottom:24px;box-shadow:0 1px 3px #0000000f}.filters-row{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}.filter-group{display:flex;flex-direction:column;gap:6px;min-width:140px}.filter-group.search-group{flex:1;min-width:200px}.filter-group label{font-size:12px;font-weight:500;color:#64748b}.filter-group select,.filter-group input{padding:10px 14px;border:1px solid #e2e8f0;border-radius:8px;font-size:14px;color:#1e293b;background:#fff;transition:border-color .2s}.filter-group select:focus,.filter-group input:focus{outline:none;border-color:#4f46e5}.btn-clear-filters{padding:10px 16px;background:#f1f5f9;border:none;border-radius:8px;cursor:pointer;font-size:13px;color:#64748b;transition:all .2s;height:40px}.btn-clear-filters:hover{background:#e2e8f0;color:#dc2626}.tasks-main{min-height:400px}.loading-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:80px 20px;color:#64748b}.loading-spinner{width:40px;height:40px;border:3px solid #e2e8f0;border-top-color:#4f46e5;border-radius:50%;animation:spin .8s linear infinite;margin-bottom:16px}@keyframes spin{to{transform:rotate(360deg)}}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:80px 20px;background:#fff;border-radius:16px;text-align:center;box-shadow:0 1px 3px #0000000f}.empty-icon{font-size:64px;margin-bottom:16px}.empty-state h3{margin:0 0 8px;font-size:20px;color:#1e293b}.empty-state p{margin:0 0 24px;color:#64748b}.curricula-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:16px}.curriculum-card-modern{background:#fff;border-radius:16px;padding:20px;box-shadow:0 1px 3px #0000000f;transition:all .3s;border:1px solid transparent}.curriculum-card-modern:hover{box-shadow:0 8px 24px #0000001a;border-color:#4f46e5;transform:translateY(-4px)}.curriculum-card-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:12px}.curriculum-type-icon{width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:20px;background:#fef3c7}.curriculum-type-icon.large{width:56px;height:56px;font-size:28px}.curriculum-badges{display:flex;gap:6px;flex-wrap:wrap}.curriculum-badge{padding:4px 10px;border-radius:6px;font-size:11px;font-weight:600}.curriculum-badge.grade{background:#f0fdf4;color:#15803d}.curriculum-badge.library{background:#dbeafe;color:#1d4ed8}.curriculum-badge.private{background:#f1f5f9;color:#64748b}.curriculum-badge.subject{background:#f5f3ff;color:#7c3aed}.curriculum-badge.binding{background:#dbeafe;color:#1d4ed8}.curriculum-title{margin:0 0 12px;font-size:18px;font-weight:600;color:#1e293b;line-height:1.4}.curriculum-subject{font-size:14px;color:#64748b;margin-bottom:16px}.curriculum-stats{display:flex;gap:16px;padding:12px 0;border-top:1px solid #f1f5f9;border-bottom:1px solid #f1f5f9;margin-bottom:12px}.curriculum-stats .stat-item{display:flex;flex-direction:column;align-items:center}.curriculum-stats .stat-value{font-size:18px;font-weight:700;color:#4f46e5}.curriculum-stats .stat-label{font-size:11px;color:#94a3b8}.curriculum-meta-row{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#94a3b8;margin-bottom:12px}.author-info{display:flex;align-items:center;gap:4px}.curriculum-card-actions{display:flex;gap:8px;flex-wrap:wrap}.curriculum-card-actions .btn-preview,.curriculum-card-actions .btn-use,.curriculum-card-actions .btn-publish,.curriculum-card-actions .btn-delete{flex:1;min-width:calc(50% - 4px);padding:8px 10px;border-radius:8px;cursor:pointer;font-size:12px;font-weight:500;transition:all .2s;text-align:center}.btn-preview{background:#f1f5f9;border:1px solid #e2e8f0;color:#475569}.btn-preview:hover{background:#e2e8f0;color:#1e293b}.btn-use{background:#dbeafe;border:1px solid #bfdbfe;color:#1d4ed8}.btn-use:hover{background:#bfdbfe}.btn-publish{background:#fef3c7;border:1px solid #fde68a;color:#b45309}.btn-publish:hover{background:#fde68a}.btn-publish.published{background:#dcfce7;border:1px solid #86efac;color:#15803d}.btn-publish.published:hover{background:#86efac}.btn-delete{background:#fee2e2;border:1px solid #fecaca;color:#dc2626}.btn-delete:hover{background:#fecaca}.btn-danger{padding:12px 24px;background:#dc2626;color:#fff;border:none;border-radius:10px;cursor:pointer;font-weight:600;font-size:14px;transition:all .2s}.btn-danger:hover{background:#b91c1c}.modal-overlay{position:fixed;inset:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px;animation:fadeIn .2s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.modal-content{background:#fff;border-radius:16px;padding:24px;width:100%;max-width:440px;animation:slideUp .3s ease}.modal-content.large{max-width:640px;max-height:85vh;overflow-y:auto}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.modal-content h3{margin:0 0 8px;font-size:20px;color:#1e293b}.modal-content p{margin:0 0 16px;color:#64748b}.modal-actions{display:flex;gap:12px;margin-top:24px}.modal-actions .btn-primary,.modal-actions .btn-secondary{flex:1;padding:12px 20px}.btn-primary{padding:12px 24px;background:linear-gradient(135deg,#4f46e5,#7c3aed);color:#fff;border:none;border-radius:10px;cursor:pointer;font-weight:600;font-size:14px;transition:all .2s}.btn-primary:hover{transform:translateY(-2px);box-shadow:0 4px 12px #4f46e566}.btn-primary:disabled{background:#94a3b8;cursor:not-allowed;transform:none;box-shadow:none}.btn-secondary{padding:12px 24px;background:#f1f5f9;color:#475569;border:1px solid #e2e8f0;border-radius:10px;cursor:pointer;font-weight:500;font-size:14px}.btn-secondary:hover{background:#e2e8f0}.preview-header{display:flex;gap:16px;margin-bottom:24px;padding-bottom:20px;border-bottom:1px solid #f1f5f9}.preview-title-area{flex:1}.preview-title-area h2{margin:0 0 12px;font-size:22px;color:#1e293b}.preview-tags{display:flex;flex-wrap:wrap;gap:8px}.preview-body{margin-bottom:24px}.preview-stats{display:flex;gap:16px;margin-bottom:24px}.stat-box{flex:1;background:#f8fafc;border-radius:12px;padding:16px;text-align:center}.stat-box .stat-number{display:block;font-size:28px;font-weight:700;color:#4f46e5}.stat-box .stat-text{font-size:13px;color:#64748b}.preview-section{margin-bottom:20px}.preview-section h4{margin:0 0 10px;font-size:14px;font-weight:600;color:#475569;text-transform:uppercase;letter-spacing:.5px}.topics-list{display:flex;flex-direction:column;gap:8px}.topic-item{display:flex;align-items:center;gap:12px;padding:12px;background:#f8fafc;border-radius:8px}.topic-number{width:24px;height:24px;background:#4f46e5;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;flex-shrink:0}.topic-title{flex:1;color:#334155}.topic-lessons{font-size:12px;color:#94a3b8}.more-topics{text-align:center;padding:12px;color:#64748b;font-size:13px}.preview-meta{display:flex;justify-content:space-between;padding:16px 0;border-top:1px solid #f1f5f9;font-size:13px;color:#94a3b8}.preview-actions{display:flex;gap:12px;justify-content:flex-end}.curriculum-copy-info{background:#f8fafc;padding:16px;border-radius:8px;margin-bottom:16px}.curriculum-copy-info strong{display:block;margin-bottom:4px;color:#1e293b}.curriculum-copy-info span{font-size:13px;color:#64748b}.error-banner{background:#fef2f2;color:#dc2626;padding:12px 16px;border-radius:8px;margin-bottom:16px}@media(max-width:768px){.library-content{padding:16px}.library-header-section{flex-direction:column;align-items:stretch}.library-tabs{width:100%;gap:4px;flex-wrap:wrap}.tab-btn{flex:1 1 calc(50% - 2px);justify-content:center;padding:6px 4px;font-size:11px;gap:2px;min-width:0;white-space:nowrap}.tab-icon{display:none}.tab-count{padding:1px 3px;font-size:9px}.btn-create-task{justify-content:center;padding:8px 16px;font-size:13px}.btn-create-task span{font-size:16px}.filters-row{flex-direction:column}.filter-group,.filter-group.search-group{width:100%;min-width:0}.filter-group select,.filter-group input{padding:8px 12px;font-size:13px}.filter-group label{font-size:11px}.btn-clear-filters{width:100%}.curricula-grid{grid-template-columns:1fr}.curriculum-card-modern{padding:16px}.curriculum-title{font-size:16px}.preview-header{flex-direction:column;align-items:center;text-align:center}.preview-tags{justify-content:center}.preview-stats,.preview-actions{flex-direction:column}.preview-actions .btn-primary,.preview-actions .btn-secondary{width:100%}}
