import{a as it,b as ot,c as rt,d as at,e as ct,f as st,g as lt,h as mt,i as dt,j as _t,k as gt}from"./chunk-CAFW6QNR.js";import"./chunk-MS4AQ6UA.js";import{a as ft,b as yt}from"./chunk-YTKR22CH.js";import{a as ut,b as Ct}from"./chunk-GIRDLTGV.js";import{c as pt}from"./chunk-P3ICZX4Q.js";import"./chunk-66PBOFKL.js";import"./chunk-NYYADJNO.js";import"./chunk-3RK6DDJD.js";import{a as B}from"./chunk-7XDVX5KB.js";import{a as nt}from"./chunk-LA37G65K.js";import{a as et}from"./chunk-B4CGVF35.js";import{b as tt}from"./chunk-NIBVQDYD.js";import"./chunk-LLJSP5R2.js";import"./chunk-HMKN2VB2.js";import"./chunk-M5XZ5N2D.js";import{b as X,g as Z}from"./chunk-TAS7XC6E.js";import{a as W}from"./chunk-GMUETU5N.js";import"./chunk-3GOV5KJM.js";import{a as R}from"./chunk-TPLZKWZ7.js";import{b as A,i as N}from"./chunk-EGL4ZKWQ.js";import"./chunk-GPI43RSU.js";import{a as F,c as L,i as q}from"./chunk-6NRCTHHS.js";import"./chunk-RC3JXGN6.js";import{a as J,b as K}from"./chunk-N6VRXIQE.js";import"./chunk-GWD5A44H.js";import"./chunk-52JZ5I3Y.js";import{Aa as G,c as H,d as I,e as Q,j as T,u as k,ua as $,w as D,wa as U,x as V,ya as j,za as Y}from"./chunk-COFYR5MX.js";import{Ec as w,Jb as s,Kb as i,Lb as o,Mb as v,Qb as h,Rb as M,Tb as P,Xb as u,Za as c,Zb as l,da as x,ia as g,ja as p,lc as r,mc as O,nc as y,ob as S,oc as z,pc as E,ta as C,ub as _,vc as b}from"./chunk-2MUIW2M6.js";var Ot=()=>["/quiz/setup"],vt=()=>[5,10,20,50];function bt(n,e){n&1&&(i(0,"div",3),v(1,"mat-spinner",4),i(2,"p"),r(3,"Loading quiz history..."),o()())}function wt(n,e){if(n&1){let t=P();i(0,"div",5)(1,"mat-icon",6),r(2,"error_outline"),o(),i(3,"h2"),r(4,"Failed to Load History"),o(),i(5,"p"),r(6),o(),i(7,"button",7),u("click",function(){g(t);let m=l();return p(m.loadHistory())}),i(8,"mat-icon"),r(9,"refresh"),o(),r(10," Try Again "),o()()}if(n&2){let t=l();c(6),O(t.error())}}function St(n,e){if(n&1&&(i(0,"mat-option",17),r(1),o()),n&2){let t=e.$implicit;s("value",t.id),c(),y(" ",t.name," ")}}function zt(n,e){n&1&&(i(0,"div",26)(1,"mat-icon",27),r(2,"quiz"),o(),i(3,"h2"),r(4,"No Quiz History"),o(),i(5,"p"),r(6,"You haven't completed any quizzes yet. Start your first quiz to see it here!"),o(),i(7,"button",28)(8,"mat-icon"),r(9,"play_arrow"),o(),r(10," Start a Quiz "),o()()),n&2&&(c(7),s("routerLink",b(1,Ot)))}function Et(n,e){n&1&&(i(0,"th",41),r(1,"Date"),o())}function Ht(n,e){if(n&1&&(i(0,"td",42),r(1),o()),n&2){let t=e.$implicit,a=l(3);c(),y(" ",a.formatDate(t.completedAt||t.startedAt)," ")}}function It(n,e){n&1&&(i(0,"th",41),r(1,"Category"),o())}function Qt(n,e){if(n&1&&(i(0,"td",42),r(1),o()),n&2){let t=e.$implicit;c(),y(" ",t.category.name||"Unknown"," ")}}function Tt(n,e){n&1&&(i(0,"th",41),r(1,"Score"),o())}function kt(n,e){if(n&1&&(i(0,"td",42)(1,"span",43),r(2),i(3,"span",44),r(4),o()()()),n&2){let t=e.$implicit,a=l(3);c(),s("ngClass",a.getScoreColor(t.score,t.totalQuestions)),c(),z(" ",t.score.earned,"/",t.questions.total," "),c(2),y("(",(t.score.earned/t.questions.total*100).toFixed(0),"%)")}}function Dt(n,e){n&1&&(i(0,"th",41),r(1,"Time Spent"),o())}function Vt(n,e){if(n&1&&(i(0,"td",42),r(1),o()),n&2){let t=e.$implicit,a=l(3);c(),y(" ",a.formatDuration(t.time.spent)," ")}}function Rt(n,e){n&1&&(i(0,"th",41),r(1,"Status"),o())}function Ft(n,e){if(n&1&&(i(0,"td",42)(1,"mat-chip",45),r(2),o()()),n&2){let t=e.$implicit,a=l(3);c(),s("ngClass",a.getStatusClass(t.status)),c(),y(" ",t.status==="in_progress"?"In Progress":t.status==="completed"?"Completed":"Abandoned"," ")}}function Lt(n,e){n&1&&(i(0,"th",41),r(1,"Actions"),o())}function qt(n,e){if(n&1){let t=P();i(0,"button",48),u("click",function(){g(t);let m=l().$implicit,d=l(3);return p(d.viewResults(m.id))}),i(1,"mat-icon"),r(2,"visibility"),o()()}}function At(n,e){if(n&1){let t=P();i(0,"button",49),u("click",function(){g(t);let m=l().$implicit,d=l(3);return p(d.reviewQuiz(m.id))}),i(1,"mat-icon"),r(2,"rate_review"),o()()}}function Nt(n,e){if(n&1&&(i(0,"td",42),_(1,qt,3,0,"button",46)(2,At,3,0,"button",47),o()),n&2){let t=e.$implicit;c(),s("ngIf",t.status==="completed"),c(),s("ngIf",t.status==="completed")}}function Bt(n,e){n&1&&v(0,"tr",50)}function $t(n,e){n&1&&v(0,"tr",51)}function Ut(n,e){if(n&1&&(i(0,"mat-card",29)(1,"table",30),h(2,31),_(3,Et,2,0,"th",32)(4,Ht,2,1,"td",33),M(),h(5,34),_(6,It,2,0,"th",32)(7,Qt,2,1,"td",33),M(),h(8,35),_(9,Tt,2,0,"th",32)(10,kt,5,4,"td",33),M(),h(11,36),_(12,Dt,2,0,"th",32)(13,Vt,2,1,"td",33),M(),h(14,37),_(15,Rt,2,0,"th",32)(16,Ft,3,2,"td",33),M(),h(17,38),_(18,Lt,2,0,"th",32)(19,Nt,3,2,"td",33),M(),_(20,Bt,1,0,"tr",39)(21,$t,1,0,"tr",40),o()()),n&2){let t=l(2);c(),s("dataSource",t.history()),c(19),s("matHeaderRowDef",t.displayedColumns),c(),s("matRowDefColumns",t.displayedColumns)}}function jt(n,e){if(n&1){let t=P();i(0,"div",63)(1,"button",64),u("click",function(){g(t);let m=l().$implicit,d=l(3);return p(d.viewResults(m.id))}),i(2,"mat-icon"),r(3,"visibility"),o(),r(4," View Results "),o(),i(5,"button",65),u("click",function(){g(t);let m=l().$implicit,d=l(3);return p(d.reviewQuiz(m.id))}),i(6,"mat-icon"),r(7,"rate_review"),o(),r(8," Review "),o()()}}function Yt(n,e){if(n&1&&(i(0,"mat-card",54)(1,"mat-card-content")(2,"div",55)(3,"div",56)(4,"mat-icon"),r(5,"quiz"),o(),i(6,"span"),r(7),o()(),i(8,"mat-chip",45),r(9),o()(),i(10,"div",57)(11,"div",58)(12,"mat-icon"),r(13,"calendar_today"),o(),i(14,"span"),r(15),o()(),i(16,"div",58)(17,"mat-icon"),r(18,"timer"),o(),i(19,"span"),r(20),o()(),i(21,"div",59)(22,"span",60),r(23,"Score:"),o(),i(24,"span",61),r(25),o()()(),_(26,jt,9,0,"div",62),o()()),n&2){let t=e.$implicit,a=l(3);c(7),O((t.category==null?null:t.category.name)||"Unknown"),c(),s("ngClass",a.getStatusClass(t.status)),c(),y(" ",t.status==="in_progress"?"In Progress":t.status==="completed"?"Completed":"Abandoned"," "),c(6),O(a.formatDate(t.completedAt||t.startedAt)),c(5),O(a.formatDuration(t.time.spent)),c(4),s("ngClass",a.getScoreColor(t.score.earned,t.questions.total)),c(),E(" ",t.score.earned,"/",t.questions.total," (",(t.score.earned/t.questions.total*100).toFixed(0),"%) "),c(),s("ngIf",t.status==="completed")}}function Gt(n,e){if(n&1&&(i(0,"div",52),_(1,Yt,27,10,"mat-card",53),o()),n&2){let t=l(2);c(),s("ngForOf",t.history())}}function Jt(n,e){if(n&1){let t=P();i(0,"mat-paginator",66),u("page",function(m){g(t);let d=l(2);return p(d.onPageChange(m))}),o()}if(n&2){let t=l(2);s("length",t.totalItems())("pageSize",t.pageSize())("pageIndex",t.currentPage()-1)("pageSizeOptions",b(4,vt))}}function Kt(n,e){if(n&1){let t=P();i(0,"div",8)(1,"div",9)(2,"div",10)(3,"h1")(4,"mat-icon"),r(5,"history"),o(),r(6," Quiz History "),o(),i(7,"p",11),r(8,"View all your completed quizzes"),o()(),i(9,"button",12),u("click",function(){g(t);let m=l();return p(m.exportToCSV())}),i(10,"mat-icon"),r(11,"download"),o(),r(12," Export CSV "),o()(),i(13,"mat-card",13)(14,"mat-card-content")(15,"div",14)(16,"mat-form-field",15)(17,"mat-label"),r(18,"Filter by Category"),o(),i(19,"mat-select",16),u("selectionChange",function(m){g(t);let d=l();return p(d.onCategoryChange(m.value))}),i(20,"mat-option",17),r(21,"All Categories"),o(),_(22,St,2,2,"mat-option",18),o()(),i(23,"mat-form-field",15)(24,"mat-label"),r(25,"Sort By"),o(),i(26,"mat-select",16),u("selectionChange",function(m){g(t);let d=l();return p(d.onSortChange(m.value))}),i(27,"mat-option",19),r(28,"Date (Newest First)"),o(),i(29,"mat-option",20),r(30,"Score (Highest First)"),o()()(),i(31,"button",21),u("click",function(){g(t);let m=l();return p(m.refresh())}),i(32,"mat-icon"),r(33,"refresh"),o()()()()(),_(34,zt,11,2,"div",22)(35,Ut,22,3,"mat-card",23)(36,Gt,2,1,"div",24)(37,Jt,1,5,"mat-paginator",25),o()}if(n&2){let t=l();c(9),s("disabled",t.isEmpty()),c(10),s("value",t.selectedCategory()),c(),s("value",null),c(2),s("ngForOf",t.categories()),c(4),s("value",t.sortBy()),c(8),s("ngIf",t.isEmpty()),c(),s("ngIf",!t.isEmpty()),c(),s("ngIf",!t.isEmpty()),c(),s("ngIf",!t.isEmpty())}}var ht=class n{userService=x(nt);authService=x(R);categoryService=x(W);router=x(D);route=x(k);isLoading=C(!0);history=C([]);pagination=C(null);categories=C([]);error=C(null);currentPage=C(1);pageSize=C(10);selectedCategory=C(null);sortBy=C("date");displayedColumns=["date","category","score","time","status","actions"];isEmpty=w(()=>this.history().length===0&&!this.isLoading());totalItems=w(()=>this.pagination()?.totalItems||0);ngOnInit(){this.loadCategories(),this.loadHistoryFromRoute()}loadCategories(){this.categoryService.getCategories().subscribe({next:e=>{this.categories.set(e.categories||[])},error:e=>{console.error("Error loading categories:",e)}})}loadHistoryFromRoute(){this.route.queryParams.subscribe(e=>{let t=e.page?parseInt(e.page,10):1,a=e.limit?parseInt(e.limit,10):10,m=e.category||null,d=e.sortBy||"date";this.currentPage.set(t),this.pageSize.set(a),this.selectedCategory.set(m),this.sortBy.set(d),this.loadHistory()})}loadHistory(){let t=this.authService.authState()?.user;if(!t||!t.id){this.router.navigate(["/login"]);return}this.isLoading.set(!0),this.error.set(null),this.userService.getHistory(t.id,this.currentPage(),this.pageSize(),this.selectedCategory()||void 0,this.sortBy()).subscribe({next:a=>{this.history.set(a.data.sessions||[]),this.pagination.set(a.data.pagination),this.isLoading.set(!1)},error:a=>{console.error("History error:",a),this.error.set("Failed to load quiz history"),this.isLoading.set(!1)}})}onPageChange(e){this.currentPage.set(e.pageIndex+1),this.pageSize.set(e.pageSize),this.updateUrlAndLoad()}onCategoryChange(e){this.selectedCategory.set(e),this.currentPage.set(1),this.updateUrlAndLoad()}onSortChange(e){this.sortBy.set(e),this.currentPage.set(1),this.updateUrlAndLoad()}updateUrlAndLoad(){let e={page:this.currentPage(),limit:this.pageSize(),sortBy:this.sortBy()};this.selectedCategory()&&(e.category=this.selectedCategory()),this.router.navigate([],{relativeTo:this.route,queryParams:e,queryParamsHandling:"merge"})}viewResults(e){e&&this.router.navigate(["/quiz",e,"results"])}reviewQuiz(e){e&&this.router.navigate(["/quiz",e,"review"])}formatDate(e){return e?new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"N/A"}formatDuration(e){if(!e)return"0s";let t=Math.floor(e/60),a=e%60;return t===0?`${a}s`:`${t}m ${a}s`}getScoreColor(e,t){let a=e/t*100;return a>=80?"success":a>=60?"warning":"error"}getStatusClass(e){switch(e){case"completed":return"status-completed";case"in_progress":return"status-in-progress";case"abandoned":return"status-abandoned";default:return""}}exportToCSV(){if(this.history().length===0)return;let t=[["Date","Category","Score","Total Questions","Percentage","Time Spent","Status"].join(",")];this.history().forEach(f=>{let Pt=(f.score.earned/f.questions.total*100).toFixed(2),xt=[this.formatDate(f.completedAt||f.startedAt),f.category?.name||"Unknown",f.score.earned.toString(),f.questions.total.toString(),`${Pt}%`,this.formatDuration(f.time.spent),f.status];t.push(xt.join(","))});let a=t.join(` `),m=new Blob([a],{type:"text/csv;charset=utf-8;"}),d=document.createElement("a"),Mt=URL.createObjectURL(m);d.setAttribute("href",Mt),d.setAttribute("download",`quiz-history-${new Date().toISOString().split("T")[0]}.csv`),d.style.visibility="hidden",document.body.appendChild(d),d.click(),document.body.removeChild(d)}refresh(){this.loadHistory()}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=S({type:n,selectors:[["app-quiz-history"]],decls:3,vars:3,consts:[["class","loading-container",4,"ngIf"],["class","error-container",4,"ngIf"],["class","history-container",4,"ngIf"],[1,"loading-container"],["diameter","50"],[1,"error-container"],[1,"error-icon"],["mat-raised-button","","color","primary",3,"click"],[1,"history-container"],[1,"history-header"],[1,"header-title"],[1,"subtitle"],["mat-raised-button","","color","primary",3,"click","disabled"],[1,"filters-card"],[1,"filters-row"],["appearance","outline",1,"filter-field"],[3,"selectionChange","value"],[3,"value"],[3,"value",4,"ngFor","ngForOf"],["value","date"],["value","score"],["mat-icon-button","","matTooltip","Refresh",3,"click"],["class","empty-state",4,"ngIf"],["class","table-card desktop-only",4,"ngIf"],["class","mobile-cards mobile-only",4,"ngIf"],["showFirstLastButtons","",3,"length","pageSize","pageIndex","pageSizeOptions","page",4,"ngIf"],[1,"empty-state"],[1,"empty-icon"],["mat-raised-button","","color","primary",3,"routerLink"],[1,"table-card","desktop-only"],["mat-table","",1,"history-table",3,"dataSource"],["matColumnDef","date"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","category"],["matColumnDef","score"],["matColumnDef","time"],["matColumnDef","status"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[1,"score-badge",3,"ngClass"],[1,"percentage"],[3,"ngClass"],["mat-icon-button","","matTooltip","View Results",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Review Quiz",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","View Results",3,"click"],["mat-icon-button","","matTooltip","Review Quiz",3,"click"],["mat-header-row",""],["mat-row",""],[1,"mobile-cards","mobile-only"],["class","history-card",4,"ngFor","ngForOf"],[1,"history-card"],[1,"card-header"],[1,"card-title"],[1,"card-details"],[1,"detail-row"],[1,"detail-row","score-row"],[1,"score-label"],[1,"score-value",3,"ngClass"],["class","card-actions",4,"ngIf"],[1,"card-actions"],["mat-button","","color","primary",3,"click"],["mat-button","","color","accent",3,"click"],["showFirstLastButtons","",3,"page","length","pageSize","pageIndex","pageSizeOptions"]],template:function(t,a){t&1&&_(0,bt,4,0,"div",0)(1,wt,11,1,"div",1)(2,Kt,38,9,"div",2),t&2&&(s("ngIf",a.isLoading()),c(),s("ngIf",a.error()&&!a.isLoading()),c(),s("ngIf",!a.isLoading()&&!a.error()))},dependencies:[T,H,I,Q,V,q,F,L,j,U,$,G,Y,K,J,gt,it,rt,lt,at,ot,mt,ct,st,dt,_t,yt,ft,Ct,N,A,ut,pt,B,et,tt,Z,X],styles:[".history-container[_ngcontent-%COMP%]{max-width:1400px;margin:0 auto;padding:2rem;animation:_ngcontent-%COMP%_fadeIn .4s ease-in}.loading-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;gap:1.5rem}.loading-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:1rem}.error-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;gap:1rem;text-align:center;padding:2rem}.error-container[_ngcontent-%COMP%] .error-icon[_ngcontent-%COMP%]{font-size:4rem;width:4rem;height:4rem;color:var(--color-error)}.error-container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;color:var(--text-primary)}.error-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--text-secondary);margin:.5rem 0 1.5rem}.history-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:2rem;animation:_ngcontent-%COMP%_slideDown .5s ease-out}.history-header[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;margin:0 0 .5rem;font-size:2rem;font-weight:600;color:var(--text-primary)}.history-header[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:2rem;width:2rem;height:2rem;color:var(--color-primary)}.history-header[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%] .subtitle[_ngcontent-%COMP%]{margin:0;color:var(--text-secondary);font-size:1rem}.history-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:.5rem}.filters-card[_ngcontent-%COMP%]{margin-bottom:2rem;animation:_ngcontent-%COMP%_slideUp .5s ease-out}.filters-card[_ngcontent-%COMP%] .filters-row[_ngcontent-%COMP%]{display:flex;gap:1.5rem;align-items:center;flex-wrap:wrap}.filters-card[_ngcontent-%COMP%] .filters-row[_ngcontent-%COMP%] .filter-field[_ngcontent-%COMP%]{min-width:200px;flex:1;max-width:300px}.filters-card[_ngcontent-%COMP%] .filters-row[_ngcontent-%COMP%] button[mat-icon-button][_ngcontent-%COMP%]{margin-top:-8px}.empty-state[_ngcontent-%COMP%]{text-align:center;padding:4rem 2rem;animation:_ngcontent-%COMP%_fadeIn .6s ease-in}.empty-state[_ngcontent-%COMP%] .empty-icon[_ngcontent-%COMP%]{font-size:5rem;width:5rem;height:5rem;color:var(--color-primary);opacity:.5;margin-bottom:1rem}.empty-state[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 0 1rem;color:var(--text-primary)}.empty-state[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--text-secondary);margin:0 0 2rem;font-size:1.1rem}.empty-state[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:.5rem}.table-card[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_slideUp .6s ease-out;overflow-x:auto;margin-bottom:1.5rem}.table-card[_ngcontent-%COMP%] .history-table[_ngcontent-%COMP%]{width:100%}.table-card[_ngcontent-%COMP%] .history-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600;font-size:.875rem;text-transform:uppercase;letter-spacing:.5px;color:var(--text-secondary)}.table-card[_ngcontent-%COMP%] .history-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:1rem;color:var(--text-primary)}.table-card[_ngcontent-%COMP%] .history-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{transition:background-color .2s ease}.table-card[_ngcontent-%COMP%] .history-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{background-color:var(--bg-hover)}.table-card[_ngcontent-%COMP%] .history-table[_ngcontent-%COMP%] .score-badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.5rem;padding:.25rem .75rem;border-radius:16px;font-weight:600;font-size:.875rem}.table-card[_ngcontent-%COMP%] .history-table[_ngcontent-%COMP%] .score-badge.success[_ngcontent-%COMP%]{background-color:#4caf501a;color:#4caf50}.table-card[_ngcontent-%COMP%] .history-table[_ngcontent-%COMP%] .score-badge.warning[_ngcontent-%COMP%]{background-color:#ff98001a;color:#ff9800}.table-card[_ngcontent-%COMP%] .history-table[_ngcontent-%COMP%] .score-badge.error[_ngcontent-%COMP%]{background-color:#f443361a;color:#f44336}.table-card[_ngcontent-%COMP%] .history-table[_ngcontent-%COMP%] .score-badge[_ngcontent-%COMP%] .percentage[_ngcontent-%COMP%]{font-size:.75rem;opacity:.8}.table-card[_ngcontent-%COMP%] .history-table[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{font-size:.75rem;height:24px}.table-card[_ngcontent-%COMP%] .history-table[_ngcontent-%COMP%] mat-chip.status-completed[_ngcontent-%COMP%]{background-color:#4caf501a;color:#4caf50}.table-card[_ngcontent-%COMP%] .history-table[_ngcontent-%COMP%] mat-chip.status-in-progress[_ngcontent-%COMP%]{background-color:#2196f31a;color:#2196f3}.table-card[_ngcontent-%COMP%] .history-table[_ngcontent-%COMP%] mat-chip.status-abandoned[_ngcontent-%COMP%]{background-color:#9e9e9e1a;color:#9e9e9e}.table-card[_ngcontent-%COMP%] .history-table[_ngcontent-%COMP%] button[mat-icon-button][_ngcontent-%COMP%]{transition:all .2s ease}.table-card[_ngcontent-%COMP%] .history-table[_ngcontent-%COMP%] button[mat-icon-button][_ngcontent-%COMP%]:hover{transform:scale(1.1)}.mobile-cards[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;margin-bottom:1.5rem;animation:_ngcontent-%COMP%_slideUp .6s ease-out}.mobile-cards[_ngcontent-%COMP%] .history-card[_ngcontent-%COMP%]{transition:all .3s ease}.mobile-cards[_ngcontent-%COMP%] .history-card[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 4px 12px #0000001a}.mobile-cards[_ngcontent-%COMP%] .history-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.mobile-cards[_ngcontent-%COMP%] .history-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;font-weight:600;font-size:1.1rem;color:var(--text-primary)}.mobile-cards[_ngcontent-%COMP%] .history-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:var(--color-primary)}.mobile-cards[_ngcontent-%COMP%] .history-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{font-size:.75rem;height:24px}.mobile-cards[_ngcontent-%COMP%] .history-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%] mat-chip.status-completed[_ngcontent-%COMP%]{background-color:#4caf501a;color:#4caf50}.mobile-cards[_ngcontent-%COMP%] .history-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%] mat-chip.status-in-progress[_ngcontent-%COMP%]{background-color:#2196f31a;color:#2196f3}.mobile-cards[_ngcontent-%COMP%] .history-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%] mat-chip.status-abandoned[_ngcontent-%COMP%]{background-color:#9e9e9e1a;color:#9e9e9e}.mobile-cards[_ngcontent-%COMP%] .history-card[_ngcontent-%COMP%] .card-details[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem;margin-bottom:1rem}.mobile-cards[_ngcontent-%COMP%] .history-card[_ngcontent-%COMP%] .card-details[_ngcontent-%COMP%] .detail-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;color:var(--text-secondary);font-size:.875rem}.mobile-cards[_ngcontent-%COMP%] .history-card[_ngcontent-%COMP%] .card-details[_ngcontent-%COMP%] .detail-row[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:1.25rem;width:1.25rem;height:1.25rem;color:var(--color-primary)}.mobile-cards[_ngcontent-%COMP%] .history-card[_ngcontent-%COMP%] .card-details[_ngcontent-%COMP%] .detail-row.score-row[_ngcontent-%COMP%]{padding-top:.5rem;border-top:1px solid var(--border-color);margin-top:.25rem}.mobile-cards[_ngcontent-%COMP%] .history-card[_ngcontent-%COMP%] .card-details[_ngcontent-%COMP%] .detail-row.score-row[_ngcontent-%COMP%] .score-label[_ngcontent-%COMP%]{font-weight:600;color:var(--text-primary)}.mobile-cards[_ngcontent-%COMP%] .history-card[_ngcontent-%COMP%] .card-details[_ngcontent-%COMP%] .detail-row.score-row[_ngcontent-%COMP%] .score-value[_ngcontent-%COMP%]{margin-left:auto;font-weight:700;font-size:1rem}.mobile-cards[_ngcontent-%COMP%] .history-card[_ngcontent-%COMP%] .card-details[_ngcontent-%COMP%] .detail-row.score-row[_ngcontent-%COMP%] .score-value.success[_ngcontent-%COMP%]{color:#4caf50}.mobile-cards[_ngcontent-%COMP%] .history-card[_ngcontent-%COMP%] .card-details[_ngcontent-%COMP%] .detail-row.score-row[_ngcontent-%COMP%] .score-value.warning[_ngcontent-%COMP%]{color:#ff9800}.mobile-cards[_ngcontent-%COMP%] .history-card[_ngcontent-%COMP%] .card-details[_ngcontent-%COMP%] .detail-row.score-row[_ngcontent-%COMP%] .score-value.error[_ngcontent-%COMP%]{color:#f44336}.mobile-cards[_ngcontent-%COMP%] .history-card[_ngcontent-%COMP%] .card-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;justify-content:flex-end;padding-top:.75rem;border-top:1px solid var(--border-color)}.mobile-cards[_ngcontent-%COMP%] .history-card[_ngcontent-%COMP%] .card-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:.25rem}mat-paginator[_ngcontent-%COMP%]{background-color:transparent;animation:_ngcontent-%COMP%_fadeIn .7s ease-out}.desktop-only[_ngcontent-%COMP%]{display:block}.mobile-only[_ngcontent-%COMP%]{display:none}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0}to{opacity:1}}@keyframes _ngcontent-%COMP%_slideDown{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}@keyframes _ngcontent-%COMP%_slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@media (max-width: 1024px){.history-container[_ngcontent-%COMP%]{padding:1.5rem}.filters-card[_ngcontent-%COMP%] .filters-row[_ngcontent-%COMP%] .filter-field[_ngcontent-%COMP%]{max-width:100%}}@media (max-width: 768px){.history-container[_ngcontent-%COMP%]{padding:1rem}.history-header[_ngcontent-%COMP%]{flex-direction:column;gap:1rem}.history-header[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:1.5rem}.history-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}.filters-card[_ngcontent-%COMP%] .filters-row[_ngcontent-%COMP%]{flex-direction:column}.filters-card[_ngcontent-%COMP%] .filters-row[_ngcontent-%COMP%] .filter-field[_ngcontent-%COMP%]{width:100%;max-width:100%}.filters-card[_ngcontent-%COMP%] .filters-row[_ngcontent-%COMP%] button[mat-icon-button][_ngcontent-%COMP%]{align-self:flex-start}.desktop-only[_ngcontent-%COMP%]{display:none}.mobile-only[_ngcontent-%COMP%]{display:flex}}@media (prefers-color-scheme: dark){.table-card[_ngcontent-%COMP%] .history-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{background-color:#ffffff0d}.mobile-cards[_ngcontent-%COMP%] .history-card[_ngcontent-%COMP%]:hover{box-shadow:0 4px 12px #0000004d}}"]})};export{ht as QuizHistoryComponent};