@import"https://fonts.googleapis.com/css2?family=Arvo:wght@400;700&display=swap";@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap";*{font-family:system-ui!important}.auth-wrapper{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#f5f5f5;padding:16px}.auth-card{width:100%;max-width:420px;background:#fff;border-radius:14px;padding:32px;box-shadow:0 10px 30px #00000014;border:1px solid #e5e7eb}.auth-title{font-size:24px;font-weight:700;text-align:center;color:#111827;margin-bottom:6px}.auth-subtitle{text-align:center;color:#6b7280;font-size:14px;margin-bottom:24px}.auth-field{display:flex;flex-direction:column;margin-bottom:16px}.auth-field label{font-size:13px;margin-bottom:6px;color:#374151;font-weight:500}.auth-field input{padding:12px 14px;border-radius:10px;border:1px solid #d1d5db;font-size:15px;background:#fff;color:#111827;transition:border .2s ease,box-shadow .2s ease}.auth-field input::placeholder{color:#9ca3af}.auth-field input:focus{outline:none;border-color:#111827;box-shadow:0 0 0 2px #1118271a}.auth-button{width:100%;margin-top:10px;padding:12px;border-radius:12px;border:none;background:#111827;color:#fff;font-size:15px;font-weight:600;cursor:pointer;transition:background .2s ease,transform .1s ease}.auth-button:hover:not(:disabled){background:#000}.auth-button:active:not(:disabled){transform:scale(.98)}.auth-button:disabled{opacity:.6;cursor:not-allowed}.auth-error{background:#fef2f2;color:#b91c1c;padding:10px 12px;border-radius:10px;font-size:14px;margin-bottom:16px;border:1px solid #fecaca}.auth-footer{text-align:center;margin-top:20px;font-size:14px;color:#6b7280}.auth-footer a{color:#111827;font-weight:600;text-decoration:none}.auth-footer a:hover{text-decoration:underline}.auth-loading{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#fff}@media(max-width:480px){.auth-card{padding:24px}.auth-title{font-size:22px}}.auth-success{background:#ecfdf5;color:#065f46;padding:10px 12px;border-radius:10px;font-size:14px;margin-bottom:16px;border:1px solid #a7f3d0}.auth-divider{position:relative;text-align:center;margin:20px 0}.auth-divider span{background:#fff;padding:0 12px;font-size:12px;color:#6b7280;font-weight:500}.auth-divider:before{content:"";position:absolute;left:0;top:50%;width:100%;height:1px;background:#e5e7eb;z-index:-1}.auth-social{width:100%;padding:12px;border-radius:12px;font-size:14px;font-weight:600;cursor:pointer;border:1px solid #d1d5db;background:#fff;color:#111827;display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:10px;transition:all .2s ease}.auth-social:hover{background:#f9fafb}.auth-social.google span{font-weight:700;font-size:16px}.auth-social.zalo{border-color:#c7d2fe}.auth-social.zalo:hover{background:#eef2ff}.loading-overlay{position:fixed;inset:0;z-index:9999;background:#ffffffbf;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);display:flex;align-items:center;justify-content:center}.loading-box{display:flex;flex-direction:column;align-items:center;gap:12px;background:#fff;padding:28px 36px;border-radius:16px;box-shadow:0 10px 30px #00000014}.loading-box p{font-size:14px;color:#6b7280}.spinner{width:36px;height:36px;border:3px solid #e5e7eb;border-top-color:#111827;border-radius:50%;animation:spin .8s linear infinite}html,body{margin:0;padding:0;width:100%;max-width:100%;overflow-x:hidden;overflow-y:auto}.redirect_text{font-size:14px;color:#999}.page_404{width:100vw;max-width:100%;min-height:100svh;background:#fff;display:flex;justify-content:center;align-items:flex-start;padding-top:48px;padding-bottom:48px;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,sans-serif;overflow-x:hidden;overflow-y:auto}.page_404__container{text-align:center;max-width:600px;width:100%}.error_code{font-size:96px;font-weight:700}.four_zero_four_bg{height:360px;background-image:url(https://cdn.dribbble.com/users/285475/screenshots/2083086/dribbble_1.gif);background-repeat:no-repeat;background-position:center;background-size:contain}.contant_box_404{margin-top:-20px}.contant_box_404 h3{font-size:26px;margin-bottom:8px}.contant_box_404 p{color:#666;font-size:15px}.contant_box_404 .title{margin-top:24px}.link_404{margin-top:20px;padding:12px 28px;border:none;background:#39ac31;color:#fff;font-size:15px;font-weight:600;cursor:pointer;transition:transform .12s ease,box-shadow .12s ease}.link_404:hover{transform:translateY(-2px);box-shadow:0 8px 20px #39ac3159}.navbar{height:64px;background:#fff;border-bottom:1px solid #e5e7eb;padding:0 24px;display:flex;align-items:center;justify-content:flex-start;gap:24px;position:relative;z-index:100}.navbar-main{display:flex;align-items:center;gap:16px}.navbar-left-wrapper{display:flex;align-items:center;gap:12px}.navbar-logo{font-size:18px;font-weight:700;color:#111827;cursor:pointer}.navbar-menu-btn{display:none;background:transparent;border:none;cursor:pointer;color:#111827}.nav-link{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:500;color:#374151;text-decoration:none;padding:8px 12px;border-radius:8px;transition:background .2s ease}.navbar-right{position:relative}.user-button{border:none;background:transparent;cursor:pointer}.user-dropdown{position:absolute;top:48px;right:0;width:220px;background:#fff;border-radius:12px;border:1px solid #e5e7eb;box-shadow:0 10px 25px #00000014;padding:8px;z-index:200}.user-info{padding:10px 12px}.user-info .name{font-weight:600;font-size:14px}.user-info .email{font-size:13px;color:#6b7280}.divider{height:1px;background:#e5e7eb;margin:6px 0}.dropdown-item{width:100%;padding:10px 12px;border-radius:8px;border:none;background:transparent;text-align:left;font-size:14px;cursor:pointer}@media(max-width:1024px){.navbar{padding:0 16px}.navbar-menu-btn{display:block}.navbar-left{position:fixed;top:64px;left:0;width:260px;height:calc(100vh - 64px);background:#fff;border-right:1px solid #e5e7eb;flex-direction:column;align-items:stretch;padding:16px;transform:translate(-100%);transition:transform .25s ease;z-index:90}.navbar-left.open{transform:translate(0)}.nav-link{width:100%}}@media(max-width:640px){.navbar{height:56px}.navbar-left{top:56px;height:calc(100vh - 56px)}.user-avatar{width:36px;height:36px;font-size:14px}}.user-avatar{width:40px;height:40px;border-radius:50%;background:#111827;color:#fff;font-weight:600;font-size:16px;display:flex;align-items:center;justify-content:center;overflow:hidden;transition:all .2s ease;box-shadow:0 1px 3px #0000001a}.user-avatar:hover{box-shadow:0 2px 8px #00000026;transform:scale(1.05)}.navbar-avatar-img{width:100%;height:100%;object-fit:cover;object-position:center;border-radius:50%}.home-center{min-height:calc(100vh - 64px);display:flex;align-items:center;justify-content:center;background:#fff}.home-box{text-align:center;padding:32px}.home-icon{width:120px;height:120px;margin:0 auto 20px;display:flex;align-items:center;justify-content:center;animation:float 3s ease-in-out infinite}.home-title{font-size:32px;font-weight:700;color:#111827;margin-bottom:8px}.home-subtitle{font-size:14px;color:#6b7280}@keyframes float{0%{transform:translateY(0)}50%{transform:translateY(-6px)}to{transform:translateY(0)}}@media(max-width:480px){.home-icon{width:90px;height:90px}.home-title{font-size:26px}}.profile-container{max-width:900px;margin:40px auto;padding:0 20px}.profile-header{text-align:center;margin-bottom:32px}.profile-header h1{font-size:2.25rem;font-weight:700;color:#111827;margin:0 0 8px}.profile-header p{color:#6b7280;font-size:1.05rem}.profile-card{background:#fff;border-radius:16px;padding:32px;box-shadow:0 10px 25px #00000014;border:1px solid #e5e7eb}.profile-avatar-section{display:flex;align-items:center;gap:32px;margin-bottom:40px;flex-wrap:wrap;justify-content:center}.avatar-wrapper{position:relative}.avatar-circle,.avatar-img{width:140px;height:140px;border-radius:50%;object-fit:cover;border:4px solid white;box-shadow:0 8px 20px #00000026}.avatar-circle{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;display:flex;align-items:center;justify-content:center;font-size:4rem;font-weight:700}.profile-name-role{text-align:center}.profile-name-role h2{font-size:2rem;margin:0 0 12px;color:#111827}.role-badge,.provider-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 14px;border-radius:999px;font-size:.95rem;font-weight:500;margin:0 6px 6px 0}.info-item{background:#f9fafb;border-radius:12px;padding:16px;border:1px solid #e5e7eb}.info-label{display:flex;align-items:center;gap:8px;font-weight:500;color:#4b5563;margin-bottom:8px}.info-value{font-weight:600;color:#111827;font-size:1.1rem}.storage-progress{height:8px;background:#e5e7eb;border-radius:4px;margin-top:8px;overflow:hidden}.progress-bar{height:100%;background:#3b82f6;transition:width .5s ease}.profile-actions{text-align:center;margin-top:32px}.edit-btn{display:inline-flex;align-items:center;gap:10px;padding:14px 32px;background:#3b82f6;color:#fff;border-radius:10px;font-weight:600;text-decoration:none;transition:background .2s}.edit-btn:hover{background:#2563eb}@media(max-width:768px){.profile-avatar-section{flex-direction:column;gap:20px}.avatar-circle,.avatar-img{width:120px;height:120px;font-size:3.5rem}}@media(max-width:480px){.profile-card{padding:24px 16px}}.storage-main-text{font-weight:600;font-size:1.1rem;margin-bottom:.25rem}.storage-percentage{font-size:.875rem;color:#64748b;margin-bottom:.5rem}.storage-progress{height:8px;background-color:#e2e8f0;border-radius:4px;overflow:hidden;margin-top:.25rem}.progress-bar.safe{background-color:#22c55e}.storage-header{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:8px}.storage-main-text{font-weight:600;font-size:1.15rem;color:#111827}.storage-percentage{font-size:.95rem;font-weight:600;color:#4b5563}.storage-progress-container{position:relative;height:10px;margin:6px 0 10px}.storage-progress{position:relative;height:100%;background-color:#e2e8f0;border-radius:9999px;overflow:hidden;z-index:1}.storage-progress-bg{position:absolute;inset:0;background-color:#f1f5f9;border-radius:9999px;z-index:0}.progress-bar{height:100%;transition:width .6s ease-out;border-radius:9999px}.progress-bar.safe{background-color:#10b981}.progress-bar.warning{background-color:#f59e0b}.progress-bar.danger{background-color:#ef4444}.storage-usage-hint{font-size:.8rem;color:#6b7280;margin-top:6px;font-style:italic}.info-item.full-width{grid-column:1 / -1}.profile-info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:24px;margin-bottom:32px}@media(min-width:768px){.profile-info-grid{grid-template-columns:repeat(2,1fr)}.info-item.full-width{grid-column:1 / -1}}@media(min-width:1024px){.profile-info-grid{grid-template-columns:repeat(3,1fr)}}.mf-container{padding:24px;background:#fff;min-height:calc(100vh - 64px)}.mf-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.mf-header h1{display:flex;align-items:center;gap:10px;font-size:22px;font-weight:700;color:#111827}.mf-actions{display:flex;gap:10px}.mf-actions button{padding:8px 14px;border-radius:8px;border:1px solid #e5e7eb;background:#111827;color:#fff;font-size:14px;font-weight:500;cursor:pointer;transition:background .15s ease}.mf-actions button:hover{background:#000}.mf-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}.mf-dialog-overlay{position:fixed;inset:0;background:#00000073;display:flex;align-items:center;justify-content:center;z-index:1000}.mf-dialog{background:#fff;width:320px;padding:20px;border-radius:12px;box-shadow:0 15px 30px #0003}.mf-dialog h3{margin-bottom:14px;font-size:16px;font-weight:600}.mf-dialog input{width:100%;padding:8px 10px;border-radius:8px;border:1px solid #e5e7eb;margin-bottom:16px;font-size:14px}.mf-dialog-actions{display:flex;justify-content:flex-end;gap:8px}.mf-dialog-actions button{padding:6px 12px;border-radius:8px;border:none;background:#e5e7eb;cursor:pointer}.mf-dialog-actions .primary{background:#2563eb;color:#fff}.mf-header{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:1.5rem;margin-bottom:2rem}.header-left{display:flex;flex-direction:column;gap:1rem;flex:1;min-width:0}.quota-progress{background:#f8fafc;border-radius:10px;padding:1rem 1.25rem;width:100%;max-width:500px;box-shadow:0 2px 6px #0000000d;border:1px solid #e5e7eb}.quota-label{display:flex;justify-content:space-between;align-items:center;font-size:.95rem;font-weight:500;color:#374151;margin-bottom:.75rem}.quota-percent{font-weight:700;color:#4b5563}.progress-bar-container{height:12px;background:#e5e7eb;border-radius:999px;overflow:hidden;box-shadow:inset 0 1px 3px #0000001a}.progress-bar{height:100%;transition:width .5s ease-in-out;border-radius:999px}@media(max-width:768px){.mf-header{flex-direction:column;align-items:flex-start;gap:1.25rem}.header-left{width:100%}.quota-progress{width:100%;max-width:none;padding:1rem}.progress-bar-container{height:14px}.mf-actions{width:100%;flex-wrap:wrap;gap:.75rem}.mf-actions button{flex:1 1 45%;min-width:140px}}@media(min-width:769px)and (max-width:1024px){.quota-progress{max-width:380px}}.mf-item{position:relative;background:#fff;border-radius:8px;padding:8px;display:flex;align-items:center;gap:12px;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background .15s;box-shadow:0 1px 3px #00000014}.mf-item:hover{background:#f5f5f5}.mf-item.selected{background:#e8f0fe;border:1px solid #1a73e8;outline:2px solid #3b82f6}.mf-icon{position:absolute;top:12px;left:12px;color:#2563eb;opacity:.85}.mf-item.selected .mf-icon{color:#1a73e8;opacity:1}.mf-name-wrapper{display:flex;flex-direction:column;gap:2px;padding-left:32px;padding-top:2px;max-width:calc(100% - 72px)}.mf-name{font-size:14px;font-weight:500;color:#111;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mf-meta{display:flex;flex-direction:column;gap:2px;font-size:12px;color:#6b7280;line-height:1.4}.mf-meta div:first-child{color:#374151;font-weight:500}.mf-menu{position:absolute;top:8px;right:8px;opacity:0;pointer-events:none}.mf-item:hover .mf-menu,.mf-item.selected .mf-menu{opacity:1;pointer-events:auto}.mf-menu-trigger{width:28px;height:28px;border-radius:6px;border:none;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;cursor:pointer}.mf-menu-trigger span{width:4px;height:4px;background:#6b7280;border-radius:50%}.mf-menu-trigger:hover{background:#f3f4f6}.mf-menu-dropdown{position:absolute;top:32px;right:0;min-width:160px;background:#fff;border:1px solid #e5e7eb;border-radius:8px;z-index:20;box-shadow:0 10px 25px #0000001a}.mf-menu-dropdown button{width:100%;padding:10px 12px;font-size:14px;text-align:left;background:none;border:none;cursor:pointer}.mf-menu-dropdown button:hover{background:#f3f4f6}.mf-menu-dropdown .danger{color:#dc2626}.di-overlay{position:fixed;inset:0;background:#0009;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:1500}.di-dialog{background:var(--bg-primary, #ffffff);border-radius:12px;width:100%;max-width:420px;margin:1rem;box-shadow:0 20px 40px #0000004d;overflow:hidden;animation:dialogFadeIn .3s ease-out}@keyframes dialogFadeIn{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.di-header{display:flex;justify-content:space-between;align-items:center;padding:1.25rem 1.5rem;border-bottom:1px solid #e5e7eb}.di-header h3{margin:0;font-size:1.25rem;font-weight:600;color:#111827}.di-close-btn{background:none;border:none;color:#6b7280;cursor:pointer;padding:6px;border-radius:8px;transition:all .2s}.di-close-btn:hover{background:#f3f4f6;color:#111827}.di-input-wrapper{padding:1.5rem 1.5rem 1rem}.di-input-group{position:relative;display:flex;align-items:center}.di-input-group input{flex:1;padding:.75rem 1rem;border:1px solid #d1d5db;border-radius:8px;font-size:1rem;transition:all .2s}.di-input-group input:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f626}.di-password-toggle{position:absolute;right:1rem;background:none;border:none;color:#6b7280;cursor:pointer;padding:0}.di-password-toggle:hover{color:#3b82f6}.di-suffix{position:absolute;right:1rem;color:#6b7280;pointer-events:none}.di-error-text{display:block;margin-top:.5rem;color:#ef4444;font-size:.875rem}.di-actions{display:flex;gap:12px;padding:1rem 1.5rem;border-top:1px solid #e5e7eb;justify-content:flex-end;background:#f9fafb}.di-btn{padding:.625rem 1.25rem;border-radius:8px;font-weight:500;cursor:pointer;transition:all .2s;border:none}.di-btn.cancel{background:#f3f4f6;color:#374151}.di-btn.cancel:hover{background:#e5e7eb}.di-btn.primary{background:#3b82f6;color:#fff}.di-btn.primary:hover{background:#2563eb}.di-btn.primary.disabled{background:#93c5fd;cursor:not-allowed}@media(max-width:480px){.di-dialog{margin:.5rem;border-radius:8px}.di-header{padding:1rem 1.25rem}.di-input-wrapper{padding:1.25rem 1.25rem .75rem}.di-actions{padding:1rem 1.25rem;flex-direction:column;gap:8px}.di-btn{width:100%}}.sd-overlay{position:fixed;inset:0;background:#00000073;display:flex;align-items:center;justify-content:center;z-index:50}.sd-dialog{background:#fff;width:460px;max-width:calc(100vw - 24px);border-radius:10px;padding:20px;box-shadow:0 20px 40px #00000026}.sd-dialog h3{margin:0 0 16px;font-size:18px;font-weight:600}.sd-permission{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.sd-permission label{font-size:14px;color:#444}.sd-permission select{padding:6px 10px;border-radius:6px;border:1px solid #ddd;font-size:14px;background:#fafafa}.sd-input-wrapper{display:flex;flex-wrap:wrap;gap:6px;padding:8px;border:1px solid #ddd;border-radius:8px;min-height:44px}.sd-input-wrapper input{border:none;outline:none;flex:1;min-width:140px;font-size:14px}.sd-chip{background:#e7f1ff;color:#2563eb;padding:4px 10px;border-radius:999px;display:flex;align-items:center;gap:6px;font-size:13px}.sd-chip button{border:none;background:transparent;cursor:pointer;font-size:14px;line-height:1}.sd-shared-list{margin-top:18px;padding-top:12px;border-top:1px solid #eee}.sd-shared-list h4{margin:0 0 8px;font-size:13px;font-weight:600;color:#555}.sd-shared{margin-top:15px}.sd-shared-item{display:flex;align-items:center;gap:10px;padding:6px 0}.sd-shared-item .email{flex:1;font-size:14px;color:#333;word-break:break-all}.sd-shared-item select{padding:4px 8px;border-radius:6px;border:1px solid #ddd;font-size:13px}.sd-shared-item .remove{border:none;background:transparent;cursor:pointer;color:#ef4444;font-size:16px}.sd-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.sd-actions button{padding:6px 14px;border-radius:6px;border:1px solid #ddd;background:#fff;cursor:pointer;font-size:14px}.sd-actions button.primary{background:#2563eb;border-color:#2563eb;color:#fff}.sd-actions button:disabled{opacity:.6;cursor:not-allowed}.sd-owner-badge{margin-left:8px;padding:2px 6px;font-size:12px;border-radius:4px;background:#facc15;color:#000;font-weight:600}.sd-public-section{margin-bottom:20px;padding:12px;background:#f8fafc;border-radius:8px;border:1px solid #e2e8f0}.sd-public-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.sd-public-header label{font-size:14px;font-weight:500;color:#334155}.sd-toggle-switch{position:relative;display:inline-block;width:44px;height:24px}.sd-toggle-switch input{opacity:0;width:0;height:0}.sd-slider{position:absolute;cursor:pointer;inset:0;background-color:#cbd5e1;transition:.3s;border-radius:24px}.sd-slider:before{position:absolute;content:"";height:18px;width:18px;left:3px;bottom:3px;background-color:#fff;transition:.3s;border-radius:50%}input:checked+.sd-slider{background-color:#2563eb}input:checked+.sd-slider:before{transform:translate(20px)}.sd-public-content{margin-top:8px}.sd-public-link-wrapper{display:flex;gap:8px;margin-bottom:12px}.sd-public-link-input{flex:1;padding:8px 12px;border:1px solid #d1d5db;border-radius:6px;font-size:13px;background:#fff}.sd-copy-btn{padding:0 12px;background:#2563eb;color:#fff;border:none;border-radius:6px;font-size:13px;cursor:pointer;white-space:nowrap}.sd-copy-btn:hover{background:#1d4ed8}.sd-copy-btn:disabled{background:#94a3b8;cursor:not-allowed}.public-permission{display:flex;justify-content:space-between;align-items:center;gap:12px}.public-permission label{font-size:13px;color:#475569}.public-permission select{padding:5px 8px;font-size:13px}.mf-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:4px;margin-bottom:12px;font-size:14px;color:#6b7280}.mf-breadcrumb-item{cursor:pointer;color:#2563eb;font-weight:500;-webkit-user-select:none;user-select:none;transition:color .15s ease}.mf-breadcrumb-item:hover{color:#1e40af;text-decoration:underline}.mf-breadcrumb span{display:inline-flex;align-items:center}@media(max-width:640px){.mf-breadcrumb{font-size:13px}}.dm-dialog-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.dm-dialog.dm-dialog-move{width:100%;max-width:480px;background:#fff;border-radius:12px;box-shadow:0 10px 40px #0000002e;overflow:hidden;color:#1a1a1a;max-height:85vh;display:flex;flex-direction:column;border:1px solid #e0e0e0}.dm-dialog-move h3{margin:0;padding:20px 24px 16px;font-size:1.25rem;font-weight:600;color:#111;border-bottom:1px solid #e8e8e8}.dm-move-tree-container{flex:1;overflow-y:auto;padding:12px 16px;min-height:240px;max-height:420px;background:#fafafa}.dm-tree-loading{text-align:center;color:#888;padding:40px 0;font-size:.95rem}.dm-tree-item{display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:6px;cursor:pointer;-webkit-user-select:none;user-select:none;transition:all .12s ease;margin:2px 0}.dm-tree-item:hover{background:#f0f5ff}.dm-tree-item.selected{background:#e6f0ff;color:#06f;font-weight:500}.dm-tree-item.disabled{color:#aaa;cursor:not-allowed;opacity:.65}.dm-tree-item.disabled:hover{background:none}.dm-tree-item.level-0{padding-left:12px}.dm-tree-item.level-1{padding-left:32px}.dm-tree-item.level-2{padding-left:52px}.dm-tree-item.level-3{padding-left:72px}.dm-tree-item.level-4{padding-left:92px}.dm-tree-toggle{width:20px;height:20px;display:flex;align-items:center;justify-content:center;color:#666;transition:transform .2s}.dm-tree-item .dm-tree-toggle:hover{color:#333}.dm-tree-item svg{flex-shrink:0;color:#4a90e2}.dm-tree-item.selected svg{color:#06f}.dm-tree-item span{font-size:.95rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:340px}.dm-dialog-actions{padding:16px 24px;border-top:1px solid #e8e8e8;display:flex;justify-content:flex-end;gap:12px;background:#f9f9f9}.dm-dialog-actions button{min-width:100px;padding:10px 16px;border-radius:6px;font-weight:500;cursor:pointer;transition:all .15s;font-size:.95rem}.dm-dialog-actions button:disabled{opacity:.55;cursor:not-allowed}.dm-dialog-actions button.primary{background:#06f;color:#fff;border:none}.dm-dialog-actions button.primary:hover:not(:disabled){background:#05d;box-shadow:0 2px 8px #0066ff40}.dm-dialog-actions button:not(.primary){background:transparent;border:1px solid #d0d0d0;color:#333}.dm-dialog-actions button:not(.primary):hover:not(:disabled){background:#f0f0f0;border-color:#bbb}.mf-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.mf-actions{display:flex;gap:8px}.sf-container{padding:24px;background:#fff;min-height:calc(100vh - 64px)}.sf-header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px;flex-wrap:wrap}.sf-header h1{display:flex;align-items:center;gap:10px;font-size:22px;font-weight:700;color:#111827}.sf-actions{display:flex;align-items:center;gap:8px}.sf-actions button{display:inline-flex;align-items:center;gap:6px}.sf-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}.sf-item-wrapper{position:relative}.sf-permission{position:absolute;top:8px;right:8px;font-size:11px;text-transform:uppercase;pointer-events:none}.sf-empty{grid-column:1 / -1;text-align:center;padding:60px 0;color:#6b7280}.sf-empty p{margin-top:12px;font-size:14px}.sf-breadcrumb{margin-bottom:12px;font-size:14px;color:#6b7280}.sf-breadcrumb-item{cursor:pointer;color:#3182ce}.sf-breadcrumb-item:hover{text-decoration:underline}.sf-item-wrapper .item-menu,.sf-item-wrapper .item-actions,.sf-item-wrapper .item-more{right:-6px;top:8px;z-index:5}.sf-permission{right:30px;z-index:4}.sf-item-wrapper .item-menu{opacity:0;pointer-events:none;transition:opacity .15s ease}.sf-item-wrapper:hover .item-menu{opacity:1;pointer-events:auto}.admin-layout{display:flex;flex-direction:column;min-height:100vh;background-color:#f8fafc}.admin-content{flex:1;padding:1.5rem 2rem;overflow-y:auto;background:#f8fafc}@media(max-width:1024px){.admin-content{padding:1.25rem 1.5rem}}@media(max-width:640px){.admin-content{padding:1rem 1.25rem}}.navbar{height:64px;background:#fff;border-bottom:1px solid #e5e7eb;padding:0 24px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:100;box-shadow:0 1px 3px #0000000d}.navbar-left-wrapper{display:flex;align-items:center;gap:16px}.navbar-logo{font-size:18px;font-weight:700;color:#111827;cursor:pointer;white-space:nowrap}.navbar-menu-btn{display:none;background:transparent;border:none;cursor:pointer;color:#111827;padding:0}.navbar-main{display:flex;align-items:center;gap:24px;flex:1;justify-content:flex-end}.navbar-left{display:flex;align-items:center;gap:16px}.nav-link{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:500;color:#374151;text-decoration:none;padding:8px 12px;border-radius:8px;transition:background .2s ease,color .2s ease}.nav-link:hover{background:#f3f4f6}.nav-link.active{background:#111827;color:#fff}.navbar-right{display:flex;align-items:center;margin-left:auto}.user-button{border:none;background:transparent;cursor:pointer;padding:4px}.user-avatar{width:38px;height:38px;border-radius:9999px;background:#111827;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:15px;border:2px solid #e5e7eb;transition:transform .2s ease}.user-button:hover .user-avatar{transform:scale(1.05)}.user-dropdown{position:absolute;top:56px;right:24px;width:220px;background:#fff;border-radius:12px;border:1px solid #e5e7eb;box-shadow:0 10px 25px #0000001a;padding:8px 0;z-index:200}.user-info{padding:12px 16px}.user-info .name{font-weight:600;font-size:14px;color:#111827}.user-info .email{font-size:13px;color:#6b7280;margin-top:4px}.divider{height:1px;background:#e5e7eb;margin:8px 0}.dropdown-item{width:100%;padding:10px 16px;border:none;background:transparent;text-align:left;font-size:14px;color:#374151;cursor:pointer;transition:background .2s ease}.dropdown-item:hover{background:#f3f4f6}.dropdown-item.logout{color:#b91c1c}.dropdown-item.logout:hover{background:#fef2f2}.navbar-overlay{position:fixed;inset:0;background:#0000004d;z-index:80}@media(max-width:1024px){.navbar{padding:0 16px;height:64px}.navbar-menu-btn{display:block}.navbar-left{position:fixed;top:64px;left:0;width:260px;height:calc(100vh - 64px);background:#fff;border-right:1px solid #e5e7eb;flex-direction:column;align-items:stretch;padding:16px;gap:8px;transform:translate(-100%);transition:transform .25s ease;z-index:90}.navbar-left.open{transform:translate(0)}.nav-link{width:100%;justify-content:flex-start}.navbar-right,.user-dropdown{right:16px}}@media(max-width:640px){.navbar{height:56px}.navbar-left{top:56px;height:calc(100vh - 56px)}.user-avatar{width:34px;height:34px;font-size:14px}.user-dropdown{top:48px;width:200px}}.navbar-avatar-img{width:36px;height:36px;border-radius:50%;object-fit:cover}.users-management{max-width:1400px;margin:0 auto;padding:1.5rem 2rem}.page-header p{color:#6b7280}.controls{display:flex;flex-direction:column;gap:1.25rem;margin-bottom:1.5rem}.search-container{position:relative;display:flex;align-items:center;gap:8px;max-width:480px;width:100%}.search-icon{position:absolute;left:14px;color:#6b7280;pointer-events:none}.search-container input{flex:1;padding:11px 14px 11px 44px;border:1px solid #d1d5db;border-radius:8px;font-size:.95rem;transition:all .2s}.search-container input::placeholder{color:#9ca3af}.search-btn{height:42px;padding:0 20px;border-radius:8px;border:none;background:#3b82f6;color:#fff;font-weight:500;cursor:pointer;transition:all .2s}.search-btn:hover{background:#2563eb;transform:translateY(-1px)}.tabs{display:flex;gap:.5rem;flex-wrap:wrap}.tab{display:flex;align-items:center;gap:8px;padding:10px 16px;border-radius:8px;border:none;background:#f3f4f6;color:#374151;font-weight:500;cursor:pointer;transition:all .2s}.tab:hover{background:#e5e7eb}.refresh-btn{width:fit-content;padding:10px 12px;border-radius:8px;background:#f3f4f6;border:1px solid #d1d5db;cursor:pointer}.users-table{width:100%;border-collapse:collapse}.users-table th,.users-table td{padding:1rem 1.25rem;border-bottom:1px solid #e5e7eb;text-align:left}.users-table th{background:#f8fafc;font-size:.75rem;font-weight:600;text-transform:uppercase;color:#4b5563}.avatar-cell{width:80px;text-align:center;vertical-align:middle}.avatar-cell img,.avatar-placeholder-avatar{width:48px;height:48px;border-radius:50%;object-fit:cover;margin:0 auto}.avatar-placeholder-avatar{background:#6366f1;color:#fff;font-weight:600;font-size:1.25rem;display:flex;align-items:center;justify-content:center}.role-badge,.status-badge{padding:4px 10px;border-radius:999px;font-size:.75rem;font-weight:500;white-space:nowrap}.role-badge.student{background:#dbeafe;color:#1e40af}.role-badge.teacher{background:#d1fae5;color:#065f46}.role-badge.admin{background:#fee2e2;color:#991b1b}.status-badge.active{background:#d1fae5;color:#065f46}.status-badge.banned{background:#fee2e2;color:#991b1b}.actions{display:flex;gap:6px}.action-btn{padding:6px;border-radius:6px;border:none;background:none;cursor:pointer;color:#6b7280}.action-btn.edit{color:#3b82f6}.action-btn.ban{color:#ef4444}.action-btn.reset-password{color:#8b5cf6}.action-btn.change-role{color:#f59e0b}.no-data{padding:3rem!important;text-align:center;color:#9ca3af;font-style:italic}.error-message{display:flex;align-items:center;gap:12px;padding:12px 16px;margin-bottom:1.5rem;border-radius:8px;background:#fee2e2;color:#991b1b}.error-message button{margin-left:auto;padding:6px 14px;border-radius:6px;border:none;background:#dc2626;color:#fff;cursor:pointer}.pagination{display:flex;justify-content:center;gap:1rem;margin-top:1.5rem}.pagination button{padding:8px 16px;border-radius:8px;border:1px solid #d1d5db;background:#fff;cursor:pointer}@media(max-width:768px){.controls{gap:1rem}.tabs{flex-direction:row;overflow-x:auto}.search-container{flex-direction:column}.search-btn{width:100%;height:44px}.users-table thead{display:none}.users-table,.users-table tbody,.users-table tr,.users-table td{display:block;width:100%}.users-table tr{background:#fff;margin-bottom:1rem;border-radius:12px;padding:1rem;box-shadow:0 2px 8px #0000000f}.users-table td{display:flex;justify-content:space-between;padding:.5rem 0;border:none}.users-table td:before{content:attr(data-label);font-weight:500;color:#6b7280}.avatar-cell{padding-bottom:.5rem}.avatar-cell:before{content:"Avatar";font-weight:600;color:#4b5563;display:block;margin-bottom:.5rem}.avatar-cell img,.avatar-placeholder-avatar{width:64px;height:64px;font-size:1.5rem}.pagination{flex-direction:column;gap:.5rem}}.bulk-create-btn{display:inline-flex;align-items:center;gap:8px;padding:12px 20px;font-size:.95rem;font-weight:600;color:#fff;background:linear-gradient(135deg,#10b981,#059669);border:none;border-radius:10px;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 6px -1px #10b9814d;white-space:nowrap}.bulk-create-btn:hover{background:linear-gradient(135deg,#059669,#047857);transform:translateY(-2px);box-shadow:0 6px 12px -2px #10b98166}.bulk-create-btn:active{transform:translateY(0);box-shadow:0 2px 4px #10b9814d}.bulk-create-btn:disabled{background:#6ee7b7;cursor:not-allowed;transform:none;box-shadow:none;opacity:.7}.bulk-create-btn svg{width:18px;height:18px}@media(max-width:768px){.bulk-create-btn{width:100%;justify-content:center;padding:14px 20px;font-size:1rem}}.checkbox-cell{width:50px;text-align:center;padding:1rem .5rem!important}.select-all-btn,.checkbox-cell button{background:none;border:none;cursor:pointer;padding:0;color:#4b5563}.checkbox-cell button:hover{color:#3b82f6}.bulk-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.bulk-delete-btn{display:flex;align-items:center;gap:8px;padding:10px 16px;background:#ef4444;color:#fff;border:none;border-radius:8px;font-weight:500;cursor:pointer;transition:all .2s}.bulk-delete-btn:hover{background:#dc2626}.delete-by-role-btn{display:flex;align-items:center;gap:8px;padding:10px 16px;background:#f59e0b;color:#fff;border:none;border-radius:8px;font-weight:500;cursor:pointer;transition:all .2s}.delete-by-role-btn:hover{background:#d97706}@media(max-width:768px){.bulk-actions{width:100%;flex-direction:column}.bulk-delete-btn,.delete-by-role-btn{width:100%;justify-content:center}.checkbox-cell{width:60px}}.dialog-overlay{position:fixed;inset:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:1000}.dialog-content{background:#fff;border-radius:12px;width:100%;max-width:420px;margin:1rem;overflow:hidden;box-shadow:0 10px 25px #0003}.dialog-header{padding:1.25rem 1.5rem;border-bottom:1px solid #e5e7eb;display:flex;justify-content:space-between;align-items:center}.dialog-header h2{margin:0;font-size:1.25rem;font-weight:600}.close-btn{background:none;border:none;color:#6b7280;cursor:pointer;padding:4px;border-radius:6px}.dialog-body{padding:1.5rem}.radio-group{display:flex;flex-direction:column;gap:.75rem}.radio-label{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #d1d5db;border-radius:8px;cursor:pointer;transition:all .15s}.radio-label:hover{background:#f9fafb}.radio-label input{width:18px;height:18px}.radio-label span{font-size:1rem;color:#111827}.radio-label:has(input:checked){border-color:#3b82f6;background:#eff6ff;color:#1e40af}.dialog-footer{padding:1rem 1.5rem;border-top:1px solid #e5e7eb;display:flex;gap:12px;justify-content:flex-end}.btn{padding:10px 20px;border-radius:8px;font-weight:500;cursor:pointer;transition:all .2s}.btn.cancel{background:#f3f4f6;border:none;color:#374151}.btn.confirm{background:#3b82f6;color:#fff;border:none}.btn.confirm:hover{background:#2563eb}.dialog-overlay{position:fixed;inset:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:1300;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.dialog-content{background:#fff;border-radius:12px;width:96vw;max-width:1600px;height:92vh;max-height:96vh;margin:2vh 2vw;box-shadow:0 10px 40px #00000059;overflow:hidden;display:flex;flex-direction:column}.dialog-header{padding:1.25rem 1.75rem;border-bottom:1px solid #e5e7eb;display:flex;justify-content:space-between;align-items:center;flex-shrink:0}.dialog-header h2{margin:0;font-size:1.5rem;font-weight:600;color:#111827}.close-btn{background:none;border:none;color:#6b7280;cursor:pointer;padding:8px;border-radius:8px;transition:all .2s}.close-btn:hover{background:#f3f4f6;color:#111827}.dialog-body-layout{flex:1;display:flex;overflow:hidden}.input-column{width:45%;min-width:400px;padding:1.5rem 1.75rem;border-right:1px solid #e5e7eb;overflow-y:auto;display:flex;flex-direction:column;gap:1rem}.tabs-method{display:flex;gap:1rem;margin-bottom:1rem}.method-option{flex:1;padding:12px;border:1px solid #d1d5db;border-radius:8px;display:flex;align-items:center;justify-content:center;gap:8px;font-weight:500;cursor:pointer;transition:all .2s;background:#f9fafb;color:#4b5563}.method-option:hover{background:#f3f4f6;border-color:#9ca3af}.method-option.active{background:#dbeafe;border-color:#3b82f6;color:#1e40af}.help-text{color:#4b5563;font-size:.95rem}.example{background:#f8fafc;padding:12px;border-radius:8px;font-family:monospace;font-size:.9rem;margin:.5rem 0 1rem;white-space:pre-wrap;overflow-x:auto}.bulk-textarea{flex:1;width:100%;padding:14px;border:1px solid #d1d5db;border-radius:8px;font-family:monospace;font-size:.95rem;resize:none;background:#f9fafb;transition:all .2s}.bulk-textarea:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f626;background:#fff}.input-actions{display:flex;gap:12px;justify-content:flex-end}.preview-column{flex:1;padding:1.5rem 1.75rem;overflow-y:auto;display:flex;flex-direction:column;gap:1rem}.preview-title{margin:0;font-size:1.25rem;font-weight:600;color:#374151}.preview-table-container{flex:1;overflow-y:auto;border:1px solid #d1d5db;border-radius:8px;background:#fff}.preview-table th,.preview-table td{padding:12px 14px;text-align:left;border-bottom:1px solid #e5e7eb}.preview-table th{background:#f1f5f9;font-weight:600;color:#4b5563;position:sticky;top:0;z-index:10}.preview-table tr.invalid-row{background:#fef2f2;color:#991b1b}.preview-table .status{display:flex;align-items:center;gap:6px;font-weight:500}.status.valid{color:#065f46}.status.invalid{color:#991b1b}.preview-warning{color:#d97706;font-size:.92rem;font-style:italic;margin-top:.75rem}.preview-placeholder{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#9ca3af;text-align:center;gap:1rem}.preview-placeholder svg{opacity:.4}.dialog-footer{padding:1.25rem 1.75rem;border-top:1px solid #e5e7eb;display:flex;justify-content:flex-end;gap:12px;flex-shrink:0;background:#f9fafb}.btn{padding:10px 20px;border-radius:8px;font-weight:500;cursor:pointer;transition:all .2s;border:none}.btn.clear-btn{background:#f3f4f6;color:#374151}.btn.clear-btn:hover{background:#e5e7eb}.btn.cancel{background:#f3f4f6;color:#374151}.btn.cancel:hover{background:#e5e7eb}.btn.preview-btn{background:#3b82f6;color:#fff}.btn.preview-btn:hover{background:#2563eb}.btn.confirm{background:#10b981;color:#fff;font-weight:600}.btn.confirm:hover{background:#059669}.btn.confirm:disabled{background:#6ee7b7;cursor:not-allowed}@media(max-width:1024px){.dialog-body-layout{flex-direction:column}.input-column,.preview-column{width:100%;border-right:none;border-bottom:1px solid #e5e7eb}.input-column{min-width:auto}.preview-column{flex:none;max-height:50vh}}@media(max-width:768px){.dialog-content{width:98vw;height:96vh;margin:1vh 1vw}.dialog-header h2{font-size:1.3rem}.input-actions{flex-direction:column;gap:8px}}.loading-overlay{position:fixed;inset:0;background:#00000059;z-index:9999;display:flex;align-items:center;justify-content:center}.loading-box{background:#fff;padding:24px 32px;border-radius:12px;box-shadow:0 10px 30px #00000040;text-align:center}.loading-box p{margin-top:12px;font-size:14px;color:#555}.spinner{width:42px;height:42px;border:4px solid #e5e7eb;border-top-color:#2563eb;border-radius:50%;animation:spin .9s linear infinite}.progress-bar{width:220px;height:8px;background:#e5e7eb;border-radius:999px;margin:12px auto 0;overflow:hidden}.progress-fill{height:100%;background:linear-gradient(90deg,#2563eb,#3b82f6);transition:width .25s ease}.progress-circle{position:relative;width:64px;height:64px;margin:0 auto}.progress-circle:before{content:"";position:absolute;inset:0;border-radius:50%;border:4px solid #e5e7eb;border-top-color:#2563eb;animation:spin .9s linear infinite}.progress-circle span{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-weight:600;color:#2563eb}.admin-dashboard{padding:1.5rem 2rem;max-width:1400px;margin:0 auto}.dashboard-header{margin-bottom:2rem}.dashboard-title{font-size:1.875rem;font-weight:700;color:#111827;margin:0 0 .5rem}.dashboard-subtitle{color:#6b7280;font-size:1rem}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.5rem;margin-bottom:2.5rem}.stat-card{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;display:flex;align-items:center;gap:1.25rem;transition:transform .2s ease,box-shadow .2s ease}.stat-card:hover{transform:translateY(-4px);box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d}.stat-icon{width:56px;height:56px;border-radius:12px;display:flex;align-items:center;justify-content:center;color:#fff}.stat-icon.users{background:#85b4ff}.stat-icon.folders{background:#8b5cf6}.stat-icon.files{background:#10b981}.stat-icon.storage{background:#f59e0b}.stat-content h3{font-size:.875rem;font-weight:500;color:#6b7280;margin:0 0 .25rem}.stat-value{font-size:1.75rem;font-weight:700;color:#111827;margin:0}.stat-change{font-size:.875rem;display:flex;align-items:center;gap:4px}.stat-change.positive{color:#10b981}.stat-change.neutral{color:#6b7280}.storage-bar{height:8px;background:#e5e7eb;border-radius:999px;margin-top:.75rem;overflow:hidden}.storage-progress{height:100%;background:#3b82f6;border-radius:999px;transition:width .6s ease}.recent-activities{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 4px 6px -1px #0000001a;margin-bottom:2.5rem}.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.25rem}.section-header h2{font-size:1.25rem;font-weight:600;color:#111827;display:flex;align-items:center;gap:8px;margin:0}.view-all{color:#3b82f6;font-size:.875rem;font-weight:500;text-decoration:none}.view-all:hover{text-decoration:underline}.activity-table{overflow-x:auto}.activity-table table{width:100%;border-collapse:collapse}.activity-table th,.activity-table td{padding:1rem 1.25rem;text-align:left;border-bottom:1px solid #e5e7eb}.activity-table th{font-size:.875rem;font-weight:600;color:#6b7280;text-transform:uppercase}.action-cell{text-transform:capitalize}.charts-section{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 4px 6px -1px #0000001a}.chart-placeholder{height:320px;background:#f8fafc;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#9ca3af;font-style:italic;text-align:center;gap:.5rem}@media(max-width:1024px){.admin-dashboard{padding:1.25rem 1.5rem}.stats-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}}@media(max-width:640px){.admin-dashboard{padding:1rem 1.25rem}.stat-card{flex-direction:column;text-align:center;gap:.75rem}.stat-icon{margin:0 auto}}.action-cell.login{color:#16a34a}.action-cell.delete{color:#dc2626}.action-cell.update{color:#2563eb}.action-cell.create{color:#9333ea}.admin-home{padding:2rem;max-width:1400px;margin:0 auto}.home-header{text-align:center;margin-bottom:3rem}.home-header h1{font-size:2.25rem;font-weight:700;color:#111827;margin-bottom:.75rem}.home-header p{font-size:1.1rem;color:#6b7280}.quick-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.5rem;margin-bottom:3rem}.stat-item{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 4px 6px -1px #0000001a;display:flex;align-items:center;gap:1.25rem;transition:transform .2s ease}.stat-item:hover{transform:translateY(-4px)}.stat-icon{width:64px;height:64px;border-radius:12px;background:#eff6ff;color:#3b82f6;display:flex;align-items:center;justify-content:center}.stat-info h3{font-size:1.75rem;font-weight:700;color:#111827;margin:0 0 .25rem}.stat-info p{color:#6b7280;font-size:.95rem;margin:0}.quick-actions{margin-bottom:3rem}.quick-actions h2{font-size:1.5rem;font-weight:600;color:#111827;margin-bottom:1.5rem;text-align:center}.actions-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:1.5rem}.action-card{background:#fff;border-radius:12px;padding:2rem 1.75rem;box-shadow:0 4px 6px -1px #0000001a;text-decoration:none;color:inherit;display:flex;flex-direction:column;gap:1rem;transition:all .25s ease;position:relative;overflow:hidden}.action-card:hover{transform:translateY(-6px);box-shadow:0 10px 15px -3px #00000026}.action-card svg{color:#3b82f6}.action-card h3{font-size:1.25rem;font-weight:600;margin:0}.action-card p{color:#6b7280;margin:0;flex:1}.arrow{align-self:flex-end;color:#3b82f6;transition:transform .2s}.action-card:hover .arrow{transform:translate(4px)}.tips-section{background:#fff;border-radius:12px;padding:2rem;box-shadow:0 4px 6px -1px #0000001a}.tip-card h3{font-size:1.25rem;font-weight:600;color:#111827;margin-bottom:1rem}.tip-card ul{list-style:none;padding:0;margin:0}.tip-card li{padding:.75rem 0;border-bottom:1px solid #f3f4f6;color:#374151}.tip-card li:last-child{border-bottom:none}.tip-card li strong{color:#111827}@media(max-width:1024px){.admin-home{padding:1.5rem}}@media(max-width:640px){.home-header h1{font-size:1.875rem}.quick-stats,.actions-grid{grid-template-columns:1fr}}.admin-settings{padding:2rem;max-width:900px;margin:0 auto}.settings-header{margin-bottom:2.5rem}.settings-header h1{font-size:1.875rem;font-weight:700;color:#111827;margin-bottom:.5rem}.settings-header p{color:#6b7280}.settings-section{background:#fff;border-radius:12px;padding:1.75rem;margin-bottom:2rem;box-shadow:0 4px 6px -1px #0000001a}.settings-section h2{font-size:1.25rem;font-weight:600;color:#111827;margin:0 0 1.5rem;display:flex;align-items:center;gap:10px}.form-group{margin-bottom:1.25rem}.form-group label{display:block;font-weight:500;color:#374151;margin-bottom:.5rem}.form-group input[type=text],.form-group input[type=number],.form-group select{width:100%;padding:10px 12px;border:1px solid #d1d5db;border-radius:8px;font-size:1rem}.form-group input:focus,.form-group select:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem}.form-group.checkbox{display:flex;align-items:center;gap:12px}.form-group.checkbox input[type=checkbox]{width:18px;height:18px}.form-actions{display:flex;gap:1rem;justify-content:flex-end;margin-top:2rem}.save-btn{display:flex;align-items:center;gap:8px;padding:12px 24px;background:#3b82f6;color:#fff;border:none;border-radius:8px;font-weight:600;cursor:pointer;transition:background .2s}.save-btn:hover{background:#2563eb}.reset-btn{padding:12px 24px;background:#f3f4f6;color:#374151;border:none;border-radius:8px;font-weight:500;cursor:pointer}.danger-btn{display:flex;align-items:center;gap:8px;padding:10px 16px;background:#ef4444;color:#fff;border:none;border-radius:8px;margin-top:1rem;font-weight:500;cursor:pointer}.danger-btn:hover{background:#dc2626}@media(max-width:768px){.form-row{grid-template-columns:1fr}.form-actions{flex-direction:column}.save-btn,.reset-btn{width:100%}}*{box-sizing:border-box}.profile-container{min-height:100vh;background-color:#f9fafb;padding:40px 16px;font-family:system-ui,-apple-system,BlinkMacOSystemFont,Segoe UI,Roboto,sans-serif}.profile-header{text-align:center;margin-bottom:48px}.profile-header h1{font-size:36px;font-weight:700;margin:0 0 12px;color:#111827}.profile-header p{color:#6b7280;font-size:18px}.profile-card{background:#fff;border-radius:16px;box-shadow:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a;max-width:900px;margin:0 auto;overflow:hidden;border:1px solid #e5e7eb}.profile-form{padding:40px}.avatar-section{display:flex;flex-direction:column;align-items:center;margin-bottom:48px}.avatar-wrapper{position:relative;margin-bottom:16px}.avatar-img,.avatar-placeholder{width:144px;height:144px;border-radius:50%;object-fit:cover;border:4px solid white;box-shadow:0 10px 15px -3px #0000001a}.avatar-placeholder{display:flex;align-items:center;justify-content:center;font-size:64px;font-weight:700;color:#fff;background:linear-gradient(135deg,#6366f1,#a78bfa)}.avatar-upload-label{position:absolute;bottom:8px;right:8px;background:#2563eb;color:#fff;width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;border:3px solid white;box-shadow:0 4px 6px -1px #0000001a;transition:all .2s}.avatar-upload-label:hover{background:#1d4ed8;transform:scale(1.1)}.avatar-input{display:none}.avatar-hint{color:#6b7280;font-size:14px;max-width:320px;text-align:center;line-height:1.5}.user-info{text-align:center;margin-bottom:40px}.user-name{font-size:28px;font-weight:600;margin:0 0 12px}.user-badges{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}.role-badge,.provider-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 14px;border-radius:999px;font-size:14px;font-weight:500}.role-badge.admin{background:#f3e8ff;color:#7e22ce}.role-badge.teacher{background:#dbeafe;color:#1d4ed8}.role-badge.student{background:#ecfdf5;color:#065f46}.role-badge.user{background:#f3f4f6;color:#374151}.provider-badge{background:#f3f4f6;color:#4b5563}.form-row{display:grid;grid-template-columns:1fr;gap:28px}@media(min-width:768px){.form-row{grid-template-columns:1fr 1fr}}.form-group{display:flex;flex-direction:column;gap:8px}.form-label{display:flex;align-items:center;gap:8px;font-weight:500;color:#374151;font-size:15px}.form-input,.form-readonly{padding:14px 16px;border:1px solid #d1d5db;border-radius:8px;font-size:16px;transition:all .2s}.form-input:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f626}.form-input.error{border-color:#ef4444}.form-readonly{background:#f3f4f6;color:#4b5563;cursor:not-allowed}.field-hint{color:#6b7280;font-size:13px;margin-top:4px}.error-message{color:#ef4444;font-size:14px;display:flex;align-items:center;gap:6px;margin-top:6px}.form-error{background:#fee2e2;border:1px solid #fecaca;color:#991b1b;padding:16px 20px;border-radius:8px;display:flex;align-items:center;gap:12px;margin:24px 0}.form-buttons{display:flex;flex-direction:column;gap:16px;margin-top:40px;padding-top:28px;border-top:1px solid #e5e7eb}@media(min-width:640px){.form-buttons{flex-direction:row;justify-content:flex-end}}.btn{padding:14px 28px;border-radius:8px;font-weight:500;font-size:16px;display:flex;align-items:center;justify-content:center;gap:8px;transition:all .2s;cursor:pointer;border:none}.btn-cancel{background:#e5e7eb;color:#374151}.btn-cancel:hover:not(:disabled){background:#d1d5db}.btn-save{background:#3b82f6;color:#fff}.btn-save:hover:not(:disabled){background:#2563eb}@media(max-width:640px){.profile-form{padding:28px}.avatar-img,.avatar-placeholder{width:120px;height:120px}.avatar-placeholder{font-size:52px}}.form-grid{display:grid;grid-template-columns:1fr;gap:28px}@media(min-width:768px){.form-grid{grid-template-columns:repeat(2,1fr)}.form-group.full-width{grid-column:1 / -1}}@media(min-width:1024px){.form-grid{grid-template-columns:repeat(3,1fr)}.form-group.full-width{grid-column:1 / -1}}select.form-input{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 1rem center;background-size:12px;padding-right:2.5rem}input[type=date].form-input{color:#374151}input[type=date].form-input::-webkit-calendar-picker-indicator{filter:invert(.4);opacity:.6;cursor:pointer}.field-hint.optional{color:#9ca3af;font-size:12.5px;margin-top:4px;font-style:italic}.logs-page{max-width:1400px;margin:0 auto;padding:24px 20px}.logs-header{margin-bottom:32px}.logs-header h1{font-size:2.25rem;font-weight:700;margin:0 0 8px;color:var(--text-primary)}.logs-header p{color:var(--text-secondary);font-size:1.05rem}.logs-controls{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;gap:16px;flex-wrap:wrap}.search-form{display:flex;gap:8px;flex:1;max-width:520px}.search-input-wrapper{flex:1;position:relative;display:flex;align-items:center}.search-input-wrapper svg{position:absolute;left:14px;color:#6b7280;pointer-events:none}.search-input-wrapper input{width:100%;padding:11px 14px 11px 44px;border:1px solid #d1d5db;border-radius:8px;font-size:15px;background:#fff!important;color:#000!important;transition:all .2s ease}.search-input-wrapper input:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f626;outline:none;background:#fff!important;color:#000!important}.search-input-wrapper input::placeholder{color:#6b7280!important}.search-btn{position:relative;padding:0 24px;background:#3b82f6;color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease;white-space:nowrap}.search-btn:hover{background:#2563eb;transform:translateY(-1px);box-shadow:0 4px 12px #3b82f640}.search-btn:active{transform:translateY(0);box-shadow:0 2px 6px #3b82f633}.search-btn:disabled{opacity:.7;cursor:not-allowed;background:#9ca3af}.search-btn.loading:after{content:"";display:inline-block;width:16px;height:16px;margin-left:8px;border:2px solid white;border-radius:50%;border-top-color:transparent;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.refresh-btn{padding:10px;background:var(--bg-secondary);border:1px solid var(--border);border-radius:8px;cursor:pointer;transition:all .2s}.refresh-btn:hover{background:var(--bg-hover)}.logs-table-container{background:var(--bg-card);border-radius:12px;border:1px solid var(--border);overflow:hidden;box-shadow:0 4px 12px #0000000f}.logs-table{width:100%;border-collapse:collapse}.logs-table th,.logs-table td{padding:14px 16px;text-align:left;border-bottom:1px solid var(--border)}.logs-table th{background:var(--bg-tertiary);font-weight:600;color:var(--text-secondary);font-size:.95rem;white-space:nowrap}.logs-table td{font-size:.95rem;color:var(--text-primary)}.log-row:hover{background:var(--bg-hover)}.time-column{width:180px;color:#64748b}.user-column{font-weight:500}.action-column{width:160px}.action-badge{padding:5px 12px;border-radius:999px;font-size:.88rem;font-weight:500;white-space:nowrap}.action-badge.login{background:#dbeafe;color:#1e40af}.action-badge.logout{background:#f3f4f6;color:#4b5563}.action-badge.login_fail{background:#fee2e2;color:#b91c1c}.action-badge.create,.action-badge.restore{background:#d1fae5;color:#065f46}.action-badge.update,.action-badge.rename,.action-badge.move{background:#fef3c7;color:#92400e}.action-badge.delete,.action-badge.trash,.action-badge.remove_items{background:#fee2e2;color:#991b1b}.action-badge.share{background:#dbeafe;color:#1e40af}.target-column{font-size:.92rem}.target-with-id{display:inline-flex;align-items:center;gap:6px}.target-id{font-size:.82rem;color:#9ca3af;background:#f3f4f6;padding:1px 6px;border-radius:4px}.ip-hint{font-size:.82rem;color:#9ca3af}.no-data{text-align:center;padding:60px 20px;color:var(--text-tertiary);font-style:italic}.pagination{display:flex;justify-content:center;align-items:center;gap:16px;margin-top:24px;padding:16px}.pagination button{padding:8px 16px;border:1px solid var(--border);border-radius:8px;background:#fff;cursor:pointer}.pagination span{font-weight:500}.logs-error{background:#fee2e2;color:#991b1b;padding:16px;border-radius:8px;margin-bottom:24px;display:flex;align-items:center;gap:12px}.logs-error button{margin-left:auto;padding:6px 16px;background:#dc2626;color:#fff;border:none;border-radius:6px;cursor:pointer}@media(max-width:640px){.search-form{flex-direction:column;width:100%}.search-btn{width:100%;padding:12px}}.cloud-storage-management{max-width:1440px;margin:0 auto;padding:1.5rem 2rem}.page-header{margin-bottom:2rem}.page-header h1{margin:0 0 .5rem;font-size:1.875rem;font-weight:700;color:#111827}.page-header p{color:#6b7280;margin:0}.controls{display:flex;flex-wrap:wrap;gap:1rem;margin-bottom:1.5rem;align-items:center}.search-container{position:relative;flex:1;min-width:280px;max-width:420px}.search-icon{position:absolute;left:1rem;top:50%;transform:translateY(-50%);color:#6b7280;pointer-events:none}.search-container input{width:100%;padding:.75rem 1rem .75rem 2.75rem;border:1px solid #d1d5db;border-radius:.5rem;font-size:.95rem;transition:all .2s}.search-container input:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f626}.search-btn{padding:.75rem 1.5rem;background:#3b82f6;color:#fff;border:none;border-radius:.5rem;font-weight:500;cursor:pointer;transition:all .2s}.search-btn:hover{background:#2563eb}.sort-controls select{padding:.75rem 1rem;border:1px solid #d1d5db;border-radius:.5rem;background:#fff;font-size:.95rem;min-width:220px}.refresh-btn{padding:.75rem;background:#f3f4f6;border:1px solid #d1d5db;border-radius:.5rem;cursor:pointer;transition:all .2s}.refresh-btn:hover{background:#e5e7eb}.table-container{background:#fff;border-radius:12px;overflow-x:auto;box-shadow:0 4px 6px -1px #0000001a}.storage-table{width:100%;border-collapse:collapse}.storage-table th,.storage-table td{padding:1rem 1.25rem;text-align:left;border-bottom:1px solid #e5e7eb}.storage-table th{background:#f8fafc;font-size:.8125rem;font-weight:600;text-transform:uppercase;color:#4b5563}.user-cell .user-info{display:flex;align-items:center;gap:12px}.user-avatar,.avatar-placeholder{width:44px;height:44px;border-radius:50%;object-fit:cover}.avatar-placeholder{background:#6366f1;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:1.125rem}.storage-value{font-weight:600;color:#374151}.progress-container{width:100%;background:#f1f5f9;border-radius:999px;height:14px;position:relative;overflow:hidden}.progress-bar{height:100%;transition:width .4s ease}.progress-text{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:.75rem;font-weight:600;color:#fff;text-shadow:0 0 3px rgba(0,0,0,.6)}.actions{display:flex;gap:8px;flex-wrap:wrap}.action-btn{width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:8px;background:none;border:none;cursor:pointer;color:#6b7280;transition:all .2s}.action-btn:hover{background:#f3f4f6}.action-btn.clear{color:#ef4444}.action-btn.download{color:#3b82f6}.pagination{display:flex;justify-content:center;align-items:center;gap:1rem;margin-top:2rem}.pagination button{padding:.625rem 1.25rem;border:1px solid #d1d5db;border-radius:.5rem;background:#fff;cursor:pointer;transition:all .2s}.pagination button:hover:not(:disabled){background:#f3f4f6}.pagination button:disabled{opacity:.6;cursor:not-allowed}.error-message{display:flex;align-items:center;gap:12px;padding:1rem 1.25rem;margin-bottom:1.5rem;background:#fee2e2;color:#991b1b;border-radius:.5rem;font-weight:500}@media(max-width:1024px){.cloud-storage-management{padding:1.25rem 1.5rem}.storage-table th,.storage-table td{padding:.875rem 1rem}.progress-container{height:16px}.actions{gap:6px}.action-btn{width:34px;height:34px}}@media(max-width:768px){.controls{flex-direction:column;align-items:stretch;gap:1rem}.search-container{max-width:none}.search-btn{width:100%;height:44px}.sort-controls select{width:100%}.table-container{overflow-x:visible}.storage-table thead{display:none}.storage-table tr{display:block;margin-bottom:1.25rem;border-radius:12px;box-shadow:0 3px 12px #00000014;background:#fff;overflow:hidden}.storage-table td{display:flex;align-items:center;padding:.9rem 1.25rem;border-bottom:1px solid #f1f5f9;font-size:.95rem;min-height:60px;gap:.75rem}.storage-table td:last-child{border-bottom:none}.storage-table td:before{content:attr(data-label);font-weight:600;color:#4b5563;flex:0 0 110px;min-width:110px;max-width:110px}.user-cell{flex-direction:column;align-items:flex-start;min-height:100px;padding:1rem 1.25rem;border-bottom:1px solid #f1f5f9}.user-cell:before{content:"Người dùng";font-weight:600;color:#4b5563;display:block;margin-bottom:.5rem}.user-info{display:flex;align-items:center;gap:12px;width:100%}.user-name-cloud{font-size:1.05rem;font-weight:500;color:#111827}.progress-container{height:16px;margin-left:110px}.progress-text{font-size:.8rem}td[data-label="Hành động"]{padding:1rem 1.25rem;justify-content:flex-end;min-height:60px}.actions{gap:12px;justify-content:flex-end;flex-wrap:wrap}.action-btn{width:40px;height:40px}.pagination{flex-wrap:wrap;gap:.75rem;justify-content:center}}.admin-classes-container{max-width:1400px;margin:0 auto;padding:20px 16px;min-height:calc(100vh - 80px)}.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px;flex-wrap:wrap;gap:16px}.page-header h1{font-size:2rem;font-weight:700;margin:0;color:var(--text-primary, #111827)}.page-header p{margin:4px 0 0;color:#6b7280;font-size:.95rem}.btn-create{padding:12px 20px;font-size:.95rem}@media(max-width:640px){.page-header h1{font-size:1.75rem}.btn-create{width:100%;justify-content:center}}.filter-section{background:#f8fafc;border-radius:12px;padding:20px;margin-bottom:32px;border:1px solid #e2e8f0}.search-form{margin-bottom:20px}.search-wrapper{position:relative}.search-input{width:100%;padding:12px 16px 12px 48px;border:1px solid #cbd5e1;border-radius:8px;font-size:1rem}.filters{display:flex;flex-wrap:wrap;gap:16px}.filter-item{flex:1;min-width:140px}.filter-item label{display:block;margin-bottom:6px;font-weight:500;color:#475569;font-size:.9rem}.filter-item select,.filter-item input{width:100%;padding:10px 12px;border:1px solid #cbd5e1;border-radius:8px;font-size:.95rem}.btn-reset{padding:10px 16px;background:#f1f5f9;color:#475569;border:none;border-radius:8px;font-weight:500;white-space:nowrap}@media(max-width:640px){.filters{flex-direction:column;gap:12px}.filter-item{min-width:100%}.btn-reset{width:100%}}.classes-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:20px}@media(min-width:768px){.classes-grid{grid-template-columns:repeat(auto-fill,minmax(340px,1fr))}}@media(min-width:1024px){.classes-grid{grid-template-columns:repeat(auto-fill,minmax(360px,1fr))}}@media(max-width:480px){.classes-grid{grid-template-columns:1fr;gap:16px}}.class-card{background:#fff;border-radius:12px;border:1px solid #e2e8f0;padding:20px;transition:all .2s ease;display:flex;flex-direction:column}.class-card:hover{border-color:#94a3b8;box-shadow:0 8px 16px #0000000d}.class-card-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:16px}.class-icon{background:#eff6ff;color:#2563eb;width:56px;height:56px;border-radius:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.class-actions{display:flex;gap:8px}.action-btn{width:36px;height:36px;display:flex;align-items:center;justify-content:center;background:transparent;border:none;border-radius:6px;color:#64748b;cursor:pointer}.action-btn.danger:hover{background:#fee2e2;color:#ef4444}.class-name{font-size:1.25rem;font-weight:600;margin:0 0 10px;line-height:1.3}.class-meta{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.grade-badge,.year-badge{padding:4px 10px;border-radius:999px;font-size:.85rem;font-weight:500}.class-info{flex:1;display:flex;flex-direction:column;gap:8px;margin-bottom:16px;font-size:.92rem;color:#475569}.info-row{display:flex;align-items:center;gap:8px}.info-row strong{color:#111827}.info-row.warning{color:#d97706;font-style:italic}.btn-view-detail{margin-top:auto;padding:10px;background:#f1f5f9;border:none;border-radius:8px;font-weight:600;color:#2563eb;cursor:pointer;font-size:.95rem}.btn-view-detail:hover{background:#e0f2fe}.pagination{display:flex;justify-content:center;align-items:center;gap:16px;margin:40px 0 20px;flex-wrap:wrap}.pagination button{padding:10px 18px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;font-weight:500;cursor:pointer;min-width:80px}.pagination button:disabled{opacity:.5;cursor:not-allowed}.pagination span{font-size:.95rem;color:#475569}.empty-state{text-align:center;padding:80px 20px;color:#64748b}.empty-state svg{margin-bottom:24px;color:#cbd5e1}.empty-state h3{margin:16px 0 12px;font-size:1.5rem;color:#1e293b}.empty-state p{margin-bottom:24px}.classes-loading,.error-message{display:flex;justify-content:center;align-items:center;min-height:60vh;color:#475569}.error-message p{background:#fee2e2;color:#991b1b;padding:16px 24px;border-radius:8px;border:1px solid #fecaca}@media(max-width:640px){.admin-classes-container{padding:16px 12px}.page-header h1{font-size:1.75rem}.class-card{padding:16px}.class-name{font-size:1.15rem}.class-icon{width:48px;height:48px}.class-icon svg{width:24px;height:24px}.action-btn{width:34px;height:34px}.btn-view-detail{padding:12px}.pagination button{padding:8px 14px;min-width:70px}}@media(max-width:480px){.filter-section{padding:16px}.search-input{padding:10px 14px 10px 44px;font-size:.95rem}.search-icon{left:12px}}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:none;border-radius:8px;font-weight:600;cursor:pointer;transition:all .2s ease;white-space:nowrap}.btn-primary{background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;box-shadow:0 2px 6px #3b82f633}.btn-create{padding:12px 24px;font-size:.97rem;min-width:160px;box-shadow:0 4px 12px #3b82f640}.btn-create:hover{background:linear-gradient(135deg,#2563eb,#1d4ed8);transform:translateY(-2px);box-shadow:0 8px 20px #3b82f659;color:#fff}.btn-create:active{transform:translateY(0);box-shadow:0 2px 8px #3b82f640}.btn-create:disabled{opacity:.6;cursor:not-allowed;transform:none;box-shadow:none}.btn-create svg{transition:transform .2s ease}.btn-create:hover svg{transform:rotate(180deg) scale(1.15)}@media(max-width:640px){.btn-create{padding:14px 20px;font-size:1rem;width:100%;min-width:unset;justify-content:center}.btn-create svg{width:20px;height:20px}}@media(max-width:480px){.btn-create{padding:12px 16px;font-size:.95rem}}._overlay_k7j6f_3{position:fixed;inset:0;z-index:50;background:#0009;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;animation:_fadeIn_k7j6f_1 .3s ease-out}._dialog_k7j6f_15{background:#fff;border-radius:12px;box-shadow:0 20px 40px #00000040;width:100%;max-width:480px;margin:16px;overflow:hidden;display:flex;flex-direction:column;max-height:90vh}._header_k7j6f_28{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid #e5e7eb}._title_k7j6f_36{font-size:1.25rem;font-weight:700;color:#111827;margin:0}._closeButton_k7j6f_43{background:none;border:none;padding:4px;border-radius:50%;cursor:pointer;transition:background .2s}._closeButton_k7j6f_43:hover{background:#f3f4f6}._closeButton_k7j6f_43:disabled{opacity:.5;cursor:not-allowed}._form_k7j6f_61{padding:24px;flex:1;overflow-y:auto}._formGroup_k7j6f_67{margin-bottom:24px}._label_k7j6f_71{display:block;margin-bottom:6px;font-size:.875rem;font-weight:500;color:#374151}._required_k7j6f_79{color:#ef4444}._input_k7j6f_83,._select_k7j6f_84{width:100%;padding:10px 14px;border:1px solid #d1d5db;border-radius:8px;font-size:.95rem;background:#fff;color:#111827;transition:border-color .2s,box-shadow .2s}._input_k7j6f_83:focus,._select_k7j6f_84:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f626}._errorInput_k7j6f_104{border-color:#ef4444!important;box-shadow:0 0 0 3px #ef444426!important}._errorText_k7j6f_109{margin-top:6px;font-size:.8rem;color:#ef4444}._serverError_k7j6f_115{padding:12px 16px;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;color:#b91c1c;font-size:.875rem;margin-bottom:20px}._footer_k7j6f_125{padding:16px 24px;border-top:1px solid #e5e7eb;display:flex;justify-content:flex-end;gap:12px}._cancelButton_k7j6f_133{padding:10px 20px;background:transparent;border:1px solid #d1d5db;border-radius:8px;color:#374151;font-weight:500;cursor:pointer;transition:background .2s}._cancelButton_k7j6f_133:hover{background:#f3f4f6}._cancelButton_k7j6f_133:disabled{opacity:.6;cursor:not-allowed}._submitButton_k7j6f_153{padding:10px 24px;background:#3b82f6;border:none;border-radius:8px;color:#fff;font-weight:600;display:flex;align-items:center;gap:8px;cursor:pointer;transition:background .2s}._submitButton_k7j6f_153:hover{background:#2563eb}._submitButton_k7j6f_153:disabled{background:#9ca3af;cursor:not-allowed;opacity:.8}._spinner_k7j6f_177{animation:_spin_k7j6f_177 1s linear infinite}@keyframes _fadeIn_k7j6f_1{0%{opacity:0}to{opacity:1}}@keyframes _spin_k7j6f_177{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(max-width:640px){._dialog_k7j6f_15{margin:12px;max-width:96%}._header_k7j6f_28{padding:16px 20px}._title_k7j6f_36{font-size:1.125rem}._form_k7j6f_61{padding:20px}._footer_k7j6f_125{flex-direction:column-reverse;gap:12px}._cancelButton_k7j6f_133,._submitButton_k7j6f_153{width:100%;padding:12px}}._teacherSearchContainer_k7j6f_230,._searchInputWrapper_k7j6f_234{position:relative}._searchIcon_k7j6f_238{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#9ca3af;pointer-events:none}._searchInput_k7j6f_234{padding-left:44px!important}._suggestionsList_k7j6f_251{position:absolute;top:100%;left:0;right:0;background:#fff;border:1px solid #d1d5db;border-radius:8px;margin-top:4px;max-height:240px;overflow-y:auto;z-index:10;box-shadow:0 10px 25px #0000001f}._suggestionItem_k7j6f_266{display:flex;align-items:center;gap:12px;padding:10px 14px;cursor:pointer;transition:background .15s}._suggestionItem_k7j6f_266:hover{background:#f3f4f6}._teacherInfo_k7j6f_279{flex:1;min-width:0}._teacherName_k7j6f_284{font-weight:500;color:#111827}._teacherEmail_k7j6f_289{font-size:.82rem;color:#6b7280}._noResults_k7j6f_294{padding:12px 16px;color:#9ca3af;font-style:italic}._selectedTeacherTag_k7j6f_301{margin-top:8px;display:inline-flex;align-items:center;gap:8px;background:#eff6ff;color:#1d4ed8;padding:6px 12px;border-radius:999px;font-size:.9rem;font-weight:500}._removeTag_k7j6f_314{background:none;border:none;color:#1d4ed8;cursor:pointer;padding:2px;border-radius:50%;display:flex;align-items:center;justify-content:center}._removeTag_k7j6f_314:hover{background:#1d4ed81a}.dialog-content{background:var(--dialog-bg);border-radius:12px;width:90%;max-width:1100px;max-height:92vh;overflow-y:auto;box-shadow:0 20px 50px #00000059;display:flex;flex-direction:column;border:1px solid var(--border-dark)}.dialog-body-layout{display:flex;flex:1;overflow:visible;min-height:420px}.preview-table-container{width:100%;flex:1;max-height:none;overflow:auto;border:1px solid var(--border-light);border-radius:8px;background:var(--dialog-bg)}.preview-table{width:100%;min-width:100%;table-layout:fixed;border-collapse:collapse;font-size:.92rem}.preview-column{display:flex;flex-direction:column;flex:1}.school-year-field{margin-bottom:1.5rem}.school-year-label{display:block;margin-bottom:.5rem;font-size:.875rem;font-weight:500;color:var(--text-primary)}.required{color:#ef4444;font-size:.75rem;margin-left:.25rem}.school-year-input{display:block;width:100%;padding:.625rem .875rem;font-size:.95rem;line-height:1.5;color:var(--text-primary);background-color:var(--dialog-bg);border:1px solid var(--border-light);border-radius:.5rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}.school-year-input:focus{border-color:var(--primary);box-shadow:0 0 0 3px #3b82f626;outline:none}.school-year-input:disabled{background-color:#f1f5f9;color:#94a3b8;cursor:not-allowed;opacity:.7}.school-year-input::placeholder{color:#94a3b8;opacity:1}.school-year-hint{margin-top:.375rem;font-size:.75rem;color:var(--text-secondary);line-height:1.4}.class-tabs{display:flex;gap:8px;margin-bottom:12px;flex-wrap:wrap}.class-tab{padding:6px 12px;border-radius:8px;border:1px solid #ddd;background:#f8f9fa;cursor:pointer;font-size:13px;transition:.15s}.class-tab:hover{background:#e5e7eb}.class-tab.active{background:#2563eb;color:#fff;border-color:#2563eb}.failed-classes{margin-bottom:12px;padding:10px;border:1px solid #f59e0b;border-radius:8px;background:#f59e0b14}.failed-item{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.class-detail-container{max-width:1400px;margin:0 auto;padding:24px 16px}.class-detail-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:32px;flex-wrap:wrap;gap:20px}.header-left{display:flex;align-items:flex-start;gap:16px}.btn-back{width:48px;height:48px;border-radius:50%;background:#f1f5f9;border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s}.btn-back:hover{background:#e2e8f0;transform:translate(-2px)}.class-title{margin:0;font-size:2.25rem;font-weight:700;color:var(--text-primary)}.class-tags{display:flex;gap:12px;margin-top:8px}.tag{padding:6px 14px;border-radius:999px;font-size:.95rem;font-weight:500}.tag.grade{background:#dbeafe;color:#1d4ed8}.tag.year{background:#e0f2fe;color:#0369a1}.header-actions{display:flex;gap:12px;flex-wrap:wrap}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px;margin-bottom:40px}.stat-card{background:#fff;border-radius:12px;border:1px solid #e2e8f0;padding:24px;display:flex;align-items:center;gap:20px;transition:all .2s}.stat-card:hover{box-shadow:0 4px 12px #0000000f;transform:translateY(-2px)}.stat-icon{width:64px;height:64px;border-radius:12px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:1.5rem}.stat-icon.students{background:#3b82f6}.stat-icon.teachers{background:#8b5cf6}.stat-icon.calendar{background:#10b981}.stat-content h3{margin:0;font-size:2rem;font-weight:700}.stat-content p{margin:4px 0 0;color:#64748b;font-size:.95rem}.two-column-layout{display:grid;grid-template-columns:1fr 1fr;gap:28px}@media(max-width:1024px){.two-column-layout{grid-template-columns:1fr}}.section{background:#fff;border-radius:12px;border:1px solid #e2e8f0;overflow:hidden}.section-header{padding:20px 24px;background:#f8fafc;border-bottom:1px solid #e2e8f0;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px}.section-header h2{margin:0;font-size:1.35rem;display:flex;align-items:center;gap:12px;color:#1e293b}.table-wrapper{overflow-x:auto}.students-table{width:100%;border-collapse:collapse}.students-table th,.students-table td{padding:14px 20px;text-align:left;border-bottom:1px solid #f1f5f9}.students-table th{background:#f8fafc;font-weight:600;color:#475569;white-space:nowrap}.students-table tr:hover{background:#f8fafc}.student-name{font-weight:500;color:#111827}.email-cell{display:flex;align-items:center;gap:8px;color:#64748b}.teachers-list{padding:24px;display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:20px}.teacher-card{background:#f8fafc;border-radius:12px;padding:20px;border:1px solid #e2e8f0;transition:all .2s}.teacher-card:hover{border-color:#94a3b8;box-shadow:0 4px 12px #0000000f}.teacher-card.homeroom{background:#eff6ff;border-color:#bfdbfe}.teacher-role{font-size:.85rem;font-weight:600;color:#1d4ed8;margin-bottom:12px;display:inline-block;background:#dbeafe;padding:4px 12px;border-radius:999px}.teacher-content{display:flex;gap:16px}.teacher-avatar{width:64px;height:64px;border-radius:12px;background:#3b82f6;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1.4rem;flex-shrink:0}.teacher-info h3{margin:0 0 6px;font-size:1.15rem}.teacher-info .subject{color:#2563eb;font-weight:500;margin:0 0 4px}.teacher-info .email{color:#64748b;font-size:.92rem;margin:0}.btn{display:inline-flex;align-items:center;gap:8px;padding:10px 18px;border-radius:8px;font-weight:500;cursor:pointer;transition:all .2s}.btn-primary{background:#3b82f6;color:#fff;border:none}.btn-primary:hover{background:#2563eb}.btn-outline:hover{background:#f8fafc}.btn-sm{padding:8px 14px;font-size:.9rem}.btn-success{background:#10b981;color:#fff;border:none}.btn-success:hover{background:#059669}.btn-danger{background:transparent;border:none;color:#ef4444;padding:6px;border-radius:6px}.btn-danger:hover{background:#fee2e2}.empty-state{padding:60px 20px;text-align:center;color:#64748b;font-size:1.05rem}.class-detail-error,.class-detail-loading{text-align:center;padding:100px 20px}.class-detail-error h2{margin-bottom:24px;color:#374151}.btn-back{padding:12px 24px;background:#3b82f6;color:#fff;border:none;border-radius:8px;cursor:pointer;display:inline-flex;align-items:center;gap:8px}@media(max-width:768px){.stats-grid{grid-template-columns:1fr}.class-detail-header{flex-direction:column;align-items:flex-start}.header-actions{width:100%;justify-content:flex-start}}.class-detail-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:36px;padding:0 0 20px;border-bottom:1px solid #e2e8f0;flex-wrap:wrap;gap:20px}.header-left{display:flex;align-items:flex-start;gap:20px}.btn-back{width:48px;height:48px;min-width:48px;border-radius:50%;background:#f1f5f9;border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .25s ease;color:#475569;flex-shrink:0}.btn-back:hover{background:#e2e8f0;transform:translate(-4px);box-shadow:0 4px 12px #00000014}.class-title{margin:0;font-size:2.5rem;font-weight:800;letter-spacing:-.5px;color:#111827;line-height:1.1}.class-tags{display:flex;flex-wrap:wrap;gap:12px;margin-top:10px}.tag{padding:6px 16px;border-radius:999px;font-size:.95rem;font-weight:600;letter-spacing:.3px}.tag.grade{background:linear-gradient(135deg,#dbeafe,#bfdbfe);color:#1d4ed8;border:1px solid #93c5fd}.tag.year{background:linear-gradient(135deg,#e0f2fe,#bae6fd);color:#0369a1;border:1px solid #7dd3fc}.header-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;gap:10px;padding:12px 20px;border-radius:10px;font-weight:600;font-size:.95rem;transition:all .25s ease;cursor:pointer;white-space:nowrap}.btn-primary{background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;border:none;box-shadow:0 4px 12px #3b82f640}.btn-primary:hover{background:linear-gradient(135deg,#2563eb,#1d4ed8);transform:translateY(-2px);box-shadow:0 8px 20px #3b82f659}.btn-outline{background:#fff;border:1px solid #cbd5e1;color:#374151}.btn-outline:hover{background:#f8fafc;border-color:#94a3b8;transform:translateY(-1px)}@media(max-width:1024px){.class-detail-header{flex-direction:column;align-items:flex-start;gap:24px}.header-actions{width:100%;justify-content:flex-start}}@media(max-width:640px){.class-title{font-size:2rem}.btn{padding:10px 16px;font-size:.9rem}.header-actions{flex-direction:column;width:100%;gap:12px}.btn-back{width:44px;height:44px}}.btn-back{width:48px;height:48px;min-width:48px;border-radius:50%;background:#f1f5f9;border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .25s ease;color:#475569;box-shadow:0 2px 8px #00000014;flex-shrink:0}.btn-back:hover{background:#e2e8f0;transform:translate(-6px) scale(1.08);box-shadow:0 8px 20px #00000026;color:#1e293b}.btn-back:active{transform:translate(-3px) scale(.96)}.btn-back svg{width:24px!important;height:24px!important;stroke-width:2.5;color:inherit;flex-shrink:0}@media(max-width:640px){.btn-back{width:44px;height:44px;min-width:44px}.btn-back svg{width:22px!important;height:22px!important}}.section-header{display:flex;flex-direction:column;gap:10px;margin-bottom:12px;align-items:flex-start}.section-actions{display:flex;gap:8px;flex-wrap:wrap}.teacher-card{position:relative;padding:16px;background:#f8fafc;border-radius:12px;border:1px solid #e5e7eb;display:flex;justify-content:space-between;align-items:center;transition:all .2s}.teacher-card:hover{box-shadow:0 4px 12px #00000014;transform:translateY(-2px)}.action-btn.danger{background:#fee2e2;color:#ef4444;border:none;border-radius:8px;padding:8px;cursor:pointer;transition:background .2s}.action-btn.danger:hover{background:#fecaca}.teacher-content{flex:1;display:flex;align-items:center;gap:16px}.user-avatar-class-detail{width:60px;height:60px;border-radius:50%;background:#111827;color:#fff;font-weight:600;font-size:16px;display:flex;align-items:center;justify-content:center;overflow:hidden;transition:all .2s ease;box-shadow:0 1px 3px #0000001a}.user-avatar-class-detail:hover{box-shadow:0 2px 8px #00000026;transform:scale(1.05)}.navbar-avatar-img-class-detail{width:100%;height:100%;object-fit:cover;object-position:center;border-radius:50%}.logo-text{font-size:20px;font-weight:800;background:linear-gradient(90deg,#06f,#60a5fa);-webkit-background-clip:text;-webkit-text-fill-color:transparent}:root{--dialog-bg: #ffffff;--dialog-border: #e2e8f0;--text-primary: #1e293b;--text-secondary: #64748b;--border-light: #e2e8f0;--border-dark: #cbd5e1;--bg-hover: #f1f5f9;--primary: #3b82f6;--primary-hover: #2563eb;--success: #10b981;--danger: #ef4444;--warning: #f59e0b;--gray: #6b7280}[data-theme=dark]{--dialog-bg: #1e293b;--dialog-border: #334155;--text-primary: #f1f5f9;--text-secondary: #94a3b8;--border-light: #334155;--border-dark: #475569;--bg-hover: #334155;--primary: #60a5fa;--primary-hover: #3b82f6}.dialog-overlay{position:fixed;inset:0;background:#000000a6;display:flex;align-items:center;justify-content:center;z-index:1300;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.dialog-content{background:var(--dialog-bg);border-radius:12px;width:90%;max-width:1100px;max-height:92vh;overflow:hidden;box-shadow:0 20px 50px #00000059;display:flex;flex-direction:column;border:1px solid var(--border-dark)}.dialog-header{padding:16px 24px;border-bottom:1px solid var(--border-light);display:flex;justify-content:space-between;align-items:center;background:var(--dialog-bg)}.dialog-header h2{margin:0;font-size:1.35rem;font-weight:600;color:var(--text-primary)}.close-btn{background:none;border:none;cursor:pointer;color:var(--text-secondary);padding:4px;border-radius:6px;transition:all .2s}.close-btn:hover{color:var(--danger);background:#ef44441a}.dialog-body-layout{display:flex;flex:1;overflow:hidden;min-height:420px}.input-column,.preview-column{flex:1;padding:24px;overflow-y:auto}.input-column{border-right:1px solid var(--border-light);background:var(--bg-hover)}.preview-column{background:var(--dialog-bg)}.import-header-tabs{display:flex;margin-bottom:20px;border-bottom:1px solid var(--border-light)}.tab-btn{flex:1;padding:12px 16px;background:none;border:none;font-weight:500;color:var(--text-secondary);cursor:pointer;display:flex;align-items:center;gap:8px;transition:all .2s;border-bottom:2px solid transparent}.tab-btn.active{color:var(--primary);border-bottom-color:var(--primary);background:#3b82f60d}.tab-btn:hover:not(.active){color:var(--text-primary);background:#f1f5f980}.import-content{display:flex;flex-direction:column;gap:16px}.tabs-method{margin-bottom:16px}.method-option{display:flex;align-items:center;gap:12px;padding:14px 20px;background:var(--dialog-bg);border:2px dashed var(--border-light);border-radius:10px;cursor:pointer;color:var(--primary);font-weight:500;transition:all .2s}.method-option:hover{border-color:var(--primary);background:#3b82f60d}.bulk-textarea{width:100%;min-height:180px;padding:14px;border:1px solid var(--border-light);border-radius:8px;font-family:inherit;font-size:.95rem;resize:vertical;background:var(--dialog-bg);color:var(--text-primary)}.bulk-textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px #3b82f626}.bulk-textarea:disabled{background:#f1f5f9;color:#94a3b8;cursor:not-allowed}.preview-title{margin:0 0 16px;font-size:1.15rem;font-weight:600;color:var(--text-primary)}.preview-table-container{max-height:420px;overflow-y:auto;border:1px solid var(--border-light);border-radius:8px;background:var(--dialog-bg)}.preview-table{width:100%;border-collapse:collapse;font-size:.92rem}.preview-table th,.preview-table td{padding:12px 14px;text-align:left;border-bottom:1px solid var(--border-light)}.preview-table th{background:#f1f5f9;font-weight:600;color:var(--text-primary);position:sticky;top:0;z-index:1}.preview-table tr:hover{background:#f1f5f999}.preview-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;height:320px;color:var(--text-secondary);text-align:center}.preview-placeholder p{margin-top:16px;font-size:1rem}.dialog-footer{padding:16px 24px;border-top:1px solid var(--border-light);display:flex;justify-content:flex-end;align-items:center;gap:12px;background:var(--dialog-bg)}.btn{padding:10px 18px;border-radius:8px;font-weight:500;cursor:pointer;transition:all .2s;border:none}.btn.confirm{background:var(--primary);color:#fff}.btn.confirm:hover{background:var(--primary-hover)}.btn.cancel,.btn.clear-btn{background:#f1f5f9;color:var(--text-primary)}.btn.cancel:hover,.btn.clear-btn:hover{background:#e2e8f0}.btn.retry{background:var(--warning);color:#fff}.btn:disabled{opacity:.6;cursor:not-allowed}.result-summary{display:flex;gap:32px;margin-bottom:12px;font-size:.95rem}.errors-list{margin-top:12px;padding:12px;background:#ef444414;border-radius:8px;border:1px solid rgba(239,68,68,.3)}.errors-list ul{margin:8px 0 0 20px;padding:0;color:var(--danger)}@media(max-width:1024px){.dialog-body-layout{flex-direction:column}.input-column{border-right:none;border-bottom:1px solid var(--border-light)}.dialog-content{max-width:95%}}@media(max-width:768px){.dialog-header{padding:14px 18px}.dialog-body-layout,.input-column,.preview-column{padding:16px}.dialog-footer{flex-wrap:wrap;justify-content:center}}.manual-input-wrapper{position:relative;display:flex;align-items:center}.search-icon{position:absolute;left:12px;color:#94a3b8;pointer-events:none}.manual-search-input{width:100%;padding:10px 12px 10px 40px;border:1px solid #cbd5e1;border-radius:6px;font-size:15px}.input-loading.spin{position:absolute;right:12px;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.search-results-dropdown{margin-top:4px;max-height:240px;overflow-y:auto;border:1px solid #e2e8f0;border-radius:6px;background:#fff;box-shadow:0 4px 12px #0000001a;z-index:10}.dark .search-results-dropdown{background:#1e293b;border-color:#334155}.search-result-item{padding:10px 14px;display:flex;flex-direction:column;cursor:pointer;border-bottom:1px solid #f1f5f9}.dark .search-result-item{border-bottom-color:#334155}.search-result-item:hover{background:#f8fafc}.dark .search-result-item:hover{background:#0f172a}.student-info{display:flex;justify-content:space-between;margin-bottom:4px}.student-name{font-weight:500}.student-id{color:#64748b;font-size:.9em}.student-email{font-size:.9em;color:#64748b}.no-results{margin-top:8px;color:#ef4444;font-size:.9rem}.excel-import-section{display:flex;flex-direction:column;gap:1.25rem}.excel-guide{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:1rem 1.25rem}.dark .excel-guide{background:#1e293b;border-color:#334155}.guide-title{font-weight:600;margin-bottom:.75rem;color:#1e293b}.dark .guide-title{color:#e2e8f0}.guide-steps{padding-left:1.25rem;margin:.5rem 0 1rem;line-height:1.6}.guide-note{font-size:.875rem;color:#64748b;margin-top:.75rem}.download-sample-btn{display:inline-flex;align-items:center;gap:8px;padding:.6rem 1.2rem;background:#3b82f6;color:#fff;border-radius:6px;text-decoration:none;font-weight:500;margin:.75rem 0;transition:background .2s}.download-sample-btn:hover{background:#2563eb}.upload-area{border:2px dashed #cbd5e1;border-radius:8px;padding:2rem 1rem;text-align:center;cursor:pointer;transition:all .2s;background:#f8fafc}.dark .upload-area{border-color:#475569;background:#1e293b}.upload-area:hover{border-color:#3b82f6;background:#eff6ff}.dark .upload-area:hover{background:#0f172a}.hint{margin-top:.5rem;color:#64748b;font-size:.875rem}.atd-overlay{position:fixed;inset:0;background:#0009;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:1000}.atd-dialog{width:960px;max-width:96vw;max-height:94vh;min-height:90vh;background:var(--bg-primary, #ffffff);border-radius:16px;box-shadow:0 20px 60px #0000004d;display:flex;flex-direction:column;overflow:hidden}.atd-header{padding:18px 24px;border-bottom:1px solid var(--border, #e5e7eb);display:flex;justify-content:space-between;align-items:center;background:var(--bg-secondary, #f8fafc)}.atd-header h2{margin:0;font-size:1.4rem;font-weight:600;color:var(--text-primary, #111827)}.atd-close-btn{background:none;border:none;color:var(--text-muted, #6b7280);cursor:pointer;padding:6px;border-radius:6px;transition:all .2s}.atd-close-btn:hover{background:#00000014;color:#111827}.atd-body{padding:24px;flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:24px}.atd-form-row{display:flex;gap:16px;flex-wrap:wrap;align-items:flex-end}.atd-form-group{flex:1;min-width:240px}.atd-form-group label{display:block;margin-bottom:8px;font-size:.9rem;font-weight:500;color:var(--text-secondary, #374151)}.atd-form-group select,.atd-search-container input{width:100%;padding:10px 14px;border:1px solid var(--border, #d1d5db);border-radius:10px;font-size:.95rem;background:var(--bg-input, #ffffff);transition:border-color .2s}.atd-form-group select:focus,.atd-search-container input:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.atd-search-container{position:relative;display:flex;align-items:center}.search-icon{position:absolute;left:14px;color:#9ca3af;pointer-events:none}.atd-search-container input{padding-left:44px}.spin{position:absolute;right:14px;animation:spin 1s linear infinite}.atd-dropdown{position:absolute;top:100%;left:0;right:0;background:var(--bg-primary, #ffffff);border:1px solid var(--border, #d1d5db);border-radius:10px;margin-top:6px;max-height:260px;overflow-y:auto;box-shadow:0 12px 30px #00000026;z-index:20}.atd-dropdown-item{padding:12px 16px;cursor:pointer;transition:background .15s}.atd-dropdown-item:hover{background:#f1f5f9}.teacher-main-info{display:flex;flex-direction:column;gap:2px}.teacher-name{font-weight:500;color:#111827}.teacher-email{font-size:.85rem;color:#6b7280}.atd-add-btn{padding:11px 20px;background:#3b82f6;color:#fff;border:none;border-radius:10px;font-weight:500;display:flex;align-items:center;gap:8px;cursor:pointer;transition:background .2s;min-height:44px}.atd-add-btn:hover:not(:disabled){background:#2563eb}.atd-add-btn:disabled{background:#9ca3af;cursor:not-allowed}.atd-table-section{flex:1;display:flex;flex-direction:column}.atd-table-header{padding-bottom:12px}.atd-table-header h3{margin:0;font-size:1.1rem;font-weight:600;color:#374151}.atd-table-container{border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;flex:1}.atd-table{width:100%;border-collapse:collapse}.atd-table th,.atd-table td{padding:14px 16px;text-align:left;border-bottom:1px solid #f3f4f6}.atd-table th{background:#f8fafc;font-weight:600;color:#374151;font-size:.9rem}.atd-delete-btn{background:none;border:none;color:#ef4444;cursor:pointer;padding:6px;border-radius:6px;transition:background .2s}.atd-delete-btn:hover{background:#fee2e2}.atd-empty-state{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#9ca3af;font-size:.95rem;text-align:center;padding:40px 20px}.atd-footer{padding:16px 24px;border-top:1px solid #e5e7eb;display:flex;justify-content:flex-end;gap:12px;background:#f8fafc}.btn-cancel,.btn-confirm{padding:10px 20px;border-radius:10px;font-weight:500;min-width:120px;display:flex;align-items:center;gap:8px;cursor:pointer}.btn-cancel{border:1px solid #d1d5db;background:#fff;color:#374151}.btn-cancel:hover{background:#f3f4f6}.btn-confirm{background:#3b82f6;color:#fff;border:none}.btn-confirm:hover:not(:disabled){background:#2563eb}.btn-confirm:disabled{background:#9ca3af;cursor:not-allowed}@media(max-width:1024px){.atd-dialog{width:90vw}}@media(max-width:768px){.atd-dialog{width:95vw;max-height:90vh}.atd-form-row{flex-direction:column;gap:16px}.atd-add-btn{width:100%}.atd-body{padding:16px}}.assignment-type-tabs{display:flex;gap:8px;margin-bottom:20px}.tab{padding:8px 16px;border-radius:8px;background:#f1f5f9;border:none;cursor:pointer;font-weight:500;transition:all .2s}.tab.active{background:#3b82f6;color:#fff}.tab:disabled{opacity:.6;cursor:not-allowed}.homeroom-preview{background:#f0fdf4;padding:16px;border-radius:12px;border:1px solid #bbf7d0}.dark .homeroom-preview{background:#064e3b;border-color:#6ee7b7}.subject-management-page{padding:24px;max-width:1400px;margin:0 auto}.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:32px}.header-left-subject{display:flex;align-items:center;gap:16px}.header-icon{color:#3b82f6}h1{margin:0;font-size:2rem}.search-bar-container{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;flex-wrap:wrap;gap:16px}.search-wrapper{position:relative;flex:1;min-width:300px}.search-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#64748b}.search-input{width:100%;padding:12px 12px 12px 40px;border:1px solid #e2e8f0;border-radius:8px;font-size:1rem}.stats{font-size:.95rem;color:#64748b}.stats strong{color:#1e293b;font-weight:600}.table-container{background:#fff;border-radius:12px;box-shadow:0 4px 12px #00000014;overflow:hidden;overflow-x:auto}.subjects-table{width:100%;border-collapse:collapse}.subjects-table th,.subjects-table td{padding:14px 16px;text-align:left}.subjects-table th{background:#f8fafc;font-weight:600;color:#334155;white-space:nowrap}.code-cell{font-family:Courier New,monospace;font-weight:600;color:#2563eb}.name-cell{font-weight:500}.status-badge{padding:4px 12px;border-radius:999px;font-size:.8rem;font-weight:500}.status-badge.active{background:#dcfce7;color:#166534}.status-badge.inactive{background:#fee2e2;color:#991b1b}.actions-cell{display:flex;gap:8px}.action-btn{background:none;border:none;cursor:pointer;padding:6px;border-radius:6px;color:#64748b;transition:all .2s}.action-btn:hover{background:#f1f5f9}.action-btn.edit{color:#2563eb}.action-btn.delete{color:#ef4444}.empty-state,.loading-container{text-align:center;padding:80px 20px;color:#64748b}.empty-state h3{margin:16px 0 8px;color:#1e293b}.subject-form{display:flex;flex-direction:column;gap:20px}.form-group{display:flex;flex-direction:column;gap:6px}.form-group label{font-weight:500;color:#1e293b}.form-group input{padding:10px 14px;border:1px solid #e2e8f0;border-radius:8px;font-size:1rem}.checkbox-group{margin-top:12px}.form-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}.required{color:#ef4444;margin-left:4px}.modal-overlay{position:fixed;inset:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:1000}.modal-content{background:#fff;border-radius:12px;width:90%;max-width:500px;padding:24px;box-shadow:0 10px 30px #0000004d;position:relative}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.modal-close-btn{background:none;border:none;cursor:pointer;color:#64748b}.modal-close-btn:hover{color:#ef4444}.confirm-dialog{background:#fff;border-radius:12px;padding:24px;max-width:420px;text-align:center;box-shadow:0 10px 30px #0000004d}.confirm-actions{display:flex;justify-content:center;gap:16px;margin-top:24px}.btn-danger{background:#ef4444;color:#fff}.btn-danger:hover{background:#dc2626}.import-modal{max-width:700px}.upload-area{border:2px dashed #cbd5e1;border-radius:12px;padding:40px 20px;text-align:center;cursor:pointer;transition:all .2s;margin-bottom:24px}.upload-area:hover{border-color:#3b82f6;background:#3b82f60d}.upload-area p{margin:8px 0;color:#64748b}.hint{font-size:.85rem;color:#94a3b8}.import-loading{text-align:center;padding:40px 0}.preview-title{font-size:1.1rem;font-weight:600;margin:16px 0 12px}.excel-preview-table-container{max-height:320px;overflow-y:auto;border:1px solid #e2e8f0;border-radius:8px}.excel-preview-table{width:100%;border-collapse:collapse}.excel-preview-table th,.excel-preview-table td{padding:10px 12px;text-align:left;border-bottom:1px solid #e2e8f0}.excel-preview-table th{background:#f8fafc;font-weight:600}.import-guide{margin-bottom:1.5rem;padding:1rem;background:#f8f9fa;border-radius:8px;border:1px solid #e2e8f0}.import-guide p{margin:.5rem 0;line-height:1.5}.download-sample-link{display:inline-flex;align-items:center;gap:8px;margin:1rem 0;padding:.6rem 1.4rem;background:#3b82f6;color:#fff;border-radius:6px;text-decoration:none;font-weight:500}.download-sample-link:hover{background:#2563eb}.note-small{font-size:.9rem;color:#64748b;margin-top:.75rem}.dark .import-guide{background:#1e293b;border-color:#334155}*,*:before,*:after{box-sizing:border-box}html,body{margin:0;padding:0}:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;line-height:1.5;font-weight:400;color:#111827;background-color:#f3f4f6;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{min-width:320px;min-height:100vh;background:#f3f4f6}a{color:#111827;font-weight:500;text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3,h4{font-weight:600;letter-spacing:-.02em}button{font-family:inherit;font-size:.95rem;cursor:pointer}
