.login-container{min-height:100vh;display:flex;justify-content:center;align-items:center;background:linear-gradient(135deg,#fff8e7,#fff5de);padding:20px}.login-card{background:#fff;border-radius:30px;padding:48px;box-shadow:0 8px 32px #ffc84326;width:100%;max-width:400px}.login-header{text-align:center;margin-bottom:32px}.login-header h1{font-size:32px;color:#ffc843;margin-bottom:8px;text-shadow:0 2px 4px rgba(0,0,0,.05)}.login-header p{color:#8b7355;font-size:14px}.login-form{display:flex;flex-direction:column;gap:20px}.form-group input{padding:14px 16px;border:2px solid #FFE4B5;border-radius:16px;font-size:14px;transition:all .3s ease}.error-message{background:#ffe4e1;color:#c62828;padding:12px 16px;border-radius:12px;font-size:14px;text-align:center}.login-btn{padding:14px;background:linear-gradient(135deg,#ffc843,#ffb81c);color:#fff;border:none;border-radius:20px;font-size:16px;font-weight:600;cursor:pointer;transition:all .3s ease;margin-top:8px}.login-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 20px #ffc8434d}.login-btn:disabled{opacity:.6;cursor:not-allowed}.question-page{background:#fff;border-radius:20px;padding:32px;box-shadow:0 4px 20px #ffc8431a;position:relative}.answer-card-panel{position:fixed;right:20px;top:50%;transform:translateY(-50%);width:280px;max-height:80vh;background:#fff;border-radius:16px;box-shadow:0 4px 24px #00000026;z-index:1000;display:flex;flex-direction:column;overflow:hidden}.answer-card-header{padding:16px;background:linear-gradient(135deg,#ffc843,#ffb81c);color:#fff;font-weight:600;font-size:16px;display:flex;justify-content:space-between;align-items:center}.answer-card-toggle{background:#fff3;border:none;color:#fff;width:28px;height:28px;border-radius:50%;cursor:pointer;font-size:12px;display:flex;align-items:center;justify-content:center;transition:all .3s ease}.answer-card-toggle:hover{background:#ffffff4d}.answer-card-content{flex:1;overflow-y:auto;padding:16px}.answer-card-type-group{margin-bottom:16px}.answer-card-type-title{font-size:13px;font-weight:600;color:#5c4033;margin-bottom:10px;padding:6px 10px;background:#fff8e7;border-radius:8px;border-left:3px solid #FFC843}.answer-card-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.answer-card-btn{width:40px;height:36px;border:2px solid #E0E0E0;border-radius:8px;background:#fff;color:#333;font-size:13px;font-weight:500;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:center}.answer-card-btn:hover{border-color:#ffc843;transform:scale(1.05)}.answer-card-btn.current{border-color:#ffc843;box-shadow:0 0 0 3px #ffc8434d;position:relative}.answer-card-btn.current:after{content:"";position:absolute;top:-4px;right:-4px;width:10px;height:10px;background:#ffc843;border-radius:50%;border:2px solid white}.answer-card-btn.correct{background:#4caf50;border-color:#4caf50;color:#fff}.answer-card-btn.partial{background:linear-gradient(135deg,#4caf50 50%,#fff 50%);border-color:#4caf50;color:#333}.answer-card-btn.wrong{background:#f44336;border-color:#f44336;color:#fff}.answer-card-btn.answered{border-color:#ffc843;background:#fff8e7}.answer-card-legend{padding:12px 16px;border-top:1px solid #F0F0F0;background:#fafafa}.answer-card-legend-title{font-size:12px;font-weight:600;color:#666;margin-bottom:8px}.answer-card-legend-items{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}.answer-card-legend-item{display:flex;align-items:center;gap:4px;font-size:11px;color:#666}.answer-card-legend-dot{width:12px;height:12px;border-radius:3px;border:1px solid #ddd}.answer-card-legend-dot.correct{background:#4caf50;border-color:#4caf50}.answer-card-legend-dot.partial{background:linear-gradient(135deg,#4caf50 50%,#fff 50%);border-color:#4caf50}.answer-card-legend-dot.wrong{background:#f44336;border-color:#f44336}.answer-card-legend-dot.unanswered{background:#fff}.answer-card-stats{font-size:12px;color:#5c4033;font-weight:500;padding:8px;background:#fff;border-radius:8px;margin-bottom:10px;display:grid;grid-template-columns:repeat(2,1fr);gap:4px}.stat-item{display:flex;justify-content:space-between;align-items:center}.stat-label{font-size:11px;color:#666}.stat-value{font-weight:600}.stat-value.wrong{color:#f44336}.stat-value.partial{color:#ff9800}.stat-value.correct{color:#4caf50}.stat-value.unanswered{color:#999}.answer-card-save-btn{width:100%;padding:12px;background:#4caf50;color:#fff;border:none;border-radius:10px;font-size:14px;font-weight:600;cursor:pointer;transition:all .3s ease;margin-bottom:8px}.answer-card-save-btn:hover{background:#388e3c;transform:translateY(-1px);box-shadow:0 4px 12px #4caf504d}.answer-card-exit-btn{width:100%;padding:10px;background:#f5f5f5;color:#666;border:none;border-radius:10px;font-size:13px;cursor:pointer;transition:all .3s ease}.answer-card-exit-btn:hover{background:#e0e0e0}.answer-card-panel.collapsed{width:auto;min-width:60px}.answer-card-panel.collapsed .answer-card-content,.answer-card-panel.collapsed .answer-card-legend{display:none}.answer-card-panel.collapsed .answer-card-header{writing-mode:vertical-rl;text-orientation:mixed;padding:16px 8px}@media (max-width: 1200px){.answer-card-panel{right:10px;width:240px}.answer-card-grid{grid-template-columns:repeat(4,1fr)}.answer-card-btn{width:36px;height:32px;font-size:12px}}@media (orientation: portrait) and (max-width: 768px){.question-page{padding:16px}.answer-card-panel:not(.mobile-collapsed){position:fixed;right:10px;top:50%;transform:translateY(-50%);width:260px;max-height:80vh;box-shadow:0 4px 24px #00000026;flex-direction:column;left:auto;bottom:auto;border-radius:16px}.answer-card-panel.mobile-collapsed{display:none}.answer-card-mini-btn{position:fixed;right:12px;bottom:24px;width:52px;height:52px;background:linear-gradient(135deg,#ffc843,#ffb81c);border:none;border-radius:50%;box-shadow:0 4px 16px #ffb81c66;cursor:pointer;z-index:1001;display:flex;align-items:center;justify-content:center;font-size:22px;transition:transform .2s ease,box-shadow .2s ease}.answer-card-mini-btn:hover{transform:scale(1.08);box-shadow:0 6px 20px #ffb81c80}.answer-card-mini-btn:active{transform:scale(.95)}.answer-card-content{padding:12px}.answer-card-type-group{margin-bottom:12px}.answer-card-type-title{font-size:13px;padding:6px 10px;margin-bottom:8px}.answer-card-grid{grid-template-columns:repeat(5,1fr);gap:6px}.answer-card-btn{width:36px;height:32px;font-size:12px}.answer-card-legend{width:100%;padding:10px;border-top:1px solid #F0F0F0;border-left:none;display:flex;flex-direction:column;background:#fafafa}.answer-card-legend-title{font-size:11px;margin-bottom:6px}.answer-card-legend-items{flex-direction:column;gap:4px}.answer-card-legend-item{font-size:10px}.answer-card-legend-dot{width:10px;height:10px}.answer-card-stats{font-size:10px;padding:6px;margin-bottom:8px;grid-template-columns:repeat(2,1fr)}.answer-card-save-btn{padding:8px;font-size:12px}.answer-card-exit-btn{padding:7px;font-size:12px}}@media (max-width: 360px){.answer-card-mini-btn{display:block}.answer-card-panel:not(.mobile-collapsed){display:flex;width:220px;max-height:70vh}.answer-card-panel.mobile-collapsed{display:none}.question-page{padding-top:32px}}.question-header{display:flex;align-items:center;gap:16px;margin-bottom:32px;padding-bottom:16px;border-bottom:2px solid #FFE4B5}.btn-back{padding:10px 16px;background:#f5f5f5;border:none;border-radius:12px;cursor:pointer;color:#5c4033;font-weight:500;transition:all .3s ease}.btn-back:hover{background:#ffc843;color:#fff}.question-header h2{flex:1;color:#ffc843;font-size:20px}.progress{color:#8b7355;font-size:14px;font-weight:500}.question-container{margin-bottom:32px}.question-material{margin-bottom:24px;padding:20px;background:#f0f7ff;border-radius:16px;border-left:4px solid #4A90D9}.material-label{font-size:14px;font-weight:600;color:#4a90d9;margin-bottom:12px;display:flex;align-items:center;gap:8px}.material-content{font-size:15px;color:#4a5568;line-height:1.8;white-space:pre-wrap}.material-content .inline-image{max-width:100%;max-height:200px;display:block;margin:12px 0;border-radius:8px;box-shadow:0 2px 8px #0000001a}.question-header-row{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px}.question-text{flex:1;font-size:18px;color:#5c4033;font-weight:500;line-height:1.6;padding:20px;background:#fff8e7;border-radius:16px;border-left:4px solid #FFC843;margin-right:16px}.favorite-btn{background:none;border:none;font-size:24px;color:#a8d5ba;cursor:pointer;transition:all .3s ease;padding:8px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:4px}.favorite-btn:hover{background:#a8d5ba1a;transform:scale(1.1)}.favorite-btn.favorited{color:#a8d5ba;font-weight:700}.favorite-btn.favorited:hover{background:#a8d5ba33}.question-text .inline-image{max-width:100%;max-height:200px;display:block;margin:12px 0;border-radius:8px;box-shadow:0 2px 8px #0000001a}.question-type-badge{display:inline-block;padding:6px 12px;background:#a8d5ba;color:#fff;border-radius:12px;font-size:12px;font-weight:600;margin-bottom:16px}.options{display:flex;flex-direction:column;gap:12px;margin-bottom:24px}.option{padding:16px;background:#fff;border:2px solid #FFE4B5;border-radius:16px;cursor:pointer;display:flex;align-items:flex-start;gap:12px;transition:all .3s ease;text-align:left}.option:hover:not(:disabled){border-color:#ffc843;background:#fff8e7;transform:translate(4px)}.option:disabled{cursor:not-allowed}.option:active:not(:disabled){transform:scale(.98);transition:transform .1s ease}@media (hover: none){.option:hover:not(:disabled){transform:none}}.option.selected{border-color:#ffc843;background:#fff8e7}.option.correct{border-color:#4caf50;background:#e8f5e9}.option.wrong{border-color:#f44336;background:#ffebee}.option-letter{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;background:#ffc843;color:#fff;border-radius:50%;font-weight:600;flex-shrink:0}.option.correct .option-letter{background:#4caf50}.option.wrong .option-letter{background:#f44336}.option-text .inline-image{max-width:120px;max-height:80px;display:inline-block;vertical-align:middle;margin:4px 0;border-radius:4px}.essay-hint{padding:40px 20px;text-align:center;color:#8b7355;font-size:14px;background:#fff8e7;border-radius:12px;border:2px dashed #F4C4C4}.btn-confirm{padding:12px 24px;background:#a8d5ba;color:#fff;border:none;border-radius:16px;cursor:pointer;font-weight:600;margin:16px 0;transition:all .3s ease;width:100%}.btn-confirm:hover{background:#8fbe9f;transform:translateY(-2px);box-shadow:0 4px 12px #a8d5ba4d}.result{padding:20px;border-radius:16px;margin-bottom:24px;animation:slideIn .3s ease}@keyframes slideIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.result.correct{background:#e8f5e9;border-left:4px solid #4CAF50}.result.wrong{background:#ffebee;border-left:4px solid #F44336}.result-title{font-weight:600;font-size:16px;margin-bottom:8px;color:#2e7d32}.result.wrong .result-title{color:#c62828}.result-user-answer{color:#5c4033;font-size:14px;margin-bottom:8px}.result-answer{color:#5c4033;font-size:14px;margin-bottom:12px}.result-analysis{color:#5c4033;font-size:14px;line-height:1.6;margin-top:12px;padding-top:12px;border-top:1px solid rgba(0,0,0,.1)}.result-analysis .inline-image{max-width:100%;max-height:180px;display:block;margin:8px 0;border-radius:6px;box-shadow:0 2px 6px #00000014}.question-footer{display:flex;gap:12px;justify-content:space-between}.btn-nav{flex:1;padding:14px;background:#ffc843;color:#fff;border:none;border-radius:16px;cursor:pointer;font-weight:600;transition:all .3s ease}.btn-nav:hover:not(:disabled){background:#ffb81c;transform:translateY(-2px);box-shadow:0 4px 12px #ffc8434d}.btn-nav:disabled{background:#e0e0e0;cursor:not-allowed;color:#999}.btn-nav.btn-next{background:#a8d5ba}.btn-nav.btn-next:hover:not(:disabled){background:#8fbe9f}@media (max-width: 768px){.question-page{padding:16px}.question-header{flex-direction:column;align-items:flex-start}.question-header h2{width:100%}.question-text{font-size:16px}.option{padding:12px}}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;display:flex;justify-content:center;align-items:center;z-index:1000}.modal-content{background-color:#fff;border-radius:8px;padding:24px;width:90%;max-width:400px;box-shadow:0 4px 12px #00000026}.modal-content h3{margin-top:0;color:#333;font-size:18px;font-weight:600}.modal-content p{margin:16px 0;color:#666;line-height:1.5}.modal-buttons{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}.btn-cancel{padding:8px 16px;border:1px solid #ddd;border-radius:4px;background-color:#fff;color:#666;cursor:pointer;font-size:14px;transition:all .2s}.btn-cancel:hover{border-color:#ccc;background-color:#f5f5f5}.modal-content .btn-confirm{padding:8px 16px;border:none;border-radius:4px;background-color:#ffc843;color:#333;cursor:pointer;font-size:14px;font-weight:500;transition:all .2s;width:auto;margin:0}.modal-content .btn-confirm:hover{background-color:#ffb843;transform:translateY(-1px);box-shadow:0 2px 8px #ffc8434d}.subjects-list{display:flex;flex-direction:column;gap:16px}.dashboard-header{display:flex;align-items:center;gap:20px;margin-bottom:24px;flex-wrap:wrap}.dashboard-header h1{margin:0;white-space:nowrap}.filter-buttons{display:flex;gap:12px;flex-wrap:wrap}.filter-btn{padding:10px 20px;background:#fff;border:2px solid #FFE4B5;border-radius:16px;cursor:pointer;font-weight:500;color:#8b7355;transition:all .3s ease;font-size:14px}.filter-btn:hover{border-color:#ffc843;background:#fff8e7;color:#5c4033}.filter-btn.active{background:linear-gradient(135deg,#ffc843,#ffb81c);border-color:#ffc843;color:#fff;box-shadow:0 4px 12px #ffc8434d}.subject-item{background:linear-gradient(135deg,#fffbf0,#fff);border-radius:20px;overflow:hidden;border:2px solid #FFE4B5;transition:all .3s ease}.subject-item:hover{border-color:#ffc843;box-shadow:0 4px 16px #ffc8431a}.subject-header{padding:16px 20px;display:flex;align-items:center;gap:12px;cursor:pointer;background:linear-gradient(90deg,#fff8e7,#fffbf0);font-weight:600;color:#5c4033;transition:all .3s ease}.subject-header:hover{background:linear-gradient(90deg,#ffc843,#ffb81c);color:#fff}.expand-icon{display:inline-block;width:20px;text-align:center;color:#ffc843;font-size:12px;transition:all .3s ease}.subject-name{flex:1}.chapters-list{padding:12px 0;background:#fff}.chapter-item{border-left:4px solid #A8D5BA;margin:0 12px 8px;padding:0}.chapter-header{padding:12px 16px;display:flex;align-items:center;gap:12px;cursor:pointer;color:#5c4033;font-weight:500;transition:all .3s ease;border-radius:12px;margin:0 4px}.chapter-header:hover{background:#f5f5f5}.chapter-name{flex:1}.chapter-meta{color:#8b7355;font-size:12px;margin-right:8px}.sections-list{padding:8px 0;background:#fffbf0;border-radius:0 0 12px 12px;margin:0 4px 4px}.section-item{padding:12px 16px;margin:4px;background:#fff;border-radius:12px;display:flex;justify-content:space-between;align-items:center;cursor:pointer;transition:all .3s ease;border:1px solid #FFE4B5}.section-item:hover{background:#fff8e7;border-color:#ffc843;transform:translate(4px)}.section-info{display:flex;flex-direction:column;gap:4px;flex:1}.section-name{color:#5c4033;font-weight:500;font-size:14px}.section-meta{color:#8b7355;font-size:12px}.section-buttons{display:flex;gap:8px;align-items:center}.btn-start{padding:8px 16px;background:#ffc843;color:#fff;border:none;border-radius:12px;cursor:pointer;font-weight:500;font-size:12px;transition:all .3s ease;white-space:nowrap}.btn-start:hover{background:#ffb81c;transform:scale(1.05)}.btn-redo{padding:8px 16px;background:#f4c4c4;color:#fff;border:none;border-radius:12px;cursor:pointer;font-weight:500;font-size:12px;transition:all .3s ease;white-space:nowrap}.btn-redo:hover{background:#e8a8a8;transform:scale(1.05)}.btn-practice{padding:14px 32px;background:linear-gradient(135deg,#ffc843,#ffb81c);color:#fff;border:none;border-radius:20px;font-size:16px;font-weight:600;cursor:pointer;transition:all .3s ease;margin-bottom:32px;width:100%}.btn-practice:hover{transform:translateY(-2px);box-shadow:0 6px 20px #ffc8434d}.wrong-list{display:flex;flex-direction:column;gap:16px}.wrong-item{background:#fff;border-radius:16px;padding:20px;border-left:4px solid #F4C4C4;box-shadow:0 2px 8px #0000000d;transition:all .3s ease}.wrong-item:hover{box-shadow:0 4px 16px #0000001a}.wrong-header{display:flex;align-items:center;gap:12px;margin-bottom:12px;flex-wrap:wrap}.wrong-num{font-weight:600;color:#ffc843;font-size:14px}.wrong-type{background:#f4c4c4;color:#c62828;padding:4px 12px;border-radius:12px;font-size:12px;font-weight:500}.btn-delete{margin-left:auto;padding:6px 12px;background:#f4c4c4;color:#c62828;border:none;border-radius:12px;cursor:pointer;font-size:12px;font-weight:500;transition:all .3s ease}.btn-delete:hover{background:#e8a8a8;transform:scale(1.05)}.wrong-question{font-size:16px;color:#5c4033;font-weight:500;margin-bottom:16px;line-height:1.6}.wrong-options{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}.wrong-option{padding:12px 16px;background:#fff8e7;border-radius:12px;display:flex;align-items:flex-start;gap:12px;border-left:4px solid #FFE4B5}.wrong-option.correct{background:#e8f5e9;border-left-color:#4caf50}.option-letter{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;background:#ffc843;color:#fff;border-radius:50%;font-weight:600;font-size:12px;flex-shrink:0}.wrong-option.correct .option-letter{background:#4caf50}.option-text{flex:1;color:#5c4033;font-size:14px;line-height:1.5}.option input[type=checkbox]{width:24px;height:24px;cursor:pointer;flex-shrink:0;accent-color:#FFC843}.option input[type=checkbox]:disabled{cursor:default}.wrong-analysis{padding:12px 16px;background:#fff8e7;border-radius:12px;border-left:4px solid #FFC843;color:#5c4033;font-size:13px;line-height:1.6}.wrong-analysis strong{color:#ffc843}.empty-state{text-align:center;padding:60px 20px}.empty-icon{font-size:64px;margin-bottom:16px}.empty-text{font-size:20px;color:#5c4033;font-weight:600;margin-bottom:8px}.empty-desc{color:#8b7355;font-size:14px}@media (max-width: 768px){.wrong-item{padding:16px}.wrong-header{flex-direction:column;align-items:flex-start}.btn-delete{margin-left:0;width:100%}.wrong-question{font-size:14px}}.admin-tabs{display:flex;gap:12px;margin-bottom:24px;border-bottom:2px solid #FFE4B5}.tab-btn{padding:12px 24px;background:transparent;border:none;border-bottom:3px solid transparent;color:#8b7355;cursor:pointer;font-weight:500;transition:all .3s ease}.tab-btn:hover{color:#ffc843}.tab-btn.active{color:#ffc843;border-bottom-color:#ffc843}.admin-section{padding:24px;background:#fff8e7;border-radius:16px}.admin-section h2{color:#5c4033;margin-bottom:16px}.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;flex-wrap:wrap;gap:12px}.section-header h2{margin:0}.section-actions{display:flex;gap:12px}.create-form{background:#fff;padding:20px;border-radius:16px;margin-bottom:24px;border:2px solid #FFE4B5}.form-group label{display:block;margin-bottom:8px;color:#5c4033;font-weight:600;font-size:14px}.form-group input,.form-group textarea,.form-group select{width:100%;padding:12px 16px;border:2px solid #FFE4B5;border-radius:12px;font-size:14px;font-family:inherit;transition:all .3s ease}.form-group input:focus,.form-group textarea:focus,.form-group select:focus{outline:none;border-color:#ffc843;box-shadow:0 0 0 3px #ffc8431a}.checkbox-group{display:flex;flex-direction:column;gap:8px}.checkbox-item{display:flex;align-items:center;gap:8px;cursor:pointer;color:#5c4033;font-size:14px}.checkbox-item input{width:auto;cursor:pointer}.users-list{display:flex;flex-direction:column;gap:16px}.user-card{background:#fff;padding:16px;border-radius:12px;border-left:4px solid #FFC843;display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}.user-info{flex:1;min-width:150px}.user-name{font-weight:600;color:#5c4033;font-size:16px;margin-bottom:4px}.user-role{color:#8b7355;font-size:12px}.user-expires{color:#f44336;font-size:12px;font-weight:500;margin-top:4px}.user-subjects{flex:1;min-width:200px}.user-subjects label{display:block;margin-bottom:8px;color:#5c4033;font-weight:600;font-size:12px}.subjects-tree{display:flex;flex-direction:column;gap:12px}.subject-node,.chapter-node,.section-node{background:#fff;border-radius:12px;border-left:4px solid #FFC843;overflow:hidden}.chapter-node{margin-left:24px;border-left-color:#a8d5ba}.section-node{margin-left:48px;border-left-color:#f4c4c4}.node-header{padding:12px 16px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.expand-btn{background:none;border:none;cursor:pointer;color:#ffc843;font-size:12px;padding:0;width:20px;text-align:center;transition:all .3s ease}.expand-btn:hover{color:#ffb81c}.node-name{flex:1;color:#5c4033;font-weight:500;font-size:14px;min-width:150px}.section-count{color:#8b7355;font-size:12px;margin-right:8px}.node-actions{display:flex;gap:8px}.node-children{padding:8px 0;background:#fffbf0}.inline-form{padding:12px 16px;display:flex;gap:8px;align-items:center;background:#fff8e7;margin:8px;border-radius:12px}.inline-form input{flex:1;padding:8px 12px;border:2px solid #FFE4B5;border-radius:8px;font-size:13px}.inline-form input:focus{outline:none;border-color:#ffc843}.btn-sm{padding:6px 12px;font-size:12px}.btn-primary{padding:12px 24px;background:#ffc843;color:#fff;border:none;border-radius:20px;cursor:pointer;font-weight:500;transition:all .3s ease}.btn-primary:hover{background:#ffb81c;transform:translateY(-2px)}.btn-success{padding:12px 24px;background:#a8d5ba;color:#fff;border:none;border-radius:20px;cursor:pointer;font-weight:500;transition:all .3s ease}.btn-danger{padding:12px 24px;background:#f4c4c4;color:#c62828;border:none;border-radius:20px;cursor:pointer;font-weight:500;transition:all .3s ease}.btn-danger:hover{background:#e8a8a8}.btn-cancel{padding:6px 12px;background:#e0e0e0;color:#666;border:none;border-radius:8px;cursor:pointer;font-size:12px;transition:all .3s ease}.btn-cancel:hover{background:#d0d0d0}.import-form{padding:12px 16px;display:flex;gap:8px;align-items:center;background:#fff8e7;margin:8px;border-radius:12px;border:2px dashed #FFC843}.import-form input[type=file]{flex:1;padding:8px;border:1px solid #FFE4B5;border-radius:8px;font-size:12px}.btn-info{padding:6px 12px;background:#b3e5fc;color:#01579b;border:none;border-radius:8px;cursor:pointer;font-size:12px;font-weight:500;transition:all .3s ease}.btn-info:hover{background:#81d4fa}@media (max-width: 768px){.section-header{flex-direction:column;align-items:flex-start}.section-actions{width:100%}.user-card{flex-direction:column}.chapter-node{margin-left:12px}.section-node{margin-left:24px}.node-header{flex-direction:column;align-items:flex-start}.node-actions{width:100%}}.users-table-wrapper{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 2px 8px #0000000f;overflow-x:auto}.users-table{width:100%;border-collapse:collapse;font-size:13px;min-width:900px}.users-table thead{background:#fff8e7}.users-table th{padding:12px 16px;text-align:left;font-weight:600;color:#8b7355;white-space:nowrap;border-bottom:1px solid #F0E8DC;font-size:12px}.users-table td{padding:12px 16px;border-bottom:1px solid #F5F0E8;color:#5c4033;vertical-align:middle}.users-table tbody tr:hover{background:#fffcf7}.users-table tbody tr:last-child td{border-bottom:none}.users-table tbody tr.user-disabled td{background:#fafafa;opacity:.7}.users-table tbody tr.user-disabled .user-name-cell{text-decoration:line-through;color:#8b7355}.user-id{font-family:Consolas,monospace;font-size:11px;background:#f5f0e8;padding:2px 6px;border-radius:4px;color:#8b7355}.user-name-cell{font-weight:600;color:#5c4033}.admin-tag{margin-left:8px;padding:2px 8px;background:#fff3e0;color:#e65100;border-radius:10px;font-size:11px;font-weight:500}.status-badge{display:inline-block;padding:3px 10px;border-radius:20px;font-size:12px;font-weight:600;white-space:nowrap}.status-ok{background:#e8f5e9;color:#388e3c}.status-banned{background:#ffebee;color:#c62828}.action-cell{display:flex;gap:6px;white-space:nowrap}.btn-action{padding:5px 12px;border:none;border-radius:6px;font-size:12px;cursor:pointer;font-weight:500;transition:all .2s}.btn-perm{background:#e3f2fd;color:#1565c0}.btn-perm:hover{background:#bbdefb}.btn-ban{background:#ffebee;color:#c62828}.btn-ban:hover{background:#ffcdd2}.btn-enable{background:#e8f5e9;color:#388e3c}.btn-enable:hover{background:#c8e6c9}.btn-reset{background:#fff3e0;color:#e65100}.btn-reset:hover{background:#ffe0b2}.section-actions .btn-info{padding:12px 24px;font-size:14px;border-radius:20px}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#0006;z-index:1000;display:flex;align-items:center;justify-content:center;padding:20px}.modal-box{background:#fff;border-radius:16px;width:100%;max-width:500px;max-height:80vh;display:flex;flex-direction:column;box-shadow:0 8px 32px #00000026;animation:modalIn .2s ease}@keyframes modalIn{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid #F0E8DC}.modal-header h3{margin:0;font-size:16px;color:#5c4033}.modal-close{background:none;border:none;font-size:24px;color:#8b7355;cursor:pointer;padding:0;line-height:1}.modal-close:hover{color:#5c4033}.modal-body{padding:20px 24px;overflow-y:auto;flex:1}.modal-user-info{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:16px;padding:12px;background:#fff8e7;border-radius:8px;font-size:13px;color:#5c4033}.modal-user-info code{font-family:Consolas,monospace;font-size:11px;background:#f5f0e8;padding:1px 4px;border-radius:3px}.modal-label{font-size:13px;font-weight:600;color:#5c4033;margin-bottom:12px}.modal-subjects{display:flex;flex-direction:column;gap:10px;max-height:300px;overflow-y:auto}.subject-check{display:flex;align-items:center;gap:10px;padding:10px 14px;background:#fffcf7;border-radius:8px;border:1px solid #F0E8DC;cursor:pointer;transition:all .2s;font-size:13px;color:#5c4033}.subject-check:hover{background:#fff8e7;border-color:#ffc843}.subject-check input{width:auto;cursor:pointer;accent-color:#A8D5BA}.empty-hint{text-align:center;color:#8b7355;padding:20px;font-size:13px}.modal-footer{display:flex;justify-content:flex-end;gap:12px;padding:16px 24px;border-top:1px solid #F0E8DC}.modal-footer .btn-default{padding:8px 20px;background:#f5f0e8;color:#5c4033;border:none;border-radius:8px;cursor:pointer;font-size:13px;transition:background .2s}.modal-footer .btn-default:hover{background:#e8d5c4}.questions-panel{margin-left:24px;margin-top:4px;padding:10px 12px;background:#fffdf7;border-radius:10px;border:1px solid #F0E8DC}.question-search{margin-bottom:10px}.question-search input{width:100%;padding:8px 14px;border:1px solid #F0E8DC;border-radius:8px;font-size:13px;background:#fff;color:#5c4033;outline:none;transition:border-color .2s;box-sizing:border-box}.question-search input:focus{border-color:#a8d5ba}.questions-list{display:flex;flex-direction:column;gap:6px;max-height:500px;overflow-y:auto}.question-item{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;background:#fff;border:1px solid #F5F0E8;border-radius:8px;transition:all .2s;border-left:3px solid transparent}.question-item:hover{border-color:#f0e8dc;border-left-color:#a8d5ba;box-shadow:0 1px 4px #0000000a}.question-item-header{display:flex;gap:4px;align-items:center;flex-shrink:0;flex-direction:column}.question-item-num{font-size:10px;color:#ababab;font-weight:600}.question-type-tag{font-size:10px;padding:1px 6px;border-radius:8px;font-weight:600;white-space:nowrap}.question-type-tag.type-single{background:#e8f5e9;color:#388e3c}.question-type-tag.type-multi{background:#fff3e0;color:#e65100}.question-type-tag.type-short{background:#e3f2fd;color:#1565c0}.level-tag{font-size:9px;padding:1px 5px;border-radius:6px;font-weight:500}.level-tag.easy{background:#e8f5e9;color:#388e3c}.level-tag.medium{background:#fff8e1;color:#f9a825}.level-tag.hard{background:#ffebee;color:#c62828}.question-item-body{flex:1;min-width:0}.question-text-preview{font-size:12px;color:#5c4033;line-height:1.5;margin-bottom:4px;word-break:break-all}.question-answer-preview{font-size:11px;color:#8b7355}.question-answer-preview strong{color:#388e3c}.question-item-actions{display:flex;gap:4px;flex-shrink:0}.btn-edit{padding:3px 8px;border:1px solid #E3F2FD;background:#e3f2fd;color:#1565c0;border-radius:4px;font-size:11px;cursor:pointer;transition:all .2s}.btn-edit:hover{background:#bbdefb}.questions-empty{text-align:center;padding:20px;color:#ababab;font-size:13px}.qedit-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000073;z-index:2000;display:flex;align-items:center;justify-content:center;padding:20px;animation:qeditFadeIn .15s ease}@keyframes qeditFadeIn{0%{opacity:0}to{opacity:1}}.qedit-modal{background:#fff;border-radius:16px;width:100%;max-width:680px;max-height:85vh;display:flex;flex-direction:column;box-shadow:0 12px 40px #0000002e;animation:qeditSlideIn .2s ease}@keyframes qeditSlideIn{0%{opacity:0;transform:translateY(20px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}.qedit-header{display:flex;align-items:center;justify-content:space-between;padding:18px 24px;border-bottom:1px solid #F0E8DC}.qedit-header h3{margin:0;font-size:16px;color:#5c4033}.qedit-close{background:none;border:none;font-size:22px;color:#8b7355;cursor:pointer;padding:0 4px;line-height:1;transition:color .2s}.qedit-close:hover{color:#c62828}.qedit-body{padding:20px 24px;overflow-y:auto;flex:1;display:flex;flex-direction:column;gap:14px}.qedit-row{display:flex;gap:14px}.qedit-field{flex:1;display:flex;flex-direction:column;gap:5px}.qedit-field.full{width:100%;flex:none}.qedit-field label{font-size:12px;font-weight:600;color:#5c4033}.qedit-field select,.qedit-field input,.qedit-field textarea{padding:8px 12px;border:1px solid #F0E8DC;border-radius:8px;font-size:13px;color:#5c4033;background:#fffcf7;outline:none;transition:border-color .2s;font-family:inherit;resize:vertical}.qedit-field select:focus,.qedit-field input:focus,.qedit-field textarea:focus{border-color:#a8d5ba}.qedit-preview{background:#fff8e7;border-radius:10px;padding:12px 14px;border:1px solid #F0E8DC}.qedit-preview-title{font-size:11px;font-weight:600;color:#8b7355;margin-bottom:8px}.qedit-option-item{display:flex;align-items:center;gap:8px;padding:5px 0;font-size:13px;color:#5c4033;border-bottom:1px dashed #F0E8DC}.qedit-option-item:last-child{border-bottom:none}.qedit-option-item.is-answer{background:#e8f5e9;margin:0 -8px;padding:5px 8px;border-radius:6px;border-bottom:none}.qedit-option-letter{font-weight:700;color:#8b7355;min-width:18px}.qedit-option-text{flex:1}.qedit-option-check{color:#388e3c;font-weight:700;font-size:15px}.qedit-footer{display:flex;justify-content:flex-end;gap:10px;padding:14px 24px;border-top:1px solid #F0E8DC}.qedit-footer .btn-primary{padding:8px 24px}.qedit-footer .btn-default{padding:8px 20px}.user-stats-page{padding:20px;max-width:1200px;margin:0 auto}.stats-header{display:flex;align-items:center;gap:16px;margin-bottom:20px}.stats-header h2{margin:0;font-size:20px;color:#5c4033;flex:1}.stats-count{font-size:14px;color:#8b7355;background:#fff8e7;padding:4px 12px;border-radius:20px}.btn-back{background:#f5f0e8;border:1px solid #E8D5C4;color:#5c4033;padding:6px 16px;border-radius:8px;cursor:pointer;font-size:13px;transition:all .2s}.btn-back:hover{background:#e8d5c4}.stats-table-wrapper{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 2px 8px #0000000f;overflow-x:auto}.stats-table{width:100%;border-collapse:collapse;font-size:13px}.stats-table thead{background:#fff8e7}.stats-table th{padding:12px 16px;text-align:left;font-weight:600;color:#8b7355;white-space:nowrap;border-bottom:1px solid #F0E8DC}.stats-table td{padding:12px 16px;border-bottom:1px solid #F5F0E8;color:#5c4033}.stats-table tbody tr:hover{background:#fffcf7}.stats-table tbody tr:last-child td{border-bottom:none}.username-tag{font-weight:600;color:#4a90a4}.role-badge{padding:2px 8px;border-radius:10px;font-size:12px;font-weight:500}.role-badge.admin{background:#fff3e0;color:#e65100}.role-badge.user{background:#e3f2fd;color:#1565c0}.date-cell{font-size:12px;color:#8b7355;white-space:nowrap}.num-cell{text-align:center;font-weight:500}.num-cell.strong{color:#4a90a4}.num-cell.correct{color:#a8d5ba}.num-cell.wrong{color:#f4c4c4}.accuracy-bar{position:relative;width:80px;height:22px;background:#f5f0e8;border-radius:11px;overflow:hidden;display:flex;align-items:center;justify-content:center}.accuracy-fill{position:absolute;left:0;top:0;height:100%;border-radius:11px;transition:width .3s}.accuracy-text{position:relative;z-index:1;font-size:11px;font-weight:600;color:#5c4033}.btn-view{background:#4a90a4;color:#fff;border:none;padding:5px 14px;border-radius:6px;cursor:pointer;font-size:12px;transition:background .2s}.btn-view:hover{background:#3a7a8a}.overview-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px}.overview-card{background:#fff;border-radius:12px;padding:20px;text-align:center;box-shadow:0 2px 8px #0000000f}.overview-num{font-size:32px;font-weight:700;line-height:1;margin-bottom:8px}.overview-label{font-size:13px;color:#8b7355}.stats-tabs{display:flex;gap:8px;margin-bottom:16px;border-bottom:2px solid #F5F0E8;padding-bottom:0}.tab-btn{background:none;border:none;padding:10px 16px;font-size:13px;color:#8b7355;cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-2px;border-radius:6px 6px 0 0;transition:all .2s}.tab-btn:hover{color:#5c4033;background:#fff8e7}.tab-btn.active{color:#4a90a4;font-weight:600;border-bottom-color:#4a90a4;background:#f0f8ff}.stats-tab-content{background:#fff;border-radius:12px;padding:20px;box-shadow:0 2px 8px #0000000f;min-height:200px}.detail-list{display:flex;flex-direction:column;gap:10px}.detail-item{display:flex;align-items:center;padding:14px 16px;background:#fffcf7;border-radius:10px;border:1px solid #F5F0E8;gap:16px}.detail-item-left{flex:1}.detail-item-name{font-size:14px;font-weight:600;color:#5c4033;margin-bottom:4px}.detail-item-meta{font-size:12px;color:#8b7355}.detail-accuracy{font-size:18px;font-weight:700;padding:4px 14px;border:2px solid;border-radius:20px;min-width:60px;text-align:center}.level-badge{padding:2px 10px;border-radius:10px;font-size:12px;font-weight:500}.level-badge.lv1{background:#e8f5e9;color:#388e3c}.level-badge.lv2{background:#fff8e1;color:#f57f17}.level-badge.lv3{background:#ffebee;color:#c62828}.wrong-item{flex-direction:column;align-items:flex-start;gap:8px}.wrong-num{font-size:12px;color:#8b7355;font-weight:600}.wrong-content{width:100%}.wrong-question{font-size:13px;color:#5c4033;margin-bottom:6px;line-height:1.5}.wrong-meta{font-size:12px;color:#f4c4c4;font-weight:600}.wrong-analysis{font-size:12px;color:#8b7355;margin-top:4px;padding:8px 10px;background:#fff8e7;border-radius:6px;line-height:1.5}.empty-state,.loading{text-align:center;color:#8b7355;padding:40px;font-size:14px}@media (max-width: 768px){.overview-cards{grid-template-columns:repeat(2,1fr)}.stats-tabs{flex-wrap:wrap}}.settings-card{background:linear-gradient(135deg,#fffbf0,#fff);border-radius:20px;padding:32px;margin-bottom:32px;border:2px solid #FFE4B5}.settings-card h2{color:#ffc843;margin-bottom:24px;font-size:20px}.settings-form{display:flex;flex-direction:column;gap:20px}.form-group{display:flex;flex-direction:column;gap:8px}.form-group label{color:#5c4033;font-weight:600;font-size:14px}.form-group input{padding:12px 16px;border:2px solid #FFE4B5;border-radius:12px;font-size:14px;transition:all .3s ease}.form-group input:focus{outline:none;border-color:#ffc843;box-shadow:0 0 0 3px #ffc8431a}.form-group input:disabled{background:#f5f5f5;cursor:not-allowed}.message{padding:12px 16px;border-radius:12px;text-align:center;font-size:14px;font-weight:500}.message.success{background:#e8f5e9;color:#2e7d32;border:1px solid #4CAF50}.message.error{background:#ffebee;color:#c62828;border:1px solid #F44336}.settings-info{background:#fff8e7;border-radius:16px;padding:24px;border-left:4px solid #FFC843}.settings-info h3{color:#5c4033;margin-bottom:16px;font-size:16px}.settings-info p{color:#5c4033;margin:8px 0;font-size:14px}.settings-info strong{color:#ffc843}.notification-center{max-width:800px;margin:0 auto;padding:20px}.notification-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.notification-header h2{font-size:24px;color:#5c4033;margin:0}.btn-publish{padding:10px 20px;background:linear-gradient(135deg,#ffc843,#ffb347);border:none;border-radius:20px;color:#5c4033;font-weight:600;cursor:pointer;transition:all .3s ease}.btn-publish:hover{transform:translateY(-2px);box-shadow:0 4px 12px #ffc84366}.notification-form{background:#fff8e7;border-radius:16px;padding:24px;margin-bottom:24px;box-shadow:0 2px 8px #00000014}.form-group{margin-bottom:16px}.form-group label{display:block;margin-bottom:8px;font-weight:600;color:#5c4033}.form-group input,.form-group textarea{width:100%;padding:12px 16px;border:2px solid #F4C4C4;border-radius:12px;font-size:14px;background:#fff;color:#333;transition:border-color .3s ease;box-sizing:border-box}.form-group input:focus,.form-group textarea:focus{outline:none;border-color:#ffc843}.form-group textarea{resize:vertical;min-height:100px}.btn-submit{width:100%;padding:14px;background:linear-gradient(135deg,#a8d5ba,#8bc34a);border:none;border-radius:12px;color:#fff;font-size:16px;font-weight:600;cursor:pointer;transition:all .3s ease}.btn-submit:hover{transform:translateY(-2px);box-shadow:0 4px 12px #a8d5ba66}.notification-list{display:flex;flex-direction:column;gap:16px}.notification-item{background:#fff;border-radius:16px;padding:20px;box-shadow:0 2px 8px #00000014;transition:all .3s ease}.notification-item:hover{transform:translateY(-2px);box-shadow:0 4px 16px #0000001f}.notification-meta{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.notification-title{font-size:18px;font-weight:600;color:#5c4033}.btn-delete{width:28px;height:28px;border-radius:50%;border:none;background:#f4c4c4;color:#e57373;font-size:18px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .3s ease}.btn-delete:hover{background:#e57373;color:#fff}.notification-content{font-size:14px;color:#666;line-height:1.8;margin-bottom:12px;white-space:pre-wrap}.notification-footer{display:flex;justify-content:space-between;font-size:12px;color:#999}.notification-author{font-weight:500}.notification-time{opacity:.8}.loading,.empty-state{text-align:center;padding:40px;color:#999;font-size:16px}.my-page{max-width:900px;margin:0 auto;padding:16px}.my-header{display:flex;align-items:center;gap:16px;margin-bottom:14px}.my-header h2{margin:0;font-size:18px;color:#5c4033}.btn-back{background:#fff8e7;border:1px solid #F0E8DC;border-radius:8px;padding:6px 16px;cursor:pointer;color:#8b7355;font-size:14px;transition:all .2s;flex-shrink:0}.btn-back:hover{background:#fff3e0;color:#e65100}.my-kpi-row{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-bottom:16px}.my-kpi{background:#fff;border-radius:14px;padding:16px 12px;display:flex;align-items:center;gap:10px;box-shadow:0 2px 12px #00000012;border:1px solid #F5F0E8;transition:transform .2s}.my-kpi:hover{transform:translateY(-2px);box-shadow:0 4px 16px #0000001a}.my-kpi-icon{font-size:28px;line-height:1}.my-kpi-body{flex:1;min-width:0}.my-kpi-num{font-size:22px;font-weight:800;line-height:1.1}.my-kpi-label{font-size:11px;color:#ababab;margin-top:2px;white-space:nowrap}.myt-tabs{display:flex;gap:6px;margin-bottom:14px;overflow-x:auto;padding-bottom:4px}.myt-tab{padding:7px 18px;border:1px solid #F0E8DC;border-radius:20px;background:#fff;color:#8b7355;font-size:13px;cursor:pointer;white-space:nowrap;transition:all .2s;font-weight:500}.myt-tab.active{background:#a8d5ba;color:#fff;border-color:#a8d5ba;font-weight:700;box-shadow:0 2px 8px #a8d5ba66}.myt-tab:hover:not(.active){background:#fff8e7;color:#5c4033}.myt-content{display:flex;flex-direction:column;gap:14px}.my-chart-block{background:#fff;border-radius:16px;padding:18px 20px;box-shadow:0 2px 12px #0000000f;border:1px solid #F5F0E8}.my-chart-title{font-size:13px;font-weight:700;color:#5c4033;margin-bottom:12px;display:flex;align-items:center;gap:6px}.my-chart-row-2{display:grid;grid-template-columns:1fr 1fr;gap:14px}.my-subject-list{display:flex;flex-direction:column;gap:10px}.my-subject-item{background:#fff;border-radius:12px;padding:14px 16px;box-shadow:0 1px 6px #0000000d;border:1px solid #F5F0E8}.my-subject-name{font-size:13px;font-weight:600;color:#5c4033;margin-bottom:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.my-subject-stats{display:flex;gap:8px;margin-bottom:8px}.my-stat-tag{padding:2px 10px;background:#f5f0e8;border-radius:12px;font-size:11px;color:#8b7355}.my-stat-tag.correct{background:#e8f5e9;color:#388e3c}.my-subject-bar{height:6px;background:#f5f0e8;border-radius:3px;overflow:hidden}.my-subject-fill{height:100%;border-radius:3px;transition:width .6s ease}.my-chapter-list{display:flex;flex-direction:column;gap:8px}.my-chapter-item{display:flex;align-items:center;gap:12px;background:#fff;border-radius:10px;padding:10px 14px;box-shadow:0 1px 4px #0000000d;border:1px solid #F5F0E8}.my-chapter-rank{font-size:11px;font-weight:700;color:#ababab;width:28px;text-align:center;flex-shrink:0}.my-chapter-name{flex:1;font-size:12px;color:#5c4033;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.my-chapter-right{display:flex;align-items:center;gap:8px;flex-shrink:0}.my-accuracy{font-size:14px;font-weight:700}.my-level-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.my-level-card{background:#fff;border-radius:14px;padding:18px 16px;box-shadow:0 2px 10px #0000000f;border:1px solid #F5F0E8;border-left-width:5px}.my-level-name{font-size:13px;font-weight:700;color:#5c4033;margin-bottom:12px}.my-level-row{display:flex;justify-content:space-between}.my-level-stat{display:flex;flex-direction:column;align-items:center}.my-level-num{font-size:24px;font-weight:800;color:#5c4033}.my-level-label{font-size:10px;color:#ababab;margin-top:2px}.my-type-list{display:flex;flex-direction:column;gap:10px}.my-type-item{background:#fff;border-radius:12px;padding:14px 16px;box-shadow:0 1px 6px #0000000d;border:1px solid #F5F0E8;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.my-type-dot{width:12px;height:12px;border-radius:50%;flex-shrink:0}.my-type-name{font-size:13px;font-weight:600;color:#5c4033;min-width:70px}.my-type-stats{display:flex;gap:10px;flex:1;font-size:12px;color:#8b7355;align-items:center}.my-type-bar{width:100%;height:6px;background:#f5f0e8;border-radius:3px;overflow:hidden}.my-wrong-list{display:flex;flex-direction:column;gap:10px}.my-wrong-item{background:#fff;border-radius:14px;padding:14px 16px;box-shadow:0 2px 8px #0000000f;border:1px solid #F5F0E8}.my-wrong-header{display:flex;align-items:center;gap:8px;margin-bottom:8px}.my-wrong-num{font-size:11px;font-weight:700;color:#ababab;background:#f5f0e8;padding:2px 8px;border-radius:10px}.my-wrong-type{font-size:11px;color:#8b7355;background:#fff8e7;padding:2px 8px;border-radius:10px}.my-level-badge{font-size:11px}.my-wrong-q{font-size:13px;color:#5c4033;font-weight:600;margin-bottom:8px;line-height:1.6}.my-wrong-answer{font-size:12px;color:#c62828;font-weight:700;margin-bottom:4px}.my-wrong-analysis{font-size:12px;color:#8b7355;margin-bottom:4px;line-height:1.5;padding:8px 10px;background:#fff8e7;border-radius:8px}.my-wrong-footer{font-size:11px;color:#ababab;margin-top:6px;text-align:right}.my-level-legend{display:flex;justify-content:center;gap:16px;margin-top:8px;flex-wrap:wrap}.my-level-legend-item{display:flex;align-items:center;gap:5px;font-size:12px;color:#5c4033}.my-legend-dot{width:10px;height:10px;border-radius:50%;display:inline-block}.my-legend-num{color:#8b7355;font-size:11px}.my-trend-note{display:flex;justify-content:space-around;margin-top:8px;font-size:12px;color:#8b7355}.my-empty-inline{text-align:center;padding:40px;color:#ababab;font-size:13px}.my-empty{text-align:center;padding:60px 20px;color:#ababab;font-size:14px;background:#fff;border-radius:16px;box-shadow:0 2px 8px #0000000d}.my-loading{text-align:center;padding:80px 20px;color:#8b7355;font-size:16px}@media (max-width: 700px){.my-kpi-row{grid-template-columns:repeat(3,1fr)}.my-kpi-num{font-size:18px}.my-chart-row-2,.my-level-cards{grid-template-columns:1fr}}@media (max-width: 420px){.my-kpi-row{grid-template-columns:repeat(2,1fr)}}.my-chapter-section{margin-bottom:32px;padding:20px;background:#fff;border-radius:16px;box-shadow:0 2px 8px #0000000d}.my-chapter-section-title{font-size:16px;font-weight:600;color:#5c4033;margin:0 0 16px;padding-bottom:8px;border-bottom:1px solid #F5F0E8}@media (max-width: 700px){.my-chapter-section{padding:16px}.my-chapter-section-title{font-size:14px}}.favorites-page{padding:20px}.favorites-header{display:flex;align-items:center;margin-bottom:30px}.btn-back{background:var(--cream-yellow);color:#fff;border:none;border-radius:20px;padding:10px 20px;margin-right:20px;cursor:pointer;font-weight:500;transition:all .3s ease}.btn-back:hover{background:#ffb81c;transform:translateY(-2px);box-shadow:0 4px 12px #ffc8434d}.favorites-content{margin-top:20px}.favorite-subject{margin-bottom:20px;background:#fff;border-radius:var(--border-radius);box-shadow:0 2px 12px #ffc8431a;overflow:hidden}.subject-header{display:flex;justify-content:space-between;align-items:center;padding:15px 20px;background:linear-gradient(90deg,var(--cream-yellow) 0%,#FFD57E 100%);color:#fff;cursor:pointer;transition:all .3s ease}.subject-header:hover{background:linear-gradient(90deg,#ffb81c,#ffd57e)}.subject-header h3{margin:0;font-size:18px;font-weight:600}.toggle-icon{font-size:14px;transition:transform .3s ease}.favorite-chapter{margin:10px 0 10px 20px}.chapter-header{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:var(--cream-light);border-radius:12px;cursor:pointer;transition:all .3s ease;border-left:4px solid var(--cream-yellow)}.chapter-header:hover{background:#fff0d6;transform:translate(5px)}.chapter-header h4{margin:0;font-size:16px;color:var(--text-dark)}.favorite-section{margin:8px 0 8px 40px}.section-header{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;background:#fff;border-radius:10px;cursor:pointer;transition:all .3s ease;border-left:3px solid var(--cream-green);box-shadow:0 1px 8px #ffc8430d}.section-header:hover{background:var(--cream-light);transform:translate(3px)}.section-header h5{margin:0;font-size:14px;color:var(--text-dark)}.favorite-question{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;background:#fff;border-radius:8px;margin:5px 0 5px 60px;cursor:pointer;transition:all .3s ease;border:1px solid #FFE4B5}.favorite-question:hover{background:var(--cream-light);transform:translate(2px);box-shadow:0 2px 8px #ffc8431a}.question-title{flex:1;display:flex;align-items:center;gap:10px}.question-type{background:var(--cream-green);color:#fff;padding:2px 8px;border-radius:10px;font-size:12px;font-weight:500}.question-text{font-size:13px;color:var(--text-dark);line-height:1.4}.arrow-icon{color:var(--cream-yellow);font-size:16px;font-weight:700}.question-modal{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.question-modal-content{background:#fff;border-radius:var(--border-radius);padding:30px;max-width:800px;width:90%;max-height:80vh;overflow-y:auto;position:relative;box-shadow:0 10px 30px #0000004d}.close-btn{position:absolute;top:15px;right:20px;background:none;border:none;font-size:24px;cursor:pointer;color:var(--text-light);transition:color .3s ease}.close-btn:hover{color:var(--text-dark)}.question-modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;padding-bottom:15px;border-bottom:2px solid var(--cream-light)}.question-modal-header h3{margin:0;color:var(--cream-yellow);font-size:20px}.question-type-tag{background:var(--cream-green);color:#fff;padding:4px 12px;border-radius:15px;font-size:12px;font-weight:500}.question-modal-body{line-height:1.6}.question-text{font-size:16px;color:var(--text-dark);margin-bottom:20px;padding:15px;background:var(--cream-light);border-radius:10px;border-left:4px solid var(--cream-yellow)}.question-options{margin-bottom:20px}.option{display:flex;align-items:flex-start;margin:10px 0;padding:10px 15px;background:#fff;border-radius:8px;border:1px solid #FFE4B5;transition:all .3s ease}.option:hover{background:var(--cream-light);transform:translate(5px)}.option-letter{background:var(--cream-yellow);color:#fff;width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-right:10px;font-size:12px;font-weight:700;flex-shrink:0}.option-text{flex:1;font-size:14px;color:var(--text-dark)}.question-answer{margin:20px 0;padding:15px;background:#a8d5ba1a;border-radius:10px;border-left:4px solid var(--cream-green)}.question-answer h4{margin:0 0 10px;color:var(--cream-green);font-size:14px}.question-answer p{margin:0;font-size:14px;color:var(--text-dark);font-weight:500}.question-analysis{margin:20px 0;padding:15px;background:#ffc8431a;border-radius:10px;border-left:4px solid var(--cream-yellow)}.question-analysis h4{margin:0 0 10px;color:var(--cream-yellow);font-size:14px}.question-analysis p{margin:0;font-size:14px;color:var(--text-dark);line-height:1.5}.empty-state{text-align:center;padding:80px 20px;color:var(--text-light);font-size:16px;background:var(--cream-light);border-radius:var(--border-radius);margin-top:40px}@media (max-width: 768px){.favorites-page{padding:10px}.favorites-header{flex-direction:column;align-items:flex-start;gap:10px}.btn-back{margin-right:0}.favorite-chapter{margin-left:10px}.favorite-section{margin-left:20px}.favorite-question{margin-left:30px}.question-modal-content{width:95%;padding:20px}}:root{--cream-bg: #FFF8E7;--cream-light: #FFFBF0;--cream-yellow: #FFC843;--cream-green: #A8D5BA;--cream-pink: #F4C4C4;--text-dark: #5C4033;--text-light: #8B7355;--border-radius: 20px}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:linear-gradient(135deg,var(--cream-bg) 0%,#FFF5DE 100%);color:var(--text-dark)}.app-container{min-height:100vh;display:flex;flex-direction:column}.navbar{background:linear-gradient(90deg,#fff8e7,#fffbf0);padding:16px 24px;display:flex;justify-content:space-between;align-items:center;box-shadow:0 2px 12px #ffc8431a;border-radius:0 0 var(--border-radius) var(--border-radius);position:fixed;top:0;left:0;right:0;z-index:1000;transition:all .3s ease;transform:translateY(-100%);opacity:0;visibility:hidden}.navbar.open{transform:translateY(0);opacity:1;visibility:visible}.navbar.hidden{display:none}.navbar-brand{font-size:24px;font-weight:700;color:var(--cream-yellow);text-shadow:0 2px 4px rgba(0,0,0,.05)}.navbar-menu{display:flex;gap:12px;align-items:center;flex-wrap:wrap;justify-content:center}.menu-toggle{position:fixed;top:20px;left:20px;background:var(--cream-yellow);color:#fff;border:none;border-radius:20px;padding:12px 16px;cursor:pointer;font-weight:500;box-shadow:0 4px 12px #ffc8434d;z-index:1001;transition:all .3s ease;font-size:20px;display:flex;align-items:center;justify-content:center;width:50px;height:50px}.menu-toggle:hover{background:#ffb81c;transform:translateY(-2px);box-shadow:0 6px 16px #ffc84366}.menu-toggle.open{background:var(--cream-pink)}.page-container{flex:1;padding:32px 24px;max-width:1200px;margin:80px auto 0;width:100%}.nav-btn{padding:10px 20px;background:#fff;border:2px solid var(--cream-yellow);color:var(--text-dark);border-radius:20px;cursor:pointer;font-weight:500;transition:all .3s ease}.nav-btn:hover{background:var(--cream-yellow);color:#fff;transform:translateY(-2px)}.nav-btn.active{background:var(--cream-yellow);color:#fff}.nav-btn.logout{border-color:var(--cream-pink);color:var(--cream-pink)}.nav-btn.logout:hover{background:var(--cream-pink);color:#fff}.page-container{flex:1;padding:32px 24px;max-width:1200px;margin:0 auto;width:100%}.page{background:#fff;border-radius:var(--border-radius);padding:32px;box-shadow:0 4px 20px #ffc8431a}.page h1{color:var(--cream-yellow);margin-bottom:24px;font-size:28px}.btn-primary{padding:12px 24px;background:var(--cream-yellow);color:#fff;border:none;border-radius:20px;cursor:pointer;font-weight:500;transition:all .3s ease}.btn-primary:hover{background:#ffb81c;transform:translateY(-2px);box-shadow:0 4px 12px #ffc8434d}.btn-danger{padding:10px 20px;background:var(--cream-pink);color:#fff;border:none;border-radius:16px;cursor:pointer;font-weight:500;transition:all .3s ease}.btn-danger:hover{background:#e8a8a8;transform:translateY(-2px)}.btn-success{padding:12px 24px;background:var(--cream-green);color:#fff;border:none;border-radius:20px;cursor:pointer;font-weight:500;transition:all .3s ease}.btn-success:hover{background:#8fbe9f;transform:translateY(-2px)}.empty-state{text-align:center;padding:60px 20px;color:var(--text-light);font-size:16px}.card{background:linear-gradient(135deg,var(--cream-light) 0%,white 100%);border-radius:var(--border-radius);padding:20px;margin-bottom:16px;border:2px solid #FFE4B5;transition:all .3s ease;cursor:pointer}.card:hover{transform:translateY(-4px);box-shadow:0 8px 24px #ffc84326;border-color:var(--cream-yellow)}.list{display:flex;flex-direction:column;gap:12px}.list-item{background:#fff;padding:16px;border-radius:16px;border-left:4px solid var(--cream-yellow);display:flex;justify-content:space-between;align-items:center;transition:all .3s ease}.list-item:hover{box-shadow:0 4px 12px #ffc8431a}input,textarea,select{padding:12px 16px;border:2px solid #FFE4B5;border-radius:12px;font-size:14px;font-family:inherit;transition:all .3s ease}input:focus,textarea:focus,select:focus{outline:none;border-color:var(--cream-yellow);box-shadow:0 0 0 3px #ffc8431a}.form-group{margin-bottom:20px}.form-group label{display:block;margin-bottom:8px;color:var(--text-dark);font-weight:500}.form-group input,.form-group textarea,.form-group select{width:100%}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:20px}@media (max-width: 768px){.navbar{flex-direction:column;gap:16px}.navbar-menu{flex-wrap:wrap;justify-content:center}.page-container,.page{padding:16px}.grid{grid-template-columns:1fr}}.site-footer{text-align:center;padding:20px 24px;color:#bba88a;font-size:12px;line-height:1.8;border-top:1px solid #FFE4B5;margin-top:24px}
