Upload 5840 files
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- src/app/api.service.ts+24-24
- src/app/app-routing.module.ts+47-53
- src/app/app.component.css+1710-331
- src/app/app.component.html+347-71
- src/app/app.component.spec.ts+27-27
- src/app/app.component.ts+1226-128
- src/app/auth/sign-in/sign-in.component.css+204-135
- src/app/auth/sign-in/sign-in.component.html+61-52
- src/app/auth/sign-in/sign-in.component.spec.ts+21-21
- src/app/auth/sign-in/sign-in.component.ts+139-63
- src/app/auth/sign-up/sign-up.component.css+865-148
- src/app/auth/sign-up/sign-up.component.html+161-76
- src/app/auth/sign-up/sign-up.component.spec.ts+21-21
- src/app/auth/sign-up/sign-up.component.ts+317-111
- src/app/auth/sign-up/sign-up.service.ts+111-62
- src/app/intro-page/intro-page.component.css+1944-1103
- src/app/intro-page/intro-page.component.html+775-292
- src/app/intro-page/intro-page.component.spec.ts+21-21
- src/app/intro-page/intro-page.component.ts+822-236
- src/app/llm-quiz/llm-quiz.component.css+1853-732
- src/app/llm-quiz/llm-quiz.component.html+293-138
- src/app/llm-quiz/llm-quiz.component.spec.ts+21-21
- src/app/llm-quiz/llm-quiz.component.ts+563-207
- src/app/matching-list/matching-list.component.css+2464-714
- src/app/matching-list/matching-list.component.html+1331-228
- src/app/matching-list/matching-list.component.spec.ts+21-21
- src/app/matching-list/matching-list.component.ts
- src/app/matching.service.spec.ts+59-59
- src/app/matching.service.ts+115-82
- src/app/question-answer/question-answer-service.service.ts+52-42
- src/app/question-answer/question-answer.component.css+1716-693
- src/app/question-answer/question-answer.component.html+516-175
- src/app/question-answer/question-answer.component.spec.ts+21-21
- src/app/question-answer/question-answer.component.ts+876-521
- src/app/services/auth.guard.spec.tsAdded+17
- src/app/services/auth.guard.tsAdded+20
- src/app/services/auth.service.spec.ts+16-16
- src/app/services/auth.service.ts+185-23
- src/app/services/llm-qa.service.ts+95-85
- src/app/user-preferences/user-preferences.component.css+2044-438
- src/app/user-preferences/user-preferences.component.html+469-135
- src/app/user-preferences/user-preferences.component.ts+1020-280
- src/app/user-preferences/user-preferences.service.ts+151-63
- src/assets/fontawesome/LICENSE.txtAdded+165
- src/assets/fontawesome/README.mdAdded+38
- src/assets/fontawesome/css/all.cssAdded
- src/assets/fontawesome/css/all.min.cssAdded+9
- src/assets/fontawesome/css/brands.cssAdded+2219
- src/assets/fontawesome/css/brands.min.cssAdded+6
- src/assets/fontawesome/css/fontawesome.cssAdded
123456789101112131415161718192021222324import { Injectable } from '@angular/core';import { HttpClient } from '@angular/common/http';import { environment } from '../environments/environment';@Injectable({ providedIn: 'root' })export class ApiService {// Decide backend base URL at runtimeprivate readonly base = location.hostname.endsWith('hf.space')? 'https://pykara-py-match-backend.hf.space': 'http://localhost:5000'; // Local Flask backend//private base = environment.apiBase;constructor(private http: HttpClient) { }start(body = { n_questions: 10, batch_size: 5, domain: 'marriage' }) {return this.http.post<any>(`${this.base}/q/start`, body);}next(session_id: string, selected_color: 'blue' | 'green' | 'red' | 'yellow') {return this.http.post<any>(`${this.base}/q/next`, { session_id, selected_color });}}123456789101112131415161718192021222324import { Injectable } from '@angular/core';import { HttpClient } from '@angular/common/http';import { environment } from '../environments/environment';@Injectable({ providedIn: 'root' })export class ApiService {// Decide backend base URL at runtimeprivate readonly base = location.hostname.endsWith('hf.space')? 'https://pykara-py-match-backend.hf.space': 'http://localhost:5000'; // Local Flask backend//private base = environment.apiBase;constructor(private http: HttpClient) { }start(body = { n_questions: 10, batch_size: 5, domain: 'marriage' }) {return this.http.post<any>(`${this.base}/q/start`, body);}next(session_id: string, selected_color: 'blue' | 'green' | 'red' | 'yellow') {return this.http.post<any>(`${this.base}/q/next`, { session_id, selected_color });}}
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253import { NgModule } from '@angular/core';import { RouterModule, Routes } from '@angular/router';import { IntroPageComponent } from './intro-page/intro-page.component';import { QuestionAnswerComponent } from './question-answer/question-answer.component';import { LlmQuizComponent } from './llm-quiz/llm-quiz.component';import { MatchingListComponent } from './matching-list/matching-list.component';const routes: Routes = [{ path: '', component: IntroPageComponent, pathMatch: 'full' },// Auth lazy standalone components{path: 'auth',children: [{path: 'signin',loadComponent: () =>import('./auth/sign-in/sign-in.component').then(m => m.SignInComponent),},{path: 'signup',loadComponent: () =>import('./auth/sign-up/sign-up.component').then(m => m.SignUpComponent),},],},{ path: 'sign-in', redirectTo: 'auth/signin', pathMatch: 'full' },{ path: 'sign-up', redirectTo: 'auth/signup', pathMatch: 'full' },{ path: 'question-answer', component: QuestionAnswerComponent },{ path: 'llmquiz', component: LlmQuizComponent },// Preferences (standalone component lazy-loaded){path: 'user-preferences',loadComponent: () =>import('./user-preferences/user-preferences.component').then(m => m.UserPreferencesComponent),},// Matching list routes (must be BEFORE wildcard). Provide optional id.{ path: 'matchinglist', component: MatchingListComponent },{ path: 'matchinglist/:id', component: MatchingListComponent },// Wildcard LAST{ path: '**', redirectTo: '' },];@NgModule({imports: [RouterModule.forRoot(routes)],exports: [RouterModule],})export class AppRoutingModule {}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647//import { NgModule } from '@angular/core';//import { RouterModule, Routes } from '@angular/router';//import { IntroPageComponent } from './intro-page/intro-page.component';//import { QuestionAnswerComponent } from './question-answer/question-answer.component';//import { LlmQuizComponent } from './llm-quiz/llm-quiz.component';//import { MatchingListComponent } from './matching-list/matching-list.component';//import { AuthGuard } from './services/auth.guard';//const routes: Routes = [// { path: '', component: IntroPageComponent },// { path: 'intro', component: IntroPageComponent },// {// path: 'auth',// children: [// {// path: 'signin',// loadComponent: () =>// import('./auth/sign-in/sign-in.component').then(m => m.SignInComponent),// },// {// path: 'signup',// loadComponent: () =>// import('./auth/sign-up/sign-up.component').then(m => m.SignUpComponent),// },// ],// },// { path: 'question-answer', component: QuestionAnswerComponent, canActivate: [AuthGuard] },// { path: 'llmquiz', component: LlmQuizComponent, canActivate: [AuthGuard] },// { path: 'matchinglist', component: MatchingListComponent, canActivate: [AuthGuard] },// { path: 'home', component: IntroPageComponent, canActivate: [AuthGuard] },// {// path: 'user-preferences',// loadComponent: () =>// import('./user-preferences/user-preferences.component').then(m => m.UserPreferencesComponent),// canActivate: [AuthGuard],// },// { path: '**', redirectTo: '' },//];//@NgModule({// imports: [RouterModule.forRoot(routes)],// exports: [RouterModule],//})//export class AppRoutingModule { }
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331.header-bar {background: #000 !important;box-shadow: 0 2px 0 rgba(255,255,255,.04);display: flex !important;align-items: center !important;justify-content: flex-start;min-height: 82px;padding: 14px clamp(1.4rem,4vw,3rem) !important;gap: clamp(1.5rem,3vw,4rem);position: fixed;top: 0;z-index: 2002;width:100%;}.header-bar .brand {display: inline-flex;align-items: center;gap: 1.5vw;cursor: pointer;}.header-bar .brand__logo-img {background: #fff;width: 74px;min-width: 74px;max-width: 74px;padding: 6px;border-radius: 50%;box-shadow: 0 4px 10px rgba(0,0,0,.25);}.header-bar .brand__name {font-family: Roliana;font-size: 2.5vw;font-weight: 300;letter-spacing: 3.2px;color: #fff;text-shadow: 0 2px 4px rgba(0,0,0,.35);display: flex;align-items: center;gap: 2px;}.header-bar .brand__name strong {color: #f3a54c;font-weight: 300;}.header__nav {flex: 1 1 auto !important;display: flex !important;align-items: center;justify-content: center;gap: clamp(2.2rem,3.4vw,4rem) !important;margin: 0 !important;white-space: nowrap;}.nav-link--icon {display: inline-flex;align-items: center;gap: 8px;font-size: 0.9vw;letter-spacing: 1px;font-weight: 700;color: #fff;opacity: .92;text-decoration: none;padding: 6px 10px;position: relative;transition: .25s ease;height: 46px;line-height: 1;cursor: pointer;}.nav-link--icon i {font-size: .85rem;opacity: .95;}.nav-link--icon:hover {color: #f3a54c;opacity: 1;}.nav-link--icon::after {content: "";position: absolute;left: 8px;right: 8px;bottom: 2px;height: 2px;background: linear-gradient(90deg,#f3a54c,#ffcb7a);transform: scaleX(0);transform-origin: left;transition: transform .35s ease;border-radius: 2px;}.nav-link--icon:hover::after {transform: scaleX(1);}.header__actions {flex: 0 0 auto;display: flex;align-items: center;justify-content: flex-end;gap: 1rem;margin: 0 !important;}.btn-signup, .btn-signin {border-radius: 10px;font-size: .8rem;padding: .65rem 1.25rem;font-weight: 600;letter-spacing: .5px;line-height: 1;cursor: pointer;}.btn-signup {background: #f3a54c;color: #0b0f1a;border: none;box-shadow: 0 4px 10px -2px rgba(243,165,76,.4);}.btn-signup:hover {filter: brightness(1.08);}.btn-signin {background: #0b0f1a;color: #fff;border: 2px solid #f3a54c;}.btn-signin:hover {background: #121b27;}/* Marriage Sub Navigation */.nav-item-wrapper {position: relative;display: inline-block;}.sub-nav {position: absolute;top: 100%;left: 0;background: #0b0f1a;border: 1px solid rgba(255,255,255,.12);border-radius: 8px;padding: 8px 0;min-width: 200px;box-shadow: 0 8px 24px rgba(0,0,0,.4);backdrop-filter: blur(14px);z-index: 1000;animation: subnavFadeIn 0.2s ease-out;}.sub-nav-link {display: flex;align-items: center;gap: 10px;padding: 10px 16px;color: #e5e7eb;text-decoration: none;font-size: 0.75vw;font-weight: 600;letter-spacing: 0.5px;transition: all 0.25s ease;border: none;background: none;width: 100%;text-align: left;cursor: pointer;}.sub-nav-link:hover {background: rgba(243, 165, 76, 0.1);color: #f3a54c;}.sub-nav-link i {font-size: 0.85rem;width: 16px;text-align: center;}@keyframes subnavFadeIn {from {opacity: 0;transform: translateY(-8px);}to {opacity: 1;transform: translateY(0);}}/* Ensure the main nav items have proper z-index */.header__nav {position: relative;z-index: 1001;}@media (max-width:1100px) {.header__nav {gap: 1.6rem;}}@media (max-width:880px) {.header-bar {flex-wrap: wrap;min-height: unset;}.header__nav {order: 3;flex: 1 1 100%;justify-content: center;flex-wrap: wrap;gap: .85rem 1.4rem;padding-top: .35rem;}.header__actions {order: 2;}}@media (max-width:900px) {.header-bar .brand__name {font-size: 8vw;}}@media (max-width:640px) {.nav-link--icon {font-size: .64rem;}}/* Auth Modal (global) */.modal-backdrop {position: fixed;inset: 0;background: rgba(10,14,25,0.72);backdrop-filter: blur(6px);display: flex;align-items: center; /* center vertically */justify-content: center; /* center horizontally */z-index: 4000; /* above header */padding: 2rem 1.2rem;}.modal-panel {/* width: 100%;max-width: 540px;background: #111a24;border: 1px solid rgba(255,255,255,0.08);border-radius: 22px;*//* box-shadow: 0 20px 48px -12px rgba(0,0,0,.65), 0 4px 18px -4px rgba(0,0,0,.45);*/position: relative;padding: 2.25rem 2.4rem 2.4rem;color: #fff;animation: modalPop .35s cubic-bezier(.4,.8,.2,1);}/*.modal-panel--white {*/ /* allow reuse if needed *//*background: linear-gradient(145deg,#ffffff,#f7f9fb);color: #0b0f1a;}*/.modal-close {position: absolute;top: 10px;right: 12px;background: none;border: none;font-size: 1.6rem;line-height: 1;cursor: pointer;color: inherit;opacity: .6;transition: .25s ease;}.modal-close:hover { opacity: 1; }@keyframes modalPop {0% { opacity: 0; transform: translateY(28px) scale(.94); }60% { opacity: 1; transform: translateY(-4px) scale(1.01); }100% { opacity: 1; transform: translateY(0) scale(1); }}/* Make forms inside auth modal look nice if not already styled */.modal-panel form .field label { font-weight: 600; letter-spacing:.4px; }.modal-panel form input { width:100%; border:1px solid #d6dde3; border-radius:8px; padding:.7rem .85rem; font-size:.95rem; }.modal-panel form input:focus { outline:2px solid #f3a54c; border-color:#f3a54c; }.modal-panel h2.title { margin-top:0; font-size:1.65rem; font-weight:700; letter-spacing:.5px; }/* Override dark text if using white variant */.modal-panel--white form input { background:#fff; }@media (max-width:640px) {.modal-panel { padding:1.75rem 1.4rem 2rem; border-radius:18px; }.modal-panel h2.title { font-size:1.4rem; }}/* Liked button on matching page */.btn-liked {display: inline-flex;align-items: center;gap: .5rem;background: rgba(243,165,76,.12);color: #f3a54c;border: 1px solid rgba(243,165,76,.4);padding: .55rem .9rem;border-radius: 10px;font-weight: 700;text-decoration: none;}.btn-liked:hover { background: rgba(243,165,76,.18); }123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710/* Header Bar */.header-bar {background: #0D1B2A !important;box-shadow: 0 2px 0 rgba(255,255,255,.04);display: flex !important;align-items: center !important;justify-content: flex-start;min-height: 82px;padding: 14px clamp(1.4rem,4vw,3rem) !important;gap: clamp(1.5rem,3vw,4rem);position: fixed;top: 0;z-index: 2002;width: 100%;}.header-bar .brand {display: inline-flex;align-items: center;gap: 1.5vw;cursor: pointer;}.header-bar .brand__logo-img {background: #fff;width: 74px;min-width: 74px;max-width: 74px;padding: 6px;border-radius: 50%;box-shadow: 0 4px 10px rgba(0,0,0,.25);}.header-bar .brand__name {font-family: Roliana;font-size: 2.5vw;font-weight: 300;letter-spacing: 3.2px;color: #fff;text-shadow: 0 2px 4px rgba(0,0,0,.35);display: flex;align-items: center;gap: 2px;}.header-bar .brand__name strong {color: #3AB8A9;font-weight: 300;}/* Main Navigation */.header__nav {flex: 1 1 auto !important;display: flex !important;align-items: center;justify-content: center;gap: 1vw !important;margin: 0 !important;white-space: nowrap;position: relative;z-index: 1001;}.nav-link--icon {display: inline-flex;align-items: center;gap: 8px;font-size: 0.9vw;letter-spacing: 1px;font-weight: 700;color: #fff;opacity: .92;text-decoration: none;padding: 6px 10px;position: relative;transition: .25s ease;height: 46px;line-height: 1;cursor: pointer;}.nav-link--icon i {font-size: .85rem;opacity: .95;}.nav-link--icon:hover {color: #3AB8A9;opacity: 1;}.nav-link--icon::after {content: "";position: absolute;left: 8px;right: 8px;bottom: 2px;height: 2px;background: linear-gradient(90deg, #3AB8A9, #D4A755);transform: scaleX(0);transform-origin: left;transition: transform .35s ease;border-radius: 2px;}.nav-link--icon:hover::after,.nav-link--icon.active::after {transform: scaleX(1);}.nav-link--icon.active {color: #3AB8A9;}.nav-link--icon.disabled,.nav-link--icon[aria-disabled="true"] {pointer-events: none;opacity: 0.5;cursor: not-allowed;}/* Header Actions */.header__actions {flex: 0 0 auto;display: flex;align-items: center;justify-content: flex-end;gap: 1rem;margin: 0 !important;}.btn-signup, .btn-signin {border-radius: 10px;font-size: .8rem;padding: .65rem 1.25rem;font-weight: 600;letter-spacing: .5px;line-height: 1;cursor: pointer;transition: all 0.3s ease;}.btn-signup {background: #3AB8A9;color: #0D1B2A;border: none;box-shadow: 0 4px 10px -2px rgba(58,184,169,.4);}.btn-signup:hover {filter: brightness(1.08);transform: translateY(-1px);border: 2px solid #D4A755;}.btn-signin {background: #0D1B2A;color: #fff;border: 2px solid #3AB8A9;}.btn-signin:hover {background: #1B2635;transform: translateY(-1px);border-color: #D4A755;}/* Navigation Item Wrapper and Sub Navigation */.nav-item-wrapper {position: relative;display: inline-block;}.nav-item-wrapper:hover .nav-link--icon:not(.disabled) {color: #3AB8A9;}.nav-item-wrapper:hover .nav-link--icon:not(.disabled)::after {transform: scaleX(1);}/* Enhanced Role Sub Navigation Styles */.sub-nav {position: absolute;top: 100%;left: 0;background: #0D1B2A;border: 1px solid rgba(255,255,255,.12);border-radius: 12px;padding: 16px 0;min-width: 280px;box-shadow: 0 12px 32px rgba(0,0,0,.5);backdrop-filter: blur(14px);z-index: 1000;animation: subnavFadeIn 0.2s ease-out;}.role-submenu {margin-bottom: 8px;overflow: hidden;}.role-submenu:last-child {margin-bottom: 0;}.role-header {display: flex !important;align-items: center;gap: 12px;background: rgba(58, 184, 169, 0.1);border-left: 3px solid #3AB8A9;font-weight: 700 !important;color: #3AB8A9 !important;margin: 4px 0;cursor: pointer;}.role-header:hover {background: rgba(58, 184, 169, 0.15) !important;color: #5EC8BA !important;}.role-options {padding-left: 20px;animation: slideDown 0.3s ease-out;}.sub-nav-link {display: flex;align-items: center;gap: 12px;padding: 10px 16px;color: #e5e7eb;text-decoration: none;font-size: 0.85rem;font-weight: 600;letter-spacing: 0.5px;transition: all 0.25s ease;border: none;background: none;width: 100%;text-align: left;cursor: pointer;border-bottom: 1px solid rgba(255,255,255,0.05);white-space: nowrap;position: relative;}.sub-nav-link:last-child {border-bottom: none;}.sub-nav-link:hover:not(.disabled) {background: rgba(58, 184, 169, 0.08);color: #3AB8A9;transform: translateX(4px);}.sub-nav-link i {font-size: 0.85rem;width: 16px;text-align: center;}.role-header i {color: #3AB8A9;}.sub-nav-link.disabled {opacity: 0.5;cursor: not-allowed;pointer-events: none;}.sub-nav-link.disabled:hover {background: none;color: #e5e7eb;transform: none;}/* Progress indicator styles */.completed-check {color: #00ff88;font-weight: bold;margin-left: auto;font-size: 0.8rem;}.step-lock {margin-left: auto;font-size: 0.7rem;opacity: 0.7;}/* Completed step styling */.sub-nav-link.completed {background: rgba(0, 255, 136, 0.05);border-left: 2px solid #00ff88;}/* Chevron rotation for expanded menu */.fa-chevron-right {transition: transform 0.3s ease;margin-left: auto;}.rotated {transform: rotate(90deg);}/* Progress Indicator */.progress-indicator {margin: 8px 16px 16px;background: rgba(255,255,255,0.1);border-radius: 10px;height: 6px;overflow: hidden;position: relative;}.progress-bar {height: 100%;background: linear-gradient(90deg, #3AB8A9, #D4A755);transition: width 0.5s ease;border-radius: 10px;}/* Animations */@keyframes subnavFadeIn {from {opacity: 0;transform: translateY(-8px);}to {opacity: 1;transform: translateY(0);}}@keyframes slideDown {from {opacity: 0;max-height: 0;}to {opacity: 1;max-height: 500px;}}/* User Profile Styles */.user-profile {display: flex;align-items: center;gap: 12px;cursor: pointer;padding: 8px 12px;border-radius: 8px;transition: background-color 0.3s ease;}.user-profile:hover {background: rgba(255,255,255,0.1);}.user-avatar {width: 40px;height: 40px;border-radius: 50%;background: linear-gradient(135deg, #3AB8A9, #D4A755);display: flex;align-items: center;justify-content: center;font-weight: bold;color: #0D1B2A;font-size: 14px;box-shadow: 0 2px 8px rgba(58,184,169,0.3);}.user-info {display: flex;flex-direction: column;gap: 2px;}.user-name {font-weight: 600;color: #fff;font-size: 0.9rem;}.user-role {font-size: 0.75rem;color: #3AB8A9;opacity: 0.9;}/* Profile Dropdown */.profile-dropdown {position: absolute;top: 100%;right: 0;background: #0D1B2A;border: 1px solid rgba(255,255,255,.12);border-radius: 8px;padding: 8px 0;min-width: 200px;box-shadow: 0 8px 24px rgba(0,0,0,.5);z-index: 1001;margin-top: 8px;}.dropdown-item {display: flex;align-items: center;gap: 12px;padding: 10px 16px;color: #e5e7eb;text-decoration: none;font-size: 0.85rem;font-weight: 500;transition: all 0.25s ease;border: none;background: none;width: 100%;text-align: left;cursor: pointer;}.dropdown-item:hover {background: rgba(58, 184, 169, 0.1);color: #3AB8A9;}.dropdown-item i {font-size: 0.8rem;width: 16px;text-align: center;}.chatbot-toggle:hover {transform: scale(1.1);box-shadow: 0 6px 25px rgba(58,184,169,0.6);}.chatbot-modal {position: fixed;top: 0;left: 0;width: 100%;height: 100%;background: rgba(0,0,0,0.7);display: flex;align-items: center;justify-content: center;z-index: 2000;backdrop-filter: blur(4px);}.chatbot-container {background: #0D1B2A;border-radius: 16px;width: 90%;max-width: 400px;height: 600px;border: 1px solid rgba(255,255,255,0.12);box-shadow: 0 20px 60px rgba(0,0,0,0.5);display: flex;flex-direction: column;overflow: hidden;}.chatbot-header {background: rgba(58, 184, 169, 0.1);padding: 16px 20px;border-bottom: 1px solid rgba(255,255,255,0.1);display: flex;align-items: center;justify-content: space-between;}.chatbot-header h3 {color: #3AB8A9;margin: 0;font-size: 1.1rem;}.close-chatbot {background: none;border: none;color: #fff;font-size: 1.2rem;cursor: pointer;padding: 4px;opacity: 0.7;transition: opacity 0.3s ease;}.close-chatbot:hover {opacity: 1;}.chat-messages {flex: 1;padding: 20px;overflow-y: auto;display: flex;flex-direction: column;gap: 16px;max-height: 400px;}.message {display: flex;gap: 12px;max-width: 85%;animation: messageSlideIn 0.3s ease-out;}.message.user-message {align-self: flex-end;flex-direction: row-reverse;}.message.bot-message {align-self: flex-start;}.message-avatar {width: 36px;height: 36px;border-radius: 50%;overflow: hidden; /* ensure img inside is clipped */display: inline-flex;align-items: center;justify-content: center;flex-shrink: 0;border: 2px solid rgba(58, 184, 169, 0.3);background: rgba(58, 184, 169, 0.15);}/* If the avatar is an <img>, make it cover the container */.message-avatar img,img.message-avatar {width: 100%;height: 100%;object-fit: cover;display: block;border-radius: 50%;}.user-message .message-avatar {background: rgba(0, 255, 136, 0.2);color: #00ff88;border-color: rgba(0, 255, 136, 0.3);}.message-content {background: rgba(255,255,255,0.05);padding: 14px 18px;border-radius: 18px;font-size: 0.9rem;line-height: 1.4;border: 1px solid rgba(255,255,255,0.1);position: relative;backdrop-filter: blur(10px);}.user-message .message-content {background: linear-gradient(135deg, rgba(58, 184, 169, 0.15), rgba(58, 184, 169, 0.1));color: #fff;border-color: rgba(58, 184, 169, 0.3);}.bot-message .message-content {background: rgba(255, 255, 255, 0.08);color: #e5e7eb;border-color: rgba(255, 255, 255, 0.15);}.quick-questions {padding: 16px 20px;display: grid;grid-template-columns: 1fr 1fr;gap: 10px;background: rgba(255, 255, 255, 0.02);border-top: 1px solid rgba(255, 255, 255, 0.1);}.quick-question-btn {background: rgba(255, 255, 255, 0.05);border: 1px solid rgba(255, 255, 255, 0.1);border-radius: 12px;padding: 12px 16px;color: #e5e7eb;font-size: 0.8rem;cursor: pointer;transition: all 0.3s ease;text-align: center;line-height: 1.3;font-weight: 500;}.quick-question-btn:hover {background: rgba(58, 184, 169, 0.1);border-color: #3AB8A9;transform: translateY(-2px);color: #3AB8A9;}.chat-input-container {padding: 16px 20px;border-top: 1px solid rgba(255, 255, 255, 0.1);display: flex;gap: 12px;background: rgba(255, 255, 255, 0.02);}.chat-input {flex: 1;background: rgba(255, 255, 255, 0.05);border: 1px solid rgba(255, 255, 255, 0.1);border-radius: 12px;padding: 14px 16px;color: #fff;font-size: 0.9rem;transition: all 0.3s ease;font-family: inherit;}.chat-input:focus {outline: none;border-color: #3AB8A9;background: rgba(255, 255, 255, 0.08);box-shadow: 0 0 0 2px rgba(58, 184, 169, 0.2);}.chat-input::placeholder {color: #9aa6b5;}.send-button {background: linear-gradient(135deg, #3AB8A9, #D4A755);border: none;border-radius: 12px;padding: 14px 20px;color: #0D1B2A;font-weight: 600;cursor: pointer;transition: all 0.3s ease;display: flex;align-items: center;gap: 8px;min-width: 60px;justify-content: center;}.send-button:hover {background: linear-gradient(135deg, #D4A755, #3AB8A9);transform: translateY(-1px);box-shadow: 0 4px 12px rgba(58, 184, 169, 0.3);}/* Scrollbar Styling for Chat Messages */.chat-messages::-webkit-scrollbar {width: 6px;}.chat-messages::-webkit-scrollbar-track {background: rgba(255, 255, 255, 0.05);border-radius: 3px;}.chat-messages::-webkit-scrollbar-thumb {background: #3AB8A9;border-radius: 3px;}.chat-messages::-webkit-scrollbar-thumb:hover {background: #5EC8BA;}/* Animation for new messages */@keyframes messageSlideIn {from {opacity: 0;transform: translateY(10px);}to {opacity: 1;transform: translateY(0);}}/* Quick Question Buttons in Chatbot */.quick-question-btn {background: rgba(255,255,255,0.05);border: 1px solid rgba(255,255,255,0.1);border-radius: 10px;padding: 10px 12px;color: #e5e7eb;font-size: 0.8rem;cursor: pointer;transition: all 0.3s ease;text-align: center;line-height: 1.3;font-weight: 500;}.quick-question-btn:hover {background: rgba(58, 184, 169, 0.1);border-color: #3AB8A9;transform: translateY(-2px);color: #3AB8A9;}/* Auth Modal Styles */.modal-backdrop {position: fixed;top: 0;left: 0;width: 100%;height: 100%;background: rgba(0,0,0,0.7);display: flex;align-items: center;justify-content: center;z-index: 3000;backdrop-filter: blur(4px);}.modal-content {background: #0D1B2A;border-radius: 16px;padding: 0;max-width: 440px;width: 90%;border: 1px solid rgba(255,255,255,0.12);box-shadow: 0 20px 60px rgba(0,0,0,0.5);position: relative;}.modal-header {padding: 24px 24px 0;display: flex;align-items: center;justify-content: space-between;}.modal-header h2 {color: #3AB8A9;margin: 0;font-size: 1.5rem;}.close-modal {background: none;border: none;color: #fff;font-size: 1.5rem;cursor: pointer;padding: 4px;opacity: 0.7;transition: opacity 0.3s ease;}.close-modal:hover {opacity: 1;}.modal-body {padding: 24px;}.user-display {display: flex;align-items: center;justify-content: center;width: 40px;height: 40px;background-color: #3AB8A9;color: #0D1B2A;border-radius: 50%;font-weight: bold;font-size: 14px;cursor: default;margin-right: 12px;border: 4px solid #ffffff;transition: all 0.2s ease;}.user-display:hover {border: 3px solid #3AB8A9;color: white;}/* Assessment Already Taken Popup Styles */.popup-overlay {position: fixed;top: 0;left: 0;width: 100%;height: 100%;background: rgba(0, 0, 0, 0.7);display: flex;align-items: center;justify-content: center;z-index: 10000;backdrop-filter: blur(5px);animation: fadeIn 0.4s;}.popup-overlay.hide {animation: fadeOut 0.6s forwards;}.popup-container {background: white;border-radius: 20px;padding: 40px;max-width: 500px;width: 90%;text-align: center;box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);border: 1px solid rgba(58, 184, 169, 0.3);animation: popupAppear 0.3s ease-out;}@keyframes popupAppear {from {opacity: 0;transform: scale(0.9) translateY(-20px);}to {opacity: 1;transform: scale(1) translateY(0);}}.popup-header {margin-bottom: 20px;}.popup-title {color: #2C3E50;font-size: 1.8rem;margin: 0;font-weight: 600;}.popup-content {margin-bottom: 30px;color: #666;line-height: 1.6;font-size: 1.1rem;}.popup-content p {margin: 0 0 12px 0;}.popup-actions {display: flex;gap: 16px;justify-content: center;flex-wrap: wrap;}.popup-actions .btn {padding: 14px 24px;font-size: 1rem;font-weight: 600;border: none;border-radius: 12px;cursor: pointer;transition: all 0.3s ease;display: inline-flex;align-items: center;gap: 8px;text-decoration: none;}.popup-actions .btn-primary {background: linear-gradient(135deg, #3AB8A9, #2DA89A);color: white;}.popup-actions .btn-primary:hover {background: linear-gradient(135deg, #5EC8BA, #3AB8A9);transform: translateY(-2px);}.popup-actions .btn-secondary {background: #f8f9fa;color: #666;border: 2px solid #e2e7ee;}.popup-actions .btn-secondary:hover {background: #e9ecef;transform: translateY(-2px);}/* Enhanced Sign Out Popup Styles */.popup-container.signout {background: #fffbe6;border: 2px solid #3AB8A9;box-shadow: 0 8px 32px rgba(58, 184, 169, 0.18), 0 0 0 8px #fffbe6;animation: popupAppear 0.4s;border-radius: 28px;position: relative;overflow: hidden;}.popup-header.signout {margin-bottom: 18px;}.popup-icon.signout {width: 100%;display: flex;align-items: center;justify-content: center;color: #fff;box-shadow: 0 4px 16px rgba(58, 184, 169, 0.18);position: relative;gap: 1vw;}@keyframes iconPulse {0% {opacity: 0;transform: scale(0.8);}50% {opacity: 1;transform: scale(1.1);}100% {opacity: 1;transform: scale(1);}}.popup-title.signout {color: #3AB8A9;font-size: 1.5rem;font-weight: 700;margin: 0;letter-spacing: 1px;display: flex;align-items: center;justify-content: center;gap: 8px;}.popup-content.signout {color: #333;font-size: 1.15rem;margin-bottom: 0;font-weight: 500;letter-spacing: 0.5px;}/* Responsive design for signout popup */@media (max-width: 600px) {.popup-container.signout {padding: 24px 10px;border-radius: 18px;}.popup-title.signout {font-size: 1.2rem;}.popup-icon.signout {width: 50px;height: 50px;font-size: 24px;}.popup-icon.signout::before {font-size: 1.4rem;}}/* Responsive Design */@media (max-width: 768px) {.header-bar {flex-wrap: wrap;gap: 1rem;padding: 12px 16px !important;}.header-bar .brand__logo-img {width: 50px;min-width: 50px;max-width: 50px;}.header-bar .brand__name {font-size: 1.5rem;}.header__nav {order: 3;flex-basis: 100%;justify-content: center;gap: 0.5rem !important;}.nav-link--icon {font-size: 0.8rem;padding: 6px 8px;}.sub-nav {min-width: 240px;left: 50%;transform: translateX(-50%);}.user-profile {padding: 6px 8px;}.user-avatar {width: 32px;height: 32px;font-size: 12px;}.user-name {font-size: 0.8rem;}.user-role {font-size: 0.7rem;}/* Chatbot Responsive */.modal-panel.chatbot-modal {width: 95vw;margin: 1rem;max-height: 85vh;}.quick-questions {grid-template-columns: 1fr;gap: 8px;}.chat-messages {padding: 16px;max-height: 250px;}.message {max-width: 90%;}}@media (max-width: 992px) {.header-bar {flex-wrap: wrap;padding: 10px 8px !important;min-height: 60px;gap: 0.8rem;}.header-bar .brand__logo-img {width: 40px;min-width: 40px;max-width: 40px;padding: 3px;}.header-bar .brand__name {font-size: 1.1rem;letter-spacing: 2px;}.header__nav {flex-basis: 100%;justify-content: center;gap: 0.3rem !important;margin-top: 8px !important;}.header__actions {flex-basis: 100%;justify-content: flex-end;margin-top: 8px !important;}}@media (max-width: 600px) {.header-bar {flex-direction: column;align-items: flex-start;padding: 6px 4px !important;min-height: 48px;gap: 0.5rem;}.header-bar .brand {gap: 0.5rem;}.header-bar .brand__logo-img {width: 32px;min-width: 32px;max-width: 32px;padding: 2px;}.header-bar .brand__name {font-size: 0.95rem;letter-spacing: 1px;}.header__nav {flex-direction: column;align-items: flex-start;gap: 0.2rem !important;margin-top: 6px !important;}.header__actions {flex-direction: column;align-items: flex-end;gap: 0.2rem;margin-top: 6px !important;}.nav-link--icon {font-size: 0.8rem;padding: 4px 6px;height: 36px;}/* Chatbot Mobile */.modal-panel.chatbot-modal {width: 98vw;max-height: 90vh;margin: 0.5rem;}.modal-panel.chatbot-modal .chatbot-header {padding: 16px;}.modal-panel.chatbot-modal .chatbot-header h3 {font-size: 1.1rem;}.modal-panel.chatbot-modal .chatbot-header p {font-size: 0.8rem;}.modal-panel.chatbot-modal .chat-messages {padding: 12px;max-height: 200px;}.message-avatar {width: 28px;height: 28px;font-size: 0.7rem;}.message-content {padding: 10px 14px;font-size: 0.85rem;}.modal-panel.chatbot-modal .quick-questions {padding: 12px 16px;}.quick-question-btn {padding: 8px 10px;font-size: 0.75rem;}.modal-panel.chatbot-modal .chat-input {padding: 12px 16px;}.modal-panel.chatbot-modal .chat-input input {padding: 10px 14px;font-size: 0.85rem;}.modal-panel.chatbot-modal .send-btn {width: 40px;height: 40px;}}/* Chat message UI fixes: improve alignment, spacing, and responsive width for message bubbles */.chat-messages .message {align-items: flex-start; /* ensure avatar and bubble align at top */}/* Make sure avatar image (when using <img class="message-avatar">) is displayed as a circular thumbnail */img.message-avatar {width: 40px;height: 40px;border-radius: 50%;object-fit: cover;display: block;border: 2px solid rgba(58, 184, 169, 0.28);box-shadow: 0 2px 6px rgba(0,0,0,0.15);}/* Limit bubble width so it doesn't overflow the container and ensure wrapping */.message-content {max-width: calc(100% - 56px); /* leave room for avatar + gap */word-wrap: break-word;white-space: normal;}/* Slightly offset message content vertically so it lines up nicely with avatar */.message-content {margin-top: 2px;}/* Improve contrast for list bullets inside bot messages */.message-content p {color: #e5e7eb;margin: 0 0 6px 0;}.message-content p:last-child { margin-bottom: 0; }/* Tighter gap for mobile */@media (max-width: 480px) {img.message-avatar { width: 32px; height: 32px; }.message-content { max-width: calc(100% - 48px); }}/* Body scroll management */.body-scrollable {overflow: auto !important;}/* Ensure modal backdrops prevent body scroll */.modal-backdrop ~ * {overflow: hidden !important;}/* Chatbot message alignment fixes */.message.bot-message {display: flex;align-items: flex-start;gap: 12px;}.message.user-message {display: flex;align-items: flex-start;gap: 12px;flex-direction: row-reverse;}/* Additional animations */@keyframes fadeIn {from {opacity: 0;}to {opacity: 1;}}@keyframes fadeOut {from {opacity: 1;}to {opacity: 0;}}/* Signout Popup Styles with Tick Animation */.signout-popup {background: white;border-radius: 16px;box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);width: 90%;text-align: center;overflow: hidden;padding: 0;}.signout-popup__content {padding: 3rem 2rem 2rem;}/* Tick Animation Styles */.tick-animation {display: flex;justify-content: center;align-items: center;margin-bottom: 2rem;}.tick-circle {width: 45px;height: 45px;position: relative;}.tick-svg {width: 100%;height: 100%;}.tick-circle-bg {fill: none;stroke: #3AB8A9;stroke-width: 8px;}.tick-path {stroke: #3AB8A9;stroke-width: 7px;stroke-linecap: round;stroke-linejoin: round;stroke-dasharray: 100;stroke-dashoffset: 100;animation: drawTick 0.8s ease-in-out 0.3s forwards;}@keyframes drawTick {to {stroke-dashoffset: 0;}}/* Animate the circle background */.tick-circle-bg {stroke-dasharray: 283;stroke-dashoffset: 283;animation: drawCircle 0.6s ease-in-out forwards;}@keyframes drawCircle {to {stroke-dashoffset: 0;}}.signout-popup__title {font-size: 1.5rem;font-weight: 600;color: #1f2937;margin: 0 0 1rem 0;line-height: 1.4;}.signout-popup__thankyou {font-size: 1.1rem;color: #6b7280;margin: 0;font-weight: 500;}.signout-popup__footer {padding: 1.5rem 2rem;background: #3AB8A9;border-top: 1px solid #e5e7eb;}.signout-popup__powered-by {font-size: 0.8rem;color: #ffffffba;text-transform: uppercase;letter-spacing: 1px;margin-bottom: 0.5rem;font-weight: 500;}.signout-popup__logo {display: flex;align-items: center;justify-content: center;gap: 0.5rem;}.signout-popup__logo-img {height: 20px;width: auto;}.signout-popup__brand-name {font-weight: 700;color: #ffffff;font-size: 1rem;}/* Ensure popup is centered */.popup-overlay {position: fixed;top: 0;left: 0;right: 0;bottom: 0;background: rgba(0, 0, 0, 0.5);display: flex;justify-content: center;align-items: center;z-index: 10000;}.popup-container {animation: popupFadeIn 0.4s ease-out;}@keyframes popupFadeIn {from {opacity: 0;transform: scale(0.8) translateY(-10px);}to {opacity: 1;transform: scale(1) translateY(0);}}/* Optional: Add scale animation to the tick circle */.tick-circle {animation: scaleIn 0.5s ease-out;}@keyframes scaleIn {0% {transform: scale(0);}70% {transform: scale(1.1);}100% {transform: scale(1);}}/* Enhanced Chatbot Styles - Bottom Right Position */.chatbot-toggle {position: fixed;bottom: 24px;right: 24px;width: 60px;height: 60px;border-radius: 50%;background: #ffffff;color: #0D1B2A;font-size: 1.4rem;cursor: pointer;box-shadow: 0 8px 25px rgba(58, 184, 169, 0.4);transition: all 0.3s ease;z-index: 1000;display: flex;align-items: center;justify-content: center;animation: _ngcontent-ng-c1645850141_pulse 2s infinite;border: 7px solid #3ab8a9;}.chatbot-toggle:hover {transform: scale(1.1);box-shadow: 0 12px 30px rgba(58, 184, 169, 0.6);animation: none;}@keyframes pulse {0% {box-shadow: 0 8px 25px rgba(58, 184, 169, 0.4);}50% {box-shadow: 0 8px 30px rgba(58, 184, 169, 0.7);}100% {box-shadow: 0 8px 25px rgba(58, 184, 169, 0.4);}}.chatbot-modal {position: fixed;top: 0;left: 0;width: 100%;height: 100%;background: rgba(0, 0, 0, 0.7);display: flex;align-items: flex-end;justify-content: flex-end;z-index: 2000;backdrop-filter: blur(4px);padding: 20px;}.chatbot-container {background: linear-gradient(135deg, #0f1522 0%, #1a2438 100%);border-radius: 20px;width: 380px;height: 600px;border: 1px solid rgba(255, 255, 255, 0.15);box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);display: flex;flex-direction: column;overflow: hidden;animation: chatbotSlideUp 0.3s ease-out;}@keyframes chatbotSlideUp {from {opacity: 0;transform: translateY(20px) scale(0.95);}to {opacity: 1;transform: translateY(0) scale(1);}}.chatbot-header {background: linear-gradient(135deg, rgba(58, 184, 169, 0.15), rgba(58, 184, 169, 0.05));padding: 20px;border-bottom: 1px solid rgba(255, 255, 255, 0.1);display: flex;align-items: center;justify-content: space-between;backdrop-filter: blur(10px);}.chatbot-header__left {display: flex;align-items: center;gap: 12px;}.chatbot-avatar {width: 45px;height: 45px;border-radius: 50%;background: linear-gradient(135deg, #3AB8A9, #D4A755);display: flex;align-items: center;justify-content: center;color: #0D1B2A;font-size: 1.2rem;box-shadow: 0 4px 12px rgba(58, 184, 169, 0.3);}.chatbot-header__titles h3 {color: #3AB8A9;margin: 0 0 4px 0;font-size: 1.2rem;font-weight: 600;}.chatbot-header__titles p {color: #9aa6b5;margin: 0;font-size: 0.85rem;}.close-chatbot {background: rgba(255, 255, 255, 0.1);border: 1px solid rgba(255, 255, 255, 0.2);color: #3AB8A9;font-size: 1.2rem;cursor: pointer;padding: 8px;border-radius: 8px;transition: all 0.3s ease;width: 36px;height: 36px;display: flex;align-items: center;justify-content: center;}.close-chatbot:hover {background: #3AB8A9;color: #0D1B2A;transform: scale(0.95);}.chatbot-body {flex: 1;display: flex;flex-direction: column;overflow: hidden;}.chat-messages {flex: 1;padding: 20px;overflow-y: auto;display: flex;flex-direction: column;gap: 16px;background: rgba(255, 255, 255, 0.02);}.message {display: flex;gap: 12px;max-width: 85%;animation: messageSlideIn 0.3s ease-out;}.message.user-message {align-self: flex-end;flex-direction: row-reverse;}.message.bot-message {align-self: flex-start;}.message-avatar {width: 36px;height: 36px;border-radius: 50%;overflow: hidden; /* ensure img inside is clipped */display: inline-flex;align-items: center;justify-content: center;flex-shrink: 0;border: 2px solid rgba(58, 184, 169, 0.3);background: rgba(58, 184, 169, 0.15);}/* If the avatar is an <img>, make it cover the container */.message-avatar img,img.message-avatar {width: 100%;height: 100%;object-fit: cover;display: block;border-radius: 50%;}.user-message .message-avatar {background: rgba(0, 255, 136, 0.2);color: #00ff88;border-color: rgba(0, 255, 136, 0.3);}/* Chat message UI fixes: improve alignment, spacing, and responsive width for message bubbles */.chat-messages .message {align-items: flex-start; /* ensure avatar and bubble align at top */}/* Make sure avatar image (when using <img class="message-avatar">) is displayed as a circular thumbnail */img.message-avatar {width: 40px;height: 40px;border-radius: 50%;object-fit: cover;display: block;border: 2px solid rgba(58, 184, 169, 0.28);box-shadow: 0 2px 6px rgba(0,0,0,0.15);}/* Limit bubble width so it doesn't overflow the container and ensure wrapping */.message-content {max-width: calc(100% - 56px); /* leave room for avatar + gap */word-wrap: break-word;white-space: normal;}/* Slightly offset message content vertically so it lines up nicely with avatar */.message-content {margin-top: 2px;}/* Improve contrast for list bullets inside bot messages */.message-content p {color: #e5e7eb;margin: 0 0 6px 0;}.message-content p:last-child { margin-bottom: 0; }/* Tighter gap for mobile */@media (max-width: 480px) {img.message-avatar { width: 32px; height: 32px; }.message-content { max-width: calc(100% - 48px); }}
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071<!-- Top Navigation --><header class="topbar header-bar" role="banner" aria-label="Top navigation"><a class="brand brand__link" (click)="goHome()" style="cursor: pointer;"><img src="assets/pykara-logo.png" alt="Pykara Technologies logo" class="brand__logo-img" /><span class="brand__name"><strong>Py</strong>-Match</span></a><!-- Center Navigation --><nav class="primary-nav header__nav" aria-label="Primary"><div class="nav-item-wrapper"><a (click)="toggleMarriageSubnav()" class="nav-link nav-link--icon"><i class="fa-solid fa-ring"></i><span>MARRIAGE</span></a><!-- Marriage Sub Navigation --><div class="sub-nav" *ngIf="showMarriageSubnav" (mouseleave)="hideMarriageSubnav()"><a (click)="selectRole('marriage'); navigateToProfile()" class="sub-nav-link"><i class="fa-solid fa-user"></i><span>Profile</span></a><a (click)="navigateToExpectations()" class="sub-nav-link"><i class="fa-solid fa-bullseye"></i><span>Your Expectations</span></a><a (click)="navigateToAssessment()" class="sub-nav-link"><i class="fa-solid fa-clipboard-list"></i><span>Take Assessment</span></a><a (click)="navigateToMatchingProfile()" class="sub-nav-link"><i class="fa-solid fa-chart-pie"></i><span>Your Matching Profile</span></a></div></div><a (click)="onSelectRole('interview')" class="nav-link nav-link--icon"><i class="fa-solid fa-user-tie"></i><span>INTERVIEW</span></a><a (click)="onSelectRole('partnership')" class="nav-link nav-link--icon"><i class="fa-solid fa-handshake"></i><span>PARTNERSHIP</span></a><a *ngIf="isIntroPage" (click)="scrollToFeatures()" class="nav-link nav-link--icon" aria-label="Jump to features section"><i class="fa-solid fa-grid"></i><span>FEATURES</span></a><a *ngIf="isIntroPage" (click)="scrollToJourney()" class="nav-link nav-link--icon" aria-label="Jump to how it works section"><i class="fa-solid fa-timeline"></i><span>HOW IT WORKS</span></a></nav><!-- Right Actions --><nav class="actions header__actions" aria-label="User actions"><ng-container *ngIf="!isSignedIn; else signedInBlock"><button type="button" class="btn btn-signup" (click)="onOpenSignUp()">Sign up</button><button type="button" class="btn btn-signin" (click)="onOpenSignIn()">Sign in</button></ng-container><ng-template #signedInBlock><button type="button" class="profile-btn" aria-label="Profile"><i class="fa-solid fa-user" aria-hidden="true"></i></button><button type="button" class="btn btn-signin" (click)="onSignOut()">Sign out</button></ng-template></nav></header><!-- Main Content --><router-outlet></router-outlet><!-- Global Auth Modal --><div *ngIf="authModal" class="modal-backdrop" (click)="closeAuthModal($event)"><div class="modal-panel modal-panel--white" role="dialog" aria-modal="true" [attr.aria-label]="authModal === 'signin' ? 'Sign in' : 'Sign up'" (click)="$event.stopPropagation()"><button type="button" class="modal-close" (click)="closeAuthModal()" aria-label="Close">×</button><app-sign-in *ngIf="authModal === 'signin'"(switchToSignUp)="onOpenSignUp()"(signInSuccess)="onSignInSuccess()"></app-sign-in><app-sign-up *ngIf="authModal === 'signup'"(switchToSignIn)="onOpenSignIn()"(signUpSuccess)="onSignUpSuccess()"></app-sign-up></div></div>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347<!-- Top Navigation --><header class="topbar header-bar" role="banner" aria-label="Top navigation"><a class="brand brand__link" (click)="goHome()" style="cursor: pointer;"><img src="assets/pykara-logo.png" alt="Pykara Technologies logo" class="brand__logo-img" /><span class="brand__name"><strong>Py</strong>-Match</span></a><!-- Center Navigation --><nav class="primary-nav header__nav" aria-label="Primary"><!-- Role Main Navigation --><div class="nav-item-wrapper"><a (click)="toggleRoleSubnav()" class="nav-link nav-link--icon"><i class="fa-solid fa-layer-group"></i><span>ROLE</span></a><!-- Role Sub Navigation --><div class="sub-nav" *ngIf="showRoleSubnav" (mouseleave)="hideRoleSubnav()"><!-- Marriage Role --><div class="role-submenu"><a (click)="toggleRoleMenu('marriage')" class="sub-nav-link role-header"><i class="fa-solid fa-ring"></i><span>MARRIAGE</span><i class="fa-solid fa-chevron-right" [class.rotated]="activeRoleMenu === 'marriage'"></i></a><div class="role-options" *ngIf="activeRoleMenu === 'marriage'"><!-- Progress Indicator --><div class="progress-indicator"><div class="progress-text">Progress: {{ getProgressPercentage() }}%</div><div class="progress-bar-container"><div class="progress-bar" [style.width]="getProgressPercentage() + '%'"></div></div></div><a (click)="navigateToProfile('marriage')"class="sub-nav-link"[class.disabled]="!isStepEnabled('profile')"[class.completed]="profileCompleted"[attr.aria-disabled]="!isStepEnabled('profile')"><i class="fa-solid fa-user"></i><span>Your Profile</span><span *ngIf="isSignedIn && profileCompleted" class="completed-check" title="Completed"><i class="fa-solid fa-check" aria-hidden="true"></i></span><span *ngIf="(!isSignedIn) || (!isStepEnabled('profile') && !profileCompleted)" class="step-lock" title="Locked"><i class="fa-solid fa-lock" aria-hidden="true"></i></span></a><a (click)="navigateToExpectations('marriage')"class="sub-nav-link"[class.disabled]="!isStepEnabled('expectations')"[class.completed]="expectationsCompleted"[attr.aria-disabled]="!isStepEnabled('expectations')"><i class="fa-solid fa-bullseye"></i><span>Your Expectations</span><span *ngIf="isSignedIn && expectationsCompleted" class="completed-check" title="Completed"><i class="fa-solid fa-check" aria-hidden="true"></i></span><span *ngIf="(!isSignedIn) || (!isStepEnabled('expectations') && !expectationsCompleted)" class="step-lock" title="Locked"><i class="fa-solid fa-lock" aria-hidden="true"></i></span></a><a (click)="navigateToAssessment('marriage')"class="sub-nav-link"[class.disabled]="!isStepEnabled('assessment')"[class.completed]="assessmentCompleted"[attr.aria-disabled]="!isStepEnabled('assessment')"><i class="fa-solid fa-clipboard-list"></i><span>Take Assessment</span><span *ngIf="isSignedIn && assessmentCompleted" class="completed-check" title="Completed"><i class="fa-solid fa-check" aria-hidden="true"></i></span><span *ngIf="(!isSignedIn) || (!isStepEnabled('assessment') && !assessmentCompleted)" class="step-lock" title="Locked"><i class="fa-solid fa-lock" aria-hidden="true"></i></span></a><a (click)="navigateToMatchingProfile('marriage')"class="sub-nav-link"[class.disabled]="!isStepEnabled('matching')"[class.completed]="matchingCompleted"[attr.aria-disabled]="!isStepEnabled('matching')"><i class="fa-solid fa-chart-pie"></i><span>Your Matching Profile</span><span *ngIf="isSignedIn && matchingCompleted" class="completed-check" title="Completed"><i class="fa-solid fa-check" aria-hidden="true"></i></span><span *ngIf="(!isSignedIn) || (!isStepEnabled('matching') && !matchingCompleted)" class="step-lock" title="Locked"><i class="fa-solid fa-lock" aria-hidden="true"></i></span></a></div></div><!-- Interview Role --><div class="role-submenu"><a (click)="toggleRoleMenu('interview')" class="sub-nav-link role-header"><i class="fa-solid fa-user-tie"></i><span>INTERVIEW</span><i class="fa-solid fa-chevron-right" [class.rotated]="activeRoleMenu === 'interview'"></i></a><div class="role-options" *ngIf="activeRoleMenu === 'interview'"><a (click)="navigateToProfile('interview')" class="sub-nav-link"><i class="fa-solid fa-user"></i><span>Candidate Profile</span></a><a (click)="navigateToJobRequirements()" class="sub-nav-link"><i class="fa-solid fa-briefcase"></i><span>Job Requirements</span></a><a (click)="navigateToInterviewAssessment()" class="sub-nav-link"><i class="fa-solid fa-clipboard-check"></i><span>Skills Assessment</span></a><a (click)="navigateToCandidateMatching()" class="sub-nav-link"><i class="fa-solid fa-users"></i><span>Find Candidates</span></a></div></div><!-- Partnership Role --><div class="role-submenu"><a (click)="toggleRoleMenu('partnership')" class="sub-nav-link role-header"><i class="fa-solid fa-handshake"></i><span>PARTNERSHIP</span><i class="fa-solid fa-chevron-right" [class.rotated]="activeRoleMenu === 'partnership'"></i></a><div class="role-options" *ngIf="activeRoleMenu === 'partnership'"><a (click)="navigateToProfile('partnership')" class="sub-nav-link"><i class="fa-solid fa-user-tie"></i><span>Partner Profile</span></a><a (click)="navigateToBusinessGoals()" class="sub-nav-link"><i class="fa-solid fa-bullseye"></i><span>Business Goals</span></a><a (click)="navigateToPartnershipAssessment()" class="sub-nav-link"><i class="fa-solid fa-chart-line"></i><span>Compatibility Assessment</span></a><a (click)="navigateToPartnerMatching()" class="sub-nav-link"><i class="fa-solid fa-search"></i><span>Find Partners</span></a></div></div></div></div><!-- FEATURES link with icon --><a *ngIf="isIntroPage" (click)="scrollToFeatures()" class="nav-link nav-link--icon" aria-label="Jump to features section"><i class="fa-solid fa-grid" aria-hidden="true"></i><span>FEATURES</span></a><a *ngIf="isIntroPage" (click)="scrollToJourney()" class="nav-link nav-link--icon" aria-label="Jump to how it works section"><i class="fa-solid fa-timeline" aria-hidden="true"></i><span>HOW IT WORKS</span></a><!-- Additional Navigation Links --><a href="https://pykara.ai/" target="_blank" rel="noopener" class="nav-link nav-link--icon"><i class="fa-solid fa-building"></i><span>ABOUT US</span></a><a href="https://pykara.ai/contact-us/" target="_blank" rel="noopener" class="nav-link nav-link--icon"><i class="fa-solid fa-envelope"></i><span>CONTACT</span></a><a (click)="scrollToFAQ()" class="nav-link nav-link--icon" style="cursor: pointer;"><i class="fa-solid fa-circle-question"></i><span>FAQ</span></a><a (click)="openChatbot()" class="nav-link nav-link--icon" style="cursor: pointer;"><i class="fa-solid fa-robot"></i><span>SUPPORT</span></a></nav><!-- Right Actions --><nav class="actions header__actions" aria-label="User actions"><ng-container *ngIf="!isSignedIn; else signedInBlock"><button type="button" class="btn btn-signup" (click)="onOpenSignUp()">Sign up</button><button type="button" class="btn btn-signin" (click)="onOpenSignIn()">Sign in</button></ng-container><ng-template #signedInBlock><!-- User Name Display with Tooltip --><div class="user-display" [title]="userFullName">{{ userInitials }}</div><button type="button" class="btn btn-signin" (click)="onSignOut()">Sign out</button></ng-template></nav><!-- Assessment Already Taken Popup --><div class="popup-overlay" *ngIf="showAssessmentPopup"><div class="popup-container"><div class="popup-header"><div class="popup-icon"><i class="fa-solid fa-check-circle"></i></div><h3 class="popup-title">Assessment Completed</h3></div><div class="popup-content"><p>You have already taken the assessment.</p><p>If you like, please explore your matching profile to see your compatible matches.</p></div><div class="popup-actions"><button type="button" class="btn btn-primary" (click)="navigateToMatchingFromPopup()"><i class="fa-solid fa-user-group"></i> Explore Matching Profile</button><button type="button" class="btn btn-secondary" (click)="goHomeFromPopup()"><i class="fa-solid fa-home"></i> Go Home</button></div></div></div><!-- Sign Out Popup --><div *ngIf="showSignOutPopup" class="popup-overlay"><div class="popup-container signout-popup" role="alert" aria-live="polite"><div class="signout-popup__content"><!-- Tick Animation --><div class="tick-animation"><div class="tick-circle"><svg class="tick-svg" viewBox="0 0 100 100"><circle class="tick-circle-bg" cx="50" cy="50" r="45"></circle><path class="tick-path" d="M30,50 L45,65 L70,35" fill="none"></path></svg></div><!--<div>Py-Match</div>--></div><h3 class="signout-popup__title">You have been logged out</h3><p class="signout-popup__thankyou">Thank you</p></div><div class="signout-popup__footer"><div class="signout-popup__powered-by"><span>POWERED BY</span><div class="signout-popup__logo"><img src="assets/pykara-logo.png" alt="Pykara Technologies" class="signout-popup__logo-img" /><span class="signout-popup__brand-name">Pykara Technologies</span></div></div></div></div></div></header><!-- Main Content --><router-outlet></router-outlet><!-- Global Auth Modal --><div *ngIf="authModal" class="modal-backdrop" (click)="closeAuthModal($event)"><div class="modal-panel modal-panel--white" role="dialog" aria-modal="true" [attr.aria-label]="authModal === 'signin' ? 'Sign in' : 'Sign up'" (click)="$event.stopPropagation()"><button type="button" class="modal-close" (click)="closeAuthModal()" aria-label="Close">×</button><app-sign-in *ngIf="authModal === 'signin'"(switchToSignUp)="onOpenSignUp()"(signInSuccess)="onSignInSuccess()"></app-sign-in><app-sign-up *ngIf="authModal === 'signup'"(switchToSignIn)="onOpenSignIn()"(signUpSuccess)="onSignUpSuccess()"></app-sign-up></div></div><!-- Chatbot Toggle Button --><button *ngIf="isIntroPage" class="chatbot-toggle" (click)="openChatbot()" aria-label="Open Support Chatbot"><i class="fa-solid fa-robot"></i></button><!-- Chatbot Modal --><div *ngIf="showChatbot" class="chatbot-modal" (click)="closeChatbot($event)"><div class="chatbot-container" role="dialog" aria-modal="true" aria-label="Support Chatbot" (click)="$event.stopPropagation()"><!-- Chatbot Header --><header class="chatbot-header"><div class="chatbot-header__left"><div class="chatbot-avatar" aria-hidden="true"><i class="fa-solid fa-robot"></i></div><div class="chatbot-header__titles"><h3 class="chatbot-title">How can I help you today?</h3><!--<p class="chatbot-subtitle">How can I help you today?</p>--></div></div><button class="close-chatbot" (click)="closeChatbot()" aria-label="Close chatbot"><i class="fa-solid fa-times"></i></button></header><!-- Chatbot Body --><div class="chatbot-body"><!-- Chat Messages --><div class="chat-messages" #chatMessages aria-live="polite" aria-atomic="false"><!-- Welcome Message --><div class="message bot-message"><img src="assets/pykara-logo.png" alt="Pykara logo" class="message-avatar" /><div class="message-content"><p>Hello! I'm your Py-Match assistant. I can help you with:</p><p>• Matching process questions</p><p>• Technical support</p><p>• Account assistance</p><p>What would you like to know?</p></div></div></div><!-- Quick Questions --><div class="quick-questions" role="list"><button type="button" class="quick-question-btn"(click)="askQuickQuestion('How does the matching process work?')"aria-label="How does the matching process work?">How matching works?</button><button type="button" class="quick-question-btn"(click)="askQuickQuestion('What personality models do you use?')"aria-label="What personality models do you use?">Personality models</button><button type="button" class="quick-question-btn"(click)="askQuickQuestion('How do I reset my password?')"aria-label="How do I reset my password?">Reset password</button><button type="button" class="quick-question-btn"(click)="askQuickQuestion('Contact support team')"aria-label="Contact support team">Contact support</button></div><!-- Chat Input --><div class="chat-input-container" role="form" aria-label="Send a message to support"><input type="text"class="chat-input"placeholder="Type your message here..."#chatInput(keyup.enter)="sendMessage(chatInput)"aria-label="Type your message"><button class="send-button" (click)="sendMessage(chatInput)" aria-label="Send message"><i class="fa-solid fa-paper-plane"></i><span class="send-text">Send</span></button></div></div></div></div>
123456789101112131415161718192021222324252627import { TestBed } from '@angular/core/testing';import { AppComponent } from './app.component';describe('AppComponent', () => {beforeEach(() => TestBed.configureTestingModule({declarations: [AppComponent]}));it('should create the app', () => {const fixture = TestBed.createComponent(AppComponent);const app = fixture.componentInstance;expect(app).toBeTruthy();});it(`should have as title 'py-match'`, () => {const fixture = TestBed.createComponent(AppComponent);const app = fixture.componentInstance;expect(app.title).toEqual('py-match');});it('should render title', () => {const fixture = TestBed.createComponent(AppComponent);fixture.detectChanges();const compiled = fixture.nativeElement as HTMLElement;expect(compiled.querySelector('.content span')?.textContent).toContain('py-match app is running!');});});123456789101112131415161718192021222324252627import { TestBed } from '@angular/core/testing';import { AppComponent } from './app.component';describe('AppComponent', () => {beforeEach(() => TestBed.configureTestingModule({declarations: [AppComponent]}));it('should create the app', () => {const fixture = TestBed.createComponent(AppComponent);const app = fixture.componentInstance;expect(app).toBeTruthy();});it(`should have as title 'py-match'`, () => {const fixture = TestBed.createComponent(AppComponent);const app = fixture.componentInstance;expect(app.title).toEqual('py-match');});it('should render title', () => {const fixture = TestBed.createComponent(AppComponent);fixture.detectChanges();const compiled = fixture.nativeElement as HTMLElement;expect(compiled.querySelector('.content span')?.textContent).toContain('py-match app is running!');});});
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128import { Component } from '@angular/core';import { Router, RouterOutlet } from '@angular/router';import { CommonModule } from '@angular/common';import { SignupService } from './auth/sign-up/sign-up.service';import { SignInComponent } from './auth/sign-in/sign-in.component';import { SignUpComponent } from './auth/sign-up/sign-up.component';@Component({selector: 'app-root',standalone: true,imports: [RouterOutlet, CommonModule, SignInComponent, SignUpComponent],templateUrl: './app.component.html',styleUrls: ['./app.component.css']})export class AppComponent {title = 'py-match';showMarriageSubnav = false;isSignedIn = false;authModal: 'signin' | 'signup' | null = null; // global auth modal stateconstructor(private router: Router, private signupService: SignupService) {// Check if user is signed inthis.isSignedIn = !!localStorage.getItem('auth_token');}// Show intro-only nav items (Features, How it works) only on intro pageget isIntroPage(): boolean {const url = (this.router.url || '').split('?')[0];return url === '/' || url.startsWith('/intro');}// Show liked button only on matching list pageget isMatchingPage(): boolean {const url = (this.router.url || '').split('?')[0];return url.startsWith('/matchinglist');}toggleMarriageSubnav(): void {this.showMarriageSubnav = !this.showMarriageSubnav;}hideMarriageSubnav(): void {this.showMarriageSubnav = false;}onSelectRole(role: string): void {const userId = localStorage.getItem('user_id');if (!userId) {alert('Please sign in first.');return;}// Navigate based on roleif (role === 'marriage') {this.router.navigate(['/question-answer'], { queryParams: { role: 'marriage' } });} else {this.router.navigate(['/question-answer'], { queryParams: { role } });}this.hideMarriageSubnav();}// Open auth modals instead of routingonOpenSignIn(): void { this.authModal = 'signin'; }onOpenSignUp(): void { this.authModal = 'signup'; }closeAuthModal(evt?: MouseEvent): void {if (evt && (evt.target as HTMLElement).classList.contains('modal-backdrop')) {this.authModal = null;} else if (!evt) {this.authModal = null;}}// Sign outonSignOut(): void {this.isSignedIn = false;localStorage.removeItem('auth_token');localStorage.removeItem('user_id');this.router.navigate(['/']);}navigateToProfile(): void {const userId = localStorage.getItem('user_id');if (!userId) { alert('Please sign in first.'); return; }this.router.navigate(['/question-answer'], { queryParams: { role: 'marriage' } });this.hideMarriageSubnav();}navigateToExpectations(): void { this.hideMarriageSubnav(); this.router.navigate(['/userPreference']); }navigateToAssessment(): void { this.hideMarriageSubnav(); this.router.navigate(['/llmquiz']); }navigateToMatchingProfile(): void { this.hideMarriageSubnav(); this.router.navigate(['/matchinglist']); }navigateToLikedProfiles(): void {this.router.navigate(['/matchinglist'], { queryParams: { view: 'liked' } });}scrollToFeatures(): void { document.getElementById('features')?.scrollIntoView({ behavior: 'smooth' }); }scrollToJourney(): void { document.getElementById('journey')?.scrollIntoView({ behavior: 'smooth' }); }goHome(): void { this.router.navigate(['/']); }selectRole(role: string): void {const userId = localStorage.getItem('user_id');if (!userId) { alert('Please sign in first.'); return; }this.signupService.assignRole(+userId, role).subscribe({next: (res: any) => {console.log('Role saved:', res);this.router.navigate(['/question-answer'], { queryParams: { role } });},error: (err: any) => {console.error('Role assign failed:', err);alert('Failed to assign role.');}});}// Auth modal child callbacksonSignInSuccess(): void {this.isSignedIn = true;// Placeholder: set token if backend integratesif (!localStorage.getItem('auth_token')) {localStorage.setItem('auth_token', 'true');}this.authModal = null;}onSignUpSuccess(): void {// After signup, show sign-in formthis.authModal = 'signin';}}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226import { Component, OnInit, OnDestroy, ChangeDetectorRef, Injector, HostListener } from '@angular/core';import { Router, RouterOutlet, NavigationEnd } from '@angular/router';import { CommonModule } from '@angular/common';import { Subscription } from 'rxjs';import { SignupService } from './auth/sign-up/sign-up.service';import { AuthService } from './services/auth.service';import { SignInComponent } from './auth/sign-in/sign-in.component';import { SignUpComponent } from './auth/sign-up/sign-up.component';import { LlmQaService } from './services/llm-qa.service';@Component({selector: 'app-root',standalone: true,imports: [RouterOutlet, CommonModule, SignInComponent, SignUpComponent],templateUrl: './app.component.html',styleUrls: ['./app.component.css']})export class AppComponent implements OnInit, OnDestroy {title = 'py-match';showMarriageSubnav = false;showRoleSubnav = false;activeRoleMenu: string | null = null;isSignedIn = false;authModal: 'signin' | 'signup' | null = null;userFullName: string = '';userInitials: string = '';showChatbot = false;// Progress tracking propertiesprofileCompleted = false;expectationsCompleted = false;assessmentCompleted = false;matchingCompleted = false;// Assessment popup stateshowAssessmentPopup = false;// NEW: Sign out confirmation popupshowSignOutPopup = false;private authSubscription!: Subscription;private routerEventsSub!: Subscription;constructor(private router: Router,private signupService: SignupService,private authService: AuthService,private changeDetectorRef: ChangeDetectorRef,private injector: Injector) {// Expose component instance for direct access(window as any).appComponentRef = this;}ngOnInit() {// Listen for auth state changes from other componentswindow.addEventListener('authStateChanged', () => {console.log('?? Auth state change detected in AppComponent');this.changeDetectorRef.detectChanges();});// Subscribe to authentication state changes from AuthServicethis.authSubscription = this.authService.userId$.subscribe(userId => {this.isSignedIn = !!userId;if (userId) {this.loadUserData(userId);console.log('? User signed in, loading data for user:', userId);} else {this.userFullName = '';this.userInitials = '';// Load progress from localStorage when signed outthis.loadProgressFromAnySource();console.log('?? User signed out, loading preserved progress from localStorage');}// Force UI update when auth state changesthis.changeDetectorRef.detectChanges();});// Listen for progress updates from other componentsthis.setupProgressListeners();// Also listen for storage events to sync across tabswindow.addEventListener('storage', (event) => {if (event.key?.startsWith('user_progress_')) {this.syncProgressFromStorage();}});// Load progress from localStorage on initial app load (for returning users)this.loadInitialProgress();// Expose methods globally for direct access(window as any).markProfileCompleted = () => {this.markStepCompleted('profile');};(window as any).markExpectationsCompleted = () => {this.markStepCompleted('expectations');};(window as any).markAssessmentCompleted = () => {this.markStepCompleted('assessment');};(window as any).markMatchingCompleted = () => {this.markStepCompleted('matching');};// Listen to router events to toggle body scrollthis.routerEventsSub = this.router.events.subscribe(event => {if (event instanceof NavigationEnd) {this.toggleBodyScroll();}});// Initial checkthis.toggleBodyScroll();}ngOnDestroy() {if (this.authSubscription) {this.authSubscription.unsubscribe();}// Clean up global methodsif ((window as any).markProfileCompleted) {delete (window as any).markProfileCompleted;}if ((window as any).markExpectationsCompleted) {delete (window as any).markExpectationsCompleted;}if ((window as any).markAssessmentCompleted) {delete (window as any).markAssessmentCompleted;}if ((window as any).markMatchingCompleted) {delete (window as any).markMatchingCompleted;}if ((window as any).appComponentRef) {delete (window as any).appComponentRef;}if (this.routerEventsSub) {this.routerEventsSub.unsubscribe();}}// NEW: Load progress on initial app load (for returning users)private loadInitialProgress(): void {// Always load progress on app initialization, regardless of auth statethis.loadProgressFromAnySource();console.log('?? Initial progress loaded:', {profile: this.profileCompleted,expectations: this.expectationsCompleted,assessment: this.assessmentCompleted,matching: this.matchingCompleted,isSignedIn: this.isSignedIn});}// NEW: Try to load progress from any user in localStorageprivate tryToLoadProgressFromAnyUser(): void {// Look for any user progress in localStoragefor (let i = 0; i < localStorage.length; i++) {const key = localStorage.key(i);if (key?.startsWith('user_progress_')) {try {const progressData = JSON.parse(localStorage.getItem(key) || '{}');this.profileCompleted = progressData.profileCompleted || false;this.expectationsCompleted = progressData.expectationsCompleted || false;this.assessmentCompleted = progressData.assessmentCompleted || false;this.matchingCompleted = progressData.matchingCompleted || false;console.log('?? Loaded progress from localStorage (no user):', progressData);break;} catch (e) {console.error('Error parsing progress data:', e);}}}}private syncProgressFromStorage(): void {const userId = this.authService.userId;if (userId) {const progressData = localStorage.getItem(`user_progress_${userId}`);if (progressData) {try {const progress = JSON.parse(progressData);this.profileCompleted = progress.profileCompleted || false;this.expectationsCompleted = progress.expectationsCompleted || false;this.assessmentCompleted = progress.assessmentCompleted || false;this.matchingCompleted = progress.matchingCompleted || false;console.log('?? Progress synced from localStorage:', progress);} catch (e) {console.error('Error parsing progress data:', e);}} else {console.log('?? No progress data found in localStorage for user:', userId);}}}private setupProgressListeners(): void {// Listen for profile completion eventswindow.addEventListener('profileCompleted', (event: any) => {console.log('?? PROFILE COMPLETED EVENT RECEIVED - AppComponent');console.log('?? Event details:', event.detail);this.profileCompleted = true;this.saveProgress();console.log('? Progress after update:', {profile: this.profileCompleted,expectations: this.expectationsCompleted,assessment: this.assessmentCompleted,matching: this.matchingCompleted});// Force UI updatethis.changeDetectorRef.detectChanges();});// Listen for expectations completion eventswindow.addEventListener('expectationsCompleted', (event: any) => {console.log('?? EXPECTATIONS COMPLETED EVENT RECEIVED - AppComponent');this.expectationsCompleted = true;this.saveProgress();this.changeDetectorRef.detectChanges();});// Listen for assessment completion eventswindow.addEventListener('assessmentCompleted', (event: any) => {console.log('?? ASSESSMENT COMPLETED EVENT RECEIVED - AppComponent');this.assessmentCompleted = true;this.saveProgress();this.changeDetectorRef.detectChanges();});// Listen for matching completion eventswindow.addEventListener('matchingCompleted', (event: any) => {console.log('?? MATCHING COMPLETED EVENT RECEIVED - AppComponent');this.matchingCompleted = true;this.saveProgress();this.changeDetectorRef.detectChanges();});}// UPDATED: Load user data and check database progressprivate loadUserData(userId: number): void {this.getUserInfo(userId);this.checkDatabaseProgress(userId);}private getUserInfo(userId: number): void {const userData = sessionStorage.getItem('user_data');if (userData) {try {const user = JSON.parse(userData);this.userFullName = user.name || '';this.userInitials = this.getInitials(this.userFullName);return;} catch (e) {console.error('Error parsing user data from storage:', e);}}this.userFullName = 'User';this.userInitials = 'US';}private getInitials(fullName: string): string {if (!fullName) return 'US';const names = fullName.trim().split(' ');if (names.length === 1) {return names[0].substring(0, 2).toUpperCase();} else {return (names[0].substring(0, 1) + names[names.length - 1].substring(0, 1)).toUpperCase();}}// UPDATED: Check database progress for all steps - FIXED to properly handle responsesprivate checkDatabaseProgress(userId: number): void {if (!userId) return;console.log('?? Checking database progress for user:', userId);// Check Marriage profile completionthis.signupService.checkMarriageProfile(userId).subscribe({next: (profileRes: any) => {const profileExists = profileRes.exists || false;console.log('? Marriage profile check:', profileExists);// Only update if we found data in databaseif (profileExists) {this.profileCompleted = true;this.saveProgress();this.changeDetectorRef.detectChanges();} else {this.profileCompleted = false;this.saveProgress();this.changeDetectorRef.detectChanges();}},error: (err: any) => {console.log('? Marriage profile check failed:', err);// Set to false on error for new usersthis.profileCompleted = false;this.saveProgress();this.changeDetectorRef.detectChanges();}});// Check Expectations completionthis.signupService.checkExpectations(userId).subscribe({next: (expectationsRes: any) => {const expectationsExists = expectationsRes.exists || false;console.log('? Expectations check:', expectationsExists);if (expectationsExists) {this.expectationsCompleted = true;this.saveProgress();this.changeDetectorRef.detectChanges();} else {this.expectationsCompleted = false;this.saveProgress();this.changeDetectorRef.detectChanges();}},error: (err: any) => {console.log('? Expectations check failed:', err);this.expectationsCompleted = false;this.saveProgress();this.changeDetectorRef.detectChanges();}});// Check Assessment completionthis.signupService.checkAssessment(userId).subscribe({next: (assessmentRes: any) => {const assessmentExists = assessmentRes.exists || false;console.log('? Assessment check:', assessmentExists);if (assessmentExists) {this.assessmentCompleted = true;this.matchingCompleted = true; // Matching is available if assessment is completedthis.saveProgress();this.changeDetectorRef.detectChanges();} else {this.assessmentCompleted = false;this.matchingCompleted = false;this.saveProgress();this.changeDetectorRef.detectChanges();}},error: (err: any) => {console.log('? Assessment check failed:', err);this.assessmentCompleted = false;this.matchingCompleted = false;this.saveProgress();this.changeDetectorRef.detectChanges();}});}private saveProgress(): void {const userId = this.authService.userId;const progressData = {profileCompleted: this.profileCompleted,expectationsCompleted: this.expectationsCompleted,assessmentCompleted: this.assessmentCompleted,matchingCompleted: this.matchingCompleted,lastUpdated: new Date().toISOString()};if (userId) {// Save user-specific progresslocalStorage.setItem(`user_progress_${userId}`, JSON.stringify(progressData));console.log('?? Progress saved to user localStorage:', progressData);} else {// Save anonymous progresslocalStorage.setItem('anonymous_progress', JSON.stringify(progressData));console.log('?? Progress saved to anonymous localStorage:', progressData);}}get isIntroPage(): boolean {const url = (this.router.url || '').split('?')[0];return url === '/' || url.startsWith('/intro');}get isMatchingPage(): boolean {const url = (this.router.url || '').split('?')[0];return url.startsWith('/matchinglist');}// ? ADDED: Calculate progress percentagegetProgressPercentage(): number {const totalSteps = 4;const completedSteps = [this.profileCompleted,this.expectationsCompleted,this.assessmentCompleted,this.matchingCompleted].filter(Boolean).length;return (completedSteps / totalSteps) * 100;}// ? ADDED: Navigation methodsgoHome(): void {// If already on intro/home page, just scroll to top smoothlyif (this.isIntroPage) {try {window.scrollTo({ top: 0, behavior: 'smooth' });} catch (e) {// fallbackwindow.scrollTo(0, 0);}return;}this.router.navigate(['/']);}// Scroll methodsscrollToFeatures(): void {const featuresElement = document.getElementById('features');if (featuresElement) {featuresElement.scrollIntoView({ behavior: 'smooth' });}}scrollToJourney(): void {const journeyElement = document.getElementById('journey');if (journeyElement) {journeyElement.scrollIntoView({ behavior: 'smooth' });}}/*** Scroll to FAQ section (specialTitle) from any page.* If not on intro page, navigate to intro then scroll.*/scrollToFAQ(): void {// If already on intro page, scroll directlyif (this.isIntroPage) {const faqSection = document.getElementById('specialTitle');if (faqSection) {faqSection.scrollIntoView({ behavior: 'smooth', block: 'start' });}} else {// Navigate to intro page, then scroll after navigationthis.router.navigate(['/']).then(() => {setTimeout(() => {const faqSection = document.getElementById('specialTitle');if (faqSection) {faqSection.scrollIntoView({ behavior: 'smooth', block: 'start' });}}, 300);});}}// Role subnavigation methodstoggleRoleSubnav(): void {this.showRoleSubnav = !this.showRoleSubnav;if (!this.showRoleSubnav) {this.activeRoleMenu = null;}}hideRoleSubnav(): void {this.showRoleSubnav = false;this.activeRoleMenu = null;}toggleRoleMenu(menu: string): void {this.activeRoleMenu = this.activeRoleMenu === menu ? null : menu;}// UPDATED: Progress step validation - FIXED to properly check database progressisStepEnabled(step: string): boolean {console.log(`?? Checking if step "${step}" is enabled:`, {profile: this.profileCompleted,expectations: this.expectationsCompleted,assessment: this.assessmentCompleted,matching: this.matchingCompleted,isSignedIn: this.isSignedIn});// If user is not signed in, only allow profile stepif (!this.isSignedIn) {return step === 'profile';}// For signed-in users, steps remain enabled once completedswitch (step) {case 'profile':return true; // Always enabled for signed-in userscase 'expectations':// Enabled if profile is completed OR if expectations were already completedreturn this.profileCompleted || this.expectationsCompleted;case 'assessment':// Enabled if expectations are completed OR if assessment was already completedreturn this.expectationsCompleted || this.assessmentCompleted;case 'matching':// Enabled if assessment is completed OR if matching was already completedreturn this.assessmentCompleted || this.matchingCompleted;default:return false;}}// UPDATED: Navigation method that directly navigates to profilenavigateToProfile(role: string): void {const userId = this.authService.userId;if (!userId) {this.authModal = 'signin';return;}// Directly navigate to profile, don't use next step logicconsole.log('?? AppComponent - Direct navigation to profile for role:', role);this.router.navigate(['/question-answer'], {queryParams: {role: role,user_id: userId}});}// Helper method to determine next step (same logic as IntroPageComponent)private getNextAvailableStep(): string {console.log('?? AppComponent - Progress data for navigation:', {profile: this.profileCompleted,expectations: this.expectationsCompleted,assessment: this.assessmentCompleted,matching: this.matchingCompleted});// Use the same logic as sub-nav to determine next stepif (this.isStepEnabled('profile') && !this.profileCompleted) {console.log('?? Next step: Profile (enabled and not completed)');return 'profile';} else if (this.isStepEnabled('expectations') && !this.expectationsCompleted) {console.log('?? Next step: Expectations (enabled and not completed)');return 'expectations';} else if (this.isStepEnabled('assessment') && !this.assessmentCompleted) {console.log('?? Next step: Assessment (enabled and not completed)');return 'assessment';} else if (this.isStepEnabled('matching') && !this.matchingCompleted) {console.log('?? Next step: Matching (enabled and not completed)');return 'matching';} else {// If all steps are completed, default to matchingconsole.log('?? Next step: Matching (all steps completed or default)');return 'matching';}}// Helper method to navigate to specific stepprivate navigateToStep(step: string, role: string): void {const userId = this.authService.userId;if (!userId) return;switch (step) {case 'profile':this.router.navigate(['/question-answer'], {queryParams: {role: role,user_id: userId}});break;case 'expectations':this.router.navigate(['/userpreferences'], {queryParams: { user_id: userId }});break;case 'assessment':// Direct navigation to assessment without checking completionthis.router.navigate(['/llmquiz'], {queryParams: {user_id: userId,show_welcome: 'true'}});break;case 'matching':this.router.navigate(['/matchinglist'], {queryParams: { user_id: userId }});break;default:// Default to profile if something goes wrongthis.router.navigate(['/question-answer'], {queryParams: {role: role,user_id: userId}});}}navigateToExpectations(role: string): void {const userId = this.authService.userId;console.log('?? Navigate to expectations - User ID:', userId);if (!userId) {console.log('User not authenticated, showing signin modal');this.authModal = 'signin';return;}if (!this.isStepEnabled('expectations')) {alert('Please complete your Profile first before setting expectations.');return;}console.log('? Navigating to user preferences...');this.hideRoleSubnav();this.router.navigate(['/userpreferences'], {queryParams: { user_id: userId }}).then(success => {console.log('? Navigation successful:', success);}).catch(error => {console.error('? Navigation failed:', error);});}// UPDATED: navigateToAssessment method to show popup instead of direct navigationnavigateToAssessment(role: string): void {const userId = this.authService.userId;if (!userId) {this.authModal = 'signin';return;}if (!this.isStepEnabled('assessment')) {alert('Please complete Your Expectations first before taking the assessment.');return;}// ? FIXED: Use injected LlmQaServiceconst llmQaService = this.injector.get(LlmQaService);llmQaService.checkAssessmentCompletion(userId.toString()).subscribe({next: (response: any) => {if (response.has_taken_assessment) {// User already took assessment, show popup instead of navigatingconsole.log('?? User has already taken assessment, showing popup');this.showAssessmentPopup = true;this.hideRoleSubnav();} else {// User hasn't taken assessment, proceed to quizthis.hideRoleSubnav();this.router.navigate(['/llmquiz'], {queryParams: {user_id: userId,show_welcome: 'true'}});}},error: (err: any) => {console.error('Error checking assessment completion:', err);// If check fails, allow navigation to quizthis.hideRoleSubnav();this.router.navigate(['/llmquiz'], {queryParams: {user_id: userId,show_welcome: 'true'}});}});}navigateToMatchingProfile(role: string): void {const userId = this.authService.userId;if (!userId) {this.authModal = 'signin';return;}if (!this.isStepEnabled('matching')) {alert('Please complete the Assessment first to view your matching profile.');return;}this.hideRoleSubnav();this.router.navigate(['/matchinglist'], {queryParams: { user_id: userId }});}// NEW: Method to handle popup actionscloseAssessmentPopup(): void {this.showAssessmentPopup = false;}navigateToMatchingFromPopup(): void {this.showAssessmentPopup = false;const userId = this.authService.userId;if (userId) {this.router.navigate(['/matchinglist'], {queryParams: { user_id: userId }});}}goHomeFromPopup(): void {this.showAssessmentPopup = false;this.goHome();}// Other navigation methods remain the same...navigateToJobRequirements(): void {const userId = this.authService.userId;if (!userId) {this.authModal = 'signin';return;}this.hideRoleSubnav();console.log('Navigate to job requirements');this.router.navigate(['/job-requirements'], {queryParams: { user_id: userId }});}navigateToInterviewAssessment(): void {const userId = this.authService.userId;if (!userId) {this.authModal = 'signin';return;}this.hideRoleSubnav();console.log('Navigate to interview assessment');this.router.navigate(['/interview-assessment'], {queryParams: { user_id: userId }});}navigateToCandidateMatching(): void {const userId = this.authService.userId;if (!userId) {this.authModal = 'signin';return;}this.hideRoleSubnav();console.log('Navigate to candidate matching');this.router.navigate(['/candidate-matching'], {queryParams: { user_id: userId }});}navigateToBusinessGoals(): void {const userId = this.authService.userId;if (!userId) {this.authModal = 'signin';return;}this.hideRoleSubnav();console.log('Navigate to business goals');this.router.navigate(['/business-goals'], {queryParams: { user_id: userId }});}navigateToPartnershipAssessment(): void {const userId = this.authService.userId;if (!userId) {this.authModal = 'signin';return;}this.hideRoleSubnav();console.log('Navigate to partnership assessment');this.router.navigate(['/partnership-assessment'], {queryParams: { user_id: userId }});}navigateToPartnerMatching(): void {const userId = this.authService.userId;if (!userId) {this.authModal = 'signin';return;}this.hideRoleSubnav();console.log('Navigate to partner matching');this.router.navigate(['/partner-matching'], {queryParams: { user_id: userId }});}// Legacy methodstoggleMarriageSubnav(): void {this.showMarriageSubnav = !this.showMarriageSubnav;}hideMarriageSubnav(): void {this.showMarriageSubnav = false;}onSelectRole(role: string): void {const userId = this.authService.userId;if (!userId) {this.authModal = 'signin';return;}if (role === 'marriage') {this.router.navigate(['/question-answer'], {queryParams: {role: 'marriage',user_id: userId}});} else {this.router.navigate(['/question-answer'], {queryParams: {role,user_id: userId}});}this.hideMarriageSubnav();}// Auth methodsonOpenSignIn(): void {this.authModal = 'signin';}onOpenSignUp(): void {this.authModal = 'signup';}closeAuthModal(evt?: MouseEvent): void {if (evt && (evt.target as HTMLElement).classList.contains('modal-backdrop')) {this.authModal = null;} else if (!evt) {this.authModal = null;}}// Replace the existing onSignOut method with this:onSignOut(): void {console.log('?? Saving progress before sign out...');this.saveProgress();// Show the sign-out popup firstthis.showSignOutPopup = true;this.hideMarriageSubnav();this.hideRoleSubnav();console.log('?? Showing sign out popup, will logout after animation');console.log('?? Current progress state:', {profile: this.profileCompleted,expectations: this.expectationsCompleted,assessment: this.assessmentCompleted,matching: this.matchingCompleted});// Wait for the tick animation to complete (4 seconds) before actually logging outsetTimeout(() => {this.showSignOutPopup = false;// Now perform the actual logoutthis.authService.logout();this.isSignedIn = false;this.userFullName = '';this.userInitials = '';this.changeDetectorRef.detectChanges();console.log('? Sign out completed after animation');}, 4000);this.changeDetectorRef.detectChanges();}// UPDATED: Auth success handlersonSignInSuccess(): void {this.isSignedIn = true;this.authModal = null;const userId = this.authService.userId;if (userId) {this.loadUserData(userId);this.mergeProgressOnSignIn(userId);}this.router.navigate(['/']);}onSignUpSuccess(): void {// After a successful sign-up, prompt the user to sign in.// Navigate home then open the sign-in modal so the user can complete authentication.this.router.navigate(['/']).then(() => {this.authModal = 'signin';// Ensure UI updatesthis.changeDetectorRef.detectChanges();});}// Legacy navigation methodsnavigateToProfileLegacy(): void {this.navigateToProfile('marriage');}navigateToExpectationsLegacy(): void {this.navigateToExpectations('marriage');}navigateToAssessmentLegacy(): void {this.navigateToAssessment('marriage');}navigateToMatchingProfileLegacy(): void {this.navigateToMatchingProfile('marriage');}navigateToLikedProfiles(): void {const userId = this.authService.userId;if (!userId) {this.authModal = 'signin';return;}this.router.navigate(['/matchinglist'], {queryParams: {user_id: userId,view: 'liked'}});}// Role selectionselectRole(role: string): void {const userId = this.authService.userId;if (!userId) {this.authModal = 'signin';return;}this.signupService.assignRole(userId, role).subscribe({next: (res: any) => {console.log('Role saved:', res);this.router.navigate(['/question-answer'], {queryParams: {role,user_id: userId}});},error: (err: any) => {console.error('Role assign failed:', err);alert('Failed to assign role.');}});}// UPDATED: Chatbot methods to match IntroPageComponent functionalityopenChatbot(): void {this.showChatbot = true;document.body.style.overflow = 'hidden';this.changeDetectorRef.detectChanges();}closeChatbot(evt?: MouseEvent): void {if (evt && (evt.target as HTMLElement).classList.contains('modal-backdrop')) {this.showChatbot = false;} else if (!evt) {this.showChatbot = false;}if (!this.authModal) {document.body.style.overflow = '';}this.changeDetectorRef.detectChanges();}askQuickQuestion(question: string): void {console.log('Quick question asked:', question);this.addUserMessage(question);// Simulate bot response after delaysetTimeout(() => {let response = '';switch (question) {case 'How does the matching process work?':response = 'Our matching process uses adaptive assessment technology combined with established psychological frameworks. You\'ll complete a 15-20 minute assessment, and our system analyzes your responses to find compatible matches based on behavioral patterns and compatibility factors.';break;case 'What personality models do you use?':response = 'We use several established psychological frameworks including the Big Five personality model (Openness, Conscientiousness, Extraversion, Agreeableness, Neuroticism), along with complementary models for specific contexts like marriage compatibility and workplace dynamics.';break;case 'How do I reset my password?':response = 'To reset your password, click on the "Sign In" button, then select "Forgot Password" on the login screen. You\'ll receive an email with instructions to reset your password. If you need further assistance, contact our support team at support@pykara.com.';break;case 'Contact support team':response = 'You can reach our human support team by emailing info@pykara.ai or calling +91 99941 90964. Our support hours are Monday-Friday, 9 AM - 6 PM EST. For urgent matters, please include "URGENT" in your email subject line.';break;default:response = 'Thank you for your question. Our support team will get back to you shortly. For immediate assistance, please contact us at support@pykara.com';}this.addBotMessage(response);}, 1000);}sendMessage(chatInput: any): void {const message = chatInput.value.trim();if (message) {console.log('Message sent:', message);this.addUserMessage(message);setTimeout(() => {this.addBotMessage('Thank you for your message. Our support team will review your question and get back to you within 24 hours. For immediate assistance, please contact us at info@pykara.ai or call +91 99941 90964.');}, 1000);chatInput.value = '';}}private addUserMessage(message: string): void {const chatMessages = document.querySelector('.chat-messages');if (chatMessages) {const userMessage = document.createElement('div');userMessage.className = 'message user-message';userMessage.innerHTML = `<div class="message-avatar"><i class="fa-solid fa-user"></i></div><div class="message-content"><p>${message}</p></div>`;chatMessages.appendChild(userMessage);this.scrollToBottom();}}private addBotMessage(message: string): void {const chatMessages = document.querySelector('.chat-messages');if (chatMessages) {const botMessage = document.createElement('div');botMessage.className = 'message bot-message';botMessage.innerHTML = `<div class="message-avatar"><i class="fa-solid fa-robot"></i></div><div class="message-content"><p>${message}</p></div>`;chatMessages.appendChild(botMessage);this.scrollToBottom();}}private scrollToBottom(): void {setTimeout(() => {const chatMessages = document.querySelector('.chat-messages');if (chatMessages) {chatMessages.scrollTop = chatMessages.scrollHeight;}}, 100);}// CORRECTED: Single onEsc method that handles all cases@HostListener('document:keydown.escape')onEsc(): void {// Don't allow closing the sign-out popup with ESC during animationif (this.showSignOutPopup) {return; // Prevent closing sign-out popup with ESC}if (this.showChatbot) {this.closeChatbot();} else if (this.authModal) {this.closeAuthModal();} else if (this.showAssessmentPopup) {this.showAssessmentPopup = false;}}// Method to manually update progressupdateProgress(step: string, completed: boolean): void {console.log(`?? Updating progress: ${step} = ${completed}`);switch (step) {case 'profile':this.profileCompleted = completed;break;case 'expectations':this.expectationsCompleted = completed;break;case 'assessment':this.assessmentCompleted = completed;break;case 'matching':this.matchingCompleted = completed;break;}this.saveProgress();this.changeDetectorRef.detectChanges();}// Add this method to trigger progress updates from other componentsmarkStepCompleted(step: string): void {console.log(`?? Marking step as completed: ${step}`);this.updateProgress(step, true);this.saveProgress();this.changeDetectorRef.detectChanges();const event = new CustomEvent(`${step}Completed`, {detail: { timestamp: Date.now() }});window.dispatchEvent(event);console.log(`? Step ${step} marked as completed`);}// Add a method to force progress refreshrefreshProgress(): void {this.syncProgressFromStorage();this.changeDetectorRef.detectChanges();}// Debug method to check current statedebugProgress(): void {console.log('?? DEBUG - Current Progress State:', {profileCompleted: this.profileCompleted,expectationsCompleted: this.expectationsCompleted,assessmentCompleted: this.assessmentCompleted,matchingCompleted: this.matchingCompleted,userId: this.authService.userId,localStorage: localStorage.getItem(`user_progress_${this.authService.userId}`)});}// NEW: Load progress from any available source (user-specific or general)private loadProgressFromAnySource(): void {const currentUserId = this.authService.userId;if (currentUserId) {this.syncProgressFromStorage();} else {const genericProgress = localStorage.getItem('anonymous_progress');if (genericProgress) {try {const progressData = JSON.parse(genericProgress);this.profileCompleted = progressData.profileCompleted || false;this.expectationsCompleted = progressData.expectationsCompleted || false;this.assessmentCompleted = progressData.assessmentCompleted || false;this.matchingCompleted = progressData.matchingCompleted || false;console.log('?? Loaded anonymous progress from localStorage:', progressData);} catch (e) {console.error('Error parsing anonymous progress data:', e);}} else {this.tryToLoadProgressFromAnyUser();}}}// NEW: Merge anonymous progress with user progress when signing inprivate mergeProgressOnSignIn(userId: number): void {const anonymousProgress = localStorage.getItem('anonymous_progress');let anonymousData: any = {};if (anonymousProgress) {try {anonymousData = JSON.parse(anonymousProgress);console.log('?? Found anonymous progress to merge:', anonymousData);} catch (e) {console.error('Error parsing anonymous progress:', e);}}const userProgress = localStorage.getItem(`user_progress_${userId}`);let userData: any = {};if (userProgress) {try {userData = JSON.parse(userProgress);console.log('?? Found existing user progress:', userData);} catch (e) {console.error('Error parsing user progress:', e);}}const mergedProgress = {profileCompleted: userData.profileCompleted || anonymousData.profileCompleted || false,expectationsCompleted: userData.expectationsCompleted || anonymousData.expectationsCompleted || false,assessmentCompleted: userData.assessmentCompleted || anonymousData.assessmentCompleted || false,matchingCompleted: userData.matchingCompleted || anonymousData.matchingCompleted || false,lastUpdated: new Date().toISOString()};localStorage.setItem(`user_progress_${userId}`, JSON.stringify(mergedProgress));this.profileCompleted = mergedProgress.profileCompleted;this.expectationsCompleted = mergedProgress.expectationsCompleted;this.assessmentCompleted = mergedProgress.assessmentCompleted;this.matchingCompleted = mergedProgress.matchingCompleted;localStorage.removeItem('anonymous_progress');console.log('? Progress merged after sign in:', mergedProgress);this.changeDetectorRef.detectChanges();}private toggleBodyScroll(): void {const url = (this.router.url || '').split('?')[0];if (url === '/' || url.startsWith('/intro')) {document.body.classList.add('body-scrollable');} else {document.body.classList.remove('body-scrollable');}}}
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135:host {display: block}.auth-box {width: 49vw;display: grid;grid-template-columns: 1fr;background: #2b1b6b;border-radius: 14px;overflow: hidden;box-shadow: 0 20px 60px rgba(0,0,0,.35)}.panel-right {position: relative;background: radial-gradient(120% 120% at 20% 50%,rgba(0,0,0,.25) 0%,rgba(0,0,0,0) 60%)}.panel-right::before {content: "";position: absolute;inset: 0;background: linear-gradient(90deg,rgba(0,0,0,.45) 0%,rgba(0,0,0,0) 26%);pointer-events: none}.right-image img {max-width: 100%;height: auto;display: block}.panel-left {padding: clamp(22px,3.5vw,36px);background: white;color: black;}.brand-mark {width: 4vw;margin-bottom: 14px;border: 2px solid #b1b1b17d;box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;border-radius:50%;}.title {margin: 0 0 6px;font-size: clamp(22px,3vw,26px);font-weight: 700}.form {display: grid;gap: 12px}.field {display: grid;gap: 6px}label {font-weight: 600;font-size: 13px;}input[type="email"], input[type="password"] {color: black;border: 1px solid rgb(0 0 0 / 57%);border-radius: 10px;padding: 11px 12px;outline: none}input::placeholder {color: #808080;}input:focus {border-color: #a78bfa;box-shadow: 0 0 0 3px rgba(167,139,250,.25)}.error {color: red;font-size: 12px}.btn {width: 100%;border-radius: 999px;padding: 12px 18px;cursor: pointer}.btn-primary {background: #0b0f1a;color: #fff;border: none;font-weight: 700}.btn[aria-busy="true"] {opacity: .75;cursor: progress}.footnote {margin: 14px 0 0;font-size: 13px;}.footnote a {color: red;text-decoration: underline}@media(min-width:900px) {.auth-box {grid-template-columns: 520px 1fr}}.topTitle {display: flex;align-items: center;gap: 21px;}.topHeader {font-size: 1vw;}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204:host {display: block}.auth-box {width: 49vw;display: grid;grid-template-columns: 1fr;background: #2b1b6b;border-radius: 14px;overflow: hidden;box-shadow: 0 20px 60px rgba(0,0,0,.35)}.panel-right {position: relative;background: radial-gradient(120% 120% at 20% 50%,rgba(0,0,0,.25) 0%,rgba(0,0,0,0) 60%)}.panel-right::before {content: "";position: absolute;inset: 0;background: linear-gradient(90deg,rgba(0,0,0,.45) 0%,rgba(0,0,0,0) 26%);pointer-events: none}.right-image {position: relative;width: 100%;height: 100%;}.right-image img {width: 100%;height: 100%;display: block;}.footnote-container {position: absolute;bottom: clamp(20px, 3vw, 30px);left: 0;right: 0;text-align: center;z-index: 10;padding: 0 clamp(15px, 3vw, 25px);}.footnote {margin: 0;font-size: clamp(12px, 1.2vw, 14px);color: white;text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);background: rgb(16 29 32);backdrop-filter: blur(5px);-webkit-backdrop-filter: blur(5px);padding: 10px 15px;border-radius: 8px;display: inline-block;max-width: 90%;border: 1px solid #00ffef;}.footnote a {color: #FFEA00;text-decoration: none;font-weight: 600;transition: color 0.2s ease;margin-left: 5px;text-transform:uppercase;}.footnote a:hover {color: #F3BD00;text-decoration: underline;}.panel-left {padding: clamp(22px,3.5vw,36px);background: white;color: black;}.brand-mark {width: 4vw;margin-bottom: 14px;border: 2px solid #b1b1b17d;box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;border-radius: 50%;}.title {margin: 0 0 6px;font-size: clamp(22px,3vw,26px);font-weight: 700}.form {display: grid;gap: 12px}.field {display: grid;gap: 6px}label {font-weight: 600;font-size: 13px;}input[type="email"], input[type="password"] {color: black;border: 1px solid rgb(0 0 0 / 57%);border-radius: 10px;padding: 11px 12px;outline: none}input::placeholder {color: #808080;}input:focus {border-color: #a78bfa;box-shadow: 0 0 0 3px rgba(167,139,250,.25)}.error {color: red;font-size: 12px}.btn {width: 100%;border-radius: 999px;padding: 12px 18px;cursor: pointer}.btn-primary {background: #0b0f1a;color: #fff;border: none;font-weight: 700}.btn[aria-busy="true"] {opacity: .75;cursor: progress}/* Remove old footnote styles */.panel-left .footnote {display: none;}.topTitle {display: flex;align-items: center;gap: 21px;}.topHeader {font-size: 1vw;}.error-message {color: #d32f2f;background-color: #ffebee;border: 1px solid #f5c6cb;padding: 12px;border-radius: 4px;margin: 16px 0;text-align: center;}/* Footnote pulse animation (yellow <-> white) - ensure local availability *//*@keyframes footnotePulseColor {0% { color: #FFD600; }50% { color: #FFFFFF; }100% { color: #FFD600; }}.footnote a.pulse {animation: footnotePulseColor 1s ease-in-out 0s 3;display: inline-block;color: #FFD600;*/ /* set initial color to match animation start *//*}*/@media(min-width:900px) {.auth-box {grid-template-columns: 520px 1fr}.right-image {min-height: 500px;}}
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152<section class="auth-page"><div class="auth-box" role="dialog" aria-labelledby="siTitle"><!-- Left (form) --><div class="panel-left"><div class="topTitle"><img class="brand-mark" src="/assets/pykara-logo.png" alt="Brand" /><span class="topHeader"><b>Welcome back!</b></span></div><h2 id="siTitle" class="title">Log in</h2><form class="form" [formGroup]="form" (ngSubmit)="submit()" novalidate><div class="field"><label for="email"><small *ngIf="controlHasError('email','required')" class="error">*</small></label><input id="email" type="email" formControlName="email" placeholder="you@example.com"[attr.aria-invalid]="controlHasError('email')" /><small *ngIf="controlHasError('email','email')" class="error">Enter a valid email.</small></div><div class="field"><label for="password">Password<small *ngIf="controlHasError('password','required')" class="error">*</small></label><input id="password" type="password" formControlName="password" placeholder="••••••••"[attr.aria-invalid]="controlHasError('password')" /><small *ngIf="controlHasError('password','minlength')" class="error">Use at least 6 characters.</small></div><button class="btn btn-primary" type="submit"[disabled]="form.invalid || submitting()" [attr.aria-busy]="submitting()">Sign in</button><p class="footnote">New here?<!-- Use click handler instead of routerLink --><a href="#" (click)="goToSignUp(); $event.preventDefault()">Create an account</a></p></form></div><!-- Right (image) --><div class="panel-right"><div class="right-image"><img src="/assets/user.png" alt="Decorative" /></div></div></div></section>12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061<section class="auth-page"><div class="auth-box" role="dialog" aria-labelledby="siTitle"><!-- Left (form) --><div class="panel-left"><div class="topTitle"><img class="brand-mark" src="/assets/pykara-logo.png" alt="Brand" /><span class="topHeader"><b>Welcome back!</b></span></div><h2 id="siTitle" class="title">Log in</h2><form class="form" [formGroup]="form" (ngSubmit)="submit()" novalidate><!-- Email Field --><div class="field"><label for="email"><small *ngIf="controlHasError('email','required')" class="error">*</small></label><input id="email" type="email" formControlName="email" placeholder="you@example.com"[attr.aria-invalid]="controlHasError('email')" /><small *ngIf="controlHasError('email','email')" class="error">Enter a valid email.</small></div><!-- Password Field --><div class="field"><label for="password">Password<small *ngIf="controlHasError('password','required')" class="error">*</small></label><input id="password" type="password" formControlName="password" placeholder="••••••••"[attr.aria-invalid]="controlHasError('password')" /><small *ngIf="controlHasError('password','minlength')" class="error">Use at least 6 characters.</small></div><!-- Error message --><div *ngIf="errorMessage()" class="error-message">{{ errorMessage() }}</div><!-- Submit Button --><button class="btn btn-primary" type="submit"[disabled]="form.invalid || submitting()" [attr.aria-busy]="submitting()">{{ submitting() ? 'Signing in...' : 'Sign in' }}</button></form></div><!-- Right (image) --><div class="panel-right"><div class="right-image"><img src="/assets/user.png" alt="Decorative" /><!-- Footnote Container --><div class="footnote-container"><p class="footnote">New here?<a href="#" (click)="goToSignUp(); $event.preventDefault()" [class.pulse]="showCreateAccountPulse()">Create an account</a></p></div></div></div></div></section>
123456789101112131415161718192021import { ComponentFixture, TestBed } from '@angular/core/testing';import { SignInComponent } from './sign-in.component';describe('SignInComponent', () => {let component: SignInComponent;let fixture: ComponentFixture<SignInComponent>;beforeEach(() => {TestBed.configureTestingModule({declarations: [SignInComponent]});fixture = TestBed.createComponent(SignInComponent);component = fixture.componentInstance;fixture.detectChanges();});it('should create', () => {expect(component).toBeTruthy();});});123456789101112131415161718192021import { ComponentFixture, TestBed } from '@angular/core/testing';import { SignInComponent } from './sign-in.component';describe('SignInComponent', () => {let component: SignInComponent;let fixture: ComponentFixture<SignInComponent>;beforeEach(() => {TestBed.configureTestingModule({declarations: [SignInComponent]});fixture = TestBed.createComponent(SignInComponent);component = fixture.componentInstance;fixture.detectChanges();});it('should create', () => {expect(component).toBeTruthy();});});
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263import { Component, ChangeDetectionStrategy, signal, Output, EventEmitter } from '@angular/core';import { CommonModule } from '@angular/common';import { ReactiveFormsModule, FormBuilder, Validators, FormGroup } from '@angular/forms';import { Router, RouterLink } from '@angular/router';@Component({selector: 'app-sign-in',standalone: true,imports: [CommonModule, ReactiveFormsModule, RouterLink],templateUrl: './sign-in.component.html',styleUrls: ['./sign-in.component.css'],changeDetection: ChangeDetectionStrategy.OnPush})export class SignInComponent {submitting = signal(false);form: FormGroup;@Output() switchToSignUp = new EventEmitter<void>();@Output() signInSuccess = new EventEmitter<void>();constructor(private fb: FormBuilder, private router: Router) {this.form = this.fb.group({email: ['', [Validators.required, Validators.email]],password: ['', [Validators.required, Validators.minLength(8)]],remember: [true]});}navigateHome() {this.router.navigate(['/']);}goToSignUp() {this.switchToSignUp.emit();}controlHasError(name: string, key?: string) {const c = this.form.get(name);if (!c) return false;if (!key) return c.invalid && (c.dirty || c.touched);return c.hasError(key) && (c.dirty || c.touched);}async submit() {if (this.form.invalid) {this.form.markAllAsTouched();return;}this.submitting.set(true);try {const payload = this.form.value;console.log('SIGN IN payload', payload);// Emit success event instead of alertthis.signInSuccess.emit();// Optional: You can also navigate or do other actions here// this.router.navigate(['/question-answer']);} finally {this.submitting.set(false);}}}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139import { Component, ChangeDetectionStrategy, signal, Output, EventEmitter } from '@angular/core';import { CommonModule } from '@angular/common';import { ReactiveFormsModule, FormBuilder, Validators, FormGroup } from '@angular/forms';import { Router, RouterLink } from '@angular/router';import { AuthService } from '../../services/auth.service';@Component({selector: 'app-sign-in',standalone: true,imports: [CommonModule, ReactiveFormsModule, RouterLink],templateUrl: './sign-in.component.html',styleUrls: ['./sign-in.component.css'],changeDetection: ChangeDetectionStrategy.OnPush})export class SignInComponent {submitting = signal(false);form: FormGroup;errorMessage = signal<string | null>(null);// Pulse flag as a signal to work with OnPush change detectionshowCreateAccountPulse = signal(false);@Output() switchToSignUp = new EventEmitter<void>();@Output() signInSuccess = new EventEmitter<void>();@Output() signInError = new EventEmitter<string>();constructor(private fb: FormBuilder,private router: Router,private authService: AuthService) {this.form = this.fb.group({email: ['', [Validators.required, Validators.email]],password: ['', [Validators.required, Validators.minLength(8)]],remember: [true]});}navigateHome() {this.router.navigate(['/']);}goToSignUp() {// clear pulse when user clicks the linkthis.showCreateAccountPulse.set(false);this.switchToSignUp.emit();}controlHasError(name: string, key?: string) {const c = this.form.get(name);if (!c) return false;if (!key) return c.invalid && (c.dirty || c.touched);return c.hasError(key) && (c.dirty || c.touched);}async submit() {if (this.form.invalid) {this.form.markAllAsTouched();return;}this.submitting.set(true);this.errorMessage.set(null);const { email, password } = this.form.value;try {this.authService.login(email, password).subscribe({next: (res: any) => {if (res && res.message === 'Login successful.' && res.user_id) {// Store user information in sessionStorage (primary)if (res.user_name) {sessionStorage.setItem('user_name', res.user_name);sessionStorage.setItem('userName', res.user_name);sessionStorage.setItem('name', res.user_name);// Keep localStorage as fallbacklocalStorage.setItem('user_name', res.user_name);localStorage.setItem('userName', res.user_name);localStorage.setItem('name', res.user_name);}// Store user data in sessionStorage for AppComponentif (res.user_name) {const userData = {name: res.user_name,email: email};sessionStorage.setItem('user_data', JSON.stringify(userData));}this.authService.setUserId(res.user_id);// Emit success event first so parent component can update statethis.signInSuccess.emit();// Don't navigate to /home - let the parent component handle the navigation// The parent component (IntroPageComponent) will handle where to go nextconsole.log('Sign in successful, user ID:', res.user_id);} else {// If backend returned unexpected response treat as invalid credentialsthis.handleError('Invalid email or password. Please try again.');}this.submitting.set(false);},error: (error: any) => {console.error('Sign-in error:', error);if (error.status === 401) {this.handleError('Invalid email or password. Please try again.');} else if (error.status === 404) {// Account not foundthis.handleError("Account doesn't exist. Please sign up.");// Trigger pulse on Create account footnote using signalthis.showCreateAccountPulse.set(true);setTimeout(() => {this.showCreateAccountPulse.set(false);}, 2500);} else if (error.status === 0) {this.handleError('Cannot connect to server. Please try again later.');} else {this.handleError('An error occurred. Please try again later.');}this.submitting.set(false);}});} catch (error: any) {console.error('Unexpected error:', error);this.handleError('An unexpected error occurred. Please try again.');this.submitting.set(false);}}private handleError(message: string) {this.errorMessage.set(message);this.signInError.emit(message);}}
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148:host {display: block}/*.auth-page {min-height: 100svh;display: grid;place-items: center;padding: clamp(16px,3vw,24px);background: linear-gradient(135deg,#5b21b6 0%,#7c3aed 50%,#4c1d95 100%);}*/.auth-box {width: 49vw;display: grid;grid-template-columns: 1fr;background: #2b1b6b;border-radius: 14px;overflow: hidden;box-shadow: 0 20px 60px rgba(0,0,0,.35);}.panel-right {position: relative;background: radial-gradient(120% 120% at 20% 50%, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 60%);}.panel-right::before {content: "";position: absolute;inset: 0;background: linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 26%);pointer-events: none;}.right-image {display: flex;align-items: center;justify-content: center;}.right-image img {max-width: 100%;height: auto;display: block}.panel-left {padding: clamp(22px,3.5vw,36px);background: white;color: black;}.brand-mark {width: 4vw;margin-bottom: 14px;border: 2px solid #b1b1b17d;box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;border-radius:50%;}.title {margin: 0 0 6px;font-size: clamp(22px,3vw,26px);font-weight: 700}.form {display: grid;gap: 12px}.field {display: grid;gap: 6px}label {font-weight: 600;font-size: 13px;}input[type="text"], input[type="password"] {color: #000000;border: 1px solid rgb(0 0 0 / 57%);border-radius: 10px;padding: 11px 12px;outline: none;}input::placeholder {color: #808080}input:focus {border-color: #a78bfa;box-shadow: 0 0 0 3px rgba(167,139,250,.25)}.error {color: red;font-size: 12px}.btn {width: 100%;border-radius: 999px;padding: 12px 18px;cursor: pointer}.btn-primary {background: #0b0f1a;color: #fff;border: none;font-weight: 700}.btn[aria-busy="true"] {opacity: .75;cursor: progress}.footnote {margin: 14px 0 0;font-size: 13px;}.footnote a {color: red;text-decoration: underline}@media(min-width:900px) {.auth-box {grid-template-columns: 520px 1fr}}.topTitle {display: flex;align-items: center;gap: 21px;}.topHeader {font-size: 1vw;}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865:host {display: block}.auth-box {width: 49vw;border-radius: 14px;position: relative;overflow: hidden;display: flex;}.panel-right::before {content: "";position: absolute;inset: 0;background: linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 26%);pointer-events: none;}.right-image {position: absolute;}.right-image img {width: 100%;height: 100%;display: block;}.panel-left {padding: clamp(22px,3.5vw,36px);background: white;color: black;position: relative;overflow: hidden;width: 100%;z-index: 1;}.brand-mark {width: 4vw;margin-bottom: 14px;border: 2px solid #b1b1b17d;box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;border-radius: 50%;}.title {margin: 0 0 6px;font-size: clamp(22px,3vw,26px);font-weight: 700}.form {display: grid;gap: 12px}.field {display: grid;gap: 6px;position: relative;}label {font-weight: 600;font-size: 13px;display: flex;align-items: center;flex-wrap: nowrap;white-space: nowrap;gap: 4px;}label .error {display: inline;margin-left: 0;flex-shrink: 0;}input[type="text"], input[type="password"] {color: #000000;border: 1px solid rgb(0 0 0 / 57%);border-radius: 10px;padding: 11px 12px;outline: none;}input::placeholder {color: #808080}input:focus {border-color: #a78bfa;box-shadow: 0 0 0 3px rgba(167,139,250,.25)}.error {color: red;font-size: 12px;display: block;width: 100%;}.btn {width: 100%;border-radius: 999px;padding: 12px 18px;cursor: pointer}.btn-primary {background: #0b0f1a;color: #fff;border: none;font-weight: 700}.btn[aria-busy="true"] {opacity: .75;cursor: progress}.footnote {margin: 14px 0 0;font-size: 13px;}.footnote a {color: red;text-decoration: underline}.topTitle {display: flex;align-items: center;gap: 21px;}.topHeader {font-size: 1vw;}/* Password Input Container */.password-input-container {position: relative;display: flex;align-items: center;}.password-input-container input {width: 100%;padding-right: 40px;}/* Password Toggle Eye Icon */.password-toggle {position: absolute;right: 12px;top: 50%;transform: translateY(-50%);cursor: pointer;user-select: none;opacity: 0.6;transition: opacity 0.2s ease;font-size: 16px;z-index: 2;}.password-toggle:hover {opacity: 1;}.password-toggle.visible {opacity: 0.8;}/* Password Requirements Tooltip */.password-tooltip {position: absolute;top: 100%;left: 0;right: 0;z-index: 1000;margin-top: 8px;}.tooltip-content {background: white;border: 1px solid #e9ecef;border-radius: 8px;padding: 12px;box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);animation: fadeIn 0.2s ease-in-out;}.tooltip-content .requirement-title {font-weight: 600;color: #495057;display: block;margin-bottom: 8px;font-size: 12px;}.tooltip-content .requirement-list {list-style: none;padding: 0;margin: 0;}.tooltip-content .requirement-list li {font-size: 11px;color: #6c757d;margin: 4px 0;padding-left: 16px;position: relative;}.tooltip-content .requirement-list li:before {content: "•";position: absolute;left: 6px;color: #6c757d;font-weight: bold;}/* Password Strength Indicator */.password-strength {margin: 8px 0;width: 100%;}.strength-bar {height: 4px;background: #e0e0e0;border-radius: 2px;overflow: hidden;margin-bottom: 4px;}.strength-fill {height: 100%;transition: all 0.3s ease;width: 0%;}.strength-bar.weak .strength-fill {width: 25%;background: #ff4444;}.strength-bar.fair .strength-fill {width: 50%;background: #ffaa00;}.strength-bar.good .strength-fill {width: 75%;background: #00aa44;}.strength-bar.strong .strength-fill {width: 100%;background: #00aa44;}.strength-text {font-weight: 600;}.strength-text.weak {color: #ff4444;}.strength-text.fair {color: #ffaa00;}.strength-text.good {color: #00aa44;}.strength-text.strong {color: #00aa44;}/* Password Requirements */.password-requirements {margin: 8px 0;padding: 8px;background: #f8f9fa;border-radius: 6px;border: 1px solid #e9ecef;width: 100%;}.requirement-title {font-weight: 600;color: #495057;display: block;margin-bottom: 6px;}.requirement-list {list-style: none;padding: 0;margin: 0;}.requirement-list li {font-size: 11px;color: #6c757d;margin: 2px 0;padding-left: 16px;position: relative;}.requirement-list li:before {content: "✗";position: absolute;left: 0;color: #dc3545;}.requirement-list li.valid {color: #198754;}.requirement-list li.valid:before {content: "✓";color: #198754;}/* Password Suggestions */.password-suggestions {margin: 8px 0;padding: 8px;background: #fff3cd;border: 1px solid #ffeaa7;border-radius: 6px;width: 100%;}.suggestion-title {font-weight: 600;color: #856404;display: block;margin-bottom: 6px;}.password-suggestions ul {list-style: none;padding: 0;margin: 0;}.password-suggestions li {font-size: 11px;color: #856404;margin: 2px 0;padding-left: 12px;position: relative;}.password-suggestions li:before {content: "•";position: absolute;left: 0;font-weight: bold;}/* Success Animation Styles */.success-overlay {position: absolute;top: 0;left: 0;right: 0;bottom: 0;background: white;display: flex;flex-direction: column;align-items: center;justify-content: center;z-index: 10;animation: fadeIn 0.3s ease-in-out;border-radius: 14px;}.success-animation {width: 80px;height: 80px;margin-bottom: 20px;}.success-checkmark {width: 80px;height: 80px;margin: 0 auto;}.check-icon {width: 80px;height: 80px;position: relative;border-radius: 50%;box-sizing: content-box;border: 4px solid #4CAF50;}.check-icon::after {content: '';position: absolute;background: white;border-radius: 50%;transform: scale(2);width: 80px;height: 80px;z-index: 1;animation: icon-circle 0.3s ease-in-out;animation-fill-mode: forwards;}.icon-line {height: 5px;background-color: #4CAF50;display: block;border-radius: 2px;position: absolute;z-index: 2;animation: icon-line 0.3s ease-in-out;animation-fill-mode: forwards;}.line-tip {top: 46px;left: 14px;width: 25px;transform: rotate(45deg);animation: icon-line-tip 0.3s ease-in-out;animation-fill-mode: forwards;}.line-long {top: 38px;right: 8px;width: 47px;transform: rotate(-45deg);animation: icon-line-long 0.3s ease-in-out;animation-fill-mode: forwards;}.success-message {font-size: 1.2rem;font-weight: 600;color: #4CAF50;text-align: center;animation: fadeInUp 0.5s ease-in-out 0.3s both;}/* Animations */@keyframes fadeIn {from {opacity: 0;transform: translateY(-5px);}to {opacity: 1;transform: translateY(0);}}@keyframes fadeInUp {from {opacity: 0;transform: translateY(20px);}to {opacity: 1;transform: translateY(0);}}@keyframes icon-circle {0% {transform: scale(2);}100% {transform: scale(1);}}@keyframes icon-line-tip {0% {width: 0;left: 1px;top: 19px;}54% {width: 0;left: 1px;top: 19px;}70% {width: 50px;left: -8px;top: 37px;}84% {width: 17px;left: 21px;top: 48px;}100% {width: 25px;left: 14px;top: 45px;}}@keyframes icon-line-long {0% {width: 0;right: 46px;top: 54px;}65% {width: 0;right: 46px;top: 54px;}84% {width: 55px;right: 0px;top: 35px;}100% {width: 47px;right: 8px;top: 38px;}}label small.error {display: inline;margin-left: 2px;}/* Pulse animation for sign-in footnote - color only (more visible) *//*@keyframes pulseColor {0% { color: #FFD600; }*/ /* warm bright yellow *//*50% { color: #FFFFFF; }*/ /* white for maximum contrast on dark bg *//*100% { color: #FFD600; }*/ /* back to yellow *//*}.footnote a.pulse {animation: pulseColor 1s ease-in-out 0s 3;*/ /* 3 quick pulses *//*display: inline-block;}*//* Responsive adjustments */@media (min-width: 900px) {.auth-box {grid-template-columns: 520px 1fr;max-width: 1040px; /* 520px * 2 */}.panel-left {width: 520px;}.panel-right {width: calc(100% - 520px);}}@media (max-width: 768px) {.auth-box {width: 90vw;min-width: unset;}.panel-left,.panel-right {width: 100%;}}@media (min-width: 769px) and (max-width: 1200px) {.auth-box {width: 70vw;}}/* Tooltip Errors */.tooltip-errors {margin-top: 8px;border-top: 1px solid #e9ecef;padding-top: 8px;}.tooltip-errors .error {color: #dc3545;font-size: 11px;display: block;margin: 2px 0;}/* Additions for error tooltips */.tooltip-error {position: relative;display: inline-block;cursor: pointer;}.tooltip-error:hover .tooltip-error-content {display: block;}.tooltip-error-content {display: none;position: absolute;top: 100%;left: 50%;transform: translateX(-50%);background: rgba(255, 255, 255, 0.9);border: 1px solid #dc3545;border-radius: 4px;padding: 8px;margin-top: 4px;z-index: 100;width: 200px;box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);}/* Pulse animation for sign-in footnote - color only *//*@keyframes pulseColor {0% {color: #FFEA00;*/ /* initial *//*}50% {color: #F3BD00;*/ /* highlight *//*}100% {color: #FFEA00;*/ /* back to initial *//*}}.footnote a.pulse {animation: pulseColor 1s ease-in-out 0s 3;*/ /* 3 quick pulses *//*display: inline-block;}*//* Adjust tooltip content for additional elements */.tooltip-content {background: white;border: 1px solid #e9ecef;border-radius: 8px;padding: 16px;box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);animation: fadeIn 0.2s ease-in-out;max-width: 500px;}/* Password Requirements List in Tooltip */.tooltip-left .requirement-list {list-style: none;padding: 0;margin: 0;}.tooltip-left .requirement-list li {font-size: 11px;color: #6c757d;margin: 4px 0;padding-left: 16px;position: relative;transition: color 0.3s ease;}.tooltip-left .requirement-list li:before {content: "✗";position: absolute;left: 0;color: #dc3545;font-weight: bold;transition: all 0.3s ease;}.tooltip-left .requirement-list li.valid {color: #198754;}.tooltip-left .requirement-list li.valid:before {content: "✓";color: #198754;}/* Tooltip Layout */.tooltip-layout {display: flex;gap: 20px;min-width: 400px;}.tooltip-left {flex: 1;min-width: 200px;}.tooltip-right {flex: 1;min-width: 200px;}/* Error Messages in Tooltip */.error-messages {margin-top: 12px;}.error-messages small.error {display: block;font-size: 11px;color: #dc3545;margin: 3px 0;line-height: 1.3;}/* Password Strength in Tooltip */.tooltip-right .password-strength {margin: 0 0 12px 0;}.tooltip-right .strength-bar {height: 6px;margin-bottom: 6px;}.tooltip-right .strength-text {font-size: 11px;font-weight: 600;}/* Adjust tooltip content padding */.tooltip-content {background: white;border: 1px solid #e9ecef;border-radius: 8px;padding: 16px;box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);animation: fadeIn 0.2s ease-in-out;max-width: 500px;}.error-message {color: #d32f2f;background-color: #ffebee;border: 1px solid #f5c6cb;padding: 12px;border-radius: 4px;margin: 16px 0;text-align: center;font-size: 14px;}/* Add these styles at the end of the file, before the media queries */.footnote-container {position: absolute;bottom: clamp(20px, 3vw, 30px);left: 0;right: 0;text-align: center;z-index: 10;padding: 0 clamp(15px, 3vw, 25px);}.footnote {margin: 0;font-size: clamp(12px, 1.2vw, 14px);color: white;text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);background: rgb(16 29 32);backdrop-filter: blur(5px);-webkit-backdrop-filter: blur(5px);padding: 10px 15px;border-radius: 8px;display: inline-block;max-width: 90%;border: 1px solid #00ffef;}.footnote a {color: #FFEA00;text-decoration: none;font-weight: 600;transition: color 0.2s ease;margin-left: 5px;text-transform: uppercase;}.footnote a:hover {color: #F3BD00;text-decoration: underline;}/* Remove old footnote styles from panel-left */.panel-left .footnote {display: none;}/* Add to existing .panel-right styles */.panel-right {position: relative;}.right-image {position: relative;width: 100%;height: 100%;}/* Update media queries for better positioning */@media (min-width: 900px) {.auth-box {grid-template-columns: 520px 1fr;max-width: 1040px;}.panel-left {width: 520px;}.panel-right {width: calc(100% - 520px);position: relative;}.right-image {height: 100%;}}@media (max-width: 768px) {.footnote-container {bottom: 15px;}.footnote {font-size: 12px;padding: 8px 12px;}}
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576<section class="auth-page"><div class="auth-box" role="dialog" aria-labelledby="suTitle"><!-- Left (form) --><div class="panel-left"><div class="topTitle"><img class="brand-mark" src="/assets/pykara-logo.png" alt="Brand" /><p class="topHeader"><b>Let's get started!</b></p></div><h2 id="suTitle" class="title">Create an account</h2><form class="form" [formGroup]="form" (ngSubmit)="submit()" novalidate><!-- Name --><div class="field"><label for="name">Name<small *ngIf="controlHasError('name','required')" class="error">*</small></label><input id="name" type="text" placeholder="John"formControlName="name" [attr.aria-invalid]="controlHasError('name')" /><small *ngIf="controlHasError('name','minlength')" class="error">Enter at least 2 characters.</small></div><!-- Email/Phone (contact) --><div class="field"><label for="contact"><small *ngIf="controlHasError('contact','required')" class="error">*</small></label><input id="contact" type="text" placeholder="hello@gmail.com"formControlName="contact" [attr.aria-invalid]="controlHasError('contact')" /><small *ngIf="controlHasError('contact','pattern')" class="error">Enter a valid email/phone.</small></div><!-- Password --><div class="field"><label for="password">Password<small *ngIf="controlHasError('password','required')" class="error">*</small></label><input id="password" type="password" placeholder="••••••••"formControlName="password" [attr.aria-invalid]="controlHasError('password')" /><small *ngIf="controlHasError('password','minlength')" class="error">Use at least 6 characters.</small></div><!-- Confirm password --><div class="field"><label for="confirmPassword">Confirm password<small *ngIf="controlHasError('confirmPassword','required')" class="error">*</small></label><input id="confirmPassword" type="password" placeholder="••••••••"formControlName="confirmPassword" [attr.aria-invalid]="showPwdMismatch()" /><small *ngIf="showPwdMismatch()" class="error">Passwords do not match.</small></div><button class="btn btn-primary" type="submit"[disabled]="form.invalid || submitting()" [attr.aria-busy]="submitting()">Sign up</button><p class="footnote">Already have an account?<!-- Use click handler instead of routerLink --><a href="#" (click)="goToLogin(); $event.preventDefault()">Log in</a></p></form></div><!-- Right (image) --><div class="panel-right"><div class="right-image"><img src="/assets/user.png" alt="Decorative" /></div></div></div></section>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161<section class="auth-page"><div class="auth-box" role="dialog" aria-labelledby="suTitle"><!-- Left (form) --><div class="panel-left"><!-- Success Animation Overlay --><div class="success-overlay" *ngIf="showSuccessAnimation"><div class="success-animation"><div class="success-checkmark"><div class="check-icon"><span class="icon-line line-tip"></span><span class="icon-line line-long"></span></div></div></div><div class="success-message">Account Created Successfully!</div></div><div class="topTitle"><img class="brand-mark" src="/assets/pykara-logo.png" alt="Brand" /><p class="topHeader"><b>Let's get started!</b></p></div><h2 id="suTitle" class="title">Create an account</h2><form class="form" [formGroup]="form" (ngSubmit)="submit()" novalidate><!-- Name --><div class="field"><label for="name">Name<span *ngIf="controlHasError('name','required')" class="error">*</span></label><input id="name" type="text" placeholder="John"formControlName="name" [attr.aria-invalid]="controlHasError('name')" /><small *ngIf="controlHasError('name','minlength')" class="error">Enter at least 2 characters.</small></div><!-- Email/Phone (contact) --><div class="field"><label for="contact">Email<span *ngIf="controlHasError('contact','required')" class="error">*</span></label><input id="contact" type="text" placeholder="hello@gmail.com"formControlName="contact" [attr.aria-invalid]="controlHasError('contact')" /><small *ngIf="controlHasError('contact','pattern')" class="error">Enter a valid email/phone.</small></div><!-- Password --><div class="field"><label for="password">Password<span *ngIf="controlHasError('password','required')" class="error">*</span></label><div class="password-input-container"><input id="password" [type]="showPassword ? 'text' : 'password'" placeholder="••••••••"formControlName="password" [attr.aria-invalid]="controlHasError('password')"(focus)="onPasswordFocus()"(blur)="onPasswordBlur()" /><!-- Eye icon for password visibility --><span class="password-toggle" *ngIf="control('password')?.value"(click)="togglePasswordVisibility()"[class.visible]="showPassword">👁️</span><!-- Password Requirements Tooltip --><div class="password-tooltip" *ngIf="showPasswordTooltip"><div class="tooltip-content"><div class="tooltip-layout"><!-- Left side: Requirements --><div class="tooltip-left"><small class="requirement-title">Password must contain:</small><ul class="requirement-list"><li [class.valid]="getPasswordRequirementStatus().length">At least 8 characters</li><li [class.valid]="getPasswordRequirementStatus().upperCase">One uppercase letter (A-Z)</li><li [class.valid]="getPasswordRequirementStatus().lowerCase">One lowercase letter (a-z)</li><li [class.valid]="getPasswordRequirementStatus().number">One number (0-9)</li><li [class.valid]="getPasswordRequirementStatus().specialChar">One special character (e.g., @, #, $, %)</li><li [class.valid]="getPasswordRequirementStatus().noSpaces">No spaces</li></ul></div><!-- Right side: Strength & Errors --><div class="tooltip-right"><!-- Password Strength Indicator --><div *ngIf="control('password')?.value" class="password-strength"><div class="strength-bar" [class]="passwordStrength"><div class="strength-fill"></div></div><small class="strength-text" [class]="passwordStrength">Password strength: {{ passwordStrength | titlecase }}</small></div><!-- Individual error messages --><div class="error-messages" *ngIf="control('password')?.invalid"><small *ngIf="controlHasError('password','minlength')" class="error">• Use at least 8 characters</small><small *ngIf="controlHasError('password','missingUpperCase')" class="error">• Add an uppercase letter</small><small *ngIf="controlHasError('password','missingLowerCase')" class="error">• Add a lowercase letter</small><small *ngIf="controlHasError('password','missingNumber')" class="error">• Add a number</small><small *ngIf="controlHasError('password','missingSpecialChar')" class="error">• Add a special character</small><small *ngIf="controlHasError('password','hasSpaces')" class="error">• Remove spaces</small><small *ngIf="controlHasError('password','hasSequentialChars')" class="error">• Avoid sequential characters</small><small *ngIf="controlHasError('password','hasRepeatedChars')" class="error">• Avoid repeated characters</small><small *ngIf="controlHasError('password','hasCommonWord')" class="error">• Avoid common words</small></div></div></div></div></div></div></div><!-- Confirm password --><div class="field"><label for="confirmPassword">Confirm password<span *ngIf="controlHasError('confirmPassword','required')" class="error">*</span><!-- Moved error message outside label --><span *ngIf="showPwdMismatch() && control('confirmPassword')?.touched && control('password')?.touched" class="error">Passwords do not match.</span></label><div class="password-input-container"><input id="confirmPassword" [type]="showConfirmPassword ? 'text' : 'password'" placeholder="••••••••"formControlName="confirmPassword" [attr.aria-invalid]="showPwdMismatch()" /><!-- Eye icon for confirm password visibility --><span class="password-toggle" *ngIf="control('confirmPassword')?.value"(click)="toggleConfirmPasswordVisibility()"[class.visible]="showConfirmPassword">👁️</span></div></div><!-- Add this after the form closing tag but before the panel-left closing div --><div *ngIf="errorMessage()" class="error-message">{{ errorMessage() }}</div><button class="btn btn-primary" type="submit"[disabled]="form.invalid || submitting()" [attr.aria-busy]="submitting()">Sign up</button></form></div><!-- Right (image) --><div class="panel-right"><div class="right-image"><img src="/assets/user.png" alt="Decorative" /><!-- Footnote Container --><div class="footnote-container"><p class="footnote">Already have an account?<!-- Use click handler instead of routerLink --><a href="#" (click)="goToLogin(); $event.preventDefault()" [class.pulse]="showSignInPulse()">Sign in</a></p></div></div></div></div></section>
123456789101112131415161718192021import { ComponentFixture, TestBed } from '@angular/core/testing';import { SignUpComponent } from './sign-up.component';describe('SignUpComponent', () => {let component: SignUpComponent;let fixture: ComponentFixture<SignUpComponent>;beforeEach(() => {TestBed.configureTestingModule({declarations: [SignUpComponent]});fixture = TestBed.createComponent(SignUpComponent);component = fixture.componentInstance;fixture.detectChanges();});it('should create', () => {expect(component).toBeTruthy();});});123456789101112131415161718192021import { ComponentFixture, TestBed } from '@angular/core/testing';import { SignUpComponent } from './sign-up.component';describe('SignUpComponent', () => {let component: SignUpComponent;let fixture: ComponentFixture<SignUpComponent>;beforeEach(() => {TestBed.configureTestingModule({declarations: [SignUpComponent]});fixture = TestBed.createComponent(SignUpComponent);component = fixture.componentInstance;fixture.detectChanges();});it('should create', () => {expect(component).toBeTruthy();});});
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111import { Component, Output, EventEmitter } from '@angular/core';import { CommonModule } from '@angular/common';import { FormBuilder, FormGroup, ReactiveFormsModule, Validators, AbstractControl } from '@angular/forms';import { Router, RouterLink } from '@angular/router';import { SignupService, SignupPayload } from './sign-up.service';@Component({selector: 'app-sign-up',standalone: true,imports: [CommonModule, ReactiveFormsModule, RouterLink],templateUrl: './sign-up.component.html',styleUrls: ['./sign-up.component.css']})export class SignUpComponent {form: FormGroup;private isSubmitting = false;@Output() switchToSignIn = new EventEmitter<void>();@Output() signUpSuccess = new EventEmitter<void>();constructor(private fb: FormBuilder, private router: Router, private signupService: SignupService) {this.form = this.fb.group({name: ['', [Validators.required, Validators.minLength(2)]],contact: ['', [Validators.required, Validators.pattern(/(^[^\s@]+@[^\s@]+\.[^\s@]+$)|(^\+?\d[\d\-\s]{8,14}\d$)/)]],password: ['', [Validators.required, Validators.minLength(6)]],confirmPassword: ['', [Validators.required]],}, { validators: [this.passwordsMatchValidator] });}control(path: string): AbstractControl | null {return this.form.get(path);}showPwdMismatch(): boolean {const pw = this.control('password');const cpw = this.control('confirmPassword');const groupMismatch = this.form.errors?.['passwordMismatch'];return !!(pw && cpw && (cpw.touched || pw.touched) && groupMismatch);}passwordsMatchValidator(group: AbstractControl) {const pw = group.get('password')?.value;const cpw = group.get('confirmPassword')?.value;return pw && cpw && pw === cpw ? null : { passwordMismatch: true };}submitting(): boolean {return this.isSubmitting;}async submit() {this.form.markAllAsTouched();if (this.form.invalid) {return;}const payload: SignupPayload = {name: this.control('name')?.value,email: this.control('contact')?.value,password: this.control('password')?.value};this.isSubmitting = true;try {const res = await this.signupService.signup(payload).toPromise();if (res && res.message) {alert('Success: ' + res.message);// Save user_id from backend for role assignmentif (res.user_id) {localStorage.setItem('user_id', res.user_id.toString());}this.signUpSuccess.emit(); // Emit success} else if (res && res.error) {alert('Signup failed: ' + res.error);} else {alert('Unexpected response');}} catch (err: any) {console.error('Signup error:', err);alert('Signup failed due to server or network error.');} finally {this.isSubmitting = false;}}controlHasError(path: string, error?: string): boolean {const c = this.control(path);if (!c) return false;return error ? !!(c.touched && c.errors?.[error]) : !!(c.touched && c.invalid);}navigateHome() {this.router.navigateByUrl('/');}goToLogin() {this.switchToSignIn.emit();}tr(key: string): string {const map: Record<string, string> = {title: 'Create your account',subtitle: 'Join to continue'};return map[key] || '';}}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317import { Component, Output, EventEmitter, HostListener, signal } from '@angular/core';import { CommonModule } from '@angular/common';import { FormBuilder, FormGroup, ReactiveFormsModule, Validators, AbstractControl } from '@angular/forms';import { Router, RouterLink } from '@angular/router';import { SignupService, SignupPayload } from './sign-up.service';import { AuthService } from '../../services/auth.service';@Component({selector: 'app-sign-up',standalone: true,imports: [CommonModule, ReactiveFormsModule, RouterLink],templateUrl: './sign-up.component.html',styleUrls: ['./sign-up.component.css']})export class SignUpComponent {form: FormGroup;private isSubmitting = false;showSuccessAnimation = false;passwordStrength: string = '';passwordSuggestions: string[] = [];showPassword = false;showConfirmPassword = false;showPasswordTooltip = false;// Add error message signalerrorMessage = signal<string | null>(null);// New: pulse flag for sign-in footnote animation as a signal for consistencyshowSignInPulse = signal(false);@Output() switchToSignIn = new EventEmitter<void>();@Output() signUpSuccess = new EventEmitter<void>();constructor(private fb: FormBuilder,private router: Router,private signupService: SignupService,private authService: AuthService) {const contactPattern = /(^[^\s@]+@[^\s@]+\.[^\s@]+$)|(^\+?\d[\d\s-]{8,14}\d$)/;this.form = this.fb.group({name: ['', [Validators.required, Validators.minLength(2)]],contact: ['', [Validators.required, Validators.pattern(contactPattern)]],password: ['', [Validators.required,Validators.minLength(8),this.passwordValidator]],confirmPassword: ['', [Validators.required]],}, { validators: [this.passwordsMatchValidator] });// Listen to password changes for real-time validation feedbackthis.form.get('password')?.valueChanges.subscribe(value => {this.checkPasswordStrength(value);});}// Close tooltip when clicking outside@HostListener('document:click', ['$event'])onDocumentClick(event: MouseEvent) {const target = event.target as HTMLElement;const passwordInput = document.getElementById('password');const tooltip = document.querySelector('.password-tooltip');if (passwordInput && tooltip) {const clickedInsidePassword = passwordInput.contains(target);const clickedInsideTooltip = tooltip.contains(target);if (!clickedInsidePassword && !clickedInsideTooltip) {this.showPasswordTooltip = false;}}}control(path: string): AbstractControl | null {return this.form.get(path);}showPwdMismatch(): boolean {const pw = this.control('password');const cpw = this.control('confirmPassword');const groupMismatch = this.form.errors?.['passwordMismatch'];return !!(pw && cpw && pw.touched && cpw.touched && groupMismatch);}passwordsMatchValidator(group: AbstractControl) {const pw = group.get('password')?.value;const cpw = group.get('confirmPassword')?.value;return pw && cpw && pw === cpw ? null : { passwordMismatch: true };}passwordValidator(control: AbstractControl) {const value = control.value || '';if (!value) {return null;}const hasUpperCase = /[A-Z]/.test(value);const hasLowerCase = /[a-z]/.test(value);const hasNumber = /[0-9]/.test(value);const hasSpecialChar = /[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/.test(value);const hasSpaces = /\s/.test(value);const hasSequentialChars = /(abc|bcd|cde|def|efg|fgh|ghi|hij|ijk|jkl|klm|lmn|mno|nop|opq|pqr|qrs|rst|stu|tuv|uvw|vwx|wxy|xyz|012|123|234|345|456|567|678|789)/i.test(value);const hasRepeatedChars = /(.)\1{2,}/.test(value);const commonWords = ['password', 'admin', '123456', 'qwerty', 'letmein', 'welcome', 'monkey'];const hasCommonWord = commonWords.some(word => value.toLowerCase().includes(word));const errors: any = {};if (!hasUpperCase) errors.missingUpperCase = true;if (!hasLowerCase) errors.missingLowerCase = true;if (!hasNumber) errors.missingNumber = true;if (!hasSpecialChar) errors.missingSpecialChar = true;if (hasSpaces) errors.hasSpaces = true;if (hasSequentialChars) errors.hasSequentialChars = true;if (hasRepeatedChars) errors.hasRepeatedChars = true;if (hasCommonWord) errors.hasCommonWord = true;return Object.keys(errors).length ? errors : null;}checkPasswordStrength(password: string) {if (!password) {this.passwordStrength = '';this.passwordSuggestions = [];return;}let strength = 0;const suggestions = [];// Length checkif (password.length >= 8) strength++;if (password.length >= 12) strength++;// Character variety checksif (/[A-Z]/.test(password)) strength++;if (/[a-z]/.test(password)) strength++;if (/[0-9]/.test(password)) strength++;if (/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/.test(password)) strength++;// Negative checksif (/\s/.test(password)) suggestions.push('Remove spaces from password');if (/(abc|bcd|cde|def|efg|fgh|ghi|hij|ijk|jkl|klm|lmn|mno|nop|opq|pqr|qrs|rst|stu|tuv|uvw|vwx|wxy|xyz|012|123|234|345|456|567|678|789)/i.test(password)) {suggestions.push('Avoid sequential characters (e.g., "abc", "123")');}const commonWords = ['password', 'admin', '123456'];if (commonWords.some(word => password.toLowerCase().includes(word))) {suggestions.push('Avoid common words and patterns');}// Determine strength levelif (strength <= 3) {this.passwordStrength = 'weak';} else if (strength <= 5) {this.passwordStrength = 'fair';} else if (strength <= 7) {this.passwordStrength = 'good';} else {this.passwordStrength = 'strong';}this.passwordSuggestions = suggestions;}getPasswordRequirementStatus() {const value = this.control('password')?.value || '';return {length: value.length >= 8,upperCase: /[A-Z]/.test(value),lowerCase: /[a-z]/.test(value),number: /[0-9]/.test(value),specialChar: /[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/.test(value),noSpaces: !/\s/.test(value)};}onPasswordFocus() {this.showPasswordTooltip = true;}onPasswordBlur() {setTimeout(() => {this.showPasswordTooltip = false;}, 150);}togglePasswordVisibility() {this.showPassword = !this.showPassword;}toggleConfirmPasswordVisibility() {this.showConfirmPassword = !this.showConfirmPassword;}submitting(): boolean {return this.isSubmitting;}async submit() {this.form.markAllAsTouched();this.errorMessage.set(null);if (this.form.invalid) {if (this.form.errors?.['passwordMismatch']) {this.errorMessage.set('Passwords do not match.');} else if (this.control('name')?.errors?.['required']) {this.errorMessage.set('Name is required.');} else if (this.control('contact')?.errors?.['required']) {this.errorMessage.set('Email is required.');} else if (this.control('contact')?.errors?.['pattern']) {this.errorMessage.set('Please enter a valid email address.');} else if (this.control('password')?.errors?.['required']) {this.errorMessage.set('Password is required.');} else if (this.control('password')?.errors) {this.errorMessage.set('Please fix password errors before submitting.');}return;}const payload: SignupPayload = {name: this.control('name')?.value,email: this.control('contact')?.value,password: this.control('password')?.value};this.isSubmitting = true;try {const res = await this.signupService.signup(payload).toPromise();if (res && res.message) {// Store user name in multiple localStorage keys for redundancyconst userName = this.control('name')?.value;if (userName) {localStorage.setItem('user_name', userName);localStorage.setItem('userName', userName);localStorage.setItem('name', userName);}// Store authentication datalocalStorage.setItem('auth_token', 'authenticated');if (res.user_id) {localStorage.setItem('user_id', res.user_id.toString());this.signupService.setUserId(res.user_id);this.authService.setUserId(res.user_id);}this.showSuccessAnimation = true;setTimeout(() => {// After successful signup show sign-in modal automaticallythis.switchToSignIn.emit();// Navigate home and notify other componentsthis.router.navigate(['/']).then(() => {// Force UI refreshsetTimeout(() => {window.dispatchEvent(new Event('authStateChanged'));}, 100);});}, 1500);} else if (res && res.error) {this.errorMessage.set('Signup failed: ' + res.error);} else {this.errorMessage.set('Unexpected response from server.');}} catch (err: any) {console.error('Signup error:', err);// Handle common backend responses for existing accountconst serverMsg = err?.error?.message || err?.error?.error || err?.message || '';if (err?.status === 409 || /exist/i.test(serverMsg) || /already exists/i.test(serverMsg)) {// Friendly message instructing user to sign inthis.errorMessage.set('Account already exists. Please sign in.');// Trigger a small pulse animation on the Sign in footnote to draw attentionthis.showSignInPulse.set(true);// Stop the pulse after 2.5ssetTimeout(() => {this.showSignInPulse.set(false);}, 2500);// Do NOT auto-switch to sign-in. Let user click the Sign in link/button manually.} else if (serverMsg) {this.errorMessage.set(serverMsg);} else {this.errorMessage.set('Signup failed due to server or network error.');}} finally {this.isSubmitting = false;}}controlHasError(path: string, error?: string): boolean {const c = this.control(path);if (!c) return false;return error ? !!(c.touched && c.errors?.[error]) : !!(c.touched && c.invalid);}navigateHome() {this.router.navigateByUrl('/');}goToLogin() {// clear pulse when user clicks the linkthis.showSignInPulse.set(false);this.switchToSignIn.emit();}}
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162import { Injectable } from '@angular/core';import { HttpClient, HttpErrorResponse } from '@angular/common/http';import { Observable, catchError, throwError } from 'rxjs';import { environment } from '../../../environments/environment';export interface SignupPayload {name: string;email: string; // email or phonepassword: string;}export interface SignupResponse {message?: string; // success message from backenderror?: string; // error message from backenduser_id?: number; // <-- add this line}@Injectable({providedIn: 'root'})export class SignupService {public user_id: number | null = null;// Exactly the same style as your other service:// hf.space => Hugging Face backend; otherwise => local Flaskprivate baseUrl = location.hostname.endsWith('hf.space')? 'https://pykara-py-match-backend.hf.space/api': 'http://localhost:5000/api';// private apiUrl = 'http://localhost:5000/api/signup'; // Replace with your backend URLprivate apiUrl = 'http://localhost:5000/api'; // Replace with your backend URL//private base = environment.apiBase; // e.g., http://192.168.29.27:5000constructor(private http: HttpClient) { }signup(payload: SignupPayload): Observable<SignupResponse> {return this.http.post<SignupResponse>(`${this.baseUrl}/signup`, payload).pipe(catchError(this.handleError));}assignRole(userId: number, roleName: string) {return this.http.post(`${this.apiUrl}/questions/select-role`, {user_id: userId,role_name: roleName,assigned_at: new Date().toISOString()});}private handleError(error: HttpErrorResponse) {return throwError(() => new Error(error.message || 'Something went wrong'));}// Method to store user_id after successful signupsetUserId(userId: number): void {this.user_id = userId;}// Get user_id (to use in other components)getUserId(): number | null {console.log(this.user_id)return this.user_id;}}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111import { Injectable } from '@angular/core';import { HttpClient, HttpErrorResponse } from '@angular/common/http';import { Observable, catchError, throwError } from 'rxjs';import { environment } from '../../../environments/environment';export interface SignupPayload {name: string;email: string; // email or phonepassword: string;}export interface SignupResponse {message?: string; // success message from backenderror?: string; // error message from backenduser_id?: number; // <-- add this line}export interface DatabaseCheckResponse {exists: boolean;error?: string;}@Injectable({providedIn: 'root'})export class SignupService {public user_id: number | null = null;// Exactly the same style as your other service:// hf.space => Hugging Face backend; otherwise => local Flaskprivate baseUrl = location.hostname.endsWith('hf.space')? 'https://pykara-py-match-backend.hf.space/api': 'http://localhost:5000/api';// private apiUrl = 'http://localhost:5000/api/signup'; // Replace with your backend URLprivate apiUrl = 'http://localhost:5000/api'; // Replace with your backend URL//private base = environment.apiBase; // e.g., http://192.168.29.27:5000constructor(private http: HttpClient) { }signup(payload: SignupPayload): Observable<SignupResponse> {return this.http.post<SignupResponse>(`${this.baseUrl}/signup`, payload).pipe(catchError(this.handleError));}assignRole(userId: number, roleName: string) {return this.http.post(`${this.apiUrl}/questions/select-role`, {user_id: userId,role_name: roleName,assigned_at: new Date().toISOString()});}// NEW: Check if marriage profile exists for usercheckMarriageProfile(userId: number): Observable<DatabaseCheckResponse> {return this.http.get<DatabaseCheckResponse>(`${this.apiUrl}/check-marriage-profile/${userId}`).pipe(catchError(this.handleError));}// NEW: Check if expectations exist for usercheckExpectations(userId: number): Observable<DatabaseCheckResponse> {return this.http.get<DatabaseCheckResponse>(`${this.apiUrl}/check-expectations/${userId}`).pipe(catchError(this.handleError));}// NEW: Check if assessment exists for usercheckAssessment(userId: number): Observable<DatabaseCheckResponse> {return this.http.get<DatabaseCheckResponse>(`${this.apiUrl}/check-assessment/${userId}`).pipe(catchError(this.handleError));}// NEW: Get existing profile datagetExistingProfile(role: string, userId: number): Observable<any> {return this.http.get(`${this.apiUrl}/questions/existing-profile/${role}/${userId}`).pipe(catchError(this.handleError));}// NEW: Get existing preferencesgetExistingPreferences(userId: number): Observable<any> {return this.http.get(`${this.apiUrl}/existing-preferences/${userId}`).pipe(catchError(this.handleError));}private handleError(error: HttpErrorResponse) {console.error('API Error:', error);// Preserve the original HttpErrorResponse so caller can inspect status and bodyreturn throwError(() => error);}// Method to store user_id after successful signupsetUserId(userId: number): void {this.user_id = userId;}// Get user_id (to use in other components)getUserId(): number | null {console.log(this.user_id)return this.user_id;}checkAssessmentCompletion(userId: number): Observable<any> {return this.http.get(`/api/check-assessment-completion/${userId}`);}}
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103:host {display: block;}#journeyTitle {color: black !important;}/* Utility */.visually-hidden {position: absolute !important;width: 1px;height: 1px;padding: 0;margin: -1px;overflow: hidden;clip: rect(0 0 0 0);white-space: nowrap;border: 0;}/* Layout container */.container {width: 80%;margin: 0 auto;}/* HERO */.hero {position: relative;height: 100vh;display: flex;align-items: center;background: radial-gradient(circle at 20% 30%,rgba(243,165,76,.18),transparent 60%),radial-gradient(circle at 75% 55%,rgba(0,255,136,.12),transparent 55%);}.hero__layout {display: grid;grid-template-columns: repeat(auto-fit,minmax(320px,1fr));align-items: center;gap: clamp(2.2rem,5vw,5rem);}.hero__content {position: relative;z-index: 2;}.hero__title {font-size: clamp(2.2rem,3.6vw,3.8rem);line-height: 1.1;margin: 0 0 1.2rem;font-weight: 700;background: linear-gradient(90deg,#fff,#ffe2c5 45%,#fff);-webkit-background-clip: text;color: transparent;filter: drop-shadow(0 4px 18px rgba(0,0,0,.35));}.hero__text {font-size: clamp(.95rem,1.15vw,1.2rem);max-width: 46ch;line-height: 1.55;margin: 0 0 1.6rem;color: #d8dee7;font-weight: 500;}.hero__badges {display: flex;flex-wrap: wrap;gap: .5rem .75rem;margin: 0 0 1.75rem;}.badge {position: relative;padding: .4rem .85rem .45rem;border-radius: 2rem;font-size: .65rem;letter-spacing: .8px;font-weight: 600;text-transform: uppercase;background: #f3a54c;color: #0b0f1a;box-shadow: 0 4px 12px -2px rgba(0,0,0,.4);}.hero__sub-cta {margin: 1.25rem 0 0;font-size: .8rem;letter-spacing: .6px;color: #b8c4d2;}/* Features */.features {padding: 2vw;background: linear-gradient(180deg,#0b0f1a,#111c29);position: relative;}.features::before {content: "";position: absolute;inset: 0;background: radial-gradient(circle at 70% 30%,rgba(0,255,136,.12),transparent 60%);pointer-events: none;opacity: .65;}.section-title {font-size: clamp(1.8rem,2.9vw,2.6rem);text-align: center;font-weight: 700;letter-spacing: .5px;background: linear-gradient(90deg,#fff,#e6f9ff);-webkit-background-clip: text;color: transparent;line-height: 4vw;}.features__grid {display: flex;gap: 2vw;width: 100%;}.feature {background: linear-gradient(135deg,rgba(255,255,255,.07),rgba(255,255,255,.02));border: 1px solid rgba(255,255,255,.12);padding: 1.2rem 1.15rem 1.25rem;border-radius: 1.1rem;backdrop-filter: blur(14px);position: relative;overflow: hidden;display: flex;flex-direction: column;gap: .55rem;min-height: 170px;}.feature::after {content: "";position: absolute;inset: 0;background: radial-gradient(circle at 25% 15%,rgba(243,165,76,.15),transparent 70%);opacity: 0;transition: opacity .4s ease;}.feature:hover::after {opacity: 1;}.feature h3 {margin: .2rem 0 .15rem;font-size: .95rem;letter-spacing: .6px;font-weight: 600;color: #fff;}.feature p {margin: 0;font-size: .72rem;line-height: 1.35;color: #d1d8e3;max-width: 36ch;}.feature__icon {width: 44px;height: 44px;display: flex;align-items: center;justify-content: center;font-size: 1.1rem;border-radius: 14px;background: linear-gradient(135deg,#182330,#1f2f40);color: #ffe2c5;box-shadow: 0 4px 14px -4px rgba(0,0,0,.65),0 0 0 1px rgba(255,255,255,.06);}.gradient-ring {position: relative;}.gradient-ring::before {content: "";position: absolute;inset: -2px;border-radius: inherit;padding: 1px;background: linear-gradient(120deg,#f3a54c,#00ff88);-webkit-mask: linear-gradient(#000,#000) content-box,linear-gradient(#000,#000);-webkit-mask-composite: xor;mask-composite: exclude;}/* Journey */.journey {padding-top: 4vw;background: #f7f9fc;}.journey__steps {list-style: none;margin: 0;padding: 0;display: grid;gap: 1.4rem;grid-template-columns: repeat(auto-fit,minmax(180px,1fr));}.step {background: #fff;border: 1px solid #eceff3;padding: 1.15rem 1rem 1.3rem;border-radius: 1rem;display: flex;flex-direction: column;gap: .45rem;box-shadow: 0 6px 16px -6px rgba(28,40,56,.18);transition: transform .35s ease,box-shadow .35s ease;}.step:hover {transform: translateY(-4px);box-shadow: 0 10px 28px -10px rgba(28,40,56,.35);}.step__num {width: 38px;height: 38px;border-radius: 50%;display: flex;align-items: center;justify-content: center;font-weight: 600;font-size: .85rem;background: linear-gradient(135deg,#f3a54c,#ffcb7a);color: #111;box-shadow: 0 4px 10px -2px rgba(0,0,0,.25);}.step h3 {margin: 0;font-size: .85rem;letter-spacing: .5px;color: #222;font-weight: 600;}.step p {margin: 0;font-size: .68rem;line-height: 1.35;color: #4a5663;}/* Buttons */.btn-secondary {background: linear-gradient(135deg,#f3a54c,#ffcb7a);color: #111;border: none;font-weight: 600;}.btn-secondary.disabled, .btn-secondary[aria-disabled='true'] {filter: grayscale(.7) brightness(.6);cursor: not-allowed;}/* Solutions */.cards {background: #f7f7f7;padding: 70px clamp(2.5rem,6vw,5rem);display: grid !important;grid-template-columns: repeat(auto-fit,minmax(340px,1fr));gap: 60px clamp(2rem,3.2vw,3rem);}.cards > .card {background: #fff;border: 1px solid #e3e5e8;border-radius: 8px;padding: 36px 34px 42px;display: flex;flex-direction: column;gap: 1px;box-shadow: 0 6px 22px -8px rgba(0,0,0,.12);transition: .35s ease;position: relative;isolation: isolate;}.cards > .card::before {content: "";position: absolute;inset: 0;border-radius: inherit;background: linear-gradient(135deg,rgba(255,255,255,.2),rgba(255,255,255,0));opacity: 0;transition: opacity .45s ease;pointer-events: none;}.cards > .card:hover {transform: translateY(-6px);box-shadow: 0 14px 38px -12px rgba(0,0,0,.22);}.cards > .card:hover::before {opacity: 1;}.cards > .card img {width: 100%;height: 200px;object-fit: cover;border-radius: 4px;margin: -8px 0 6px;box-shadow: 0 4px 10px -4px rgba(0,0,0,.18);}.cards > .card h3 {margin: 10px 0 6px;font-size: 22px;font-weight: 700;letter-spacing: .4px;color: #1d2433;}.cards > .card p {margin: 0;font-size: 14px;line-height: 1.55;color: #2a313d;letter-spacing: .25px;}@media (max-width:880px) {.cards {gap: 40px 28px;padding: 60px clamp(1.5rem,5vw,3rem)}.cards > .card {padding: 30px 26px 36px}}@media (max-width:560px) {.cards {grid-template-columns: 1fr;padding: 50px 1.25rem 60px}.cards > .card {padding: 26px 22px 32px}.cards > .card img {height: 180px}}/* Special + bottom CTA */.special-content {background: #e5e5ea;position: relative;padding: 110px clamp(2rem,6vw,5rem) 60px;display: flex;flex-direction: column;align-items: center;gap: 70px;}.special-card {max-width: 860px;width: 100%;border-radius: 26px;padding: 54px 56px 60px;background: #fff;box-shadow: 0 18px 42px -14px rgba(0, 0, 0, .12);display: flex;flex-direction: column;gap: 2vw;}.special-card h2 {font-size: 2.05rem;text-align: center;color: #111;font-weight: 700;}.special-card p {font-size: 1rem;line-height: 1.55;color: #111;margin: 0;}.secondaryCard {display: flex;flex-direction: column;gap: 1vw;}.secondaryCard button {width: max-content;color: #f3a54c;background: black;padding: 0.8vw;border-radius: 1vw;font-weight: 900;}.cta-bottom {text-align: center;max-width: 760px;width: 100%;background: #fff;padding: 54px 48px 60px;border-radius: 26px;box-shadow: 0 18px 42px -14px rgba(0,0,0,.12);display: flex;flex-direction: column;gap: 22px;}.cta-bottom__title {margin: 0;font-size: 1.9rem;font-weight: 700;letter-spacing: .5px;color: #111;}.cta-bottom__text {margin: 0;font-size: 1.05rem;line-height: 1.55;color: #222;}.cta-bottom__btn {align-self: center;margin-top: 6px;font-size: .95rem;padding: .9rem 2.2rem;}@media (max-width:860px) {.special-card, .cta-bottom {padding: 46px 40px 52px}.special-card h2 {font-size: 1.85rem}.cta-bottom__title {font-size: 1.75rem}.cta-bottom__text {font-size: 1rem}}@media (max-width:560px) {.special-content {padding: 80px 1.25rem 50px;gap: 50px}.special-card, .cta-bottom {padding: 40px 30px 46px}.special-card h2 {font-size: 1.6rem}.cta-bottom__title {font-size: 1.55rem}.cta-bottom__text {font-size: .95rem}.cta-bottom__btn {width: 100%}}/* Footer */footer {position: relative;background: #05080d;padding: 2.2rem 1rem 2.6rem;margin: 0;}footer p {font-size: .65rem;letter-spacing: .5px;margin: 0 0 .9rem;color: #9aa6b5;}.footer-links a {font-size: .6rem;letter-spacing: .6px;color: #d5dee9;opacity: .85;transition: opacity .3s ease;}.footer-links a:hover {opacity: 1;}/* Footer redesign */.site-footer {background: #000;padding: 38px clamp(1.5rem,4vw,3.5rem) 54px;text-align: center;display: flex;flex-direction: column;align-items: center;gap: 26px;}.site-footer__copy {margin: 0;font-size: .78rem;letter-spacing: .5px;color: #e5e5e5;font-weight: 500;}.site-footer__row {display: flex;flex-direction: column;align-items: center;gap: 22px;}.site-footer__links {display: flex;align-items: center;gap: 30px;font-size: .8rem;font-weight: 500;flex-wrap: wrap;justify-content: center;}.site-footer__links a {color: #e5e5e5;text-decoration: none;position: relative;letter-spacing: .4px;transition: color .25s ease;}.site-footer__links a:hover {color: #f3a54c;}.site-footer__links a + a::before {content: "";position: absolute;left: -15px;top: 50%;width: 2px;height: 16px;background: #333;transform: translateY(-50%);border-radius: 2px;}.site-footer__social {display: flex;gap: 34px;align-items: center;justify-content: center;}.site-footer__social a {width: 42px;height: 42px;border-radius: 50%;display: flex;align-items: center;justify-content: center;background: #111;border: 1px solid #32363d;color: #e5e5e5;font-size: 16px;transition: .3s ease;box-shadow: 0 4px 10px -4px rgba(0,0,0,.45);}.site-footer__social a:hover {color: #f3a54c;border-color: #f3a54c;transform: translateY(-3px);}@media (max-width:680px) {.site-footer {padding: 46px 1.25rem 70px;}.site-footer__links {gap: 20px;font-size: .72rem;}.site-footer__social {gap: 20px;}.site-footer__social a {width: 38px;height: 38px;font-size: 15px;}}/* Background */.page {display: block;min-height: 100vh;background: linear-gradient(rgba(5,8,13,.65),rgba(5,8,13,.65)),url('/assets/11.png') center/cover fixed no-repeat;}/* Header */.header-bar {background: #000 !important;box-shadow: 0 2px 0 rgba(255,255,255,.04);display: flex !important;align-items: center !important;justify-content: flex-start;min-height: 82px;padding: 14px clamp(1.4rem,4vw,3rem) !important;gap: clamp(1.5rem,3vw,4rem);position: sticky;top: 0;z-index: 2002;}.header-bar .brand {display: inline-flex;align-items: center;gap: 1.5vw;}.header-bar .brand__logo-img {background: #fff;width: 74px;min-width: 74px;max-width: 74px;padding: 6px;border-radius: 50%;box-shadow: 0 4px 10px rgba(0,0,0,.25);}.header-bar .brand__name {font-family: Roliana;font-size: 2.5vw;font-weight: 300;letter-spacing: 3.2px;color: #fff;text-shadow: 0 2px 4px rgba(0,0,0,.35);display: flex;align-items: center;gap: 2px;}.header-bar .brand__name strong {color: #f3a54c;font-weight: 300;}.header__nav {flex: 1 1 auto !important;display: flex !important;align-items: center;justify-content: center;gap: clamp(2.2rem,3.4vw,4rem) !important;margin: 0 !important;white-space: nowrap;}.nav-link--icon {display: inline-flex;align-items: center;gap: 8px;font-size: 0.9vw;letter-spacing: 1px;font-weight: 700;color: #fff;opacity: .92;text-decoration: none;padding: 6px 10px;position: relative;transition: .25s ease;height: 46px;line-height: 1;}.nav-link--icon i {font-size: .85rem;opacity: .95;}.nav-link--icon:hover {color: #f3a54c;opacity: 1;}.nav-link--icon::after {content: "";position: absolute;left: 8px;right: 8px;bottom: 2px;height: 2px;background: linear-gradient(90deg,#f3a54c,#ffcb7a);transform: scaleX(0);transform-origin: left;transition: transform .35s ease;border-radius: 2px;}.nav-link--icon:hover::after {transform: scaleX(1);}.header__actions {flex: 0 0 auto;display: flex;align-items: center;justify-content: flex-end;gap: 1rem;margin: 0 !important;}.btn-signup, .btn-signin {border-radius: 10px;font-size: .8rem;padding: .65rem 1.25rem;font-weight: 600;letter-spacing: .5px;line-height: 1;}.btn-signup {background: #f3a54c;color: #0b0f1a;border: none;box-shadow: 0 4px 10px -2px rgba(243,165,76,.4);}.btn-signup:hover {filter: brightness(1.08);}.btn-signin {background: #0b0f1a;color: #fff;border: 2px solid #f3a54c;}.btn-signin:hover {background: #121b27;}/* Tagline line break styling */.tagline-line2 {display: inline-block;margin-top: .35rem;font-weight: 700;background: linear-gradient(90deg,#ffe2c5,#ffffff);-webkit-background-clip: text;color: transparent;}.hero__title br {content: "";}/* Auth Modal */.modal-backdrop {position: fixed;inset: 0;background: rgba(0,0,0,.55);backdrop-filter: blur(6px);-webkit-backdrop-filter: blur(6px);display: flex;align-items: center;justify-content: center;padding: 24px clamp(12px,4vw,40px);z-index: 2000;animation: modalFade .25s ease;}@keyframes modalFade {from {opacity: 0}to {opacity: 1}}.modal-panel {position: relative;width: 56%;border-radius: 22px;background: #0f1522;color: #e5e7eb;padding: 52px 44px 48px;animation: panelIn .35s cubic-bezier(.16,1,.3,1);}.modal-panel--white {background: transparent;color: #111;}@keyframes panelIn {from {transform: translateY(22px) scale(.95);opacity: 0}to {transform: translateY(0) scale(1);opacity: 1}}button.modal-close {position: absolute;top: 14px;right: 14px;width: 38px;height: 38px;border-radius: 50%;background: #0b0f1a;color: #fff;border: 2px solid #f3a54c;font-size: 20px;font-weight: 600;cursor: pointer;display: flex;align-items: center;justify-content: center;transition: .25s ease;}.modal-panel--white button.modal-close {background: #fff;color: #111;border: 2px solid #f3a54c;}button.modal-close:hover {border-color: #00ff88;transform: scale(.92);}button.modal-close:focus-visible {outline: 3px solid #00ff88;outline-offset: 2px;}.modal-panel app-sign-in, .modal-panel app-sign-up {display: block;}.page, .hero, .features, .journey, .cards, .special-content {position: relative;z-index: 1;}@media (max-width:1100px) {.header__nav {gap: 1.6rem;}}@media (max-width:880px) {.header-bar {flex-wrap: wrap;min-height: unset;}.header__nav {order: 3;flex: 1 1 100%;justify-content: center;flex-wrap: wrap;gap: .85rem 1.4rem;padding-top: .35rem;}.header__actions {order: 2;}}@media (max-width:900px) {.header-bar .brand__name {font-size: 8vw;}}@media (max-width:640px) {.nav-link--icon {font-size: .64rem;}}a.brand.brand__link {text-decoration: unset;}.cta {display: flex;gap: 1vw;}.about-backdrop {position: fixed;inset: 0;background: rgba(0, 0, 0, 0.7);z-index: 1000;}.about-modal {position: fixed;top: 50%;left: 50%;transform: translate(-50%, -50%);background: #ffffff;border-radius: 12px;padding: 2.5rem;width: 45%;box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);z-index: 1001;display: flex;flex-direction: column;gap: 1.5rem;animation: _ngcontent-ng-c221623785_modalFadeIn 0.4s ease-out;text-align: justify;margin: 0 auto;}.about-modal__header {display: flex;justify-content: space-between;align-items: center;}.about-modal__title {font-size: 1.5rem;font-weight: 700;margin: 0;color: #f3a54c;}.about-modal__close {background: transparent;border: 2px solid black;color: #f3a54c;font-size: 1.2rem;cursor: pointer;transition: color 0.3s ease;border-radius: 0.3vw;}.about-modal__close:hover {background: #f3a54c;color: black;}.about-modal__content {color: #e5e7eb;line-height: 1.6;}.about-modal__footer {display: flex;justify-content: flex-end;align-items: center;gap: 1rem;}.about-modal__btn {background: linear-gradient(135deg, #f3a54c, #ffcb7a);color: #111;border: none;padding: 0.8rem 1.5rem;border-radius: 8px;font-weight: 600;cursor: pointer;transition: transform 0.3s ease;}.about-modal__btn:hover {transform: translateY(-2px);}@keyframes modalFadeIn {from {opacity: 0;transform: translate(-50%, -40%);}to {opacity: 1;transform: translate(-50%, -50%);}}@keyframes modalFadeOut {from {opacity: 1;transform: translate(-50%, -50%);}to {opacity: 0;transform: translate(-50%, -60%);}}/* Marriage Sub Navigation */.nav-item-wrapper {position: relative;display: inline-block;}.sub-nav {position: absolute;top: 100%;left: 0;background: #0b0f1a;border: 1px solid rgba(255,255,255,.12);border-radius: 8px;padding: 8px 0;min-width: 200px;box-shadow: 0 8px 24px rgba(0,0,0,.4);backdrop-filter: blur(14px);z-index: 1000;animation: subnavFadeIn 0.2s ease-out;}.sub-nav-link {display: flex;align-items: center;gap: 10px;padding: 10px 16px;color: #e5e7eb;text-decoration: none;font-size: 0.75vw;font-weight: 600;letter-spacing: 0.5px;transition: all 0.25s ease;border: none;background: none;width: 100%;text-align: left;cursor: pointer;}.sub-nav-link:hover {background: rgba(243, 165, 76, 0.1);color: #f3a54c;}.sub-nav-link i {font-size: 0.85rem;width: 16px;text-align: center;}@keyframes subnavFadeIn {from {opacity: 0;transform: translateY(-8px);}to {opacity: 1;transform: translateY(0);}}/* Ensure the main nav items have proper z-index */.header__nav {position: relative;z-index: 1001;}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944:host {display: block;}/* Utility */.visually-hidden {position: absolute !important;width: 1px;height: 1px;padding: 0;margin: -1px;overflow: hidden;clip: rect(0 0 0 0);white-space: nowrap;border: 0;}.skip-link {position: absolute;top: -40px;left: 6px;background: #3AB8A9;color: #000;padding: 8px;text-decoration: none;z-index: 10000;transition: top 0.3s;}.skip-link:focus {top: 6px;}/* Layout container */.container {width: 80%;margin: 0 auto;display: flex;align-items: center;flex-direction: column;}/* Background */.page {display: block;min-height: 100vh;background: linear-gradient(rgba(13,27,42,.65),rgba(13,27,42,.65)),url('/assets/heroBg.png') center/cover fixed no-repeat;}.page, .hero, .features, .journey, .cards, .special-content {position: relative;z-index: 1;}/* HERO */.hero {position: relative;height: 100vh;display: flex;align-items: center;background: radial-gradient(circle at 20% 30%,rgba(58,184,169,.18),transparent 60%),radial-gradient(circle at 75% 55%,rgba(212,167,85,.12),transparent 55%);}.hero__layout {display: grid;grid-template-columns: repeat(auto-fit,minmax(320px,1fr));align-items: center;gap: clamp(2.2rem,5vw,5rem);}.hero__content {position: relative;z-index: 2;}.hero__title {font-size: 2.7vw;line-height: 1.1;margin: 0 0 1.2rem;font-weight: 700;background: linear-gradient(90deg,#fff,#d4a755 45%,#fff);-webkit-background-clip: text;color: transparent;filter: drop-shadow(0 4px 18px rgba(0,0,0,.35));}.tagline-line2 {display: inline-block;margin-top: .35rem;font-weight: 700;background: linear-gradient(90deg,#d4a755,#ffffff);-webkit-background-clip: text;color: transparent;}.hero__title br {content: "";}.hero__text {font-size: clamp(.95rem,1.15vw,1.2rem);max-width: 62ch;line-height: 1.55;margin: 0 0 1.6rem;color: #d8dee7;font-weight: 500;}.hero__badges {display: flex;flex-wrap: wrap;gap: .75rem 1rem; /* Increased gap */margin: 0 0 2rem; /* Increased bottom margin */}.badge {position: relative;/*padding: .5rem .95rem .55rem;*/ /* Added padding */border-radius: 2rem;font-size: 0.8rem; /* Changed from 0.7vw to fixed size */letter-spacing: .8px;font-weight: 600;text-transform: uppercase;color: #ffffff;/* background: rgba(255, 255, 255, 0.1);*//* border: 1px solid rgba(255, 255, 255, 0.2);*/}.hero__sub-cta {margin: 1.25rem 0 0;font-size: .8rem;letter-spacing: .6px;color: #b8c4d2;}/* CTA Styles */.cta {display: flex;gap: 1vw;align-items: center;flex-wrap: wrap;}.btn-primary {background: linear-gradient(135deg,#3AB8A9,#5EC8BA);color: #111;border: none;padding: 0.9rem 2rem;border-radius: 10px;font-weight: 600;font-size: 1rem;cursor: pointer;transition: all 0.3s ease;box-shadow: 0 4px 15px rgba(58, 184, 169, 0.3);}.btn-primary:hover {transform: translateY(-2px);box-shadow: 0 6px 20px rgba(58, 184, 169, 0.4);border: 2px solid #D4A755;}.btn-ghost {background: transparent;color: #fff;border: 2px solid #3AB8A9;padding: 0.9rem 2rem;border-radius: 10px;font-weight: 600;font-size: 1rem;cursor: pointer;transition: all 0.3s ease;}.btn-ghost:hover {background: rgba(58, 184, 169, 0.1);transform: translateY(-2px);border-color: #D4A755;}.btn-secondary {background: linear-gradient(135deg,#3AB8A9,#5EC8BA);color: #111;border: none;font-weight: 600;}.btn-secondary.disabled, .btn-secondary[aria-disabled='true'] {filter: grayscale(.7) brightness(.6);cursor: not-allowed;}/* Trust Indicators */.trust-indicators {display: flex;gap: 3rem; /* Increased gap */margin: 2rem 0; /* Increased margin *//* justify-content: center;*/align-items: center;}.trust-stats {text-align: center;min-width: 100px;display: flex;align-items: center;}.stat {display: block;font-size: 1.8rem; /* Slightly larger */font-weight: 700;color: #3AB8A9;/* margin-bottom: 0.25rem;*/}.stat-label {font-size: 0.85rem;color: #b8c4d2;font-weight: 500;text-transform: none;letter-spacing: 0.3px;}/* Override: ensure trust icons are visible (fix for fa icons hidden earlier) */.trust-indicators .trust-stats .stat {display: inline-block !important;visibility: visible !important;}/* Scroll Indicator */.scroll-indicator {position: absolute;bottom: 2rem;left: 50%;transform: translateX(-50%);color: #3AB8A9;font-size: 2rem; /* Increased from 1.5rem */cursor: pointer;animation: bounce 2s infinite;top: 32vw;z-index: 10;}@keyframes bounce {0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}40% {transform: translateX(-50%) translateY(-10px);}60% {transform: translateX(-50%) translateY(-5px);}}/* Header */.header-bar {background: #0D1B2A !important;box-shadow: 0 2px 0 rgba(255,255,255,.04);display: flex !important;align-items: center !important;justify-content: flex-start;min-height: 82px;padding: 14px clamp(1.4rem,4vw,3rem) !important;gap: clamp(1.5rem,3vw,4rem);position: sticky;top: 0;z-index: 2002;}.header-bar .brand {display: inline-flex;align-items: center;gap: 1.5vw;}a.brand.brand__link {text-decoration: unset;}.header-bar .brand__logo-img {background: #fff;width: 74px;min-width: 74px;max-width: 74px;padding: 6px;border-radius: 50%;box-shadow: 0 4px 10px rgba(0,0,0,.25);}.header-bar .brand__name {font-family: Roliana;font-size: 2.5vw;font-weight: 300;letter-spacing: 3.2px;color: #fff;text-shadow: 0 2px 4px rgba(0,0,0,.35);display: flex;align-items: center;gap: 2px;}.header-bar .brand__name strong {color: #3AB8A9;font-weight: 300;}.header__nav {flex: 1 1 auto !important;display: flex !important;align-items: center;justify-content: center;gap: clamp(2.2rem,3.4vw,4rem) !important;margin: 0 !important;white-space: nowrap;position: relative;z-index: 1001;}.nav-link--icon {display: inline-flex;align-items: center;gap: 8px;font-size: 0.9vw;letter-spacing: 1px;font-weight: 700;color: #fff;opacity: .92;text-decoration: none;padding: 6px 10px;position: relative;transition: .25s ease;height: 46px;line-height: 1;cursor: pointer;background: none;border: none;}.nav-link--icon i {font-size: .85rem;opacity: .95;}.nav-link--icon:hover {color: #3AB8A9;opacity: 1;}.nav-link--icon::after {content: "";position: absolute;left: 8px;right: 8px;bottom: 2px;height: 2px;background: linear-gradient(90deg,#3AB8A9,#D4A755);transform: scaleX(0);transform-origin: left;transition: transform .35s ease;border-radius: 2px;}.nav-link--icon:hover::after {transform: scaleX(1);}.nav-link--icon.disabled,.nav-link--icon[aria-disabled="true"] {pointer-events: none;opacity: 0.5;cursor: not-allowed;}.header__actions {flex: 0 0 auto;display: flex;align-items: center;justify-content: flex-end;gap: 1rem;margin: 0 !important;}.user-menu {display: flex;align-items: center;gap: 1rem;}.btn-signup, .btn-signin {border-radius: 10px;font-size: .8rem;padding: .65rem 1.25rem;font-weight: 600;letter-spacing: .5px;line-height: 1;cursor: pointer;transition: all 0.3s ease;}.btn-signup {background: #3AB8A9;color: #0D1B2A;border: none;box-shadow: 0 4px 10px -2px rgba(58,184,169,.4);}.btn-signup:hover {filter: brightness(1.08);transform: translateY(-1px);border: 2px solid #D4A755;}.btn-signin {background: #0D1B2A;color: #fff;border: 2px solid #3AB8A9;}.btn-signin:hover {background: #1B2635;transform: translateY(-1px);border-color: #D4A755;}h2#featuresTitle {width: 100%;}h2#specialTitle, h2#journeyTitle {display: flex;justify-content: center;width: 100%;font-size: 1.5vw;color: #3AB8A9 !important;}/* Features Section */.features {padding: 4vw 0;background: linear-gradient(135deg, #0D1B2A 0%, #1B2635 50%, #0D1B2A 100%);position: relative;overflow: hidden;}.features::before {content: "";position: absolute;top: 0;left: 0;right: 0;bottom: 0;background: radial-gradient(circle at 20% 30%, rgba(58, 184, 169, 0.08) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(212, 167, 85, 0.06) 0%, transparent 50%), radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);pointer-events: none;}.features__header {text-align: center;max-width: 800px;margin: 0 auto 4rem;}.section-title {color: white;background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);border: 1px solid rgba(255, 255, 255, 0.1);border-radius: 20px;margin: 0 0 1vw 0;width: -moz-fit-content;width: fit-content;padding: 0.3vw 3vw;box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;}.features .section-title {font-size: 1.5vw;background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);margin-bottom: 1.5rem;}.features__intro {font-size: 1.2rem;line-height: 1.7;color: #d1d8e3;margin: 0;font-weight: 400;text-align: justify;}.features__intro strong {color: #3AB8A9;font-weight: 600;}.features__grid {display: grid;grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));gap: 2rem;max-width: 1200px;margin: 0 auto 4rem;}.feature-card {background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);border: 1px solid rgba(255, 255, 255, 0.1);border-radius: 20px;padding: 2rem; /* Increased from 1vw */backdrop-filter: blur(20px);transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);position: relative;overflow: hidden;}.feature-card__content {text-align: justify;}.feature-card::before {content: "";position: absolute;top: 0;left: 0;right: 0;height: 1px;background: linear-gradient(90deg, transparent, #3AB8A9, transparent);opacity: 0;transition: opacity 0.4s ease;}.feature-card:hover {transform: translateY(-8px);border-color: rgba(58, 184, 169, 0.3);box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(58, 184, 169, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);}.feature-card:hover::before {opacity: 1;}.feature-card__icon {width: 100%;display: flex;font-size: 1vw;border-radius: 16px;background: linear-gradient(135deg, #1B2635, #2A3747);color: #d4a755;margin-bottom: 2rem; /* Increased spacing */transition: all 0.3s ease;align-items: center;justify-content: space-evenly;}.iconHeader {margin: 0.3vw;font-size: 1vw;}.feature-card:hover .feature-card__icon {background: linear-gradient(135deg, #3AB8A9, #5EC8BA);color: #111;font-size: 1vw;}.feature-card__content h3 {font-size: 1.3rem;font-weight: 700;color: #fff;margin: 0 0 1rem;letter-spacing: 0.5px;line-height: 1.3;}.feature-card__content p {font-size: 1rem;line-height: 1.6;color: #d1d8e3;margin: 0;font-weight: 400;}/* Gradient Ring */.gradient-ring {position: relative;}.gradient-ring::before {content: "";position: absolute;inset: -2px;border-radius: inherit;padding: 2px;background: linear-gradient(135deg, #3AB8A9, #D4A755, #3AB8A9);background-size: 200% 200%;-webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);mask-composite: exclude;animation: gradientShift 3s ease infinite;}@keyframes gradientShift {0%, 100% {background-position: 0% 50%;}50% {background-position: 100% 50%;}}.feature-card:hover .gradient-ring::before {animation-duration: 1.5s;}#features {scroll-margin-top: 89px;}/* Journey */.journey {padding-top: 5.5vw;background: #f7f9fc;}.journey__steps {list-style: none;margin: 0;padding: 0;display: flex;gap: 1.4rem;/*grid-template-columns: repeat(auto-fit,minmax(180px,1fr));*/}.step {background: #fff;border: 1px solid #eceff3;padding: 1.5rem 1.25rem 1.75rem; /* Increased padding */border-radius: 1rem;display: flex;flex-direction: column;gap: .6rem; /* Increased gap */box-shadow: 0 6px 16px -6px rgba(28,40,56,.18);transition: transform .35s ease,box-shadow .35s ease;}.step:hover {transform: translateY(-4px);box-shadow: 0 10px 28px -10px rgba(28,40,56,.35);}.step__num {width: 38px;height: 38px;border-radius: 50%;display: flex;align-items: center;justify-content: center;font-weight: 600;font-size: .85rem;background: linear-gradient(135deg,#3AB8A9,#5EC8BA);color: #111;box-shadow: 0 4px 10px -2px rgba(0,0,0,.25);}.step h3 {margin: 0;font-size: 1vw;letter-spacing: .5px;color: #222;font-weight: 600;}.step p {margin: 0;font-size: 0.6vw;line-height: 1.35;color: #4a5663;}/* Solutions Cards */.cards {background: #f7f7f7;padding: 70px clamp(2.5rem,6vw,5rem);display: grid !important;grid-template-columns: repeat(auto-fit,minmax(340px,1fr));gap: 60px clamp(2rem,3.2vw,3rem);}.cards > .card {background: #fff;border: 1px solid #e3e5e8;border-radius: 8px;padding: 36px 34px 42px;display: flex;flex-direction: column;gap: 1px;box-shadow: 0 6px 22px -8px rgba(0,0,0,.12);transition: .35s ease;position: relative;isolation: isolate;}.cards > .card::before {content: "";position: absolute;inset: 0;border-radius: inherit;background: linear-gradient(135deg,rgba(255,255,255,.2),rgba(255,255,255,0));opacity: 0;transition: opacity .45s ease;pointer-events: none;}.cards > .card:hover {transform: translateY(-6px);box-shadow: 0 14px 38px -12px rgba(0,0,0,.22);}.cards > .card:hover::before {opacity: 1;}.cards > .card img {width: 100%;height: 200px;object-fit: cover;border-radius: 4px;margin: -8px 0 6px;box-shadow: 0 4px 10px -4px rgba(0,0,0,.18);}.cards > .card h3 {margin: 10px 0 6px;font-size: 22px;font-weight: 700;letter-spacing: .4px;color: #1d2433;}.cards > .card p {margin: 0;font-size: 14px;line-height: 1.55;color: #2a313d;letter-spacing: .25px;}.card-cta {background: #3AB8A9;color: #000;border: none;padding: 0.8rem 1.5rem;border-radius: 6px;font-weight: 600;cursor: pointer;margin-top: 1rem;transition: all 0.3s ease;}.card-cta:hover {background: #2DA89A;transform: translateY(-2px);border: 2px solid #D4A755;}/* Testimonials */.testimonials {background: linear-gradient(135deg, #0D1B2A, #1B2635);padding: 4rem 0;color: white;}.testimonials-grid {display: grid;grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));gap: 2rem;margin-top: 2rem;width: 80vw;}.testimonial {background: rgba(255, 255, 255, 0.08);padding: 2rem;border-radius: 12px;border: 1px solid rgba(255, 255, 255, 0.1);display: flex;flex-direction: column;align-items: center;text-align: justify;}.testimonial-avatar {width: 60px;height: 60px;border-radius: 50%;background: #3AB8A9;display: flex;align-items: center;justify-content: center;margin-bottom: 1rem;font-size: 1.5rem;color: #000;}.testimonial-content p {font-style: italic;margin-bottom: 1rem;line-height: 1.6;text-align: left; /* Changed from center */}.testimonial-author strong {color: #3AB8A9;display: block;margin-bottom: 0.25rem;}.testimonial-author span {font-size: 0.9rem;opacity: 0.8;display: block;margin-bottom: 0.5rem;}.rating {color: #3AB8A9;font-size: 0.9rem;}/* Special Content Section */.special-content {background: linear-gradient(135deg, #f8fafc, #eef2f6);padding: 5rem 0;position: relative;}.special-content .section-title {color: #3AB8A9;margin-bottom: 3rem;text-align: center;}/* Grid: keep 2:1 columns and ensure both cards stretch to same height */.special-content__grid {display: grid;grid-template-columns: 2fr 1fr;gap: 2.5rem;max-width: 1200px;margin: 0 auto;align-items: start; /* ensure top aligned */}/* Special Cards */.special-card {background: #fff;border-radius: 20px;padding: 2.5rem;box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);border: 1px solid rgba(255, 255, 255, 0.8);backdrop-filter: blur(10px);transition: all 0.3s ease;}.special-card:hover {transform: translateY(-5px);box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);}.special-card__icon {width: 50px;height: 50px;display: flex;align-items: center;justify-content: center;font-size: 1.2rem;border-radius: 12px;background: linear-gradient(135deg, #1B2635, #2A3747);color: #d4a755;}.special-card h3 {font-size: 1.4rem;font-weight: 700;color: #111;margin: 0;}/* FAQ Card: larger internal padding and pill-like items */.faq-card {grid-column: 1;padding: 2.5rem;}.faq-grid {display: flex;flex-direction: column;gap: 1.25rem;overflow-y: scroll;max-height: 463px;}.faq-item {background: #fff;border-radius: 14px;padding: 1.15rem 1.5rem;transition: all 0.3s ease;box-shadow: 0 18px 32px -22px rgba(13,27,42,0.5), 0 10px 18px -16px rgba(13,27,42,0.2);position: relative;cursor: pointer;}.faq-item:hover {transform: translateY(-4px);box-shadow: 0 20px 40px rgba(13,27,42,0.08);}/* Decorative left rounded accent */.faq-item::before {content: "";position: absolute;left: -16px;top: 50%;transform: translateY(-50%);width: 14px;height: 72%;border-radius: 12px;background: linear-gradient(180deg,#3AB8A9,#0bb);box-shadow: 0 6px 18px rgba(58,184,169,0.12);}.faq-question {display: flex;align-items: center;gap: 0.75rem;margin: 0;background: none;border: none;padding: 0;width: 100%;text-align: left;cursor: pointer;position: relative;}.faq-question h4 {font-size: 1rem;font-weight: 600;color: #111;margin: 0;flex: 1;}.faq-toggle-icon {margin-left: auto;color: #3AB8A9;font-size: .85rem;display: flex;align-items: center;}.faq-answer {margin-top: .75rem;animation: faqFade .3s ease;color: #586471;font-size: 0.95rem;line-height: 1.6;}@keyframes faqFade {from {opacity: 0;transform: translateY(-4px);}to {opacity: 1;transform: translateY(0);}}.faq-item.open {background: #fff;box-shadow: 0 24px 48px rgba(13,27,42,0.08);transition: .3s ease;}.faq-item.open .faq-question h4 {color: #0b7a6f; /* subtle teal when open */}/* Contact Card: dark variant to match design */.contact-card {background: linear-gradient(180deg,#071922,#0a2b33);color: #dceff0;padding: 2.5rem;display: flex;flex-direction: column;gap: 1.5rem;justify-content: space-between;min-height: 520px; /* match FAQ max height */border-radius: 18px;box-shadow: 0 20px 50px rgba(2,18,24,0.45);border: 1px solid rgba(58,184,169,0.06);}.contact-card .special-card__header {display: flex;align-items: flex-start;gap: 1rem;}.contact-card .special-card__icon {width: 58px;height: 58px;border-radius: 14px;background: linear-gradient(180deg,#2ee3c4,#0f9f8b);color: #01302b;font-weight: 700;display: flex;align-items: center;justify-content: center;box-shadow: 0 6px 18px rgba(0,0,0,0.35);}.contact-card h3 {color: #3dd6bf;font-size: 1.35rem;margin: 0;}.contact-content p {color: #cfeeea;margin: 0 0 .5rem 0;line-height: 1.7;}.contact-features {display: flex;flex-direction: column;gap: 0.85rem;margin-top: 0.5rem;}.contact-feature {display: flex;align-items: center;gap: 1rem;background: rgba(255,255,255,0.03);padding: 0.9rem 1rem;border-radius: 10px;color: #d7f6ef;box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);}.contact-feature i {background: rgba(0,0,0,0.12);width: 34px;height: 34px;display: inline-flex;align-items: center;justify-content: center;border-radius: 8px;color: #3AB8A9;}.contact-btn.btn-primary {background: linear-gradient(135deg, #3AB8A9, #5EC8BA);color: #0c1b1a;padding: 0.85rem 1.2rem;border-radius: 12px;font-weight: 700;display: inline-flex;gap: .75rem;align-items: center;justify-content: center;border: none;margin-top: 1vw;}.contact-btn.btn-primary:hover {transform: translateY(-2px);}/* Enhanced CTA Bottom Section */.cta-bottom {background: linear-gradient(135deg, #0D1B2A 0%, #1B2635 100%);border: 1px solid rgba(255, 255, 255, 0.1);border-radius: 24px;padding: 4rem 3rem;text-align: center;position: relative;overflow: hidden;backdrop-filter: blur(20px);box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(58, 184, 169, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);margin: 3rem auto;max-width: 800px;}.cta-bottom::before {content: "";position: absolute;top: 0;left: 0;right: 0;height: 1px;background: linear-gradient(90deg, transparent, #3AB8A9, transparent);}.cta-bottom::after {content: "";position: absolute;inset: 0;background: radial-gradient(circle at 30% 20%, rgba(58, 184, 169, 0.1) 0%, transparent 50%), radial-gradient(circle at 70% 80%, rgba(212, 167, 85, 0.05) 0%, transparent 50%);pointer-events: none;}.cta-bottom__title {font-size: clamp(1.8rem, 3vw, 2.5rem);font-weight: 700;background: linear-gradient(135deg, #fff 0%, #d4a755 100%);-webkit-background-clip: text;background-clip: text;color: transparent;margin: 0 0 1rem;line-height: 1.2;position: relative;z-index: 2;}.cta-bottom__text {font-size: 1.2rem;line-height: 1.6;color: #d1d8e3;margin: 0 0 2.5rem;max-width: 600px;margin-left: auto;margin-right: auto;font-weight: 400;position: relative;z-index: 2;}.cta-bottom__btn {background: linear-gradient(135deg, #3AB8A9, #5EC8BA);color: #111;border: none;padding: 1.2rem 3rem;border-radius: 14px;font-weight: 700;font-size: 1.1rem;cursor: pointer;transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);box-shadow: 0 8px 30px rgba(58, 184, 169, 0.3), 0 2px 8px rgba(58, 184, 169, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);position: relative;z-index: 2;display: inline-flex;align-items: center;gap: 0.75rem;min-width: 240px;justify-content: center;}.cta-bottom__btn:hover {transform: translateY(-3px);box-shadow: 0 15px 40px rgba(58, 184, 169, 0.4), 0 4px 15px rgba(58, 184, 169, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);border: 2px solid #D4A755;}.cta-bottom__btn:active {transform: translateY(-1px);}.cta-bottom__btn::before {content: "";position: absolute;inset: -2px;border-radius: 16px;padding: 2px;background: linear-gradient(135deg, #3AB8A9, #D4A755, #3AB8A9);background-size: 200% 200%;-webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);-webkit-mask-composite: xor;mask-composite: exclude;opacity: 0;transition: opacity 0.3s ease;}.cta-bottom__btn:hover::before {opacity: 1;animation: gradientShift 2s ease infinite;}.cta-bottom__trust {margin-top: 1.5rem;display: flex;align-items: center;justify-content: center;gap: 1rem;font-size: 0.9rem;color: #9aa6b5;position: relative;z-index: 2;}.cta-bottom__trust-item {display: flex;align-items: center;gap: 0.5rem;}.cta-bottom__trust-item i {color: #D4A755;font-size: 1rem;}/* Footer */.site-footer {background: #0D1B2A;padding: 48px clamp(1.5rem,4vw,3.5rem) 60px; /* Increased top/bottom */text-align: center;display: flex;flex-direction: column;align-items: center;gap: 32px; /* Increased gap */}.site-footer__newsletter {max-width: 500px;}.site-footer__newsletter h4 {color: #3AB8A9;margin-bottom: 0.5rem;font-size: 1vw;}.site-footer__newsletter p {color: #e5e5e5;margin-bottom: 1rem;font-size: 0.8vw;}.newsletter-form {display: flex;gap: 0.5rem;max-width: 400px;margin: 0 auto;}.newsletter-form input {flex: 1;padding: 0.8rem;border: 1px solid #333;border-radius: 6px;background: #1B2635;color: white;}.site-footer__copy {margin: 0;font-size: .78rem;letter-spacing: .5px;color: #e5e5e5;font-weight: 500;}.site-footer__row {display: flex;flex-direction: column;align-items: center;gap: 22px;}.site-footer__links {display: flex;align-items: center;gap: 30px;font-size: .8rem;font-weight: 500;flex-wrap: wrap;justify-content: center;}.site-footer__links a {color: #e5e5e5;text-decoration: none;position: relative;letter-spacing: .4px;transition: color .25s ease;}.site-footer__links a:hover {color: #3AB8A9;}.site-footer__links a + a::before {content: "";position: absolute;left: -15px;top: 50%;width: 2px;height: 16px;background: #333;transform: translateY(-50%);border-radius: 2px;}.site-footer__social {display: flex;gap: 34px;align-items: center;justify-content: center;}.site-footer__social a {width: 42px;height: 42px;border-radius: 50%;display: flex;align-items: center;justify-content: center;background: rgba(58, 184, 169, 0.1);border: 1px solid rgba(58, 184, 169, 0.5);color: #e5e5e5;font-size: 16px;transition: .3s ease;box-shadow: 0 4px 10px -4px rgba(0,0,0,.45);}.site-footer__social .FB_media:hover {border-color: #1877f3;transform: translateY(-3px);}.site-footer__social .Insta_media:hover {border-color: #e4405f;transform: translateY(-3px);}.site-footer__social .LI_media:hover {border-color: #0077b5;transform: translateY(-3px);}.site-footer__social .YT_media:hover {border-color: #ff0000;transform: translateY(-3px);}.site-footer__social a:hover .fa-facebook-f {color: #1877f3;}.site-footer__social a:hover .fa-instagram {color: #e4405f;}.site-footer__social a:hover .fa-linkedin-in {color: #0077b5;}.site-footer__social a:hover .fa-youtube {color: #ff0000;}/* Modals */.modal-backdrop {position: fixed;inset: 0;background: rgba(0,0,0,.55);backdrop-filter: blur(6px);-webkit-backdrop-filter: blur(6px);display: flex;align-items: center;justify-content: center;padding: 24px clamp(12px,4vw,40px);z-index: 2000;animation: modalFade .25s ease;}@keyframes modalFade {from {opacity: 0}to {opacity: 1}}.modal-panel {position: relative;border-radius: 22px;background: #0D1B2A;color: #e5e7eb;padding: 2vw;animation: panelIn .35s cubic-bezier(.16, 1, .3, 1);}@keyframes panelIn {from {transform: translateY(22px) scale(.95);opacity: 0}to {transform: translateY(0) scale(1);opacity: 1}}.modal-panel--white {background: transparent;color: #111;}.popup-header {display: flex;align-items: center;gap: 1vw;text-transform: uppercase;font-size: 1vw;}button.modal-close:hover {opacity: 1;}button.modal-close:focus-visible {outline: 3px solid #D4A755;outline-offset: 2px;}.modal-panel app-sign-in, .modal-panel app-sign-up {display: block;}/* About Modal */.about-backdrop {position: fixed;inset: 0;background: rgba(0, 0, 0, 0.7);z-index: 1000;}.about-modal {position: fixed;top: 55%;left: 50%;transform: translate(-50%, -50%);background: linear-gradient(135deg, rgba(13, 27, 42, 0.95), rgba(27, 38, 53, 0.95));border-radius: 24px;padding: 2.5rem;width: 48%;height: 85vh;box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);z-index: 1001;display: flex;flex-direction: column;gap: 1.5rem;animation: _ngcontent-ng-c2247994864_modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);border: 1px solid rgba(255, 255, 255, 0.15);-webkit-backdrop-filter: blur(20px);backdrop-filter: blur(20px);overflow: hidden;color: #e5e7eb;}.about-modal__header {display: flex;align-items: flex-start;gap: 1rem;position: relative;padding-bottom: 1.5rem;border-bottom: 1px solid rgba(255, 255, 255, 0.1);justify-content: space-between;}/*#termsDialog .about-modal__header{}*/.about-modal__icon {width: 60px;height: 60px;display: flex;align-items: center;justify-content: center;font-size: 1.5rem;border-radius: 16px;background: linear-gradient(135deg, #3AB8A9, #5EC8BA);color: #111;flex-shrink: 0;}.about-modal__title-section {flex: 1;}.about-modal__title {font-size: 2rem;font-weight: 700;margin: 0 0 0.25rem 0;background: linear-gradient(135deg, #3AB8A9, #5EC8BA);-webkit-background-clip: text;background-clip: text;color: transparent;line-height: 1.2;}.about-modal__subtitle {font-size: 1rem;color: #9aa6b5;margin: 0;font-weight: 500;}.about-modal__close {background: rgba(255, 255, 255, 0.1);border: 1px solid rgba(255, 255, 255, 0.2);color: #3AB8A9;font-size: 1rem;cursor: pointer;transition: all 0.3s ease;border-radius: 12px;width: 44px;height: 44px;display: flex;align-items: center;justify-content: center;flex-shrink: 0;backdrop-filter: blur(10px);}.about-modal__close:hover {background: #3AB8A9;color: #111;transform: scale(0.95);border-color: #3AB8A9;}.about-modal__body {flex: 1;overflow-y: auto;padding-right: 0.5rem;color: #d1d8e3;line-height: 1.7;font-size: 1.1rem;text-align: left; /* Ensure left alignment */}.about-modal__body p {margin-bottom: 1.5rem;}.about-modal__body strong {color: #3AB8A9;font-weight: 600;text-transform: uppercase;}.about-modal__body ul {margin: 1.5rem 0;padding-left: 1.5rem;}.about-modal__body li {margin-bottom: 0.75rem;position: relative;}.about-modal__body li::before {content: "•";color: #3AB8A9;font-weight: bold;position: absolute;left: -1rem;}.about-modal__footer {display: flex;justify-content: flex-end;align-items: center;padding-top: 1.5rem;border-top: 1px solid rgba(255, 255, 255, 0.1);}.about-modal__btn {background: linear-gradient(135deg, #3AB8A9, #5EC8BA);color: #111;border: none;padding: 1rem 2rem;border-radius: 12px;font-weight: 600;font-size: 1rem;cursor: pointer;transition: all 0.3s ease;box-shadow: 0 4px 15px rgba(58,184,169, 0.3);display: flex;align-items: center;gap: 0.5rem;min-width: 140px;justify-content: center;}.about-modal__btn:hover {transform: translateY(-2px);box-shadow: 0 6px 20px rgba(58, 184, 169, 0.4);}.about-modal__btn:active {transform: translateY(0);}/* Enhanced Feature Highlights */.feature-highlights {display: grid;grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));gap: 1.5rem;margin: 2rem 0;}.feature-highlight {background: rgba(255, 255, 255, 0.05);border: 1px solid rgba(255, 255, 255, 0.1);border-radius: 16px;padding: 1.5rem;text-align: center;transition: all 0.3s ease;position: relative;}.feature-highlight:hover {transform: translateY(-5px);border-color: rgba(58, 184, 169, 0.3);box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);}.feature-highlight__icon {width: 50px;height: 50px;display: flex;align-items: center;justify-content: center;font-size: 1.5rem;border-radius: 12px;background: linear-gradient(135deg, #1B2635, #2A3747);color: #d4a755;margin: 0 auto;transition: all 0.3s ease;}.feature-highlight h4 {color: #fff;margin: 0 0 0.5rem;font-size: 1.1rem;font-weight: 600;}.feature-highlight p {color: #9aa6b5;margin: 0;font-size: 0.9rem;line-height: 1.4;}/* Benefits Section */.benefits-section {margin-top: 2rem;}.benefits-title {color: #3AB8A9;font-size: 1.3rem;margin-bottom: 1rem;font-weight: 600;}.benefits-grid {display: grid;gap: 0.75rem;}.benefit-item {display: flex;align-items: flex-start;gap: 0.75rem;padding: 0.5rem 0;}.benefit-item i {color: #D4A755;font-size: 0.8rem;margin-top: 0.25rem;flex-shrink: 0;}.benefit-item span {color: #e5e7eb;line-height: 1.5;}/* Policy Modal Styles */.policy-intro {margin-bottom: 2rem;}.policy-intro p {margin-bottom: 1rem;}.policy-points {display: flex;flex-direction: column;gap: 1.5rem;}.policy-item {display: flex;align-items: flex-start;gap: 1rem;padding: 1.5rem;background: rgba(255, 255, 255, 0.05);border-radius: 12px;border: 1px solid rgba(255, 255, 255, 0.1);transition: all 0.3s ease;}.policy-item:hover {border-color: rgba(58, 184, 169, 0.3);transform: translateX(5px);}.policy-icon {width: 50px;height: 50px;display: flex;align-items: center;justify-content: center;font-size: 1.2rem;border-radius: 10px;background: linear-gradient(135deg, #1B2635, #2A3747);color: #3AB8A9;flex-shrink: 0;}.policy-content h4 {color: #fff;margin: 0 0 0.5rem 0;font-size: 1.1rem;font-weight: 600;}.policy-content p {color: #9aa6b5;margin: 0;line-height: 1.5;}/* Terms Modal Styles */.terms-intro {margin-bottom: 2rem;}.terms-intro p {margin-bottom: 1rem;}.terms-sections {display: flex;flex-direction: column;gap: 2rem;}.terms-section {background: rgba(255, 255, 255, 0.05);border-radius: 12px;padding: 1.5rem;border: 1px solid rgba(255, 255, 255, 0.1);}.terms-section-title {color: #3AB8A9;font-size: 1.2rem;margin: 0 0 1rem 0;font-weight: 600;display: flex;align-items: center;gap: 0.5rem;}.terms-list {display: flex;flex-direction: column;gap: 0.75rem;}.term-item {display: flex;align-items: flex-start;gap: 0.75rem;padding: 0.5rem 0;}.term-item i {color: #D4A755;font-size: 0.8rem;margin-top: 0.25rem;flex-shrink: 0;}.term-item span {color: #e5e7eb;line-height: 1.5;}/* Scrollbar Styling */.about-modal__body::-webkit-scrollbar {width: 6px;}.about-modal__body::-webkit-scrollbar-track {background: rgba(255, 255, 255, 0.05);border-radius: 3px;}.about-modal__body::-webkit-scrollbar-thumb {background: #3AB8A9;border-radius: 3px;}.about-modal__body::-webkit-scrollbar-thumb:hover {background: #5EC8BA;}.scroll-to-top {position: fixed;bottom: 195px;right: 24px;z-index: 4000;background: linear-gradient(135deg, #3AB8A9, #5EC8BA);color: #111;border: none;border-radius: 50%;width: 52px;height: 52px;display: flex;align-items: center;justify-content: center;font-size: 1.5rem;box-shadow: 0 6px 24px rgba(0,0,0,0.18);cursor: pointer;transition: background 0.2s, transform 0.2s, box-shadow 0.2s;opacity: 0.92;}.scroll-to-top:hover {background: #3AB8A9;color: #000;transform: translateY(-4px) scale(1.08);box-shadow: 0 12px 32px rgba(58,184,169,0.25);opacity: 1;}@media (max-width: 600px) {.scroll-to-top {right: 1.2rem;bottom: 1.2rem;width: 42px;height: 42px;font-size: 1.1rem;}}/* Fix for modal-backdrop and match-popup-backdrop stacking and centering */.modal-backdrop.match-popup-backdrop {position: fixed;inset: 0;background: rgba(0,0,0,0.65);backdrop-filter: blur(6px);display: flex;align-items: center;justify-content: center;z-index: 3000;padding: 0;}.match-popup-panel {position: relative;background: #0D1B2A;border-radius: 22px;color: #e5e7eb;padding: 2vw;animation: panelIn .35s cubic-bezier(.16,1,.3,1);display: flex;flex-direction: column;align-items: center;}@media (max-width: 600px) {.match-popup-panel {padding: 1rem;max-width: 95vw;}}.modal-backdrop.match-popup-backdrop button.modal-close,.modal-backdrop button.modal-close,.modal-backdrop.auth-modal-backdrop button.auth-modal-close {right: 16px;background: rgba(255, 255, 255, 0.9);color: #000;border: none;transition: all 0.3s ease;display: flex;position: relative;left: 48.5vw;border-radius: 7px;top: 0;z-index: 1;width: 1.2vw;height: 1.2vw;text-align: center;align-items: center;justify-content: center;font-size: 1vw;cursor: pointer;}button.modal-close:hover {background: #3AB8A9;color: #111;}.special-card__header {display: flex;align-items: center;gap: 1vw;margin-bottom: 1vw;}
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292<a class="skip-link" href="#main">Skip to content</a><section class="page"><!-- Logo link added below --><div class="intro-logo"><a href="https://pykara.net/" target="_blank" rel="noopener" aria-label="Pykara Technologies Home"><img src="assets/logo.png" alt="Pykara Technologies Logo" style="height: 60px;" /></a></div><!-- Hero --><main id="main" class="hero" role="main"><div class="hero__bg" aria-hidden="true"></div><div class="container hero__layout"><div class="hero__content"><h1 class="hero__title" [innerHTML]="tr('tagline')"></h1><p class="hero__text">{{ tr('subtext') }}</p><div class="hero__badges"><span class="badge">AI Adaptive</span><span class="badge">Psychometrics</span><span class="badge">Privacy First</span></div><div class="cta"><button type="button"class="btn btn-ghost"(click)="openAbout()"aria-haspopup="dialog"aria-controls="aboutDialog"[attr.aria-expanded]="isAboutOpen ? 'true' : 'false'">Know more</button></div><p class="hero__sub-cta" *ngIf="!isSignedIn">Create a free profile to begin your first assessment.</p></div></div></main><!-- Feature Differentiators --><section id="features" class="features" aria-labelledby="featuresTitle"><div class="container"><h2 id="featuresTitle" class="section-title">What Makes Py-Match Different</h2><div class="features__grid"><div class="feature"><div class="feature__icon gradient-ring"><i class="fa-solid fa-layer-group"></i></div><h3>Adaptive Questioning</h3><p>Dynamic assessments that evolve with every answer to sharpen accuracy.</p></div><div class="feature"><div class="feature__icon gradient-ring"><i class="fa-solid fa-dna"></i></div><h3>Behavioral Modeling</h3><p>Maps responses to validated personality archetypes for deep insight.</p></div><div class="feature"><div class="feature__icon gradient-ring"><i class="fa-solid fa-chart-line"></i></div><h3>Role Intelligence</h3><p>Aligns your profile with scenario-specific success templates.</p></div><div class="feature"><div class="feature__icon gradient-ring"><i class="fa-solid fa-shield-halved"></i></div><h3>Privacy by Design</h3><p>Secure data handling and minimal exposure at every interaction.</p></div><div class="feature"><div class="feature__icon gradient-ring"><i class="fa-solid fa-people-group"></i></div><h3>Multi-Context Matching</h3><p>Marriage, hiring, leadership and partnerships in one unified engine.</p></div><div class="feature"><div class="feature__icon gradient-ring"><i class="fa-solid fa-bolt"></i></div><h3>Actionable Insights</h3><p>Clear strengths, gaps and complementarity—not vague labels.</p></div></div></div></section><!-- Journey / How it works --><section id="journey" class="journey" aria-labelledby="journeyTitle"><div class="container"><h2 id="journeyTitle" class="section-title">Your Matching Journey</h2><ol class="journey__steps"><li class="step"><div class="step__num">1</div><h3>Create Profile</h3><p>Sign up and select your objective: marriage, hiring, or partnership.</p></li><li class="step"><div class="step__num">2</div><h3>Adaptive Assessment</h3><p>Answer evolving questions tailored to sharpen trait precision.</p></li><li class="step"><div class="step__num">3</div><h3>Profile Modeling</h3><p>Your responses map into a multi-dimensional personality structure.</p></li><li class="step"><div class="step__num">4</div><h3>Intelligent Matching</h3><p>Compare against role or compatibility templates for data-driven fit.</p></li><li class="step"><div class="step__num">5</div><h3>Insight & Action</h3><p>Receive transparent recommendations and next-step guidance.</p></li></ol></div></section><!-- Solutions (Cards) --><section class="cards" aria-labelledby="solutionsTitle"><h2 id="solutionsTitle" class="visually-hidden">Solution Scenarios</h2><div class="card"><img src="assets/ring.png" alt="Marriage Match"><h3>Marriage Match</h3><p>Find the right life partner, beyond surface-level details.</p><p>This analyzes values, habits, and personality traits such as analytical, organized, decisive, and creative.</p><p>Understand true compatibility.</p><p>See strengths and differences clearly.</p><p>Make informed decisions for a lasting relationship.</p></div><div class="card"><img src="assets/Hiring.png" alt="Interview & Hiring Match"><h3>Interview & Hiring Match</h3><p>Recruit with confidence, powered by science.</p><p>Spot hidden strengths and leadership potential.</p><p>Match candidates to roles where they'll thrive.</p><p>Build balanced, high-performing teams.</p></div><div class="card"><img src="assets/business.png" alt="Business Partner Match"><h3>Business Partner Match</h3><p>Choose partners who complement your strengths.</p><p>Identify complementary skills and leadership styles.</p><p>Reduce risks of conflict in decision-making.</p><p>Build stronger, trust-based collaborations.</p></div></section><!-- Special Content + Bottom CTA --><section class="special-content" aria-labelledby="specialTitle"><div class="card special-card"><h2 id="specialTitle">Why Py-Match is Special?</h2><p><strong>Py-Match</strong> isn't just about data — it's about people.Using cutting-edge technology and psychology-based personality models, <strong>Py-Match</strong> decodes human compatibility.Whether in love, business, or recruitment, <strong>Py-Match</strong> gives you clarity and confidence.It's science made simple, to help you make life's most important decisions wisely.</p><div class="secondaryCard"><h3 class="cta-bottom__title">Have a question or need guidance?</h3><p class="cta-bottom__text">Contact us — we’re happy to assist you on your journey.</p><button>Contact Us</button></div></div><!--<div class="cta-bottom" *ngIf="!isSignedIn"></div>--><div class="cta-bottom" *ngIf="isSignedIn"><h3 class="cta-bottom__title">Ready to continue matching?</h3><p class="cta-bottom__text">Jump back in and explore intelligent compatibility insights.</p><a class="btn btn-secondary cta-bottom__btn" [routerLink]="['/matchinglist', userId]" [class.disabled]="!canMatch" [attr.aria-disabled]="!canMatch ? true : null">Continue Matching</a></div></section><!-- Footer --><footer class="site-footer" role="contentinfo"><p class="site-footer__copy">© 2025 Pykara Technologies Pvt. Ltd. All rights reserved.</p><div class="site-footer__row"><nav class="site-footer__links" aria-label="Footer navigation"><a href="#" (click)="$event.preventDefault(); openPrivacyModal();">Privacy Policy</a><a href="https://pykara.net/" target="_blank" rel="noopener">About Us</a><a href="https://pykara.net/contact-us/" target="_blank" rel="noopener">Contact</a><a href="#" (click)="$event.preventDefault(); openTermsModal();">Terms & Conditions</a></nav><div class="site-footer__social" aria-label="Social media"><a href="https://www.facebook.com/profile.php?id=100087653675803" target="_blank" rel="noopener" aria-label="Facebook"><i class="fa-brands fa-facebook-f"></i></a><a href="https://www.youtube.com/@PykaraTechnologies" target="_blank" rel="noopener" aria-label="YouTube"><i class="fa-brands fa-youtube"></i></a><a href="https://www.linkedin.com/in/pykara-technologies" target="_blank" rel="noopener" aria-label="LinkedIn"><i class="fa-brands fa-linkedin-in"></i></a><a href="https://www.instagram.com/pykaratechnologie/" target="_blank" rel="noopener" aria-label="Instagram"><i class="fa-brands fa-instagram"></i></a></div></div></footer><!-- AUTH MODAL --><div class="modal-backdrop" *ngIf="modal" (click)="backdropClick($event)"><div class="modal-panel modal-panel--white"role="dialog"aria-modal="true"[attr.aria-label]="modal === 'signin' ? 'Sign in' : 'Sign up'"><button type="button" class="modal-close" (click)="closeModal()" aria-label="Close">×</button><app-sign-in *ngIf="modal === 'signin'"(switchToSignUp)="openSignUp()"(signInSuccess)="handleSignInSuccess()"></app-sign-in><app-sign-up *ngIf="modal === 'signup'"(switchToSignIn)="openSignIn()"(signUpSuccess)="handleSignUpSuccess()"></app-sign-up></div></div><!-- ABOUT MODAL (restyled to match Privacy Policy modal) --><div class="about-backdrop" *ngIf="isAboutOpen" (click)="closeAbout()" tabindex="-1"></div><div class="about-modal"*ngIf="isAboutOpen"role="dialog"aria-modal="true"aria-labelledby="aboutTitle"id="aboutDialog"tabindex="-1"><div class="about-modal__header"><h2 id="aboutTitle" class="about-modal__title">About Py-Match</h2><button class="about-modal__close" (click)="closeAbout()" aria-label="Close dialog">×</button></div><div class="about-modal__body"><p><strong>Your Ideal Match Awaits</strong></p><p><strong>Py-Match</strong> is an advanced personality assessment tool designed to help individuals find the ideal match based on their core personality traits. The system uses a series of adaptive questions that are tailored to each user's profile. Each response is mapped to one of four core personality profiles, which represent different dominant behavioral tendencies. As users progress through the assessment, the platform continuously adapts, ensuring that the questions remain relevant and engaging, ultimately providing a more accurate personality profile.</p><p>The primary goal of <strong>Py-Match</strong> is to offer data-driven, personalized matches for various scenarios such as marriage compatibility, business partnerships, and leadership fit. By comparing the individual's personality profile to role-specific templates, the platform ensures that the match is based on both complementary and compatible traits. This sophisticated matching engine provides an in-depth, personalized experience while maintaining strict privacy standards. With a focus on both accuracy and user confidentiality, <strong>Py-Match</strong> guarantees that sensitive information is securely stored, offering users peace of mind while they explore the platform's potential.</p></div><div class="about-modal__footer"><button class="about-modal__btn" (click)="closeAbout()">Close</button></div></div><!-- Privacy Policy Modal (styled like About modal) --><div class="about-backdrop" *ngIf="showPrivacyModal" (click)="closePrivacyModal()" tabindex="-1"></div><div class="about-modal"*ngIf="showPrivacyModal"role="dialog"aria-modal="true"aria-labelledby="privacyTitle"id="privacyDialog"tabindex="-1"><div class="about-modal__header"><h2 id="privacyTitle" class="about-modal__title">Privacy Policy</h2><button class="about-modal__close" (click)="closePrivacyModal()" aria-label="Close dialog">×</button></div><div class="about-modal__body"><p><strong>Py-Match Privacy Policy</strong></p><p>Your privacy is important to us. Py-Match securely stores your data and only uses it for personality assessment and matching purposes. We do not sell or share your personal information with third parties. All responses are encrypted and handled according to strict privacy standards. You can request deletion of your data at any time by contacting support.</p><ul><li>We collect only the information necessary for matching and assessment.</li><li>Your data is never sold or shared outside Py-Match.</li><li>All communications are encrypted and confidential.</li><li>You may request data deletion at any time.</li></ul><p>By using Py-Match, you agree to our privacy practices. For questions, contact support@pykara.net.</p></div><div class="about-modal__footer"><button class="about-modal__btn" (click)="acceptPrivacyPolicy()">Accept Privacy Policy</button></div></div><!-- Terms & Conditions Modal (styled like About modal) --><div class="about-backdrop" *ngIf="showTermsModal" (click)="closeTermsModal()" tabindex="-1"></div><div class="about-modal"*ngIf="showTermsModal"role="dialog"aria-modal="true"aria-labelledby="termsTitle"id="termsDialog"tabindex="-1"><div class="about-modal__header"><h2 id="termsTitle" class="about-modal__title">Terms & Conditions</h2><button class="about-modal__close" (click)="closeTermsModal()" aria-label="Close dialog">×</button></div><div class="about-modal__body"><p><strong>Py-Match Terms & Conditions</strong></p><ul><li>By using Py-Match, you agree to provide accurate information for assessments and matching.</li><li>Py-Match is intended for personal, business, and recruitment use only. Misuse or unauthorized access is prohibited.</li><li>All intellectual property, including algorithms, content, and branding, belongs to Pykara Technologies Pvt. Ltd.</li><li>Py-Match does not guarantee match outcomes; results are based on provided data and scientific models.</li><li>Users are responsible for maintaining the confidentiality of their login credentials.</li><li>Py-Match reserves the right to update these terms at any time. Continued use constitutes acceptance of changes.</li><li>For questions or concerns, contact support@pykara.net.</li></ul><p>By continuing to use Py-Match, you acknowledge and accept these terms and conditions.</p></div><div class="about-modal__footer"><button class="about-modal__btn" (click)="closeTermsModal()">Close</button></div></div><!-- Loader Overlay (same as llm-quiz) --><div class="loader-overlay" *ngIf="isLoading"><div class="loader-container"><img src="assets/Loader.gif" alt="Loading..." class="loader-gif" /></div></div></section>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775<a class="skip-link" href="#main">Skip to content</a><section class="page"><!-- Hero --><main id="main" class="hero" role="main"><div class="hero__bg" aria-hidden="true"></div><div class="container hero__layout"><div class="hero__content"><h1 class="hero__title">Meaningful Compatibility,<br><span class="tagline-line2">Backed by Behavioral Science</span></h1><p class="hero__text">Py-Match uses research-based psychological models to help you understand compatibility in relationships, careers, and partnerships.</p><div class="hero__badges"><span class="badge"><i class="fa-solid fa-flask" aria-hidden="true"></i> Research-Based Models</span><span class="badge validation-badge"><i class="fa-solid fa-shield-halved" aria-hidden="true"></i> GDPR-Aligned Privacy</span><span class="badge"><i class="fa-solid fa-brain" aria-hidden="true"></i> Adaptive Assessment</span></div><!-- Enhanced CTA Section - Only buttons change based on auth state --><div class="cta" *ngIf="!isSignedIn"><button type="button"class="btn btn-primary"(click)="openMatchPopup()">Start Free Assessment</button><button type="button"aria-haspopup="dialog"aria-controls="aboutDialog"class="btn btn-ghost"aria-expanded="false"(click)="openAbout()"><i class="fa-solid fa-circle-info"></i> Learn More</button></div><!-- Signed In CTA Section - Only buttons change --><div class="cta" *ngIf="isSignedIn"><button type="button" class="btn btn-primary" (click)="navigateToProfile()">Continue Your Journey</button><button type="button" class="btn btn-ghost" (click)="openAbout()"><i class="fa-solid fa-circle-info"></i> Learn More</button></div><!-- Trust Indicators - UPDATED with new icons and labels --><div class="trust-indicators"><div class="trust-stats"><span class="stat"><i class="fa-solid fa-flask"></i></span><span class="stat-label">One-time assessment</span></div><div class="trust-stats"><span class="stat"><i class="fa-solid fa-shield-halved"></i></span><span class="stat-label">Private results</span></div><div class="trust-stats"><span class="stat"><i class="fa-solid fa-bolt"></i></span><span class="stat-label">No third-party sharing</span></div></div><!-- Custom Match Popup --><div *ngIf="showMatchPopup" class="modal-backdrop match-popup-backdrop" (click)="closeMatchPopup()"><div class="modal-panel match-popup-panel" role="dialog" aria-modal="true" aria-label="Sign in or Sign up" (click)="$event.stopPropagation()"><button type="button" class="modal-close" (click)="closeMatchPopup()" aria-label="Close">×</button><div class="popup-header"><div class="popup-icon"><i class="fa-solid fa-user-group"></i></div><h3 class="popup-title">Start Your Matching Journey</h3></div><div class="popup-content"><p>If you have an account, please sign in first.<br>Otherwise, please sign up and start your matching journey!</p></div><div class="popup-actions"><button type="button" class="btn btn-primary" (click)="handleSignInFromPopup()"><i class="fa-solid fa-sign-in"></i> Sign In</button><button type="button" class="btn btn-secondary" (click)="handleSignUpFromPopup()"><i class="fa-solid fa-user-plus"></i> Sign Up</button></div></div></div><!-- Sub CTA - Updated --><p class="hero__sub-cta">Assessment takes around 10–15 minutes and gives you clear compatibility insights.</p><!-- Scroll Indicator --><div class="scroll-indicator" (click)="scrollToContent()"><i class="fa-solid fa-chevron-down"></i></div></div></div></main><!-- Feature Differentiators --><section id="features" class="features" aria-labelledby="featuresTitle"><div class="container"><div class="features__header"><h2 id="featuresTitle" class="section-title">What Makes Py-Match Different</h2><p class="features__intro"><strong>Py-Match</strong> combines behavioral science with modern technology to provide reliable compatibility insights. Our system looks beyond basic profile data and focuses on core behavioral patterns that influence real-world relationships.</p></div><div class="features__grid"><div class="feature-card"><div class="feature-card__icon gradient-ring"><div><i class="fa-solid fa-layer-group"></i></div><div><h3 class="iconHeader">Adaptive Assessment</h3></div></div><div class="feature-card__content"><p>Questions adjust based on your responses. The system focuses on what matters most for your matching goals.</p></div></div><div class="feature-card"><div class="feature-card__icon gradient-ring"><div><i class="fa-solid fa-dna"></i></div><div><h3 class="iconHeader">Structured Behavioral Model</h3></div></div><div class="feature-card__content"><p>Uses a consistent behavioral model with colour profiles to interpret your answers and compare compatibility.</p></div></div><div class="feature-card"><div class="feature-card__icon gradient-ring"><div><i class="fa-solid fa-chart-line"></i></div><div><h3 class="iconHeader">Context-Aware Matching</h3></div></div><div class="feature-card__content"><p>Different matching modes (expectation-only, character-only, and combined) to give you a clear view of compatibility.</p></div></div><div class="feature-card"><div class="feature-card__icon gradient-ring"><div><i class="fa-solid fa-shield-halved"></i></div><div><h3 class="iconHeader">Privacy by Design</h3></div></div><div class="feature-card__content"><p>Personal details and assessment results are stored securely and are not shared with third parties.</p></div></div><div class="feature-card"><div class="feature-card__icon gradient-ring"><div><i class="fa-solid fa-people-group"></i></div><div><h3 class="iconHeader">Flexible Matching Modes</h3></div></div><div class="feature-card__content"><p>Choose between expectation-only, character-only, or combined matching to suit your relationship goals.</p></div></div><div class="feature-card"><div class="feature-card__icon gradient-ring"><div><i class="fa-solid fa-bolt"></i></div><div><h3 class="iconHeader">Actionable Insights</h3></div></div><div class="feature-card__content"><p>Receive detailed compatibility analysis with practical suggestions to improve relationship outcomes.</p></div></div></div></div></section><!-- Journey / How it works --><section id="journey" class="journey" aria-labelledby="journeyTitle"><div class="container"><h2 id="journeyTitle" class="section-title">Your Matching Journey</h2><ol class="journey__steps"><li class="step"><div class="step__num">1</div><h3>Create Profile</h3><p>Enter your personal details and preferences.</p></li><li class="step"><div class="step__num">2</div><h3>Adaptive Assessment</h3><p>Complete a dynamic questionnaire based on your goals.</p></li><li class="step"><div class="step__num">3</div><h3>Behavioral Analysis</h3><p>The system identifies your traits, strengths, and compatibility factors.</p></li><li class="step"><div class="step__num">4</div><h3>Intelligent Matching</h3><p>Profiles are matched using tested psychological algorithms.</p></li><li class="step"><div class="step__num">5</div><h3>Detailed Insights</h3><p>You receive clear and practical compatibility explanations.</p></li></ol></div></section><!-- Solutions (Cards) - UPDATED for relationship focus --><section class="cards" aria-labelledby="solutionsTitle"><h2 id="solutionsTitle" class="visually-hidden">Relationship Insights</h2><div class="card"><img src="assets/ring.png" alt="Relationship Compatibility"><h3>Relationship Compatibility</h3><p>Understand how your values, expectations, and personality colours align with a potential partner.</p><button class="card-cta" (click)="selectRole('marriage')">View Match Details</button></div><div class="card"><img src="assets/Hiring.png" alt="Interview & Hiring Match"><h3>Talent Optimization</h3><p>Understand personality fit for team roles, leadership positions, and work environments.</p><button class="card-cta" (click)="selectRole('hiring')">Start Hiring Smart</button></div><div class="card"><img src="assets/business.png" alt="Business Partner Match"><h3>Business Partnership</h3><p>Find suitable partners for collaboration, startups, and long-term projects.</p><button class="card-cta" (click)="selectRole('business')">Find Business Partners</button></div></section><!-- Insights You Receive After Matching Section (Replacing Testimonials) --><section class="testimonials" aria-labelledby="insightsTitle" *ngIf="showExampleOutcomes"><div class="container"><h2 id="insightsTitle" class="section-title">Insights You Receive After Matching</h2><div class="testimonials-grid"><div class="testimonial"><div class="testimonial-avatar"><i class="fa-solid fa-heart"></i></div><div class="testimonial-content"><p>See areas where you and your match are strongly aligned, such as communication style, values, and life priorities.</p></div><div class="testimonial-author"><strong>Relationship Strengths</strong><span>Understanding alignment areas</span></div></div><div class="testimonial"><div class="testimonial-avatar"><i class="fa-solid fa-briefcase"></i></div><div class="testimonial-content"><p>Identify differences in expectations or personality colours that may need discussion and understanding.</p></div><div class="testimonial-author"><strong>Key Differences</strong><span>Recognizing potential friction points</span></div></div><div class="testimonial"><div class="testimonial-avatar"><i class="fa-solid fa-handshake"></i></div><div class="testimonial-content"><p>Receive simple, practical suggestions that can help you manage differences and build a healthier relationship.</p></div><div class="testimonial-author"><strong>Suggestions for Improvement</strong><span>Building healthier relationships</span></div></div></div></div></section><!-- Special Content + Bottom CTA --><section class="special-content" aria-labelledby="specialTitle"><div class="container"><h2 id="specialTitle" class="section-title">Get Your Questions Answered</h2><div class="special-content__grid"><!-- FAQ Section --><div class="special-card faq-card"><div class="special-card__header"><div class="special-card__icon gradient-ring"><i class="fa-solid fa-circle-question"></i></div><h3>Frequently Asked Questions</h3></div><div class="faq-grid"><!-- Converted to dynamic accordion --><div class="faq-item"*ngFor="let item of faqs; let i = index"[class.open]="openFaqIndex === i"><button class="faq-question"type="button"(click)="toggleFaq(i)"[attr.aria-expanded]="openFaqIndex === i"[attr.aria-controls]="'faq-answer-' + i"><i class="fa-solid fa-{{item.icon}}"></i><h4>{{item.question}}</h4><span class="faq-toggle-icon" aria-hidden="true"><i class="fa-solid" [ngClass]="openFaqIndex === i ? 'fa-chevron-up' : 'fa-chevron-down'"></i></span></button><div class="faq-answer"[id]="'faq-answer-' + i"role="region"*ngIf="openFaqIndex === i"><p>{{item.answer}}</p></div></div></div></div><!-- Contact Card --><div class="special-card contact-card"><div class="special-card__header"><div class="special-card__icon gradient-ring"><i class="fa-solid fa-headset"></i></div><h3>Need Personalized Guidance?</h3></div><div class="contact-content"><p>Our matching specialists are here to help you navigate your compatibility journey and answer any specific questions about our process or results.</p><div class="contact-features"><div class="contact-feature"><i class="fa-solid fa-check"></i><span>Expert consultation</span></div><div class="contact-feature"><i class="fa-solid fa-check"></i><span>Technical support</span></div><div class="contact-feature"><i class="fa-solid fa-check"></i><span>Custom matching strategies</span></div></div><a class="contact-btn btn btn-primary" href="https://pykara.ai/contact-us/" target="_blank" rel="noopener" aria-label="Contact Our Team"><i class="fa-solid fa-envelope"></i><span>Contact Our Team</span></a></div></div></div></div><!-- Bottom CTA Sections --><div class="cta-bottom" *ngIf="isSignedIn"><h3 class="cta-bottom__title">Ready to continue matching?</h3><p class="cta-bottom__text">Jump back in and explore intelligent compatibility insights.</p><button class="btn btn-secondary cta-bottom__btn" (click)="navigateToProfile()">Continue Your Journey</button></div><div class="cta-bottom" *ngIf="!isSignedIn"><h3 class="cta-bottom__title">Start Understanding Your Compatibility</h3><p class="cta-bottom__text">Join users who want clear, structured insights into relationship compatibility.</p><button class="btn btn-secondary cta-bottom__btn" (click)="openSignUp()"><i class="fa-solid fa-rocket"></i>Start Free Assessment</button><div class="cta-bottom__trust"><div class="cta-bottom__trust-item"><i class="fa-solid fa-shield-halved"></i><span>Private Results</span></div><div class="cta-bottom__trust-item"><i class="fa-solid fa-clock"></i><span>10–15 Minute Assessment</span></div><div class="cta-bottom__trust-item"><i class="fa-solid fa-chart-line"></i><span>Behavior-Guided Matching</span></div></div></div></section><!-- Footer --><footer class="site-footer" role="contentinfo"><div class="site-footer__newsletter"><h4>Stay Updated</h4><p>Get the latest insights on behavioral science and<br />matching technology.</p><div class="newsletter-form"><input type="email" placeholder="Enter your email" aria-label="Email for newsletter"><button class="btn btn-signup">Subscribe</button></div></div><p class="site-footer__copy">© 2025 Pykara Technologies Pvt. Ltd. All rights reserved.</p><div class="site-footer__row"><nav class="site-footer__links" aria-label="Footer navigation"><a href="#" (click)="$event.preventDefault(); openPrivacyModal();">Privacy Policy</a><a href="https://pykara.ai/" target="_blank" rel="noopener">About Us</a><a href="https://pykara.ai/contact-us/" target="_blank" rel="noopener">Contact</a><a href="#" (click)="$event.preventDefault(); openTermsModal();">Terms & Conditions</a><a href="#" (click)="$event.preventDefault(); scrollToFaq();">FAQ</a><!-- Updated Support link to open chatbot --><a href="#" (click)="$event.preventDefault(); openChatbot();">Support</a></nav><div class="site-footer__social" aria-label="Social media"><a href="https://www.facebook.com/profile.php?id=100087653675803" target="_blank" rel="noopener" aria-label="Facebook" class="FB_media"><i class="fa-brands fa-facebook-f"></i></a><a href="https://www.youtube.com/@PykaraTechnologies" target="_blank" rel="noopener" aria-label="YouTube" class="YT_media"><i class="fa-brands fa-youtube"></i></a><a href="https://www.linkedin.com/in/pykara-technologies" target="_blank" rel="noopener" aria-label="LinkedIn" class="LI_media"><i class="fa-brands fa-linkedin-in"></i></a><a href="https://www.instagram.com/pykaratechnologie/" target="_blank" rel="noopener" aria-label="Instagram" class="Insta_media"><i class="fa-brands fa-instagram"></i></a></div></div></footer><!-- Global Auth Modal (use same structure as AppComponent) --><div *ngIf="modal" class="modal-backdrop auth-modal-backdrop" (click)="backdropClick($event)"><div class="modal-panel modal-panel--white auth-modal-container" role="dialog" aria-modal="true" [attr.aria-label]="modal === 'signin' ? 'Sign in' : 'Sign up'" (click)="$event.stopPropagation()"><button type="button" class="modal-close" (click)="closeModal()" aria-label="Close">×</button><!-- Sign In Component --><app-sign-in *ngIf="modal === 'signin'"(switchToSignUp)="openSignUp()"(signInSuccess)="handleSignInSuccess()"></app-sign-in><!-- Sign Up Component --><app-sign-up *ngIf="modal === 'signup'"(switchToSignIn)="openSignIn()"(signUpSuccess)="handleSignUpSuccess()"></app-sign-up></div></div><!-- ABOUT MODAL --><div class="about-backdrop" *ngIf="isAboutOpen" (click)="closeAbout()" tabindex="-1"></div><div class="about-modal"*ngIf="isAboutOpen"role="dialog"aria-modal="true"aria-labelledby="aboutTitle"id="aboutDialog"tabindex="-1"><div class="about-modal__header"><div class="about-modal__icon"><i class="fa-solid fa-heart"></i></div><div class="about-modal__title-section"><h2 id="aboutTitle" class="about-modal__title">About Py-Match</h2><p class="about-modal__subtitle">Science-Driven Compatibility Matching</p></div><button class="about-modal__close"(click)="closeAbout()"aria-label="Close dialog">×</button></div><div class="about-modal__body"><div class="about-modal__content"><div class="about-modal__intro"><p><strong>Transform Your Search for Meaningful Connections</strong></p><p>Py-Match combines established psychological research with modern technology to help individuals understand compatibility in relationships.</p><p>Our adaptive assessment adjusts to your responses and focuses on what matters most for your matching goals, creating a faster and more focused experience.</p></div><div class="feature-highlights"><div class="feature-highlight"><div class="feature-highlight__icon"><i class="fa-solid fa-flask"></i></div><h4>Research-Backed</h4><p>Based on established psychological frameworks and behavioral models.</p></div><div class="feature-highlight"><div class="feature-highlight__icon"><i class="fa-solid fa-bolt"></i></div><h4>Adaptive Technology</h4><p>Intelligent questioning that adapts to your responses in real-time</p></div><div class="feature-highlight"><div class="feature-highlight__icon"><i class="fa-solid fa-shield-halved"></i></div><h4>Privacy First</h4><p>GDPR-aligned data handling with encrypted storage.</p></div></div><div class="benefits-section"><h4 class="benefits-title">What You'll Experience</h4><div class="benefits-grid"><div class="benefit-item"><i class="fa-solid fa-rocket"></i><span><strong>15-Minute Assessment:</strong> Quick, focused questions that highlight meaningful patterns.</span></div><div class="benefit-item"><i class="fa-solid fa-chart-line"></i><span><strong>Clear Insights:</strong> Compatibility indicators presented in a simple, easy-to-understand way.</span></div><div class="benefit-item"><i class="fa-solid fa-users"></i><span><strong>Relationship Focused:</strong> Matching designed specifically for understanding relationship compatibility.</span></div><div class="benefit-item"><i class="fa-solid fa-lock"></i><span><strong>Complete Privacy:</strong> Your data is secure and never sold or shared with third parties.</span></div></div></div><div class="about-modal__details"><p><strong>Our Mission:</strong> To make compatibility insights more accessible through science and technology, supporting stronger personal connections.</p></div></div></div><div class="about-modal__footer"><button class="about-modal__btn" (click)="closeAbout()"><i class="fa-solid fa-check"></i>Start Matching</button></div></div><!-- Privacy Policy Modal --><div class="about-backdrop" *ngIf="showPrivacyModal" (click)="closePrivacyModal()" tabindex="-1"></div><div class="about-modal"*ngIf="showPrivacyModal"role="dialog"aria-modal="true"aria-labelledby="privacyTitle"id="privacyDialog"tabindex="-1"><div class="about-modal__header"><h2 id="privacyTitle" class="about-modal__title">Privacy Policy</h2><button class="about-modal__close" (click)="closePrivacyModal()" aria-label="Close dialog">×</button></div><div class="about-modal__body"><div class="policy-intro"><p><strong>Last Updated: January 2025</strong></p><p>At Py-Match, we are committed to protecting your privacy and ensuring the security of your personal information. This Privacy Policy explains how we collect, use, and safeguard your data.</p></div><div class="policy-points"><div class="policy-item"><div class="policy-icon"><i class="fa-solid fa-database"></i></div><div class="policy-content"><h4>Information We Collect</h4><p>We collect information necessary for compatibility matching, including assessment responses, basic profile details, and communication preferences. We do not collect sensitive personal data without explicit consent.</p></div></div><div class="policy-item"><div class="policy-icon"><i class="fa-solid fa-chart-line"></i></div><div class="policy-content"><h4>How We Use Your Information</h4><p>Your data is used exclusively for compatibility analysis, matching services, and improving our platform. We never sell your personal information to third parties.</p></div></div><div class="policy-item"><div class="policy-icon"><i class="fa-solid fa-shield-halved"></i></div><div class="policy-content"><h4>Data Security</h4><p>We implement enterprise-grade security measures including encryption, secure servers, and regular security audits to protect your information from unauthorized access.</p></div></div><div class="policy-item"><div class="policy-icon"><i class="fa-solid fa-user-check"></i></div><div class="policy-content"><h4>Your Rights</h4><p>You have the right to access, correct, or delete your personal data at any time. You can also request data portability or withdraw consent for data processing.</p></div></div><div class="policy-item"><div class="policy-icon"><i class="fa-solid fa-gavel"></i></div><div class="policy-content"><h4>Legal Compliance</h4><p>We comply with GDPR, CCPA, and other applicable data protection regulations. For questions about your data, contact our Data Protection Officer at privacy@pykara.com.</p></div></div></div></div><div class="about-modal__footer"><button class="about-modal__btn" (click)="acceptPrivacyPolicy()">Accept & Continue</button></div></div><!-- Terms & Conditions Modal --><div class="about-backdrop" *ngIf="showTermsModal" (click)="closeTermsModal()" tabindex="-1"></div><div class="about-modal"*ngIf="showTermsModal"role="dialog"aria-modal="true"aria-labelledby="termsTitle"id="termsDialog"tabindex="-1"><div class="about-modal__header"><h2 id="termsTitle" class="about-modal__title">Terms of Service</h2><button class="about-modal__close" (click)="closeTermsModal()" aria-label="Close dialog">×</button></div><div class="about-modal__body"><div class="terms-intro"><p><strong>Effective Date: January 2025</strong></p><p>By using Py-Match, you agree to these Terms of Service. Please read them carefully before using our platform.</p></div><div class="terms-sections"><div class="terms-section"><h4 class="terms-section-title"><i class="fa-solid fa-user"></i>Account Responsibilities</h4><div class="terms-list"><div class="term-item"><i class="fa-solid fa-check"></i><span>Provide accurate and complete information during registration</span></div><div class="term-item"><i class="fa-solid fa-check"></i><span>Maintain the confidentiality of your login credentials</span></div><div class="term-item"><i class="fa-solid fa-check"></i><span>Notify us immediately of any unauthorized account access</span></div></div></div><div class="terms-section"><h4 class="terms-section-title"><i class="fa-solid fa-chart-bar"></i>Service Usage</h4><div class="terms-list"><div class="term-item"><i class="fa-solid fa-check"></i><span>Py-Match is for personal relationship matching and compatibility analysis</span></div><div class="term-item"><i class="fa-solid fa-check"></i><span>Do not misuse the service for harassment, spam, or illegal activities</span></div><div class="term-item"><i class="fa-solid fa-check"></i><span>Respect the privacy and rights of other users</span></div></div></div><div class="terms-section"><h4 class="terms-section-title"><i class="fa-solid fa-lightbulb"></i>Intellectual Property</h4><div class="terms-list"><div class="term-item"><i class="fa-solid fa-check"></i><span>All platform content, algorithms, and technology belong to Pykara Technologies</span></div><div class="term-item"><i class="fa-solid fa-check"></i><span>You retain ownership of your personal data and assessment responses</span></div><div class="term-item"><i class="fa-solid fa-check"></i><span>Do not reproduce, copy, or exploit any part of the service without permission</span></div></div></div><div class="terms-section"><h4 class="terms-section-title"><i class="fa-solid fa-exclamation-triangle"></i>Limitations & Disclaimers</h4><div class="terms-list"><div class="term-item"><i class="fa-solid fa-check"></i><span>Compatibility results are based on behavioral models, not guarantees</span></div><div class="term-item"><i class="fa-solid fa-check"></i><span>We reserve the right to modify or discontinue services with notice</span></div><div class="term-item"><i class="fa-solid fa-check"></i><span>Service availability is not guaranteed and may be subject to interruptions</span></div></div></div></div></div><div class="about-modal__footer"><button class="about-modal__btn" (click)="closeTermsModal()">I Understand</button></div></div><!-- Cookie Consent Banner --><!--<div class="cookie-consent" *ngIf="!privacyAccepted && !isLoading"><div class="cookie-content"><p>We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies.</p><div class="cookie-actions"><button class="cookie-btn cookie-accept" (click)="acceptPrivacyPolicy()">Accept</button><button class="cookie-btn cookie-learn-more" (click)="openPrivacyModal()">Learn More</button></div></div></div>--><!-- Loader Overlay --><div class="loader-overlay" *ngIf="isLoading"><div class="loader-container"><div class="modern-loader"></div><p>Finding your perfect match...</p></div></div><!-- Auth Required Popup --><div *ngIf="showAuthRequiredPopup" class="modal-backdrop match-popup-backdrop" (click)="closeAuthRequiredPopup()"><div class="modal-panel match-popup-panel" role="dialog" aria-modal="true" aria-label="Authentication Required" (click)="$event.stopPropagation()"><button type="button" class="modal-close" (click)="closeAuthRequiredPopup()" aria-label="Close">×</button><div class="popup-header"><div class="popup-icon"><i class="fa-solid fa-user-lock"></i></div><h3 class="popup-title">Authentication Required</h3></div><div class="popup-content"><p>Please sign in if you have an account, or sign up to start matching.</p></div><div class="popup-actions"><button type="button" class="btn btn-primary" (click)="handleSignInFromAuthRequired()"><i class="fa-solid fa-sign-in"></i> Sign In</button><button type="button" class="btn btn-secondary" (click)="handleSignUpFromAuthRequired()"><i class="fa-solid fa-user-plus"></i> Sign Up</button></div></div></div><!-- Scroll Back To Top Button --><button class="scroll-to-top"*ngIf="showScrollToTop"(click)="scrollToTop()"aria-label="Scroll back to top"><i class="fa-solid fa-arrow-up"></i></button></section>
123456789101112131415161718192021import { ComponentFixture, TestBed } from '@angular/core/testing';import { IntroPageComponent } from './intro-page.component';describe('IntroPageComponent', () => {let component: IntroPageComponent;let fixture: ComponentFixture<IntroPageComponent>;beforeEach(() => {TestBed.configureTestingModule({declarations: [IntroPageComponent]});fixture = TestBed.createComponent(IntroPageComponent);component = fixture.componentInstance;fixture.detectChanges();});it('should create', () => {expect(component).toBeTruthy();});});123456789101112131415161718192021import { ComponentFixture, TestBed } from '@angular/core/testing';import { IntroPageComponent } from './intro-page.component';describe('IntroPageComponent', () => {let component: IntroPageComponent;let fixture: ComponentFixture<IntroPageComponent>;beforeEach(() => {TestBed.configureTestingModule({declarations: [IntroPageComponent]});fixture = TestBed.createComponent(IntroPageComponent);component = fixture.componentInstance;fixture.detectChanges();});it('should create', () => {expect(component).toBeTruthy();});});
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236import { Component, ChangeDetectionStrategy, HostListener, ChangeDetectorRef, OnInit, AfterViewInit } from '@angular/core';import { CommonModule } from '@angular/common';import { Router, RouterLink } from '@angular/router';import { HttpClient } from '@angular/common/http';import { SignInComponent } from '../auth/sign-in/sign-in.component';import { SignUpComponent } from '../auth/sign-up/sign-up.component';import { SignupService } from '../auth/sign-up/sign-up.service';type AuthModal = 'signin' | 'signup' | null;@Component({selector: 'app-intro-page',standalone: true,imports: [CommonModule, RouterLink, SignInComponent, SignUpComponent],templateUrl: './intro-page.component.html',styleUrls: ['./intro-page.component.css'],changeDetection: ChangeDetectionStrategy.OnPush})export class IntroPageComponent implements OnInit {modal: AuthModal = null;isSignedIn = false;isAboutOpen = false;canMatch: boolean = false;userId: number | null = null;showMarriageSubnav = false;showPrivacyModal = false;privacyAccepted = false;showTermsModal = false;isLoading = false;constructor(private cdr: ChangeDetectorRef,private signupService: SignupService,private router: Router,private http: HttpClient) { }ngOnInit(): void {window.scrollTo({ top: 0, left: 0, behavior: 'auto' });this.userId = this.signupService.getUserId();if (this.userId) {// Check if the user has completed LLM questionsthis.http.get(`http://127.0.0.1:5000/api/match/${this.userId}?role=marriage`).subscribe({next: () => {this.canMatch = true;this.cdr.markForCheck();},error: () => {this.canMatch = false;this.cdr.markForCheck();}});}// Only check if accepted, do not show modal automaticallythis.privacyAccepted = localStorage.getItem('privacyAccepted') === 'true';}// --- Marriage Sub Navigation Methods ---toggleMarriageSubnav(): void {this.showMarriageSubnav = !this.showMarriageSubnav;this.cdr.markForCheck();}hideMarriageSubnav(): void {this.showMarriageSubnav = false;this.cdr.markForCheck();}navigateToProfile(): void {const userId = localStorage.getItem('user_id');if (!userId) {alert('Please sign in first.');return;}this.router.navigate(['/question-answer'], { queryParams: { role: 'marriage' } });this.showMarriageSubnav = false;}navigateToExpectations(): void {this.showMarriageSubnav = false;this.router.navigate(['/userPreference']);}navigateToAssessment(): void {this.showMarriageSubnav = false;this.router.navigate(['/llmquiz']);}navigateToMatchingProfile(): void {this.showMarriageSubnav = false;this.router.navigate(['/matchinglist']);}//} else {// alert('User ID not found. Please sign in first.');//}//}// --- Auth modal handlers ---openSignIn(): void {this.modal = 'signin';document.body.style.overflow = 'hidden';}openSignUp(): void {this.modal = 'signup';document.body.style.overflow = 'hidden';}closeModal(): void {this.modal = null;if (!this.isAboutOpen) document.body.style.overflow = '';this.cdr.markForCheck();}handleSignInSuccess(): void {this.isSignedIn = true;this.closeModal();}handleSignUpSuccess(): void {this.modal = 'signin';alert('Sign up successful! Please sign in to continue.');this.cdr.markForCheck();}signOut(): void {this.isSignedIn = false;localStorage.removeItem('auth_token');this.cdr.markForCheck();}backdropClick(e: MouseEvent): void {if ((e.target as HTMLElement).classList.contains('modal-backdrop')) {this.closeModal();}}// --- About modal handlers ---openAbout(): void {this.isAboutOpen = true;document.body.style.overflow = 'hidden';setTimeout(() => document.getElementById('aboutDialog')?.focus(), 0);this.cdr.markForCheck();}closeAbout(): void {this.isAboutOpen = false;if (!this.modal) document.body.style.overflow = '';this.cdr.markForCheck();}openPrivacyModal(): void {this.showPrivacyModal = true;this.cdr.markForCheck();}closePrivacyModal(): void {this.showPrivacyModal = false;this.cdr.markForCheck();}acceptPrivacyPolicy(): void {localStorage.setItem('privacyAccepted', 'true');this.privacyAccepted = true;this.closePrivacyModal();}openTermsModal(): void {this.showTermsModal = true;this.cdr.markForCheck();}closeTermsModal(): void {this.showTermsModal = false;this.cdr.markForCheck();}@HostListener('document:keydown.escape')onEsc(): void {if (this.modal) this.closeModal();else if (this.isAboutOpen) this.closeAbout();else if (this.showMarriageSubnav) this.hideMarriageSubnav();}@HostListener('document:click', ['$event'])onDocumentClick(event: MouseEvent): void {// Close subnav when clicking outsideif (this.showMarriageSubnav) {const target = event.target as HTMLElement;if (!target.closest('.nav-item-wrapper')) {this.hideMarriageSubnav();}}}scrollToContent(): void {const element = document.getElementById('content-sections');if (element) {element.scrollIntoView({ behavior: 'smooth' });}}selectRole(role: string): void {const userId = localStorage.getItem('user_id');if (!userId) {alert('Please sign in first.');return;}this.signupService.assignRole(+userId, role).subscribe({next: (res) => {console.log('Role saved:', res);this.router.navigate(['/question-answer'], { queryParams: { role } });},error: (err) => {console.error('Role assign failed:', err);alert('Failed to assign role.');}});}// i18n helpertr(key: string): string {const dict = {brand: 'Py-Match',signup: 'Sign up',signin: 'Sign in',tagline: 'Smarter matches,<br><span class="tagline-line2">powered by personality science.</span>',subtext: 'Discover compatibility in love, business, and careers with AI-driven personality insights.',exploreFeatures: 'Explore our features below'} as const;return (dict as Record<string, string>)[key] ?? key;}}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822import { Component, ChangeDetectionStrategy, HostListener, ChangeDetectorRef, OnInit, OnDestroy } from '@angular/core';import { CommonModule } from '@angular/common';import { Router, RouterLink } from '@angular/router';import { HttpClient } from '@angular/common/http';import { SignInComponent } from '../auth/sign-in/sign-in.component';import { SignUpComponent } from '../auth/sign-up/sign-up.component';import { SignupService } from '../auth/sign-up/sign-up.service';import { AuthService } from './../services/auth.service';import { Subscription } from 'rxjs';type AuthModal = 'signin' | 'signup' | null;@Component({selector: 'app-intro-page',standalone: true,imports: [CommonModule, RouterLink, SignInComponent, SignUpComponent],templateUrl: './intro-page.component.html',styleUrls: ['./intro-page.component.css'],changeDetection: ChangeDetectionStrategy.OnPush})export class IntroPageComponent implements OnInit, OnDestroy {modal: AuthModal = null;isSignedIn = false;isAboutOpen = false;canMatch: boolean = false;userId: number | null = null;showMarriageSubnav = false;showPrivacyModal = false;privacyAccepted = false;showTermsModal = false;isLoading = false;showMatchPopup = false;showAuthRequiredPopup = false;showScrollToTop = false;showExampleOutcomes = true; // Set to false if you want to hide this section// FAQ accordion state - UPDATED with safe versionopenFaqIndex: number | null = null;faqs = [{icon: 'clock',question: 'How long does the assessment take?',answer: 'The assessment usually takes around 10–15 minutes.'},{icon: 'shield-halved',question: 'Is my data secure?',answer: 'Yes. Py-Match uses encrypted data handling and follows GDPR principles to protect your information.'},{icon: 'people-group',question: 'Can I use Py-Match for team compatibility?',answer: 'Yes. The system supports both personal matching and team or role compatibility.'},{icon: 'star',question: 'What makes Py-Match different?',answer: 'A combination of behavioral science, adaptive assessment, and context-specific matching logic.'},{icon: 'user-plus',question: 'Do I need to pay to start the assessment?',answer: 'No. You can begin the initial assessment for free, and no credit card is required.'},{icon: 'language',question: 'Is Py-Match available in multiple languages?',answer: 'Currently, Py-Match is available in English. Additional languages are planned for future updates.'},{icon: 'user-shield',question: 'Who can see my assessment results?',answer: 'You have access to your own results. They are not shared with other users. Our team may only access limited or anonymized data when needed for technical support or improvement.'},{icon: 'rotate',question: 'Can I retake the assessment?',answer: 'You can retake the assessment if you make significant updates to your profile or preferences so that the results stay accurate.'},{icon: 'trash',question: 'Can I delete my account?',answer: 'Yes. You can request account deletion at any time by contacting info@pykara.net.'},{icon: 'bullseye',question: 'How accurate are the matches?',answer: 'Our models follow validated psychological frameworks. They cannot guarantee outcomes, but they provide clearer compatibility insights compared to random matching.'}];// Progress tracking properties - synced with AppComponentprofileCompleted = false;expectationsCompleted = false;assessmentCompleted = false;matchingCompleted = false;// Chatbot propertiesshowChatbot = false;private authSubscription!: Subscription;constructor(private cdr: ChangeDetectorRef,private signupService: SignupService,private authService: AuthService,private router: Router,private http: HttpClient) { }ngOnInit(): void {window.scrollTo({ top: 0, left: 0, behavior: 'auto' });window.addEventListener('scroll', this.onWindowScroll, true);// Subscribe to authentication state changesthis.authSubscription = this.authService.userId$.subscribe(userId => {this.userId = userId;this.isSignedIn = !!userId;console.log('?? Auth state updated in IntroPage:', {userId: this.userId,isSignedIn: this.isSignedIn});if (this.userId && this.isSignedIn) {// Check if the user has completed LLM questionsthis.http.get(`http://127.0.0.1:5000/api/match/${this.userId}?role=marriage`).subscribe({next: () => {this.canMatch = true;this.cdr.markForCheck();},error: () => {this.canMatch = false;this.cdr.markForCheck();}});// Load progress for signed-in userthis.loadUserProgress();} else {this.canMatch = false;// Load anonymous progressthis.loadAnonymousProgress();}});// Check privacy acceptancethis.privacyAccepted = localStorage.getItem('privacyAccepted') === 'true';// Setup progress listeners to sync with AppComponentthis.setupProgressListeners();// Show cookie consent if not acceptedif (!this.privacyAccepted) {setTimeout(() => {this.cdr.markForCheck();}, 1000);}}ngOnDestroy(): void {if (this.authSubscription) {this.authSubscription.unsubscribe();}window.removeEventListener('scroll', this.onWindowScroll, true);}onWindowScroll = (): void => {this.showScrollToTop = window.scrollY > 300;this.cdr.detectChanges();};// Load user progress from localStorageprivate loadUserProgress(): void {if (!this.userId) return;const progressData = localStorage.getItem(`user_progress_${this.userId}`);if (progressData) {try {const progress = JSON.parse(progressData);this.profileCompleted = progress.profileCompleted || false;this.expectationsCompleted = progress.expectationsCompleted || false;this.assessmentCompleted = progress.assessmentCompleted || false;this.matchingCompleted = progress.matchingCompleted || false;console.log('?? IntroPage - Loaded user progress:', progress);} catch (e) {console.error('Error parsing progress data:', e);}}}// Load anonymous progressprivate loadAnonymousProgress(): void {const anonymousProgress = localStorage.getItem('anonymous_progress');if (anonymousProgress) {try {const progress = JSON.parse(anonymousProgress);this.profileCompleted = progress.profileCompleted || false;this.expectationsCompleted = progress.expectationsCompleted || false;this.assessmentCompleted = progress.assessmentCompleted || false;this.matchingCompleted = progress.matchingCompleted || false;console.log('?? IntroPage - Loaded anonymous progress:', progress);} catch (e) {console.error('Error parsing anonymous progress:', e);}}}// Setup progress listeners to sync with AppComponentprivate setupProgressListeners(): void {window.addEventListener('profileCompleted', () => {console.log('?? PROFILE COMPLETED EVENT RECEIVED - IntroPageComponent');this.profileCompleted = true;this.cdr.detectChanges();});window.addEventListener('expectationsCompleted', () => {console.log('?? EXPECTATIONS COMPLETED EVENT RECEIVED - IntroPageComponent');this.expectationsCompleted = true;this.cdr.detectChanges();});window.addEventListener('assessmentCompleted', () => {console.log('?? ASSESSMENT COMPLETED EVENT RECEIVED - IntroPageComponent');this.assessmentCompleted = true;this.cdr.detectChanges();});window.addEventListener('matchingCompleted', () => {console.log('?? MATCHING COMPLETED EVENT RECEIVED - IntroPageComponent');this.matchingCompleted = true;this.cdr.detectChanges();});// Listen for storage changes (when AppComponent updates progress)window.addEventListener('storage', (event) => {if (event.key?.startsWith('user_progress_') || event.key === 'anonymous_progress') {if (this.isSignedIn && this.userId) {this.loadUserProgress();} else {this.loadAnonymousProgress();}this.cdr.detectChanges();}});}// Check if step is enabled (same logic as AppComponent)isStepEnabled(step: string): boolean {console.log(`?? IntroPage - Checking if step "${step}" is enabled:`, {profile: this.profileCompleted,expectations: this.expectationsCompleted,assessment: this.assessmentCompleted,matching: this.matchingCompleted,isSignedIn: this.isSignedIn});// If user is not signed in, only allow profile stepif (!this.isSignedIn) {return step === 'profile';}// For signed-in users, steps remain enabled once completedswitch (step) {case 'profile':return true; // Always enabled for signed-in userscase 'expectations':// Enabled if profile is completed OR if expectations were already completedreturn this.profileCompleted || this.expectationsCompleted;case 'assessment':// Enabled if expectations are completed OR if assessment was already completedreturn this.expectationsCompleted || this.assessmentCompleted;case 'matching':// Enabled if assessment is completed OR if matching was already completedreturn this.assessmentCompleted || this.matchingCompleted;default:return false;}}// --- UPDATED: Continue Your Journey Method ---navigateToProfile(): void {console.log('Continue Your Journey clicked - User ID:', this.userId);if (!this.userId) {console.log('User not authenticated, showing signin modal');this.showAuthRequiredPopup = true;return;}// Use the same logic as AppComponent to determine the next stepconst nextStep = this.getNextAvailableStep();console.log('?? IntroPage - Navigating to next available step:', nextStep, 'for user:', this.userId);this.navigateToStep(nextStep);}// --- UPDATED: Determine the next available step based on progress ---private getNextAvailableStep(): string {console.log('?? IntroPage - Progress data for navigation:', {profile: this.profileCompleted,expectations: this.expectationsCompleted,assessment: this.assessmentCompleted,matching: this.matchingCompleted});// Use the same logic as AppComponent's sub-nav to determine next stepif (this.isStepEnabled('profile') && !this.profileCompleted) {console.log('?? Next step: Profile (enabled and not completed)');return 'profile';} else if (this.isStepEnabled('expectations') && !this.expectationsCompleted) {console.log('?? Next step: Expectations (enabled and not completed)');return 'expectations';} else if (this.isStepEnabled('assessment') && !this.assessmentCompleted) {console.log('?? Next step: Assessment (enabled and not completed)');return 'assessment';} else if (this.isStepEnabled('matching') && !this.matchingCompleted) {console.log('?? Next step: Matching (enabled and not completed)');return 'matching';} else {// If all steps are completed, default to matchingconsole.log('?? Next step: Matching (all steps completed or default)');return 'matching';}}// Navigate to specific stepprivate navigateToStep(step: string): void {switch (step) {case 'profile':this.router.navigate(['/question-answer'], {queryParams: {role: 'marriage',user_id: this.userId}});break;case 'expectations':this.router.navigate(['/userpreferences'], {queryParams: { user_id: this.userId }});break;case 'assessment':// Check if assessment already taken before navigatingthis.http.get(`http://127.0.0.1:5000/api/check-assessment-completion/${this.userId}`).subscribe({next: (response: any) => {if (response.has_taken_assessment) {// If assessment already taken, navigate to matching insteadconsole.log('?? User has already taken assessment, redirecting to matching');this.router.navigate(['/matchinglist'], {queryParams: { user_id: this.userId }});} else {// Navigate to assessmentthis.router.navigate(['/llmquiz'], {queryParams: {user_id: this.userId,show_welcome: 'true'}});}},error: (err: any) => {console.error('Error checking assessment completion:', err);// If check fails, proceed to assessmentthis.router.navigate(['/llmquiz'], {queryParams: {user_id: this.userId,show_welcome: 'true'}});}});break;case 'matching':this.router.navigate(['/matchinglist'], {queryParams: { user_id: this.userId }});break;default:// Default to profile if something goes wrongthis.router.navigate(['/question-answer'], {queryParams: {role: 'marriage',user_id: this.userId}});}}// --- Marriage Sub Navigation Methods ---toggleMarriageSubnav(): void {this.showMarriageSubnav = !this.showMarriageSubnav;this.cdr.detectChanges();}hideMarriageSubnav(): void {this.showMarriageSubnav = false;this.cdr.detectChanges();}navigateToExpectations(): void {const userId = this.authService.userId;if (!userId) {this.showAuthRequiredPopup = true;return;}this.showMarriageSubnav = false;this.router.navigate(['/userpreferences'], {queryParams: { user_id: userId }});}navigateToAssessment(): void {const userId = this.authService.userId;if (!userId) {this.showAuthRequiredPopup = true;return;}this.showMarriageSubnav = false;this.router.navigate(['/llmquiz'], {queryParams: {user_id: userId,show_welcome: 'true'}});}navigateToMatchingProfile(): void {const userId = this.authService.userId;if (!userId) {this.showAuthRequiredPopup = true;return;}this.showMarriageSubnav = false;this.router.navigate(['/matchinglist'], {queryParams: { user_id: userId }});}// --- CTA Button Methods ---openMatchPopup(): void {console.log('Open Match Popup - Current state:', {isSignedIn: this.isSignedIn,userId: this.userId});if (this.isSignedIn && this.userId) {// User is signed in - navigate to the appropriate stepconsole.log('User is signed in, navigating to next step');this.navigateToProfile();} else {// User is not signed in - show signin directlyconsole.log('User is not signed in, opening sign in modal');this.openSignIn();}}// --- Auth modal handlers ---openSignIn(): void {this.modal = 'signin';this.showAuthRequiredPopup = false;document.body.style.overflow = 'hidden';}openSignUp(): void {this.modal = 'signup';this.showAuthRequiredPopup = false;document.body.style.overflow = 'hidden';}closeModal(): void {this.modal = null;if (!this.isAboutOpen) document.body.style.overflow = '';this.cdr.detectChanges();}closeMatchPopup(): void {this.showMatchPopup = false;this.cdr.detectChanges();}closeAuthRequiredPopup(): void {this.showAuthRequiredPopup = false;this.cdr.detectChanges();}handleSignInSuccess(): void {this.closeModal();console.log('User signed in successfully - modal closed');// Update auth statethis.userId = this.authService.userId;this.isSignedIn = !!this.userId;if (this.userId) {this.loadUserProgress();}this.cdr.markForCheck();}handleSignUpSuccess(): void {console.log('? Sign up success in intro page');this.closeModal();// Update auth statethis.userId = this.authService.userId;this.isSignedIn = !!this.userId;if (this.userId) {this.loadUserProgress();}// Dispatch event to notify other componentswindow.dispatchEvent(new Event('authStateChanged'));this.cdr.markForCheck();}handleSignInFromPopup(): void {this.showMatchPopup = false;this.openSignIn();}handleSignUpFromPopup(): void {this.showMatchPopup = false;this.openSignUp();}handleSignInFromAuthRequired(): void {this.showAuthRequiredPopup = false;this.openSignIn();}handleSignUpFromAuthRequired(): void {this.showAuthRequiredPopup = false;this.openSignUp();}backdropClick(e: MouseEvent): void {if ((e.target as HTMLElement).classList.contains('modal-backdrop')) {this.closeModal();}}// --- About modal handlers ---openAbout(): void {this.isAboutOpen = true;document.body.style.overflow = 'hidden';setTimeout(() => document.getElementById('aboutDialog')?.focus(), 0);this.cdr.detectChanges();}closeAbout(): void {this.isAboutOpen = false;if (!this.modal) document.body.style.overflow = '';this.cdr.detectChanges();}openPrivacyModal(): void {this.showPrivacyModal = true;document.body.style.overflow = 'hidden';this.cdr.detectChanges();}closePrivacyModal(): void {this.showPrivacyModal = false;if (!this.modal && !this.isAboutOpen) document.body.style.overflow = '';this.cdr.detectChanges();}acceptPrivacyPolicy(): void {localStorage.setItem('privacyAccepted', 'true');this.privacyAccepted = true;this.closePrivacyModal();this.cdr.detectChanges();}openTermsModal(): void {this.showTermsModal = true;document.body.style.overflow = 'hidden';this.cdr.detectChanges();}closeTermsModal(): void {this.showTermsModal = false;if (!this.modal && !this.isAboutOpen) document.body.style.overflow = '';this.cdr.detectChanges();}// --- Chatbot Methods ---openChatbot(): void {// If AppComponent is available globally, delegate to it so there's a single chatbot UIconst appRef = (window as any).appComponentRef;if (appRef && typeof appRef.openChatbot === 'function') {try {appRef.openChatbot();return;} catch (e) {console.error('Failed to open chatbot via AppComponent:', e);}}// Fallback to local chatbot handling (rare path)this.showChatbot = true;document.body.style.overflow = 'hidden';this.cdr.detectChanges();}closeChatbot(evt?: MouseEvent): void {// If AppComponent handles chatbot, delegate close to itconst appRef = (window as any).appComponentRef;if (appRef && typeof appRef.closeChatbot === 'function') {try {appRef.closeChatbot(evt);return;} catch (e) {console.error('Failed to close chatbot via AppComponent:', e);}}if (evt && (evt.target as HTMLElement).classList.contains('modal-backdrop')) {this.showChatbot = false;} else if (!evt) {this.showChatbot = false;}if (!this.modal && !this.isAboutOpen && !this.showPrivacyModal && !this.showTermsModal) {document.body.style.overflow = '';}this.cdr.detectChanges();}askQuickQuestion(question: string): void {console.log('Quick question asked:', question);this.addUserMessage(question);// Simulate bot response after delaysetTimeout(() => {let response = '';switch (question) {case 'How does the matching process work?':response = 'Our matching process uses adaptive assessment technology combined with established psychological frameworks. You\'ll complete a 15-20 minute assessment, and our system analyzes your responses to find compatible matches based on behavioral patterns and compatibility factors.';break;case 'What personality models do you use?':response = 'We use several established psychological frameworks including the Big Five personality model (Openness, Conscientiousness, Extraversion, Agreeableness, Neuroticism), along with complementary models for specific contexts like marriage compatibility and workplace dynamics.';break;case 'How do I reset my password?':response = 'To reset your password, click on the "Sign In" button, then select "Forgot Password" on the login screen. You\'ll receive an email with instructions to reset your password. If you need further assistance, contact our support team at support@pykara.com.';break;case 'Contact support team':response = 'You can reach our human support team by emailing info@pykara.ai or calling +91 99941 90964. Our support hours are Monday-Friday, 9 AM - 6 PM EST. For urgent matters, please include "URGENT" in your email subject line.';break;default:response = 'Thank you for your question. Our support team will get back to you shortly. For immediate assistance, please contact us at support@pykara.com';}this.addBotMessage(response);}, 1000);}sendMessage(chatInput: any): void {const message = chatInput.value.trim();if (message) {console.log('Message sent:', message);this.addUserMessage(message);setTimeout(() => {this.addBotMessage('Thank you for your message. Our support team will review your question and get back to you within 24 hours. For immediate assistance, please contact us at info@pykara.ai or call +91 99941 90964.');}, 1000);chatInput.value = '';}}private addUserMessage(message: string): void {const chatMessages = document.querySelector('.chat-messages');if (chatMessages) {const userMessage = document.createElement('div');userMessage.className = 'message user-message';userMessage.innerHTML = `<div class="message-avatar"><i class="fa-solid fa-user"></i></div><div class="message-content"><p>${message}</p></div>`;chatMessages.appendChild(userMessage);this.scrollToBottom();}}private addBotMessage(message: string): void {const chatMessages = document.querySelector('.chat-messages');if (chatMessages) {const botMessage = document.createElement('div');botMessage.className = 'message bot-message';botMessage.innerHTML = `<div class="message-avatar"><i class="fa-solid fa-robot"></i></div><div class="message-content"><p>${message}</p></div>`;chatMessages.appendChild(botMessage);this.scrollToBottom();}}private scrollToBottom(): void {setTimeout(() => {const chatMessages = document.querySelector('.chat-messages');if (chatMessages) {chatMessages.scrollTop = chatMessages.scrollHeight;}}, 100);}@HostListener('document:keydown.escape')onEsc(): void {if (this.modal) this.closeModal();else if (this.isAboutOpen) this.closeAbout();else if (this.showMarriageSubnav) this.hideMarriageSubnav();else if (this.showPrivacyModal) this.closePrivacyModal();else if (this.showTermsModal) this.closeTermsModal();else if (this.showAuthRequiredPopup) this.closeAuthRequiredPopup();else if (this.showChatbot) this.closeChatbot();}@HostListener('document:click', ['$event'])onDocumentClick(event: MouseEvent): void {// Close subnav when clicking outsideif (this.showMarriageSubnav) {const target = event.target as HTMLElement;if (!target.closest('.nav-item-wrapper')) {this.hideMarriageSubnav();}}}scrollToContent(): void {const element = document.getElementById('features');if (element) {element.scrollIntoView({ behavior: 'smooth' });}}selectRole(role: string): void {const userId = this.authService.userId;if (!userId) {this.showAuthRequiredPopup = true;return;}this.isLoading = true;this.signupService.assignRole(userId, role).subscribe({next: (res) => {console.log('Role saved:', res);this.isLoading = false;this.router.navigate(['/question-answer'], {queryParams: {role: role,user_id: userId}});},error: (err) => {console.error('Role assign failed:', err);this.isLoading = false;alert('Failed to assign role.');}});}/*** Scroll to the FAQ section (specialTitle)*/scrollToFaq(): void {const faqSection = document.getElementById('specialTitle');if (faqSection) {faqSection.scrollIntoView({ behavior: 'smooth', block: 'start' });}}// i18n helpertr(key: string): string {const dict = {brand: 'Py-Match',signup: 'Sign up',signin: 'Sign in',tagline: 'Meaningful Compatibility Through Behavioral Science<br><span class="tagline-line2">Understand relationships, careers, and partnerships</span>',subtext: 'Discover compatibility through validated psychological models and intelligent matching. Our system looks beyond basic profile data and focuses on core behavioral patterns that influence real-world relationships.',exploreFeatures: 'Explore our features below'} as const;return (dict as Record<string, string>)[key] ?? key;}scrollToTop(): void {window.scrollTo({ top: 0, behavior: 'smooth' });}// Toggle FAQ answer visibilitytoggleFaq(index: number): void {this.openFaqIndex = this.openFaqIndex === index ? null : index;this.cdr.markForCheck();}}
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732/*[file name]: llm-quiz.component.css[file content begin]*//* Enhanced brain-themed UI */:host {display: block;min-height: 100vh;background:radial-gradient(circle at 15% 20%, rgba(45, 75, 120, 0.8) 0%, transparent 40%),radial-gradient(circle at 85% 80%, rgba(120, 75, 180, 0.6) 0%, transparent 40%),radial-gradient(circle at 50% 50%, rgba(30, 45, 75, 1) 0%, #121a23 100%);background-attachment: fixed;position: relative;overflow-x: hidden;font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;}/* Neural network background animation */.brain-bg {position: fixed;top: 0;left: 0;width: 100%;height: 100%;pointer-events: none;z-index: 0;opacity: 0.4;}.neuron {position: absolute;width: 6px;height: 6px;border-radius: 50%;background: radial-gradient(circle, #f3a54c, #e67e22);box-shadow: 0 0 12px 4px rgba(243, 165, 76, 0.7);animation: neuronPulse 3s ease-in-out infinite;}.neuron-connection {position: absolute;height: 2px;background: linear-gradient(90deg, transparent, rgba(243, 165, 76, 0.6), transparent);transform-origin: left center;animation: connectionFlow 4s linear infinite;}@keyframes neuronPulse {0%, 100% { transform: scale(1); opacity: 0.7; }50% { transform: scale(1.3); opacity: 1; }}@keyframes connectionFlow {0% { opacity: 0; transform: scaleX(0); }50% { opacity: 0.8; transform: scaleX(1); }100% { opacity: 0; transform: scaleX(0); }}/* Enhanced topbar with brain theme */.quiz-topbar {position: fixed;top: 0;left: 0;width: 100%;padding: 14px 38px;display: flex;align-items: center;justify-content: space-between;background: rgba(18, 26, 35, 0.9);backdrop-filter: blur(12px);z-index: 2000;box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);border-bottom: 1px solid rgba(243, 165, 76, 0.2);}.brand {display: inline-flex;align-items: center;gap: 16px;cursor: pointer;user-select: none;transition: transform 0.3s ease;}.brand:hover {transform: translateY(-2px);}.brand__logo-img {background: linear-gradient(135deg, #f3a54c, #e67e22);width: 54px;height: 54px;border-radius: 50%;padding: 6px;box-shadow: 0 4px 15px rgba(243, 165, 76, 0.4);transition: all 0.3s ease;}.brand__name {letter-spacing: 2px;color: #ffffff;font-size: 28px;font-weight: 300;text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);}.brand__name strong {color: #f3a54c;font-weight: 400;}.top-progress {display: flex;align-items: center;gap: 12px;color: #f0f0f0;}.tp-label {font-size: 14px;font-weight: 500;}.tp-track {width: 120px;height: 6px;background: rgba(255, 255, 255, 0.1);border-radius: 3px;overflow: hidden;}.tp-fill {height: 100%;background: linear-gradient(90deg, #f3a54c, #e67e22);border-radius: 3px;transition: width 0.5s ease;}/* Brain-themed hero section */.quiz-hero {max-width: 880px;margin: 100px auto 30px;padding: 50px 40px;background:radial-gradient(circle at 20% 30%, rgba(243, 165, 76, 0.15) 0%, transparent 50%),linear-gradient(135deg, rgba(30, 42, 60, 0.9) 0%, rgba(40, 55, 80, 0.9) 100%);border-radius: 24px;position: relative;overflow: hidden;box-shadow:0 20px 40px rgba(0, 0, 0, 0.4),0 8px 24px rgba(0, 0, 0, 0.3);border: 1px solid rgba(243, 165, 76, 0.2);color: #f5f8fb;text-align: center;}.quiz-hero::before {content: "";position: absolute;inset: 0;background:radial-gradient(circle at 70% 20%, rgba(243, 165, 76, 0.25) 0%, transparent 40%),radial-gradient(circle at 30% 80%, rgba(120, 75, 180, 0.2) 0%, transparent 40%);mix-blend-mode: overlay;z-index: 1;}.hero-inner {position: relative;z-index: 2;display: flex;flex-direction: column;align-items: center;gap: 20px;}.hero-icon {width: 100px;height: 100px;border-radius: 50%;background: linear-gradient(135deg, #f3a54c, #e67e22);display: flex;align-items: center;justify-content: center;font-size: 46px;color: #1e2532;box-shadow:0 10px 30px rgba(243, 165, 76, 0.5),0 0 0 4px rgba(243, 165, 76, 0.2);animation: iconFloat 4s ease-in-out infinite;}@keyframes iconFloat {0%, 100% { transform: translateY(0px) rotate(0deg); }50% { transform: translateY(-10px) rotate(5deg); }}.hero-title {margin: 0;font-size: clamp(36px, 4vw, 48px);line-height: 1.1;font-weight: 700;letter-spacing: 0.5px;display: flex;align-items: center;gap: 16px;flex-wrap: wrap;justify-content: center;}.hero-title .fa-brain {color: #f3a54c;filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));animation: brainPulse 2s ease-in-out infinite;}@keyframes brainPulse {0%, 100% { transform: scale(1); }50% { transform: scale(1.1); }}.hero-sub {margin: 0;max-width: 680px;font-size: clamp(1rem, 1.1vw, 1.1rem);line-height: 1.6;opacity: 0.9;font-weight: 400;}/* Enhanced quiz container */.quiz {position: absolute;z-index: 2;width: 80%;margin: 0 auto 40px;background: rgba(255, 255, 255, 0.88);-webkit-backdrop-filter: blur(15px);backdrop-filter: blur(15px);border-radius: 20px;box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25), 0 8px 24px rgba(0, 0, 0, 0.15);padding: 30px;border: 1px solid rgba(255, 255, 255, 0.3);top: 50%;left: 50%;transform: translate(-50%, -50%);}/* Enhanced cards with brain-inspired design */.question-card, .result, .panel {background: rgba(255, 255, 255, 0.95);border-radius: 16px;box-shadow:0 8px 24px rgba(0, 0, 0, 0.08),0 2px 8px rgba(0, 0, 0, 0.04);padding: 28px;margin-bottom: 24px;border: 1px solid rgba(243, 165, 76, 0.1);animation: cardAppear 0.5s ease-out;position: relative;overflow: hidden;}.question-card::before, .result::before, .panel::before {content: "";position: absolute;top: 0;left: 0;right: 0;height: 4px;background: linear-gradient(90deg, #f3a54c, #e67e22, #f3a54c);background-size: 200% 100%;animation: shimmer 3s ease-in-out infinite;}@keyframes cardAppear {from { opacity: 0; transform: translateY(20px) scale(0.98); }to { opacity: 1; transform: translateY(0) scale(1); }}@keyframes shimmer {0% { background-position: -200% 0; }100% { background-position: 200% 0; }}/* Question styling */.q-meta {display: flex;justify-content: space-between;align-items: center;margin-bottom: 16px;color: #666;font-size: 0.9rem;}.q-count {font-weight: 600;color: #2C3E50;background: rgba(243, 165, 76, 0.1);padding: 6px 12px;border-radius: 20px;}.q-role .badge {display: inline-flex;align-items: center;gap: 6px;padding: 6px 14px;background: linear-gradient(135deg, rgba(243, 165, 76, 0.15), rgba(230, 126, 34, 0.1));color: #e67e22;border: 1px solid rgba(230, 126, 34, 0.3);border-radius: 20px;font-size: 0.85rem;font-weight: 500;}.q-text {font-size: 1.7rem;font-weight: 600;margin: 20px 0;line-height: 1.4;color: #2C3E50;text-align: center;}.q-brain {color: #f3a54c;margin-right: 10px;animation: thoughtBubble 2s ease-in-out infinite;}@keyframes thoughtBubble {0%, 100% { transform: scale(1) rotate(0deg); }25% { transform: scale(1.1) rotate(5deg); }75% { transform: scale(1.1) rotate(-5deg); }}/* Enhanced options with brain-inspired colors */.options {display: grid;grid-template-columns: repeat(2, 1fr);gap: 16px;margin: 24px 0;}.option {position: relative;transition: transform 0.3s ease;}.option:hover {transform: translateY(-3px);}.option input[type=radio] {position: absolute;opacity: 0;width: 100%;height: 100%;cursor: pointer;z-index: 2;}.opt-text {display: block;padding: 20px;border: 2px solid #e2e7ee;border-radius: 12px;background: #fbfcfe;color: #2C3E50;font-weight: 500;transition: all 0.3s ease;position: relative;overflow: hidden;}.opt-text::before {content: "";position: absolute;top: 0;left: -100%;width: 100%;height: 100%;background: linear-gradient(90deg, transparent, rgba(243, 165, 76, 0.1), transparent);transition: left 0.5s ease;}.option:hover .opt-text::before {left: 100%;}.option input:checked + .opt-text {border-color: #f3a54c;background: rgba(243, 165, 76, 0.05);box-shadow: 0 4px 12px rgba(243, 165, 76, 0.2);transform: scale(1.02);}/* Color chips for options */.color-chip {width: 20px;height: 20px;border-radius: 6px;margin-right: 10px;display: inline-block;box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);vertical-align: middle;}/* Enhanced buttons */.actions {margin-top: 24px;display: flex;gap: 14px;flex-wrap: wrap;}button {padding: 14px 24px;font-size: 1rem;font-weight: 600;border: none;border-radius: 12px;cursor: pointer;transition: all 0.3s ease;display: inline-flex;align-items: center;gap: 8px;box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);position: relative;overflow: hidden;}button::before {content: "";position: absolute;top: 0;left: -100%;width: 100%;height: 100%;background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);transition: left 0.5s ease;}button:hover::before {left: 100%;}button:active {transform: translateY(2px);box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);}button.primary, button.submit-btn {background: linear-gradient(135deg, #f3a54c, #e67e22);color: white;flex: 1;}button.primary:hover, button.submit-btn:hover {background: linear-gradient(135deg, #ffb347, #e67e22);transform: translateY(-2px);}button[disabled] {background: #cfd8e3;color: #6b7280;cursor: not-allowed;box-shadow: none;transform: none;}button[disabled]::before {display: none;}/* Enhanced progress bars */.progress {margin: 24px 0;}.bar {display: grid;grid-template-columns: 140px 1fr 60px;align-items: center;gap: 14px;margin: 14px 0;}.bar-label {display: inline-flex;align-items: center;gap: 10px;font-weight: 600;color: #2C3E50;text-transform: capitalize;}/* Strengthened specificity for dimension colors */.progress .bar .bar-label.dim-blue, .result .bar .bar-label.dim-blue { color:#2980b9 !important; }.progress .bar .bar-label.dim-green, .result .bar .bar-label.dim-green { color:#1d7f44 !important; }.progress .bar .bar-label.dim-red, .result .bar .bar-label.dim-red { color:#b93528 !important; }.progress .bar .bar-label.dim-yellow, .result .bar .bar-label.dim-yellow { color:#b56a00 !important; }.dot {width: 12px;height: 12px;border-radius: 50%;display: inline-block;box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);}.dot.blue { background:#3498db; }.dot.green { background:#2ecc71; }.dot.red { background:#e74c3c; }.dot.yellow { background:#f1c40f; }/* Add missing bar-fill color classes */.bar-fill.blue { background:linear-gradient(90deg,#5dade2,#2e86c1); }.bar-fill.green { background:linear-gradient(90deg,#58d68d,#239b56); }.bar-fill.red { background:linear-gradient(90deg,#ec7063,#cb4335); }.bar-fill.yellow { background:linear-gradient(90deg,#f8c471,#d68910); }/* Fallback if gradient not supported */@supports not (background:linear-gradient(red,blue)) {.bar-fill.blue { background:#2e86c1; }.bar-fill.green { background:#239b56; }.bar-fill.red { background:#cb4335; }.bar-fill.yellow { background:#d68910; }}/* Enhanced results section */.result h2 {color: #2C3E50;text-align: center;margin-bottom: 24px;font-size: 2rem;}.result-sub {text-align: center;margin-bottom: 20px;font-size: 1.1rem;color: #666;}.pill {display: inline-flex;align-items: center;gap: 6px;padding: 8px 16px;border-radius: 20px;font-weight: 600;text-transform: capitalize;}.pill-blue { background: rgba(52, 152, 219, 0.15); color: #2980b9; }.pill-green { background: rgba(46, 204, 113, 0.15); color: #27ae60; }.pill-red { background: rgba(231, 76, 60, 0.15); color: #c0392b; }.pill-yellow { background: rgba(241, 196, 15, 0.15); color: #d35400; }.dom-desc {text-align: center;font-size: 1.1rem;font-style: italic;color: #7f8c8d;margin-bottom: 30px;padding: 16px;background: rgba(243, 165, 76, 0.05);border-radius: 12px;border-left: 4px solid #f3a54c;}/* Loader overlay */.loader-overlay {position: fixed;inset: 0;background: rgba(12, 18, 28, 0.7);display: grid;place-items: center;z-index: 9999;backdrop-filter: blur(5px);}.loader-container { text-align:center; }.loader-gif { width: 50%; height: 50%; }/* Keep spinner styles in case referenced elsewhere */.loader { display:none; }.spinner { display:none; }/* Form elements in panel */.panel {text-align: center;}.panel-title {color: #2C3E50;margin-bottom: 16px;font-size: 1.8rem;}.panel-hint {color: #666;margin-bottom: 28px;line-height: 1.5;}.row {display: flex;align-items: center;justify-content: space-between;margin-bottom: 18px;text-align: left;}.row label {font-weight: 600;color: #2C3E50;min-width: 140px;}.row input, .row select {flex: 1;padding: 12px 16px;border: 2px solid #e2e7ee;border-radius: 10px;font-size: 1rem;transition: border-color 0.3s ease;background: white;}.row input:focus, .row select:focus {outline: none;border-color: #f3a54c;box-shadow: 0 0 0 3px rgba(243, 165, 76, 0.2);}/* Watermark *//*:host::after {content: "NeuroMatch";position: fixed;right: 20px;bottom: 20px;z-index: 2;pointer-events: none;user-select: none;font-weight: 700;font-size: 14px;letter-spacing: 1px;color: rgba(255, 255, 255, 0.7);background: rgba(30, 42, 60, 0.7);backdrop-filter: blur(4px);padding: 8px 14px;border-radius: 10px;border: 1px solid rgba(243, 165, 76, 0.3);}*//* Responsive design */@media (max-width: 900px) {.quiz-hero {padding: 40px 28px;margin-top: 110px;}.hero-icon {width: 80px;height: 80px;font-size: 38px;}.quiz {margin: 0 16px 30px;padding: 24px;}.options {grid-template-columns: 1fr;}}@media (max-width: 600px) {.quiz-topbar {padding: 12px 20px;}.brand__logo-img {width: 44px;height: 44px;}.brand__name {font-size: 22px;}.quiz-hero {padding: 30px 20px;margin-top: 90px;}.hero-title {font-size: 28px;}.q-text {font-size: 1.4rem;}.bar {grid-template-columns: 1fr;gap: 8px;text-align: center;}.bar-val {text-align: center;}.row {flex-direction: column;align-items: flex-start;gap: 8px;}.row input, .row select {width: 100%;}.actions {flex-direction: column;}}/*[file content end]*/12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853/* llm-quiz.component.css - Updated to match intro-page color theme */:host {display: block;min-height: 100vh;background: radial-gradient(ellipse at 20% 20%, rgba(212, 167, 85, 0.15) 0%, transparent 40%), radial-gradient(ellipse at 80% 80%, rgba(58, 184, 169, 0.1) 0%, transparent 40%), radial-gradient(ellipse at 40% 40%, rgba(13, 27, 42, 0.2) 0%, transparent 50%), linear-gradient(135deg, #0D1B2A 0%, #1B2635 100%);position: relative;overflow-x: hidden;font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;}/* Neural Network Background - Updated Colors */.neural-network-bg {position: fixed;top: 0;left: 0;width: 100%;height: 100%;pointer-events: none;z-index: 0;opacity: 0.15;}.neural-path {position: absolute;height: 1px;background: linear-gradient(90deg, transparent, #3AB8A9, transparent);animation: pathFlow 8s linear infinite;}.neural-path:nth-child(1) {top: 20%;width: 80%;animation-delay: 0s;}.neural-path:nth-child(2) {top: 50%;width: 60%;animation-delay: -2s;}.neural-path:nth-child(3) {top: 80%;width: 70%;animation-delay: -4s;}.neural-node {position: absolute;width: 6px;height: 6px;border-radius: 50%;background: #3AB8A9;box-shadow: 0 0 12px 3px rgba(58, 184, 169, 0.6);animation: nodePulse 3s ease-in-out infinite;}@keyframes pathFlow {0% {opacity: 0;transform: translateX(-100%);}50% {opacity: 1;}100% {opacity: 0;transform: translateX(100%);}}@keyframes nodePulse {0%, 100% {transform: scale(1);opacity: 0.7;}50% {transform: scale(1.5);opacity: 1;}}/* Main Container */.quiz-container {position: relative;z-index: 1;display: flex;padding: 5vw 0 0 0;height: 100vh;overflow-y: hidden !important;justify-content: center;align-items: center;}/* Welcome Section */.welcome-section {width: 46%;position: relative;}.welcome-card {background: rgba(255, 255, 255, 0.95);-webkit-backdrop-filter: blur(20px);backdrop-filter: blur(20px);border-radius: 24px;padding: 0 3vw;box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 8px 24px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);border: 1px solid rgba(255, 255, 255, 0.3);position: relative;overflow: hidden;}.welcome-card::before {content: '';position: absolute;top: 0;left: 0;right: 0;height: 4px;background: linear-gradient(90deg, #3AB8A9, #D4A755, #3AB8A9);background-size: 200% 100%;animation: shimmer 3s ease-in-out infinite;}.welcome-header {text-align: center;margin-bottom: 3rem;}.brain-icon {width: 100px;height: 100px;margin: 0 auto 1.5rem;background: linear-gradient(135deg, #3AB8A9, #5EC8BA);border-radius: 50%;display: flex;align-items: center;justify-content: center;font-size: 2.5rem;color: #111;box-shadow: 0 15px 35px rgba(58, 184, 169, 0.4), 0 0 0 4px rgba(58, 184, 169, 0.1);animation: float 6s ease-in-out infinite;}@keyframes float {0%, 100% {transform: translateY(0px) rotate(0deg);}50% {transform: translateY(-10px) rotate(5deg);}}.welcome-title {font-size: 2.5rem;font-weight: 700;background: linear-gradient(135deg, #1B2635, #0D1B2A);-webkit-background-clip: text;-webkit-text-fill-color: transparent;margin-bottom: 0.5rem;}.welcome-subtitle {font-size: 1.2rem;color: #64748b;font-weight: 500;}/* Feature Highlights */.feature-highlights {display: grid;grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));gap: 1.5rem;margin-bottom: 3rem;}.feature-card {background: rgba(248, 250, 252, 0.8);padding: 0.5vw;border-radius: 16px;text-align: center;border: 1px solid rgba(226, 232, 240, 0.8);transition: all 0.3s ease;position: relative;overflow: hidden;}.feature-card::before {content: '';position: absolute;top: 0;left: -100%;width: 100%;height: 100%;background: linear-gradient(90deg, transparent, rgba(58, 184, 169, 0.05), transparent);transition: left 0.5s ease;}.feature-card:hover::before {left: 100%;}.feature-card:hover {transform: translateY(-5px);box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);border-color: rgba(58, 184, 169, 0.3);}.feature-icon {width: 60px;height: 60px;margin: 0 auto 1rem;background: linear-gradient(135deg, #3AB8A9, #5EC8BA);border-radius: 16px;display: flex;align-items: center;justify-content: center;font-size: 1.5rem;color: #111;}.feature-card h3 {font-size: 1.1rem;font-weight: 600;color: #1B2635;margin-bottom: 0.5rem;}.feature-card p {color: #64748b;font-size: 0.9rem;line-height: 1.5;margin: 0;}/* Assessment Info */.assessment-info {display: flex;gap: 1rem;justify-content: center;margin-bottom: 3rem;flex-wrap: wrap;}.info-badge {display: flex;align-items: center;gap: 0.5rem;padding: 0.75rem 1.5rem;background: rgba(248, 250, 252, 0.8);border: 1px solid rgba(226, 232, 240, 0.8);border-radius: 12px;font-size: 0.9rem;color: #475569;}.info-badge i {color: #3AB8A9;}.info-badge strong {color: #1B2635;}/* Start Button */.start-section {text-align: center;margin-bottom: 1vw;}.start-btn {position: relative;background: linear-gradient(135deg, #3AB8A9, #5EC8BA);color: #111;border: none;padding: 1.25rem 3rem;font-size: 1.1rem;font-weight: 600;border-radius: 16px;cursor: pointer;transition: all 0.3s ease;overflow: hidden;box-shadow: 0 10px 30px rgba(58, 184, 169, 0.4), 0 5px 15px rgba(58, 184, 169, 0.3);}.start-btn:hover {transform: translateY(-2px);box-shadow: 0 15px 40px rgba(58, 184, 169, 0.5), 0 8px 20px rgba(58, 184, 169, 0.4);border: 2px solid #D4A755;}.start-btn:active {transform: translateY(0);}.btn-glow {position: absolute;top: 0;left: -100%;width: 100%;height: 100%;background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);transition: left 0.5s ease;}.start-btn:hover .btn-glow {left: 100%;}.btn-content {position: relative;z-index: 1;display: flex;align-items: center;gap: 0.5rem;}.start-hint {margin-top: 1rem;color: #64748b;font-size: 0.9rem;}/* Question Section */.question-section {width: 100%;max-width: 800px;}.question-card {background: rgba(255, 255, 255, 0.95);backdrop-filter: blur(20px);border-radius: 24px;padding: 2.5rem;box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 8px 24px rgba(0, 0, 0, 0.1);border: 1px solid rgba(255, 255, 255, 0.3);position: relative;overflow: hidden;}.question-card::before {content: '';position: absolute;top: 0;left: 0;right: 0;height: 4px;background: linear-gradient(90deg, #3AB8A9, #D4A755, #3AB8A9);background-size: 200% 100%;animation: shimmer 3s ease-in-out infinite;}.question-header {display: flex;justify-content: space-between;align-items: center;margin-bottom: 2rem;flex-wrap: wrap;gap: 1rem;}.progress-indicator {flex: 1;min-width: 200px;}.progress-track {width: 100%;height: 8px;background: rgba(226, 232, 240, 0.8);border-radius: 4px;overflow: hidden;margin-bottom: 0.5rem;}.progress-fill {height: 100%;background: linear-gradient(90deg, #3AB8A9, #5EC8BA);border-radius: 4px;transition: width 0.5s ease;}.progress-text {font-size: 0.9rem;color: #64748b;font-weight: 500;}.role-badge {display: flex;align-items: center;gap: 0.5rem;padding: 0.5rem 1rem;background: rgba(58, 184, 169, 0.1);color: #3AB8A9;border: 1px solid rgba(58, 184, 169, 0.2);border-radius: 12px;font-size: 0.9rem;font-weight: 500;}.question-content {text-align: center;}.question-text {display: flex;align-items: center;gap: 1rem;margin-bottom: 2.5rem;justify-content: center;flex-wrap: wrap;}.question-text i {font-size: 2rem;color: #3AB8A9;animation: brainPulse 2s ease-in-out infinite;}@keyframes brainPulse {0%, 100% {transform: scale(1) rotate(0deg);}25% {transform: scale(1.1) rotate(5deg);}75% {transform: scale(1.1) rotate(-5deg);}}.question-text h2 {font-size: 1.5rem;font-weight: 600;color: #1B2635;line-height: 1.4;margin: 0;}/* Options Grid */.options-grid {display: grid;grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));gap: 1rem;margin-bottom: 2.5rem;}.option-card {position: relative;cursor: pointer;}.option-card input {position: absolute;opacity: 0;}.option-content {background: rgba(248, 250, 252, 0.8);border: 2px solid rgba(226, 232, 240, 0.8);border-radius: 16px;padding: 1.5rem;display: flex;align-items: center;gap: 1rem;transition: all 0.3s ease;position: relative;overflow: hidden;}.option-content::before {content: '';position: absolute;top: 0;left: -100%;width: 100%;height: 100%;background: linear-gradient(90deg, transparent, rgba(58, 184, 169, 0.05), transparent);transition: left 0.5s ease;}.option-card:hover .option-content::before {left: 100%;}.option-card:hover .option-content {transform: translateY(-2px);border-color: rgba(58, 184, 169, 0.3);box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);}.option-card input:checked + .option-content {border-color: #3AB8A9;background: rgba(58, 184, 169, 0.05);box-shadow: 0 8px 20px rgba(58, 184, 169, 0.15);}.color-indicator {width: 24px;height: 24px;border-radius: 8px;flex-shrink: 0;box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);}.color-indicator.blue {background: #3b82f6;}.color-indicator.green {background: #00ff88;}.color-indicator.red {background: #ef4444;}.color-indicator.yellow {background: #D4A755;}.option-text {flex: 1;text-align: left;}.option-label {font-weight: 500;color: #1B2635;line-height: 1.4;}.option-check {width: 20px;height: 20px;border: 2px solid #cbd5e1;border-radius: 50%;display: flex;align-items: center;justify-content: center;flex-shrink: 0;transition: all 0.3s ease;}.option-check i {font-size: 0.7rem;color: white;opacity: 0;transition: opacity 0.3s ease;}.option-card input:checked + .option-content .option-check {background: #3AB8A9;border-color: #3AB8A9;}.option-card input:checked + .option-content .option-check i {opacity: 1;}/* Submit Button */.submit-section {text-align: center;}.submit-btn {position: relative;background: linear-gradient(135deg, #3AB8A9, #5EC8BA);color: #111;border: none;padding: 1rem 2.5rem;font-size: 1rem;font-weight: 600;border-radius: 12px;cursor: pointer;transition: all 0.3s ease;display: inline-flex;align-items: center;gap: 0.5rem;box-shadow: 0 8px 25px rgba(58, 184, 169, 0.4), 0 4px 12px rgba(58, 184, 169, 0.3);}.submit-btn:hover:not(:disabled) {transform: translateY(-2px);box-shadow: 0 12px 35px rgba(58, 184, 169, 0.5), 0 6px 18px rgba(58, 184, 169, 0.4);border: 2px solid #D4A755;}.submit-btn:disabled {background: #cbd5e1;cursor: not-allowed;box-shadow: none;transform: none;}.btn-pulse {position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);width: 20px;height: 20px;border-radius: 50%;background: rgba(58, 184, 169, 0.6);animation: pulse 2s infinite;}@keyframes pulse {0% {transform: translate(-50%, -50%) scale(1);opacity: 1;}100% {transform: translate(-50%, -50%) scale(3);opacity: 0;}}/* Results Section */.results-section {width: 100%;max-width: 900px;}.results-card {background: rgba(255, 255, 255, 0.95);backdrop-filter: blur(20px);border-radius: 24px;padding: 3rem;box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 8px 24px rgba(0, 0, 0, 0.1);border: 1px solid rgba(255, 255, 255, 0.3);position: relative;overflow: hidden;}.results-card::before {content: '';position: absolute;top: 0;left: 0;right: 0;height: 4px;background: linear-gradient(90deg, #3AB8A9, #D4A755, #3AB8A9);background-size: 200% 100%;animation: shimmer 3s ease-in-out infinite;}.results-header {text-align: center;margin-bottom: 3rem;}.completion-badge {display: inline-flex;align-items: center;gap: 0.5rem;padding: 0.5rem 1.5rem;background: rgba(58, 184, 169, 0.1);color: #3AB8A9;border: 1px solid rgba(58, 184, 169, 0.2);border-radius: 20px;font-size: 0.9rem;font-weight: 500;margin-bottom: 1rem;}.results-title {font-size: 2.5rem;font-weight: 700;background: linear-gradient(135deg, #1B2635, #0D1B2A);-webkit-background-clip: text;-webkit-text-fill-color: transparent;margin-bottom: 0.5rem;}.results-subtitle {font-size: 1.1rem;color: #64748b;font-weight: 500;}/* Dominant Traits */.dominant-traits {margin-bottom: 3rem;}.dominant-card {background: rgba(248, 250, 252, 0.8);border-radius: 20px;padding: 2.5rem;display: flex;align-items: center;gap: 2rem;border: 1px solid rgba(226, 232, 240, 0.8);position: relative;overflow: hidden;}.dominant-card::before {content: '';position: absolute;top: 0;left: 0;width: 8px;height: 100%;}.dominant-card.blue::before {background: #3b82f6;}.dominant-card.green::before {background: #00ff88;}.dominant-card.red::before {background: #ef4444;}.dominant-card.yellow::before {background: #D4A755;}.trait-icon {width: 80px;height: 80px;background: linear-gradient(135deg, currentColor, rgba(255, 255, 255, 0.8));border-radius: 20px;display: flex;align-items: center;justify-content: center;font-size: 2rem;color: #111;flex-shrink: 0;}.dominant-card.blue .trait-icon {background: linear-gradient(135deg, #3b82f6, #60a5fa);}.dominant-card.green .trait-icon {background: linear-gradient(135deg, #00ff88, #34d399);}.dominant-card.red .trait-icon {background: linear-gradient(135deg, #ef4444, #f87171);}.dominant-card.yellow .trait-icon {background: linear-gradient(135deg, #D4A755, #E3B96C);}.trait-info h3 {font-size: 0.9rem;color: #64748b;font-weight: 500;margin-bottom: 0.5rem;text-transform: uppercase;letter-spacing: 0.5px;}.trait-info h2 {font-size: 1.8rem;font-weight: 700;color: #1B2635;margin-bottom: 1rem;}.dominant-card.blue .trait-info h2 {color: #3b82f6;}.dominant-card.green .trait-info h2 {color: #00ff88;}.dominant-card.red .trait-info h2 {color: #ef4444;}.dominant-card.yellow .trait-info h2 {color: #D4A755;}.trait-info p {color: #64748b;line-height: 1.6;margin: 0;}/* Traits Breakdown */.traits-breakdown {margin-bottom: 3rem;}.breakdown-title {font-size: 1.3rem;font-weight: 600;color: #1B2635;margin-bottom: 2rem;text-align: center;}.traits-grid {display: grid;gap: 1.5rem;}.trait-item {background: rgba(248, 250, 252, 0.8);border-radius: 16px;padding: 1.5rem;border: 1px solid rgba(226, 232, 240, 0.8);}.trait-header {display: flex;align-items: center;gap: 1rem;margin-bottom: 1rem;}.trait-color {width: 16px;height: 16px;border-radius: 4px;flex-shrink: 0;}.trait-color.blue {background: #3b82f6;}.trait-color.green {background: #00ff88;}.trait-color.red {background: #ef4444;}.trait-color.yellow {background: #D4A755;}.trait-name {flex: 1;font-weight: 600;color: #1B2635;}.trait-value {font-weight: 700;color: #1B2635;}.trait-bar {width: 100%;height: 12px;background: rgba(226, 232, 240, 0.8);border-radius: 6px;overflow: hidden;}.trait-fill {height: 100%;border-radius: 6px;transition: width 1s ease-in-out;}.trait-fill.blue {background: linear-gradient(90deg, #3b82f6, #60a5fa);}.trait-fill.green {background: linear-gradient(90deg, #00ff88, #34d399);}.trait-fill.red {background: linear-gradient(90deg, #ef4444, #f87171);}.trait-fill.yellow {background: linear-gradient(90deg, #D4A755, #E3B96C);}/* Results Actions */.results-actions {display: flex;gap: 1rem;justify-content: center;flex-wrap: wrap;}.action-btn {display: inline-flex;align-items: center;gap: 0.5rem;padding: 1rem 2rem;font-size: 1rem;font-weight: 600;border-radius: 12px;cursor: pointer;transition: all 0.3s ease;border: none;text-decoration: none;}.action-btn.primary {background: linear-gradient(135deg, #3AB8A9, #5EC8BA);color: #111;box-shadow: 0 8px 25px rgba(58, 184, 169, 0.4), 0 4px 12px rgba(58, 184, 169, 0.3);}.action-btn.secondary {background: rgba(248, 250, 252, 0.8);color: #475569;border: 1px solid rgba(226, 232, 240, 0.8);}.action-btn:hover {transform: translateY(-2px);}.action-btn.primary:hover {box-shadow: 0 12px 35px rgba(58, 184, 169, 0.5), 0 6px 18px rgba(58, 184, 169, 0.4);border: 2px solid #D4A755;}.action-btn.secondary:hover {background: rgba(248, 250, 252, 1);border-color: rgba(148, 163, 184, 0.5);}/* Popup Styles */.popup-overlay {position: fixed;top: 0;left: 0;width: 100vw;height: 2vh;background: rgba(13, 27, 42, 0.8);backdrop-filter: blur(8px);display: flex;align-items: center;justify-content: center;z-index: 1000;padding: 2rem;}.popup-container {background: rgba(255, 255, 255, 0.95);backdrop-filter: blur(20px);border-radius: 24px;padding: 3rem;/* max-width: 500px;*/width: 50%;box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25), 0 8px 24px rgba(0, 0, 0, 0.2);border: 1px solid rgba(255, 255, 255, 0.3);text-align: center;position: relative;overflow: hidden;top: 24vw;}.popup-container::before {content: '';position: absolute;top: 0;left: 0;right: 0;height: 4px;background: linear-gradient(90deg, #3AB8A9, #D4A755, #3AB8A9);background-size: 200% 100%;animation: shimmer 3s ease-in-out infinite;}.popup-header {margin-bottom: 2rem;display: flex;justify-content: center;align-items: center;}.popup-icon {width: 13%;/* background: #3AB8A9;*/border-radius: 50%;display: flex;align-items: center;justify-content: center;font-size: 2rem;color: #111;/* box-shadow: 0 15px 35px rgba(58, 184, 169, 0.4), 0 0 0 4px rgba(58, 184, 169, 0.1);border: 11px solid #3AB8A9;*/}.popup-content {margin-bottom: 2.5rem;}.popup-content p {color: #64748b;line-height: 1.6;margin-bottom: 1rem;}.popup-actions {display: flex;gap: 1rem;justify-content: center;flex-wrap: wrap;}.popup-actions .btn {display: inline-flex;align-items: center;gap: 0.5rem;padding: 0.75rem 1.5rem;font-size: 0.9rem;font-weight: 600;border-radius: 12px;cursor: pointer;transition: all 0.3s ease;border: none;text-decoration: none;}.btn-primary {background: linear-gradient(135deg, #3AB8A9, #5EC8BA);color: #111;box-shadow: 0 8px 25px rgba(58, 184, 169, 0.4), 0 4px 12px rgba(58, 184, 169, 0.3);}.btn-secondary {background: rgba(248, 250, 252, 0.8);color: #475569;border: 1px solid rgba(226, 232, 240, 0.8);}.btn:hover {transform: translateY(-2px);}.btn-primary:hover {box-shadow: 0 12px 35px rgba(58, 184, 169, 0.5), 0 6px 18px rgba(58, 184, 169, 0.4);border: 2px solid #D4A755;}.btn-secondary:hover {background: rgba(248, 250, 252, 1);border-color: rgba(148, 163, 184, 0.5);}/* Loader */.loader-overlay {position: fixed;top: 0;left: 0;width: 100%;height: 100%;background: rgba(13, 27, 42, 0.9);backdrop-filter: blur(10px);display: flex;align-items: center;justify-content: center;z-index: 2000;}.loader-container {text-align: center;}.neural-loader {display: flex;gap: 1rem;margin-bottom: 2rem;justify-content: center;}.neural-dot {width: 16px;height: 16px;border-radius: 50%;background: #3AB8A9;animation: neuralLoader 1.4s ease-in-out infinite both;}.neural-dot:nth-child(1) {animation-delay: -0.32s;}.neural-dot:nth-child(2) {animation-delay: -0.16s;}.neural-dot:nth-child(3) {animation-delay: 0s;}.neural-dot:nth-child(4) {animation-delay: 0.16s;}@keyframes neuralLoader {0%, 80%, 100% {transform: scale(0.8);opacity: 0.5;}40% {transform: scale(1.2);opacity: 1;}}.loader-text {color: white;font-size: 1.1rem;font-weight: 500;letter-spacing: 0.5px;}/* Status Check */.status-check {position: fixed;top: 0;left: 0;width: 100%;height: 100%;background: rgba(13, 27, 42, 0.9);display: flex;align-items: center;justify-content: center;z-index: 1000;}.status-content {text-align: center;color: white;}.status-spinner {margin-bottom: 1.5rem;}.spinner-ring {width: 60px;height: 60px;border: 4px solid rgba(58, 184, 169, 0.3);border-top: 4px solid #3AB8A9;border-radius: 50%;animation: spin 1s linear infinite;margin: 0 auto;}@keyframes spin {0% {transform: rotate(0deg);}100% {transform: rotate(360deg);}}.status-content p {font-size: 1.1rem;font-weight: 500;}/* Shimmer Animation */@keyframes shimmer {0% {background-position: -200% 0;}100% {background-position: 200% 0;}}/* Enhanced Completion Popup Styles */.completion-popup {position: relative;overflow: hidden;background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);border: 1px solid rgba(255, 255, 255, 0.4);box-shadow: 0 32px 64px rgba(13, 27, 42, 0.25), 0 16px 32px rgba(58, 184, 169, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.6);top: 26vw;}/* Confetti Animation */.confetti-container {position: absolute;top: 0;left: 0;width: 100%;height: 100%;pointer-events: none;z-index: 1;}.confetti {position: absolute;width: 12px;height: 12px;background: #3AB8A9;opacity: 0;animation: confettiFall 3s ease-in forwards;}.confetti:nth-child(2n) {background: #D4A755;width: 10px;height: 10px;}.confetti:nth-child(3n) {background: #3b82f6;width: 8px;height: 8px;}.confetti:nth-child(4n) {background: #8b5cf6;width: 14px;height: 14px;}@keyframes confettiFall {0% {opacity: 0;transform: translateY(-100px) rotate(0deg);}10% {opacity: 1;}100% {opacity: 0;transform: translateY(500px) rotate(360deg);}}/* Popup Header */.completion-icon {position: relative;width: 100px;height: 100px;margin: 0 auto 1.5rem;}.icon-circle {width: 100%;height: 100%;background: linear-gradient(135deg, #3AB8A9, #5EC8BA);border-radius: 50%;display: flex;align-items: center;justify-content: center;font-size: 2.5rem;color: #111;box-shadow: 0 15px 35px rgba(58, 184, 169, 0.4), 0 0 0 4px rgba(58, 184, 169, 0.1);animation: iconBounce 0.6s ease-out;position: relative;z-index: 2;}.icon-glow {position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);width: 120px;height: 120px;background: radial-gradient(circle, rgba(58, 184, 169, 0.3) 0%, transparent 70%);border-radius: 50%;animation: glowPulse 2s ease-in-out infinite;}@keyframes iconBounce {0% {transform: scale(0);opacity: 0;}60% {transform: scale(1.1);opacity: 1;}100% {transform: scale(1);}}@keyframes glowPulse {0%, 100% {opacity: 0.5;transform: translate(-50%, -50%) scale(1);}50% {opacity: 0.8;transform: translate(-50%, -50%) scale(1.1);}}.popup-title {font-size: 1.5vw;font-weight: 700;background: linear-gradient(135deg, #3AB8A9, #2DA89A);-webkit-background-clip: text;-webkit-text-fill-color: transparent;background-clip: text;margin: 0;}.popup-subtitle {font-size: 1.1rem;color: #64748b;font-weight: 500;animation: subtitleSlideIn 0.8s ease-out 0.2s both;}@keyframes subtitleSlideIn {from {opacity: 0;transform: translateY(-10px);}to {opacity: 1;transform: translateY(0);}}/* Completion Stats */.completion-stats {display: grid;grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));gap: 1.5rem;margin-bottom: 2.5rem;position: relative;z-index: 2;}.stat-item {background: rgba(255, 255, 255, 0.8);border: 1px solid rgba(58, 184, 169, 0.2);border-radius: 16px;padding: 1.5rem 1rem;text-align: center;backdrop-filter: blur(10px);transition: all 0.3s ease;animation: statItemAppear 0.6s ease-out both;}.stat-item:nth-child(1) {animation-delay: 0.3s;}.stat-item:nth-child(2) {animation-delay: 0.5s;}.stat-item:nth-child(3) {animation-delay: 0.7s;}.stat-item:hover {transform: translateY(-5px);border-color: rgba(58, 184, 169, 0.4);box-shadow: 0 10px 25px rgba(58, 184, 169, 0.15);}.stat-icon {width: 50px;height: 50px;margin: 0 auto 0.75rem;background: linear-gradient(135deg, #3AB8A9, #5EC8BA);border-radius: 12px;display: flex;align-items: center;justify-content: center;font-size: 1.2rem;color: #111;}.stat-value {display: block;font-size: 1.5rem;font-weight: 700;color: #1B2635;margin-bottom: 0.25rem;}.stat-label {font-size: 0.8rem;color: #64748b;font-weight: 500;line-height: 1.3;}@keyframes statItemAppear {from {opacity: 0;transform: translateY(20px) scale(0.9);}to {opacity: 1;transform: translateY(0) scale(1);}}/* Success Message */.success-message {background: linear-gradient(135deg, rgba(58, 184, 169, 0.05), rgba(212, 167, 85, 0.05));border: 1px solid rgba(58, 184, 169, 0.1);border-radius: 16px;padding: 1.5rem;margin-bottom: 2rem;position: relative;z-index: 2;animation: messageSlideIn 0.8s ease-out 0.4s both;}.success-message p {margin: 0 0 0.75rem 0;color: #475569;line-height: 1.5;text-align: center;}.success-message p:last-child {margin-bottom: 0;}@keyframes messageSlideIn {from {opacity: 0;transform: translateX(-20px);}to {opacity: 1;transform: translateX(0);}}/* Next Steps */.next-steps {margin-bottom: 2.5rem;position: relative;z-index: 2;animation: nextStepsAppear 0.8s ease-out 0.6s both;}.next-steps h4 {font-size: 1.1rem;font-weight: 600;color: #1B2635;margin-bottom: 1rem;text-align: center;}.steps-grid {display: grid;grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));gap: 1rem;}.step {display: flex;align-items: center;gap: 0.75rem;padding: 1rem;background: rgba(248, 250, 252, 0.8);border: 1px solid rgba(226, 232, 240, 0.8);border-radius: 12px;transition: all 0.3s ease;}.step:hover {background: rgba(255, 255, 255, 0.9);border-color: rgba(58, 184, 169, 0.3);transform: translateX(5px);}.step i {color: #3AB8A9;font-size: 1.1rem;width: 20px;text-align: center;}.step span {font-size: 0.9rem;color: #475569;font-weight: 500;}@keyframes nextStepsAppear {from {opacity: 0;transform: translateY(20px);}to {opacity: 1;transform: translateY(0);}}/* Enhanced Popup Actions */.popup-actions {display: flex;gap: 1rem;justify-content: center;flex-wrap: wrap;position: relative;z-index: 2;animation: actionsAppear 0.8s ease-out 0.8s both;}.popup-actions .btn {position: relative;display: inline-flex;align-items: center;gap: 0.5rem;padding: 1rem 2rem;font-size: 0.95rem;font-weight: 600;border-radius: 12px;cursor: pointer;transition: all 0.3s ease;border: none;text-decoration: none;min-width: 180px;justify-content: center;overflow: hidden;}.btn-primary {background: linear-gradient(135deg, #3AB8A9, #5EC8BA);color: #111;box-shadow: 0 8px 25px rgba(58, 184, 169, 0.4), 0 4px 12px rgba(58, 184, 169, 0.3);}.btn-secondary {background: rgba(255, 255, 255, 0.9);color: #475569;border: 1px solid rgba(226, 232, 240, 0.8);box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);}.btn:hover {transform: translateY(-2px);}.btn-primary:hover {box-shadow: 0 12px 35px rgba(58, 184, 169, 0.5), 0 6px 18px rgba(58, 184, 169, 0.4);border: 2px solid #D4A755;}.btn-secondary:hover {background: rgba(255, 255, 255, 1);border-color: rgba(148, 163, 184, 0.5);box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);}.btn-sparkle {position: absolute;top: 0;left: -100%;width: 100%;height: 100%;background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);transition: left 0.5s ease;}.btn-primary:hover .btn-sparkle {left: 100%;}@keyframes actionsAppear {from {opacity: 0;transform: translateY(30px);}to {opacity: 1;transform: translateY(0);}}/* Popup Footer */.popup-footer {text-align: center;margin-top: 2rem;padding-top: 1.5rem;border-top: 1px solid rgba(226, 232, 240, 0.8);position: relative;z-index: 2;animation: footerAppear 0.8s ease-out 1s both;}.popup-footer p {font-size: 0.8rem;color: #94a3b8;margin: 0;font-weight: 500;}@keyframes footerAppear {from {opacity: 0;}to {opacity: 1;}}/* Updated Results Styles */.traits-breakdown {margin-bottom: 3rem;}.breakdown-title {font-size: 1.3rem;font-weight: 600;color: #1B2635;margin-bottom: 2rem;text-align: center;}.success-message {background: linear-gradient(135deg, rgba(58, 184, 169, 0.05), rgba(212, 167, 85, 0.05));border: 1px solid rgba(58, 184, 169, 0.1);border-radius: 16px;padding: 1.5rem;margin-bottom: 2rem;text-align: center;}.success-message p {margin: 0 0 0.75rem 0;color: #475569;line-height: 1.5;}.success-message p:last-child {margin-bottom: 0;}.key-insights {display: flex;flex-direction: column;gap: 1rem;}.insight-item {display: flex;align-items: center;gap: 0.75rem;padding: 1rem;background: rgba(248, 250, 252, 0.8);border: 1px solid rgba(226, 232, 240, 0.8);border-radius: 12px;transition: all 0.3s ease;}.insight-item:hover {background: rgba(255, 255, 255, 0.9);border-color: rgba(58, 184, 169, 0.3);transform: translateX(5px);}.insight-item i {color: #3AB8A9;font-size: 1.1rem;width: 20px;text-align: center;}.insight-item span {font-size: 0.9rem;color: #475569;line-height: 1.4;}.insight-item strong {color: #1B2635;font-weight: 600;}/* Remove old trait styles that showed colors */.dominant-traits,.traits-grid,.trait-item,.trait-header,.trait-color,.trait-bar,.trait-fill {display: none;}/* Responsive Design */@media (max-width: 768px) {.quiz-container {padding: 1rem;}.welcome-card,.question-card,.results-card {padding: 2rem 1.5rem;}.welcome-title {font-size: 2rem;}.feature-highlights {grid-template-columns: 1fr;}.assessment-info {flex-direction: column;align-items: center;}.question-header {flex-direction: column;align-items: flex-start;}.options-grid {grid-template-columns: 1fr;}.dominant-card {flex-direction: column;text-align: center;gap: 1.5rem;}.results-actions,.popup-actions {flex-direction: column;}.popup-container {padding: 2rem 1.5rem;}.completion-popup {padding: 2rem 1.5rem;}.popup-title {font-size: 1.8rem;}.completion-stats {grid-template-columns: 1fr;gap: 1rem;}.steps-grid {grid-template-columns: 1fr;}.popup-actions .btn {min-width: auto;width: 100%;}}@media (max-width: 480px) {.welcome-card,.question-card,.results-card {padding: 1.5rem 1rem;border-radius: 20px;}.brain-icon {width: 80px;height: 80px;font-size: 2rem;}.welcome-title {font-size: 1.8rem;}.feature-card {padding: 1.5rem 1rem;}.question-text {flex-direction: column;gap: 0.5rem;}.question-text h2 {font-size: 1.3rem;}.results-title {font-size: 2rem;}.completion-popup {padding: 1.5rem 1rem;margin: 1rem;}.completion-icon {width: 80px;height: 80px;}.icon-circle {font-size: 2rem;}.popup-title {font-size: 1.6rem;}.stat-item {padding: 1.25rem 0.75rem;}}i.fa-heart.fa-solid {color: #ff000094;}
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138<!-- Removed local brand header (global top navigation present) --><div class="brain-bg" #brainBg></div><!-- Loader (updated to match quiz component) --><div class="loader-overlay" *ngIf="loading"><div class="loader-container"><img src="assets/Loader.gif" alt="Loading..." class="loader-gif" /></div></div><!-- Quiz area --><section class="quiz" *ngIf="!loading"><!-- Active question area --><div class="question-card" *ngIf="!isDone && question"><div class="q-meta"><div class="q-count">Neural Query {{ index }} / {{ total }}</div><div class="q-role"><span class="badge"><i [class]="quizIcon"></i> {{ role | titlecase }} Profile</span></div></div><h2 class="q-text fade-in"><i class="fa-solid fa-brain q-brain"></i> {{ question }}</h2><form (ngSubmit)="submitAnswer()"><div class="options"><label class="option" *ngFor="let opt of options; let i = index"><input type="radio" name="answer" [value]="opt.color" [(ngModel)]="selectedColor" required /><span class="opt-text"><span class="color-chip {{opt.color}}"></span>{{ opt.text }}</span></label></div><div class="actions"><button type="submit" [disabled]="!selectedColor || loading" class="submit-btn"><i class="fa-solid fa-brain"></i> Process Response</button><button type="button" (click)="restart()" [disabled]="loading"><i class="fa-solid fa-rotate-left"></i> Reset Assessment</button></div></form><div class="inline-progress" *ngIf="total"><div class="ip-track"><div class="ip-fill" [style.width.%]="progressPercent"></div></div><small class="ip-label">Neural Mapping: {{ progressPercent }}% Complete</small></div><div class="progress" *ngIf="inProgressMix"><h3><i class="fa-solid fa-network-wired"></i> Current Neural Signature</h3><div class="bar" *ngFor="let color of ['blue', 'green', 'red', 'yellow']"><span class="bar-label" [ngClass]="'dim-' + color"><span class="dot" [ngClass]="color"></span>{{ getDimensionName(color) }}</span><div class="bar-track"><div class="bar-fill {{color}}" [style.width.%]="getInProgressMixValue(color)"></div></div><div class="bar-val">{{ asPercent(getInProgressMixValue(color)) }}%</div></div></div></div><!-- Final result --><div class="result" *ngIf="isDone && finalMix"><h2 class="fade-in"><i class="fa-solid fa-brain"></i> Neural Profile Complete</h2><p class="result-sub" *ngIf="dominantColor">Primary Cognitive Pattern: <span class="pill pill-{{dominantColor}}"><i [class]="quizIcon"></i> {{ getDimensionName(dominantColor) }}</span></p><p class="dom-desc" *ngIf="dominantDescription">{{ dominantDescription }}</p><div class="bar" *ngFor="let color of ['blue', 'green', 'red', 'yellow']"><span class="bar-label" [ngClass]="'dim-' + color"><span class="dot" [ngClass]="color"></span>{{ getDimensionName(color) }}</span><div class="bar-track"><div class="bar-fill {{color}}" [style.width.%]="getFinalMixValue(color)"></div></div><div class="bar-val">{{ asPercent(getFinalMixValue(color)) }}%</div></div><div class="actions"><button type="button" (click)="restart()" class="primary"><i class="fa-solid fa-arrow-rotate-right"></i> New Assessment</button><button type="button" (click)="goHome()"><i class="fa-solid fa-house"></i> Return Home</button><a [routerLink]="['/matchinglist', userId]"class="btn btn-secondary">Matching</a></div></div><!-- Configuration panel --><div class="panel" *ngIf="!isDone && !question && !errorMsg"><h2 class="panel-title"><i class="fa-solid fa-brain"></i> Configure Neural Assessment</h2><p class="panel-hint">Set up your cognitive profile assessment. Your existing profile will personalize the questions and results.</p><div class="row"><label for="userId">ID</label><input id="userId" type="text" [(ngModel)]="userId" placeholder="Enter your unique identifier" /></div><div class="row"><label for="role">Assessment Context</label><select id="role" [(ngModel)]="role"><option value="interview">Career Interview</option><option value="marriage">Relationship Compatibility</option><option value="partnership">Business Partnership</option><option value="team">Team Dynamics</option><option value="general">General Personality</option><option value="assistant">AI Assistant Matching</option><option value="ceo">Leadership Profile</option></select></div><div class="row"><label for="nQuestions">Neural Queries</label><input id="nQuestions" type="number" [(ngModel)]="nQuestions" min="5" max="50" /></div><div class="row"><label for="batchSize">Processing Batch</label><input id="batchSize" type="number" [(ngModel)]="batchSize" min="1" max="20" /></div><div class="actions"><button type="button" (click)="start()" [disabled]="loading" class="primary"><i class="fa-solid fa-play"></i> Begin Neural Mapping</button><button type="button" (click)="restart()" [disabled]="loading"><i class="fa-solid fa-rotate-left"></i> Reset Configuration</button></div><p class="error" *ngIf="errorMsg">{{ errorMsg }}</p></div></section>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293<!-- Assessment Already Taken Popup --><div class="popup-overlay" *ngIf="showAssessmentPopup"><div class="popup-container"><div class="popup-header"><div class="popup-icon"><i class="fa-solid fa-check-circle"></i></div><h3 class="popup-title">Assessment Completed</h3></div><div class="popup-content"><p>You have already taken the assessment.</p><p>If you like, please explore your matching profile to see your compatible matches.</p></div><div class="popup-actions"><button type="button" class="btn btn-primary" (click)="navigateFromPopup()"><i class="fa-solid fa-user-group"></i> Explore Matching Profile</button><button type="button" class="btn btn-secondary" (click)="goHomeFromPopup()"><i class="fa-solid fa-home"></i> Go Home</button></div></div></div><!-- Updated Assessment Completion Popup --><div class="popup-overlay" *ngIf="showCompletionPopup"><div class="popup-container completion-popup"><!-- Animated Confetti Background --><div class="confetti-container"><div class="confetti" *ngFor="let confetti of confettiPieces"[style.left.%]="confetti.left"[style.animation-delay.s]="confetti.delay"[class]="confetti.color"></div></div><div class="popup-header"><!--<div class="completion-icon"><div class="icon-glow"></div></div>--><h3 class="popup-title">Assessment Complete!</h3><!--<p class="popup-subtitle">Your Neural Profile is Ready</p>--></div><div class="popup-content"><div class="success-message"><p>🎉 Congratulations! Your compatibility assessment has been successfully processed.</p><p>Discover your unique behavioral patterns and find your perfect matches.</p></div><div class="next-steps"><h4>What's Next?</h4><div class="steps-grid"><div class="step"><i class="fa-solid fa-user-group"></i><span>View Compatible Matches</span></div><div class="step"><i class="fa-solid fa-chart-pie"></i><span>Explore Detailed Insights</span></div><div class="step"><i class="fa-solid fa-rocket"></i><span>Start Connecting</span></div></div></div></div><div class="popup-actions"><button type="button" class="btn btn-secondary" (click)="goHome()"><i class="fa-solid fa-home"></i>Return Home</button><button type="button" class="btn btn-primary" (click)="onQuizCompletionAction()"><i class="fa-solid fa-user-group"></i>Explore Matching Profile<div class="btn-sparkle"></div></button></div><div class="popup-footer"><p>Powered by Py-Match Neural Analysis</p></div></div></div><!-- Neural Network Background --><div class="neural-network-bg"><div class="neural-path"></div><div class="neural-path"></div><div class="neural-path"></div><div class="neural-node" *ngFor="let node of neuralNodes" [style.left.%]="node.x" [style.top.%]="node.y"></div></div><!-- Loader --><div class="loader-overlay" *ngIf="loading"><div class="loader-container"><div class="neural-loader"><div class="neural-dot"></div><div class="neural-dot"></div><div class="neural-dot"></div><div class="neural-dot"></div></div><p class="loader-text">Processing Neural Patterns...</p></div></div><!-- Main Quiz Container --><main class="quiz-container" *ngIf="!loading && assessmentCheckCompleted && !hasTakenAssessment && !showAssessmentPopup"><!--<main class="quiz-container" *ngIf="!loading">--><!-- Welcome Panel --><section class="welcome-section" *ngIf="!isDone && !question && !errorMsg"><div class="welcome-card"><div class="welcome-header"><h1 class="welcome-title">Behavioral Compatibility Assessment</h1><!--<p class="welcome-subtitle">Discover meaningful connections through validated psychological frameworks</p>--></div><div class="welcome-content"><div class="feature-highlights"><div class="feature-card"><div class="feature-icon"><i class="fa-solid fa-clock"></i></div><h3>Adaptive Assessment</h3><p>Questions adapt based on your responses, reducing time by 40%</p></div><div class="feature-card"><div class="feature-icon"><i class="fa-solid fa-flask"></i></div><h3>Scientific Framework</h3><p>Based on established psychological models including Big Five</p></div><div class="feature-card"><div class="feature-icon"><i class="fa-solid fa-chart-line"></i></div><h3>Context-Aware</h3><p>Optimized matching for your specific relationship goals</p></div><div class="feature-card"><div class="feature-icon"><i class="fa-solid fa-heart-pulse"></i></div><h3>Compatibility Insights</h3><p>Receive detailed analysis with actionable recommendations</p></div></div><div class="assessment-info"><div class="info-badge"><i class="fa-solid fa-bullseye"></i><span>Assessment Type: <strong>{{ role | titlecase }} Compatibility</strong></span></div><div class="info-badge"><i class="fa-solid fa-list-check"></i><span>Questions: <strong>{{ nQuestions }} behavioral scenarios</strong></span></div></div><div class="start-section"><button class="start-btn" (click)="start()" [disabled]="loading"><span class="btn-content"><i class="fa-solid fa-play"></i>Begin Behavioral Assessment</span><div class="btn-glow"></div></button><!--<p class="start-hint">Your compatibility journey begins here</p>--></div></div></div></section><!-- Active Question Area --><section class="question-section" *ngIf="!isDone && question"><div class="question-card"><div class="question-header"><div class="progress-indicator"><div class="progress-track"><div class="progress-fill" [style.width.%]="progressPercent"></div></div><span class="progress-text">Behavioral Analysis: {{ index }} of {{ total }} ({{ progressPercent }}%)</span></div><div class="role-badge"><i [class]="quizIcon"></i>{{ role | titlecase }} Profile</div></div><div class="question-content"><div class="question-text"><i class="fa-solid fa-brain-circuit"></i><h2>{{ question }}</h2></div><form (ngSubmit)="submitAnswer()" class="options-form"><div class="options-grid"><label class="option-card" *ngFor="let opt of options; let i = index"><input type="radio" name="answer" [value]="opt.color" [(ngModel)]="selectedColor" required /><div class="option-content"><!--<div class="color-indicator {{opt.color}}"></div>--><div class="option-text"><span class="option-label">{{ opt.text }}</span></div><div class="option-check"><i class="fa-solid fa-check"></i></div></div></label></div><div class="submit-section"><button type="submit" class="submit-btn" [disabled]="!selectedColor || loading"><i class="fa-solid fa-synapse"></i>Process Neural Response<div class="btn-pulse" *ngIf="!selectedColor"></div></button></div></form></div></div></section><!-- Results Section --><section class="results-section" *ngIf="isDone && finalMix"><!--<section class="results-section" results-section>--><div class="results-card"><div class="results-header"><div class="completion-badge"><i class="fa-solid fa-trophy"></i><h1>Assessment Complete</h1></div></div><!-- Remove dominant traits section that shows colors --><div class="traits-breakdown"><!--<h1 class="breakdown-title">Assessment Summary</h1>--><div class="success-message"><p><strong>Your compatibility profile has been successfully analyzed!</strong></p><p>We've identified your core behavioral patterns across multiple dimensions to find your ideal matches.</p></div><div class="key-insights"><div class="insight-item"><i class="fa-solid fa-check-circle"></i><span><strong>Profile Complete:</strong> Ready for intelligent matching</span></div><div class="insight-item"><i class="fa-solid fa-chart-line"></i><span><strong>Behavioral Analysis:</strong> {{ nQuestions }} scenarios processed</span></div><div class="insight-item"><i class="fa-solid fa-bullseye"></i><span><strong>Focus Area:</strong> {{ role | titlecase }} Compatibility</span></div><div class="insight-item"><i class="fa-solid fa-shield-halved"></i><span><strong>Privacy:</strong> Your data is secure and encrypted</span></div></div></div><div class="results-actions"><button class="action-btn secondary" (click)="goHome()"><i class="fa-solid fa-home"></i>Return Home</button><button class="action-btn primary" (click)="onQuizCompletionAction()"><i class="fa-solid fa-user-group"></i>Explore Matching Profile</button></div></div></section></main><!-- Loading message while checking assessment status --><div *ngIf="!assessmentCheckCompleted && !loading" class="status-check"><div class="status-content"><div class="status-spinner"><div class="spinner-ring"></div></div><p>Analyzing assessment status...</p></div></div>
123456789101112131415161718192021import { ComponentFixture, TestBed } from '@angular/core/testing';import { LlmQuizComponent } from './llm-quiz.component';describe('LlmQuizComponent', () => {let component: LlmQuizComponent;let fixture: ComponentFixture<LlmQuizComponent>;beforeEach(() => {TestBed.configureTestingModule({imports: [LlmQuizComponent]});fixture = TestBed.createComponent(LlmQuizComponent);component = fixture.componentInstance;fixture.detectChanges();});it('should create', () => {expect(component).toBeTruthy();});});123456789101112131415161718192021import { ComponentFixture, TestBed } from '@angular/core/testing';import { LlmQuizComponent } from './llm-quiz.component';describe('LlmQuizComponent', () => {let component: LlmQuizComponent;let fixture: ComponentFixture<LlmQuizComponent>;beforeEach(() => {TestBed.configureTestingModule({imports: [LlmQuizComponent]});fixture = TestBed.createComponent(LlmQuizComponent);component = fixture.componentInstance;fixture.detectChanges();});it('should create', () => {expect(component).toBeTruthy();});});
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207import { Component, OnInit, AfterViewInit, ElementRef, ViewChild } from '@angular/core';import { FormsModule } from '@angular/forms';import { CommonModule } from '@angular/common';import { LlmQaService, Role, ColorKey, StartResponse, NextResponse, LlmOption } from '../services/llm-qa.service';import { ActivatedRoute, Router } from '@angular/router';import { RouterLink } from '@angular/router';type Mix = Record<ColorKey, number>;@Component({selector: 'app-llm-quiz',standalone: true,imports: [CommonModule, FormsModule, RouterLink],templateUrl: './llm-quiz.component.html',styleUrls: ['./llm-quiz.component.css'],})export class LlmQuizComponent implements OnInit, AfterViewInit {@ViewChild('brainBg') brainBg!: ElementRef;// --- Config bound to the UI ---role: Role = 'marriage';nQuestions = 20;batchSize = 10;userId = '';// --- Runtime state ---sessionId = '';index = 0; // current question index (1‑based from backend)total = 0; // total questions in sessionquestion = '';options: LlmOption[] = [];selectedColor: ColorKey | '' = '';loading = false;errorMsg = '';isDone = false;inProgressMix: Mix | null = null; // live progress (NextResponse.progress)finalMix: Mix | null = null; // final mix (NextResponse.mix when done)constructor(private api: LlmQaService,private route: ActivatedRoute,private router: Router) { }goHome(): void { this.router.navigate(['/']); }ngOnInit(): void {const qp = this.route.snapshot.queryParamMap;const uid = (qp.get('user_id') || localStorage.getItem('user_id') || '').trim();const role = (qp.get('role') || localStorage.getItem('role') || '').toLowerCase();const autostart = qp.get('autostart') === '1';if (uid) this.userId = uid;if (role) this.role = role as any;if (autostart && this.userId && this.role) {this.start();}}ngAfterViewInit(): void { this.createNeuralNetwork(); }// Decorative background (unchanged)createNeuralNetwork(): void {if (!this.brainBg) return;const container = this.brainBg.nativeElement;const neuronCount = 25;const connectionCount = 40;for (let i = 0; i < neuronCount; i++) {const neuron = document.createElement('div');neuron.className = 'neuron';neuron.style.left = Math.random() * 100 + '%';neuron.style.top = Math.random() * 100 + '%';neuron.style.animationDelay = (Math.random() * 3) + 's';container.appendChild(neuron);}for (let i = 0; i < connectionCount; i++) {const connection = document.createElement('div');connection.className = 'neuron-connection';connection.style.left = Math.random() * 100 + '%';connection.style.top = Math.random() * 100 + '%';connection.style.width = (50 + Math.random() * 150) + 'px';connection.style.transform = `rotate(${Math.random() * 360}deg)`;connection.style.animationDelay = (Math.random() * 4) + 's';container.appendChild(connection);}}// ---------- Helpers ----------asPercent(v: number | undefined | null): number { const n = Number(v); return Number.isFinite(n) ? Math.round(n) : 0; }getDimensionName(color: string): string {switch (color) {case 'blue': return 'Analytical';case 'green': return 'Empathetic';case 'red': return 'Assertive';case 'yellow': return 'Creative';default: return color;}}get quizIcon(): string {switch (this.role) {case 'interview': return 'fa-solid fa-briefcase';case 'marriage': return 'fa-solid fa-heart';case 'partnership': return 'fa-solid fa-handshake';case 'team': return 'fa-solid fa-users';case 'general': return 'fa-solid fa-user';case 'assistant': return 'fa-solid fa-robot';case 'ceo': return 'fa-solid fa-crown';default: return 'fa-solid fa-brain';}}get progressLabel(): string { return `${this.index} / ${this.total}`; }get progressPercent(): number { return this.total ? Math.round((this.index / this.total) * 100) : 0; }getInProgressMixValue(color: string): number { return this.inProgressMix?.[color as ColorKey] || 0; }getFinalMixValue(color: string): number { return this.finalMix?.[color as ColorKey] || 0; }get dominantColor(): ColorKey | null {if (!this.finalMix) return null;return (Object.entries(this.finalMix) as [ColorKey, number][]).sort((a, b) => b[1] - a[1])[0]?.[0] || null;}get dominantDescription(): string {const color = this.dominantColor; if (!color) return '';const descriptions: Record<ColorKey, string> = {blue: 'Your thinking is primarily analytical and logical, focusing on data-driven decisions and systematic problem-solving.',green: 'You lead with empathy and emotional intelligence, valuing relationships and harmony in your interactions.',red: 'You approach situations with assertiveness and directness, prioritizing action and tangible results.',yellow: 'Your cognitive style is creative and innovative, embracing new ideas and unconventional approaches.'};return descriptions[color];}// ---------- API calls (Observable based) ----------start(): void {if (!this.userId) { this.errorMsg = 'User ID required'; return; }this.loading = true;this.errorMsg = '';this.isDone = false;this.finalMix = null;this.inProgressMix = null;this.selectedColor = '';this.api.start({user_id: this.userId,role: this.role,n_questions: this.nQuestions,batch_size: this.batchSize}).subscribe({next: (resp: StartResponse) => {this.sessionId = resp.session_id;this.index = resp.index ?? 0;this.total = resp.total ?? 0;this.question = resp.question || '';this.options = resp.options || [];},error: (err) => {this.errorMsg = err?.error?.error || err.message || 'Failed to start quiz';this.loading = false;},complete: () => { this.loading = false; }});}submitAnswer(): void {if (!this.sessionId || !this.selectedColor || this.loading) return;this.loading = true;this.errorMsg = '';this.api.next({ session_id: this.sessionId, selected_color: this.selectedColor as ColorKey }).subscribe({next: (resp: NextResponse) => {// Update progressif (resp.index !== undefined) this.index = resp.index;if (resp.total !== undefined) this.total = resp.total;if (resp.progress) this.inProgressMix = resp.progress as Mix;if (resp.done) {this.isDone = true;this.finalMix = (resp.mix || null) as Mix;} else {this.question = resp.question || '';this.options = resp.options || [];this.selectedColor = '';}},error: (err) => {this.errorMsg = err?.error?.error || err.message || 'Failed to submit answer';this.loading = false;},complete: () => { this.loading = false; }});}restart(): void {this.sessionId = '';this.index = 0;this.total = 0;this.question = '';this.options = [];this.selectedColor = '';this.loading = false;this.errorMsg = '';this.isDone = false;this.inProgressMix = null;this.finalMix = null;}}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563import { Component, OnInit, AfterViewInit, ElementRef, ViewChild } from '@angular/core';import { FormsModule } from '@angular/forms';import { CommonModule } from '@angular/common';import { LlmQaService, Role, ColorKey, StartResponse, NextResponse, LlmOption } from '../services/llm-qa.service';import { ActivatedRoute, Router } from '@angular/router';import { RouterLink } from '@angular/router';import { AuthService } from '../services/auth.service';import { HttpClient } from '@angular/common/http';type Mix = Record<ColorKey, number>;@Component({selector: 'app-llm-quiz',standalone: true,imports: [CommonModule, FormsModule, RouterLink],templateUrl: './llm-quiz.component.html',styleUrls: ['./llm-quiz.component.css'],})export class LlmQuizComponent implements OnInit, AfterViewInit {@ViewChild('brainBg') brainBg!: ElementRef;// --- Config bound to the UI ---role: Role = 'marriage';nQuestions = 20;batchSize = 10;userId = '';// --- Runtime state ---sessionId = '';index = 0;total = 0;question = '';options: LlmOption[] = [];selectedColor: ColorKey | '' = '';loading = false;errorMsg = '';isDone = false;hasTakenAssessment = false;showAssessmentPopup = false;assessmentCheckCompleted = false;showCompletionPopup: boolean = false;inProgressMix: Mix | null = null;finalMix: Mix | null = null;// Neural network background nodesneuralNodes: { x: number, y: number }[] = [];// Confetti animation piecesconfettiPieces = Array.from({ length: 50 }, (_, i) => ({left: Math.random() * 100,delay: Math.random() * 3,color: ['confetti-orange', 'confetti-green', 'confetti-blue', 'confetti-purple'][i % 4]}));constructor(private api: LlmQaService,private route: ActivatedRoute,private router: Router,private authService: AuthService,private http: HttpClient) { }goHome(): void {this.router.navigate(['/']);}ngOnInit(): void {// Get user ID from route params first, then fallback to auth serviceconst qp = this.route.snapshot.queryParamMap;const userIdFromParams = qp.get('user_id');const roleFromParams = qp.get('role');const autostart = qp.get('autostart') === '1';if (userIdFromParams) {this.userId = userIdFromParams;} else {this.userId = this.authService.userId?.toString() || '';}if (roleFromParams) {this.role = roleFromParams.toLowerCase() as Role;}console.log('🔍 LLM Quiz initialized:', {userId: this.userId,role: this.role,autostart: autostart});// Initialize neural network background nodesthis.generateNeuralNodes();// Check if user has already taken assessmentthis.checkAssessmentCompletion();}// Generate random neural network nodes for backgroundgenerateNeuralNodes() {const nodeCount = 20;for (let i = 0; i < nodeCount; i++) {this.neuralNodes.push({x: Math.random() * 100,y: Math.random() * 100});}}// 🚨 UPDATED: Use LlmQaService for assessment checkcheckAssessmentCompletion(): void {if (!this.userId) {console.log('❌ No user ID available for assessment check');this.assessmentCheckCompleted = true;return;}this.loading = true;this.api.checkAssessmentCompletion(this.userId).subscribe({next: (response) => {this.hasTakenAssessment = response.has_taken_assessment;this.assessmentCheckCompleted = true;console.log('✅ Assessment check completed:', {hasTakenAssessment: this.hasTakenAssessment,message: response.message});if (this.hasTakenAssessment) {this.showAssessmentPopup = true;this.loading = false; // 🚨 Important: Stop loading when showing popup} else {// Only auto-start if assessment check is done AND user hasn't taken itconst autostart = this.route.snapshot.queryParamMap.get('autostart') === '1';if (autostart && this.userId && this.role) {console.log('🚀 Auto-starting quiz...');this.start();} else {this.loading = false;}}},error: (err) => {console.error('❌ Error checking assessment completion:', err);this.hasTakenAssessment = false;this.assessmentCheckCompleted = true;this.loading = false;// If check fails, allow user to proceed (fail-open approach)const autostart = this.route.snapshot.queryParamMap.get('autostart') === '1';if (autostart && this.userId && this.role) {console.log('🚀 Auto-starting quiz after failed check...');this.start();}}});}// 🚨 UPDATED: Enhanced start method with backend validationstart(): void {// Check if user has already taken assessmentif (this.hasTakenAssessment) {this.showAssessmentPopup = true;return;}if (!this.userId) {this.errorMsg = 'User ID required';console.error('❌ User ID required to start quiz');return;}// Ensure assessment check is completedif (!this.assessmentCheckCompleted) {console.log('⏳ Waiting for assessment check to complete...');return;}this.loading = true;this.errorMsg = '';this.isDone = false;this.finalMix = null;this.inProgressMix = null;this.selectedColor = '';console.log('🚀 Starting LLM quiz:', {userId: this.userId,role: this.role,nQuestions: this.nQuestions,batchSize: this.batchSize});this.api.start({user_id: this.userId,role: this.role,n_questions: this.nQuestions,batch_size: this.batchSize}).subscribe({next: (resp: StartResponse) => {// 🚨 CRITICAL: Check if backend also says assessment was already takenif (resp.assessment_already_taken) {console.log('🚫 Backend detected assessment already taken');this.hasTakenAssessment = true;this.showAssessmentPopup = true;this.loading = false;return;}console.log('✅ Quiz started successfully:', {sessionId: resp.session_id,index: resp.index,total: resp.total,question: resp.question?.substring(0, 50) + '...',optionsCount: resp.options?.length});this.sessionId = resp.session_id;this.index = resp.index ?? 0;this.total = resp.total ?? 0;this.question = resp.question || '';this.options = resp.options || [];this.loading = false;},error: (err) => {console.error('❌ Failed to start quiz:', err);this.errorMsg = err?.error?.error || err.message || 'Failed to start quiz';this.loading = false;}});}// 🚨 UPDATED: Enhanced submit method with backend validationsubmitAnswer(): void {if (!this.sessionId || !this.selectedColor || this.loading) {console.warn('⚠️ Cannot submit answer:', {hasSessionId: !!this.sessionId,hasSelectedColor: !!this.selectedColor,loading: this.loading});return;}this.loading = true;this.errorMsg = '';console.log('📤 Submitting answer:', {sessionId: this.sessionId,selectedColor: this.selectedColor,currentIndex: this.index});this.api.next({ session_id: this.sessionId, selected_color: this.selectedColor as ColorKey }).subscribe({next: (resp: NextResponse) => {// 🚨 CRITICAL: Check if backend says assessment was already takenif (resp.assessment_already_taken) {console.log('🚫 Backend detected assessment already taken during submission');this.hasTakenAssessment = true;this.showAssessmentPopup = true;this.loading = false;return;}console.log('✅ Answer submitted successfully:', {newIndex: resp.index,total: resp.total,done: resp.done,hasProgress: !!resp.progress,hasMix: !!resp.mix});// Update progressif (resp.index !== undefined) this.index = resp.index;if (resp.total !== undefined) this.total = resp.total;if (resp.progress) {this.inProgressMix = resp.progress as Mix;// Log neural signature to consoleconsole.log('Current Neural Signature:', {Analytical: this.inProgressMix['blue'] || 0,Empathetic: this.inProgressMix['green'] || 0,Assertive: this.inProgressMix['red'] || 0,Creative: this.inProgressMix['yellow'] || 0});}if (resp.done) {console.log('🎉 Quiz completed! Final mix:', resp.mix);this.isDone = true;this.finalMix = (resp.mix || null) as Mix;this.hasTakenAssessment = true; // 🚨 Mark as completedthis.showCompletionPopup = true; // <-- Show completion popup// Mark assessment as completedthis.markAssessmentCompleted();} else {this.question = resp.question || '';this.options = resp.options || [];this.selectedColor = '';console.log('📝 Next question loaded:', this.question?.substring(0, 50) + '...');}this.loading = false;},error: (err) => {console.error('❌ Failed to submit answer:', err);this.errorMsg = err?.error?.error || err.message || 'Failed to submit answer';this.loading = false;}});}// Close assessment popup and navigate to matchingcloseAssessmentPopup(): void {this.showAssessmentPopup = false;this.navigateToMatching();}// Navigate from completion popup to matchingnavigateFromCompletionPopup(): void {this.showCompletionPopup = false;this.navigateToMatching();}// Go home from completion popupgoHomeFromCompletionPopup(): void {this.showCompletionPopup = false;this.goHome();}// Close the completion popupcloseCompletionPopup(): void {this.showCompletionPopup = false;}// Navigate to matching from popupnavigateFromPopup(): void {this.showAssessmentPopup = false;this.navigateToMatching();}// Go home from popupgoHomeFromPopup(): void {this.showAssessmentPopup = false;this.goHome();}// Method to mark assessment as completedprivate markAssessmentCompleted(): void {console.log('🎯 Assessment completed, updating progress...');// Update localStorageif (this.userId) {const existingProgress = localStorage.getItem(`user_progress_${this.userId}`);let progressData: any = {};if (existingProgress) {try {progressData = JSON.parse(existingProgress);} catch (e) {console.error('Error parsing existing progress:', e);}}progressData.assessmentCompleted = true;progressData.matchingCompleted = true;localStorage.setItem(`user_progress_${this.userId}`, JSON.stringify(progressData));console.log('💾 Direct progress save: assessmentCompleted = true');}// Dispatch custom eventconst assessmentCompletedEvent = new CustomEvent('assessmentCompleted', {detail: {userId: this.userId,role: this.role,timestamp: Date.now(),finalMix: this.finalMix}});window.dispatchEvent(assessmentCompletedEvent);console.log('🎯 Dispatched assessmentCompleted event');// Use global method if availableif ((window as any).markAssessmentCompleted) {console.log('🎯 Using global markAssessmentCompleted method');(window as any).markAssessmentCompleted();}// Force refresh in parent componentif ((window as any).appComponentRef) {console.log('🎯 Refreshing parent component progress');(window as any).appComponentRef.refreshProgress();}// Verify the progress was savedsetTimeout(() => {const savedProgress = localStorage.getItem(`user_progress_${this.userId}`);console.log('🔍 Verification - Saved progress:', savedProgress);}, 100);}// Navigate to matching listnavigateToMatching(): void {console.log('📍 Navigating to matching list...');this.router.navigate(['/matchinglist'], {queryParams: {user_id: this.userId,role: this.role}}).then(success => {if (success) {console.log('✅ Navigation to matching list successful');} else {console.error('❌ Navigation to matching list failed');}});}// Navigate back to preferencesnavigateToPreferences(): void {console.log('📍 Navigating back to preferences...');this.router.navigate(['/userpreferences'], {queryParams: {user_id: this.userId,role: this.role}}).then(success => {if (success) {console.log('✅ Navigation to preferences successful');} else {console.error('❌ Navigation to preferences failed');}});}// Handle quiz completion actiononQuizCompletionAction(): void {console.log('🎯 Quiz completion action triggered');this.markAssessmentCompleted();this.navigateToMatching();}// Handle quiz finishedonQuizFinished(): void {console.log('🏁 Quiz finished, marking assessment as completed');this.markAssessmentCompleted();}ngAfterViewInit(): void {// Only create neural network if assessment check is done and user can take assessmentif (this.assessmentCheckCompleted && !this.hasTakenAssessment) {this.createNeuralNetwork();}}// Decorative backgroundcreateNeuralNetwork(): void {if (!this.brainBg) return;const container = this.brainBg.nativeElement;const neuronCount = 25;const connectionCount = 40;// Clear existing contentcontainer.innerHTML = '';for (let i = 0; i < neuronCount; i++) {const neuron = document.createElement('div');neuron.className = 'neuron';neuron.style.left = Math.random() * 100 + '%';neuron.style.top = Math.random() * 100 + '%';neuron.style.animationDelay = (Math.random() * 3) + 's';container.appendChild(neuron);}for (let i = 0; i < connectionCount; i++) {const connection = document.createElement('div');connection.className = 'neuron-connection';connection.style.left = Math.random() * 100 + '%';connection.style.top = Math.random() * 100 + '%';connection.style.width = (50 + Math.random() * 150) + 'px';connection.style.transform = `rotate(${Math.random() * 360}deg)`;connection.style.animationDelay = (Math.random() * 4) + 's';container.appendChild(connection);}}// ---------- Helpers ----------asPercent(v: number | undefined | null): number {const n = Number(v);return Number.isFinite(n) ? Math.round(n) : 0;}getDimensionName(color: string): string {switch (color) {case 'blue': return 'Analytical';case 'green': return 'Empathetic';case 'red': return 'Assertive';case 'yellow': return 'Creative';default: return color;}}get quizIcon(): string {switch (this.role) {case 'interview': return 'fa-solid fa-briefcase';case 'marriage': return 'fa-solid fa-heart';case 'partnership': return 'fa-solid fa-handshake';case 'team': return 'fa-solid fa-users';case 'general': return 'fa-solid fa-user';case 'assistant': return 'fa-solid fa-robot';case 'ceo': return 'fa-solid fa-crown';default: return 'fa-solid fa-brain';}}get progressLabel(): string { return `${this.index} / ${this.total}`; }get progressPercent(): number {return this.total ? Math.round((this.index / this.total) * 100) : 0;}getInProgressMixValue(color: string): number {return this.inProgressMix?.[color as ColorKey] || 0;}getFinalMixValue(color: string): number {return this.finalMix?.[color as ColorKey] || 0;}get dominantColor(): ColorKey | null {if (!this.finalMix) return null;return (Object.entries(this.finalMix) as [ColorKey, number][]).sort((a, b) => b[1] - a[1])[0]?.[0] || null;}get dominantDescription(): string {const color = this.dominantColor;if (!color) return '';const descriptions: Record<ColorKey, string> = {blue: 'Your thinking is primarily analytical and logical, focusing on data-driven decisions and systematic problem-solving.',green: 'You lead with empathy and emotional intelligence, valuing relationships and harmony in your interactions.',red: 'You approach situations with assertiveness and directness, prioritizing action and tangible results.',yellow: 'Your cognitive style is creative and innovative, embracing new ideas and unconventional approaches.'};return descriptions[color];}restart(): void {console.log('🔄 Restarting quiz...');this.sessionId = '';this.index = 0;this.total = 0;this.question = '';this.options = [];this.selectedColor = '';this.loading = false;this.errorMsg = '';this.isDone = false;this.inProgressMix = null;this.finalMix = null;this.showAssessmentPopup = false;this.showCompletionPopup = false;}}
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714:host {display: block;height: 100vh;background: #f5f7f9;font-family: "Poppins", sans-serif;margin: 0;color: #333;}/* Loader overlay */.loader-overlay {position: fixed;top: 0;left: 0;width: 100%;height: 100%;background: rgba(15, 19, 30, 0.95);display: flex;justify-content: center;align-items: center;z-index: 2000;}.loader-container {text-align: center;}.loader-gif {width: 50%;}/* HEADER */.header-bar {display: flex;align-items: center;justify-content: space-between;background: #fff;padding: 15px 25px;box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);position: sticky;top: 7vw;z-index: 50;}.logo {height: 40px;margin-right: 10px;}.left-section {display: flex;align-items: center;gap: 10px;}.search-section {flex: 1;text-align: center;}.search-section input,.search-section select {padding: 8px 12px;border-radius: 6px;border: 1px solid #ccc;margin-right: 6px;}.filter-btn {padding: 8px 14px;border: none;background: #00bfa6;color: #fff;border-radius: 6px;cursor: pointer;}.like-section {position: relative;cursor: pointer;padding: 8px 12px;border-radius: 6px;background: #f5f7f9;}.like-count {margin-left: 5px;font-weight: bold;}.liked-dropdown {display: none;position: absolute;top: 100%;right: 0;background: white;border: 1px solid #ccc;border-radius: 6px;padding: 10px;min-width: 150px;box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);z-index: 100;}.liked-dropdown.show {display: block;}.liked-dropdown ul {list-style: none;padding: 0;margin: 0;}.liked-dropdown li {padding: 5px 0;border-bottom: 1px solid #eee;}.liked-dropdown li:last-child {border-bottom: none;}/* MAIN LAYOUT */.main-layout {display: flex;flex-direction: row;height: calc(100vh - 70px);position: relative;top: 8vw;}.user-panel {width: 260px;background: #fff;height: calc(100vh - 70px);box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);padding: 20px;display: flex;flex-direction: column;align-items: center;position: sticky;top: 70px;overflow-y: auto;}.user-photo {width: 120px;height: 120px;border-radius: 50%;object-fit: cover;margin-bottom: 15px;}.user-name {font-weight: bold;font-size: 18px;margin-bottom: 5px;}.user-city {color: #666;margin-bottom: 20px;}.user-stats {width: 100%;margin-bottom: 20px;}.user-stats div {display: flex;justify-content: space-between;margin-bottom: 10px;padding: 5px 0;border-bottom: 1px solid #eee;}.user-stats .value {font-weight: bold;color: #00bfa6;}.edit-btn {padding: 10px 20px;border: none;background: #f5f7f9;border-radius: 6px;cursor: pointer;margin-bottom: 15px;width: 100%;}.progress-bar-user {width: 100%;height: 8px;border-radius: 6px;background: #e5e5e5;overflow: hidden;margin-top: 10px;}.progress-fill {height: 100%;background: linear-gradient(90deg, #00bfa6, #2ecc71);transition: width 0.3s ease;}.matching-container {flex: 1;padding: 20px;overflow-y: auto;}.grid-view {display: grid;grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));gap: 20px;margin-top: 10px;}/* PROFILE CARD */.profile-card {background: #fff;border-radius: 12px;overflow: hidden;box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);transition: 0.3s;cursor: pointer;position: relative;}.profile-card:hover {transform: translateY(-5px);}.image-wrapper {position: relative;height: 200px;overflow: hidden;}.image-wrapper img {width: 100%;height: 100%;object-fit: cover;transition: 0.4s;}.image-wrapper img:hover {transform: scale(1.05);}.online-dot {position: absolute;top: 10px;left: 10px;width: 10px;height: 10px;border-radius: 50%;background: #0f0;box-shadow: 0 0 6px #0f0;}.image-wrapper .badge {position: absolute;top: 10px;right: 10px;background: #00bfa6;color: white;padding: 4px 8px;border-radius: 12px;font-size: 12px;font-weight: bold;}.profile-info {padding: 15px;}.profile-info h3 {margin: 0 0 5px 0;font-size: 16px;}.profile-info p {margin: 2px 0;color: #666;font-size: 14px;}.profession {font-weight: 500;color: #333 !important;}.progress-bar {height: 6px;background: #e5e5e5;border-radius: 3px;overflow: hidden;margin: 10px 0;}.progress-bar-inner {height: 100%;background: linear-gradient(90deg, #00bfa6, #2ecc71);transition: width 0.3s ease;}.actions {display: flex;justify-content: space-between;margin-top: 10px;}.actions button {border: none;background: #f3f3f3;border-radius: 6px;padding: 8px 12px;cursor: pointer;transition: 0.2s;flex: 1;margin: 0 2px;}.actions button:hover,.actions button.liked {background: #00bfa6;color: #fff;}/* MODAL */.modal {position: fixed;top: 0;left: 0;width: 100%;height: 100%;background: rgba(0, 0, 0, 0.5);display: none;justify-content: center;align-items: center;z-index: 40;}.modal.show {display: flex;}.modal-content {background: #fff;padding: 25px;border-radius: 10px;width: 38vw;height: 73vh;text-align: center;position: relative;top: 12%;overflow-y: scroll;}.ai-summary {margin-top: 10px;font-size: 14px;color: #444;text-align: left;}.close {position: absolute;right: 30px;top: 20px;font-size: 28px;cursor: pointer;color: #555;}/* Compatibility Report */.compatibility-report {background: #f8f9fa;padding: 16px 20px;border-radius: 10px;font-size: 14px;line-height: 1.6;}.quadratic-section h4 {color: #007bff;margin-bottom: 6px;margin-top: 12px;}.quadratic-section p {margin: 0 0 10px 0;color: #333;}.quadratic-section ul {padding-left: 20px;}.quadratic-section li {margin-bottom: 4px;line-height: 1.4;}/* CHAT WINDOW */.chat-window {position: fixed;bottom: 20px;right: 20px;width: 350px;height: 400px;background: white;border-radius: 10px;box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);display: none;flex-direction: column;z-index: 100;}.chat-window.show {display: flex;}.chat-header {padding: 15px;background: #00bfa6;color: white;border-radius: 10px 10px 0 0;display: flex;justify-content: space-between;align-items: center;}.chat-body {flex: 1;padding: 15px;overflow-y: auto;display: flex;flex-direction: column;gap: 10px;}.chat-msg {padding: 10px 15px;border-radius: 18px;max-width: 80%;font-size: 14px;position: relative;}.user-msg {align-self: flex-end;background: #00bfa6;color: white;border-bottom-right-radius: 4px;}.other-msg {align-self: flex-start;background: #f1f1f1;color: #333;border-bottom-left-radius: 4px;}.timestamp {font-size: 10px;opacity: 0.7;margin-top: 4px;}.typing {font-style: italic;color: #666;font-size: 12px;align-self: flex-start;}.chat-input {display: flex;padding: 15px;border-top: 1px solid #eee;}.chat-input input {flex: 1;padding: 10px;border: 1px solid #ddd;border-radius: 20px;margin-right: 10px;}.chat-input button {padding: 10px 20px;border: none;background: #00bfa6;color: white;border-radius: 20px;cursor: pointer;}/* Skeleton Loader */.skeleton {background: #e0e0e0;border-radius: 12px;height: 300px;animation: pulse 1.5s ease-in-out infinite;}@keyframes pulse {0% {opacity: 1;}50% {opacity: 0.5;}100% {opacity: 1;}}/* Responsive Design */@media (max-width: 768px) {.main-layout {flex-direction: column;}.user-panel {width: 100%;height: auto;position: static;}.grid-view {grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));}.header-bar {flex-direction: column;gap: 10px;}.search-section {width: 100%;display: flex;flex-wrap: wrap;gap: 5px;}.search-section input,.search-section select {flex: 1;min-width: 120px;}.modal-content {width: 90%;margin: 20px;}.chat-window {width: 300px;height: 350px;}}@media (max-width: 480px) {.grid-view {grid-template-columns: 1fr;}.search-section input,.search-section select {min-width: 100px;}.chat-window {width: 280px;right: 10px;bottom: 10px;}}/* Mode Toggle */.mode-toggle {display: flex;margin-left: 10px;}.mode-btn {padding: 8px 12px;border: 1px solid #00bfa6;background: white;color: #00bfa6;cursor: pointer;transition: all 0.3s ease;}.mode-btn:first-child {border-radius: 6px 0 0 6px;}.mode-btn:last-child {border-radius: 0 6px 6px 0;}.mode-btn.active {background: #00bfa6;color: white;}/* Range Filter */.range-filter {display: flex;justify-content: space-between;align-items: center;margin-bottom: 20px;padding: 10px;background: white;border-radius: 8px;box-shadow: 0 2px 4px rgba(0,0,0,0.1);}.range-filter select {padding: 8px 12px;border-radius: 6px;border: 1px solid #ccc;}.mode-indicator {font-size: 14px;color: #666;font-weight: 500;}/* Modal Profile Image */.modal-profile-img {width: 150px;height: 150px;border-radius: 50%;object-fit: cover;margin-bottom: 15px;}/* Personality Scores */.personality-scores {margin: 15px 0;padding: 15px;background: #f8f9fa;border-radius: 8px;}.personality-scores h4 {margin: 0 0 10px 0;color: #333;}.trait-grid {display: grid;grid-template-columns: 1fr 1fr;gap: 10px;}.trait {padding: 8px 12px;border-radius: 6px;color: white;font-weight: bold;text-align: center;}.trait.blue {background: #3498db;}.trait.green {background: #2ecc71;}.trait.yellow {background: #f39c12;}.trait.red {background: #e74c3c;}/* Error State */.error-message {background: #fee;color: #c33;padding: 15px;border-radius: 8px;margin: 20px;text-align: center;border: 1px solid #fcc;}.profile-detail {margin: 8px 0;padding: 8px;background: #f8f9fa;border-radius: 6px;font-size: 14px;}.profile-detail strong {color: #333;}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464/*[file name]: matching-list.component.css[file content begin]*/:host {display: block;min-height: 100vh;background: linear-gradient(135deg, #f8fafc 0%, #eef2f6 100%);font-family: "Poppins", sans-serif;margin: 0;color: #374151;}/* Loader */.loader-overlay {position: fixed;top: 0;left: 0;width: 100%;height: 100%;background: rgb(28 28 28 / 32%);display: flex;justify-content: center;align-items: center;z-index: 2000;}.loader-container {text-align: center;background: transparent;padding: 50px;border-radius: 20px;}/* Header Bar */.header-bar {display: flex;align-items: center;justify-content: space-between;background: #0D1B2A !important; /* Match app.component.css */padding: 12px 30px;box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);position: sticky;top: 82px; /* Adjusted for top navigation height */z-index: 999;border-bottom: 1px solid rgba(255, 255, 255, 0.2);min-height: 60px;}.header-left {display: flex;align-items: center;gap: 30px;}.app-brand {display: flex;align-items: center;gap: 12px;}.app-title h2 {margin: 0;color: #3AB8A9;font-size: 20px;font-weight: 700;}/* Mode Toggle */.mode-toggle {display: flex;background: rgba(255, 255, 255, 0.05); /* Dark theme background */border-radius: 10px;padding: 4px;border: 1px solid #3AB8A9;}.mode-btn {padding: 8px 16px;border: none;background: transparent;border-radius: 8px;font-weight: 600;cursor: pointer;transition: all 0.3s ease;color: #9aa6b5 !important; /* Light gray for inactive */font-size: 12px;position: relative;}.mode-btn.active {background: linear-gradient(135deg, #3AB8A9, #D4A755);color: white !important;box-shadow: 0 2px 8px rgba(58, 184, 169, 0.3);}.mode-btn:hover:not(.active) {background: rgba(58, 184, 169, 0.1);color: #3AB8A9 !important;}/* Header Right */.header-right {display: flex;align-items: center;gap: 20px;}.search-box {position: relative;display: flex;align-items: center;}.search-box input {padding: 10px 40px 10px 15px;border-radius: 20px;border: 1px solid rgba(255, 255, 255, 0.2);background: rgba(255, 255, 255, 0.05);width: 260px;font-size: 14px;transition: all 0.3s ease;color: #e5e7eb;}.search-box input:focus {outline: none;border-color: #3AB8A9;box-shadow: 0 0 0 3px rgba(58, 184, 169, 0.1);background: rgba(255, 255, 255, 0.08);}.search-icon {position: absolute;right: 15px;color: #3AB8A9;}.like-section {position: relative;cursor: pointer;z-index: 1000;}.heart-container {display: flex;align-items: center;gap: 8px;padding: 10px 16px;background: rgba(255, 255, 255, 0.05);border-radius: 20px;transition: all 0.3s ease;color: #e5e7eb;border: 1px solid #3AB8A9;min-width: 80px;}.heart-container:hover {transform: translateY(-2px);border-color: #D4A755;background: rgba(212, 167, 85, 0.1);}.like-count {background: linear-gradient(135deg, #3AB8A9, #D4A755);color: white;border-radius: 50%;width: 20px;height: 20px;display: flex;align-items: center;justify-content: center;font-size: 11px;font-weight: bold;}/* Liked Dropdown */.liked-dropdown {display: none;position: absolute;top: calc(100% + 8px);right: 0;background: white;border-radius: 10px;padding: 0;min-width: 280px;max-width: 350px;box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);z-index: 1001;border: 1px solid #3AB8A9;overflow: hidden;animation: slideDown 0.2s ease-out;}.liked-dropdown.show {display: block;}@keyframes slideDown {from {opacity: 0;transform: translateY(-10px);}to {opacity: 1;transform: translateY(0);}}/* Main Layout */.main-layout {display: flex;gap: 0;min-height: calc(100vh - 142px); /* 82px + 60px */position: relative;top: 0; /* Remove previous calculation */}/* User Panel */.user-panel {width: 300px;background: #1B2635 !important; /* Darker shade matching the theme */padding: 25px 20px;display: flex;flex-direction: column;position: relative;overflow-y: auto;color: #e5e7eb !important; /* Light text for dark background */border-right: 2px solid rgba(58, 184, 169, 0.5); /* Teal accent */min-height: calc(100vh - 142px);box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);}.user-header {text-align: center;margin-bottom: 25px;}.user-photo {width: 100px;height: 100px;border-radius: 50%;object-fit: cover;border: 4px solid #f3f4f6;transition: all 0.3s ease;}.user-photo:hover {transform: scale(1.05);border-color: #3AB8A9;}.online-status {position: absolute;bottom: 8px;right: 4.5vw;width: 18px;height: 18px;border-radius: 50%;border: 3px solid white;background: #3AB8A9;}.user-name {font-size: 22px;font-weight: 700;margin: 0 0 8px 0;color: #3AB8A9 !important; /* Teal color for name */}.user-city {color: #D4A755 !important; /* Gold accent */margin: 0;font-size: 14px;}/* User Stats */.user-stats {display: flex;gap: 15px;margin: 25px 0;padding: 20px;background: rgba(255, 255, 255, 0.05); /* Semi-transparent white */border-radius: 12px;border: 1px solid rgba(58, 184, 169, 0.3); /* Teal border */}.stat-item {text-align: center;transition: transform 0.3s ease;}.stat-item:hover {transform: translateY(-2px);}.stat-value {font-size: 24px;font-weight: 800;color: #D4A755 !important; /* Gold */margin-bottom: 6px;}.stat-label {font-size: 11px;color: #3AB8A9 !important; /* Teal */text-transform: uppercase;letter-spacing: 1px;font-weight: 600;}/* Profile Completion */.profile-completion {margin: 20px 0;}.completion-header {display: flex;justify-content: space-between;align-items: center;margin-bottom: 10px;font-size: 14px;color: #6b7280;}.completion-percent {font-weight: 700;color: #D4A755;font-size: 15px;}.progress-bar-user {width: 100%;height: 8px;border-radius: 10px;background: #f3f4f6;overflow: hidden;position: relative;}.progress-fill {height: 100%;background: linear-gradient(90deg, #3AB8A9, #D4A755);border-radius: 10px;transition: width 0.5s ease;position: relative;overflow: hidden;}/* Edit Button */.edit-btn {display: flex;align-items: center;justify-content: center;gap: 8px;padding: 12px 20px;border: 1px solid #3AB8A9;background: rgba(58, 184, 169, 0.1); /* Transparent teal */border-radius: 10px;color: #3AB8A9;font-weight: 600;cursor: pointer;transition: all 0.3s ease;margin-top: 10px;}.edit-btn:hover {border-color: #D4A755;background: rgba(212, 167, 85, 0.1); /* Transparent gold */transform: translateY(-2px);color: #D4A755;}/* Matching Container */.matching-container {flex: 1;padding: 25px;/*background: #0D1B2A !important;*/ /* Match main dark theme */overflow-y: auto;height: calc(100vh - 142px);color: #e5e7eb; /* Light text */}.matching-header {display: flex;flex-direction: column;gap: 20px;}.header-top-row {display: flex;justify-content: space-between;align-items: center;width: 100%;gap: 20px;}.range-filter {display: flex;align-items: center;gap: 20px;flex-wrap: wrap;position: relative;bottom: 0.5vw;}.range-select,.filter-select {padding: 10px 16px;border-radius: 10px;border: 1px solid rgba(255, 255, 255, 0.2);background: rgba(255, 255, 255, 0.05);font-size: 14px;color: #000000;cursor: pointer;transition: all 0.3s ease;font-weight: 500;}.range-select:focus,.filter-select:focus {outline: none;border-color: #3AB8A9;box-shadow: 0 0 0 3px rgba(58, 184, 169, 0.1);background: rgba(255, 255, 255, 0.08);}.filter-select:not([value=""]) {border-color: #D4A755;background: rgba(212, 167, 85, 0.05);}/* Filter Group */.filter-group {display: flex;gap: 12px;flex-wrap: wrap;flex: 1;}.filter-actions {display: flex;gap: 10px;align-items: center;}.filter-btn {display: flex;align-items: center;gap: 6px;padding: 10px 16px;border: none;border-radius: 8px;font-weight: 600;cursor: pointer;transition: all 0.3s ease;}.filter-btn.primary {background: linear-gradient(135deg, #3AB8A9, #5EC8BA);color: white;}.filter-btn.primary:hover {transform: translateY(-2px);box-shadow: 0 4px 12px rgba(58, 184, 169, 0.3);}.filter-btn.secondary {background: white;border: 1px solid #d1d5db;color: #6b7280;}.filter-btn.secondary:hover {border-color: #3AB8A9;color: #3AB8A9;transform: translateY(-2px);}/* Results Info */.results-info {display: flex;align-items: center;gap: 20px;color: #3AB8A9;font-size: 14px;}.results-count {font-weight: 700;color: #D4A755;font-size: 15px;}.mode-indicator {display: flex;align-items: center;gap: 8px;padding: 8px 16px;background: #f9fafb;border-radius: 20px;font-size: 12px;font-weight: 600;border: 1px solid #3AB8A9;}.mode-dot {width: 8px;height: 8px;border-radius: 50%;animation: pulse 2s infinite;}.mode-dot.expectation {background: #3AB8A9;}.mode-dot.character {background: #D4A755;}.mode-dot.expectation-only {background: #5EC8BA;}@keyframes pulse {0%, 100% {opacity: 1;}50% {opacity: 0.5;}}/* Grid View */.grid-view {display: grid;grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));gap: 20px;min-height: 0;}/* Profile Card */.profile-card {background: #00edd212 !important; /* Dark card background */border-radius: 16px;overflow: hidden;box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);transition: all 0.3s ease;cursor: pointer;border: 2px solid rgba(58, 184, 169, 0.2);}.profile-card:hover {transform: translateY(-5px);box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);border-color: #3AB8A9;}.profile-card.high-match {border-color: #D4A755;}.card-header {padding: 20px 20px 15px;}.image-wrapper {position: relative;height: 120px;border-radius: 12px;overflow: hidden;margin-bottom: 15px;/* background: #f9fafb;*/}.image-wrapper img {width: 100%;height: 100%;object-fit: contain;transition: transform 0.4s ease;}.profile-card:hover .image-wrapper img {transform: scale(1.05);}.online-dot {position: absolute;top: 10px;left: 10px;width: 12px;height: 12px;border-radius: 50%;background: #3AB8A9;border: 2px solid white;}.badge {position: absolute;top: 10px;right: 10px;background: linear-gradient(135deg, #3AB8A9, #D4A755);color: white;padding: 6px 12px;border-radius: 20px;font-size: 12px;font-weight: 700;}.profile-basic-info {text-align: center;}.profile-name {margin: 0 0 5px 0;font-size: 18px;font-weight: 700;color: #D4A755 !important; /* Gold */}.profile-details {margin: 0 0 5px 0;color: #000000 !important; /* Light gray */font-size: 14px;}.profession {margin: 0;color: #3AB8A9 !important; /* Teal */font-weight: 600;font-size: 14px;}.compatibility-bar {padding: 0 20px 15px;}.progress-bar {height: 6px;background: #f3f4f6;border-radius: 3px;overflow: hidden;margin-bottom: 8px;}.progress-bar-inner {height: 100%;background: linear-gradient(90deg, #3AB8A9, #D4A755);border-radius: 3px;transition: width 0.5s ease;}.score-text {display: block;text-align: center;font-size: 12px;color: #3AB8A9;font-weight: 600;}.actions {display: flex;gap: 8px;padding: 0 20px 20px;}.action-btn {flex: 1;padding: 10px;border: 1px solid #e5e7eb;background: white;border-radius: 8px;cursor: pointer;transition: all 0.3s ease;font-size: 16px;color: #6b7280;}.action-btn:hover {transform: translateY(-2px);}.action-btn.like:hover,.action-btn.like.liked {background: rgba(212, 167, 85, 0.1);border-color: #D4A755;color: #D4A755;}.action-btn.chat:hover {background: rgba(58, 184, 169, 0.1);border-color: #3AB8A9;color: #3AB8A9;}.action-btn.view:hover {background: rgba(94, 200, 186, 0.1);border-color: #5EC8BA;color: #5EC8BA;}/* MODAL STYLES */.modal {display: none;position: fixed;top: 2.5vw;left: 0;width: 100%;height: 100%;background: rgba(0, 0, 0, 0.5);justify-content: center;align-items: center;z-index: 1000;backdrop-filter: blur(4px);-webkit-backdrop-filter: blur(4px);animation: modalFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);}@keyframes modalFadeIn {from {opacity: 0;backdrop-filter: blur(0);}to {opacity: 1;backdrop-filter: blur(4px);}}.modal.show {display: flex;}.modal-content {background: #1B2635 !important; /* Dark modal background */border-radius: 24px;box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(58, 184, 169, 0.2);position: relative;overflow: hidden;width: 800px;max-width: 90vw;max-height: 85vh;display: flex;flex-direction: column;animation: cardSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);border: 1px solid rgba(58, 184, 169, 0.3);}@keyframes cardSlideUp {from {opacity: 0;transform: translateY(30px) scale(0.98);}to {opacity: 1;transform: translateY(0) scale(1);}}/* MODAL HEADER */.modal-header {position: relative;padding: 40px;background: linear-gradient(135deg, rgba(58, 184, 169, 0.1) 0%, rgba(58, 184, 169, 0.05) 100%);display: flex;align-items: flex-start;gap: 24px;border-bottom: 1px solid rgba(58, 184, 169, 0.2);}.modal-profile-img {width: 100px;height: 100px;border-radius: 20px;object-fit: cover;border: 4px solid white;box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(58, 184, 169, 0.2);flex-shrink: 0;transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);}.modal-profile-img:hover {transform: translateY(-2px);box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(58, 184, 169, 0.3);}.modal-profile-info {flex: 1;min-width: 0;}.modal-profile-info h2 {margin: 0 0 8px 0;font-size: 28px;font-weight: 700;color: #D4A755 !important; /* Gold */line-height: 1.2;}.modal-subtitle {margin: 0 0 16px 0;color: #6b7280;font-size: 16px;font-weight: 500;display: flex;align-items: center;gap: 8px;}.match-score-large {display: inline-flex;align-items: center;gap: 8px;background: linear-gradient(135deg, #3AB8A9, #D4A755);color: white;padding: 8px 20px;border-radius: 20px;font-size: 15px;font-weight: 600;box-shadow: 0 4px 12px rgba(58, 184, 169, 0.25);}/* MODAL TABS */.modal-tabs {display: flex;background: #f9fafb;border-bottom: 1px solid #e5e7eb;padding: 0 40px;margin: 0;position: sticky;top: 0;z-index: 10;}.tab-btn {flex: 1;padding: 20px 24px;border: none;background: transparent;font-weight: 500;cursor: pointer;transition: all 0.2s ease;color: #6b7280;font-size: 17px;display: flex;align-items: center;justify-content: center;gap: 10px;position: relative;border-bottom: 2px solid transparent;text-transform: uppercase;}.tab-btn.active {color: #3AB8A9;font-weight: 600;background: white;border-bottom-color: #3AB8A9;}.tab-btn:hover:not(.active) {color: #3AB8A9;background: rgba(58, 184, 169, 0.05);}/* MODAL BODY */.modal-body {padding: 32px 40px;max-height: calc(85vh - 200px);overflow-y: auto;flex: 1;background: white;position: relative;}/* SECTION DESIGN */.section {padding-bottom: 32px;margin-bottom: 32px;border-bottom: 1px solid #f3f4f6;}.section:last-child {border-bottom: none;margin-bottom: 0;padding-bottom: 0;}.section h4 {margin: 0 0 24px 0;color: #D4A755;font-size: 18px;font-weight: 600;display: flex;align-items: center;gap: 12px;padding-bottom: 12px;border-bottom: 2px solid rgba(212, 167, 85, 0.2);text-transform: uppercase;}/* DETAILS GRID */.details-grid {display: grid;grid-template-columns: repeat(2, 1fr);gap: 16px;}.detail-item {padding: 16px;background: #f9fafb;border-radius: 12px;border: 1px solid rgba(58, 184, 169, 0.2);transition: all 0.2s ease;}.detail-item:hover {background: white;border-color: #D4A755;transform: translateY(-2px);box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);}.detail-label {display: block;font-size: 12px;font-weight: 800;color: #3AB8A9;text-transform: uppercase;letter-spacing: 0.5px;margin-bottom: 6px;}.detail-value {font-size: 15px;font-weight: 700;color: #374151;line-height: 1.4;}/* MODAL ACTIONS */.modal-actions {display: flex;gap: 16px;padding: 24px 40px;background: white;border-top: 1px solid #e5e7eb;}.modal-btn {flex: 1;padding: 16px 24px;border: none;border-radius: 12px;font-weight: 600;cursor: pointer;transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);display: flex;align-items: center;justify-content: center;gap: 8px;font-size: 15px;}.modal-btn.primary {background: linear-gradient(135deg, #3AB8A9, #5EC8BA);color: white;box-shadow: 0 4px 12px rgba(58, 184, 169, 0.25);}.modal-btn.primary:hover {transform: translateY(-2px);box-shadow: 0 6px 20px rgba(58, 184, 169, 0.35);}.modal-btn.secondary {background: white;border: 1.5px solid #e5e7eb;color: #4b5563;}.modal-btn.secondary:hover {border-color: #3AB8A9;color: #3AB8A9;background: rgba(58, 184, 169, 0.05);}.modal-btn.liked {background: linear-gradient(135deg, #D4A755, #E3B96C);color: white;}/* CLOSE BUTTON */.close {position: absolute;right: 20px;top: 20px;width: 40px;height: 40px;border-radius: 50%;background: white;border: 1px solid #3AB8A9;display: flex;align-items: center;justify-content: center;cursor: pointer;transition: all 0.2s ease;z-index: 100;color: #3AB8A9;font-size: 30px;box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);}.close:hover {background: #3AB8A9;border-color: #D4A755;color: white;transform: rotate(90deg);}/* COMPATIBILITY SECTION */.compatibility-section {padding: 0;background: transparent;}/* COMPATIBILITY SECTION - ONLY VISIBLE IN COMPATIBILITY TAB */.compatibility-section {display: none;padding: 0;background: transparent;border: none;margin: 0;}.tab-content.active .compatibility-section {display: block;}/* TAB CONTENT */.tab-content {display: none;padding: 0;opacity: 0;transform: translateY(10px);transition: opacity 0.3s ease, transform 0.3s ease;height: 0;overflow: hidden;}.tab-content.active {display: block;opacity: 1;transform: translateY(0);height: auto;overflow: visible;animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);}@keyframes fadeInUp {from {opacity: 0;transform: translateY(10px);}to {opacity: 1;transform: translateY(0);}}/* COMPARISON TABLE STYLES */.comparison-table {border-radius: 12px;overflow: hidden;margin-top: 16px;background: white;box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);border: 1px solid rgba(58, 184, 169, 0.2);}.table-header {display: flex;background: linear-gradient(135deg, #3AB8A9, #5EC8BA);color: white;padding: 16px 20px;font-weight: 600;}.table-column {flex: 1;padding: 0 10px;}.table-header h6 {margin: 0;font-size: 14px;font-weight: 700;display: flex;align-items: center;gap: 8px;}.table-body {max-height: 400px;overflow-y: auto;}.table-row {display: flex;padding: 16px 20px;border-bottom: 1px solid #f3f4f6;transition: background-color 0.2s ease;padding-bottom: 9px;}.table-row:last-child {border-bottom: none;}.table-row:hover {background-color: #f9fafb;}.table-row.critical-row {background-color: #fef2f2;border-left: 4px solid #ef4444;}.table-row.critical-row:hover {background-color: #fee2e2;}/* Exact Matches Table Specific */.exact-matches-table .table-header {background: linear-gradient(135deg, #3AB8A9, #D4A755);}.exact-matches-table .field-column {flex: 1.2;}.exact-matches-table .value-column {flex: 0.8;}.field-name {font-weight: 600;color: #D4A755;font-size: 14px;margin-bottom: 6px;text-transform: uppercase;}.field-description {font-size: 12px;color: #6b7280;font-style: italic;}.common-value {display: flex;flex-direction: column;gap: 6px;}.value-text {font-weight: 500;color: #374151;font-size: 14px;}.agreement-badge {display: inline-flex;align-items: center;gap: 4px;background: #3AB8A9;color: white;padding: 4px 10px;border-radius: 20px;font-size: 11px;font-weight: 600;width: fit-content;}/* Differences Table Specific */.differences-table .table-header {background: linear-gradient(135deg, #3AB8A9, #5EC8BA);}.your-expectation-column,.their-profile-column {display: flex;flex-direction: column;}.expectation-value,.profile-value {font-weight: 500;color: #ef4444;font-size: 14px;padding: 8px 12px;background: #f9fafb;border-radius: 8px;border: 1px solid rgba(239, 68, 68, 0.2);}.critical-badge {display: inline-flex;align-items: center;gap: 4px;background: #ef4444;color: white;padding: 4px 10px;border-radius: 20px;font-size: 11px;font-weight: 600;width: fit-content;}/* No Data Section */.no-data-section {text-align: center;padding: 40px 20px;color: #6b7280;}.no-data-icon {font-size: 48px;margin-bottom: 16px;opacity: 0.5;color: #3AB8A9;}.no-data {font-size: 14px;font-weight: 500;}/* Mutual Expectation Styling */.mutual-expectation {display: flex;flex-direction: column;gap: 4px;margin-bottom: 8px;}.mutual-label {font-size: 12px;color: #6b7280;font-weight: 600;display: flex;align-items: center;gap: 4px;}.mutual-label::before {content: "🤝";font-size: 14px;}/* TOGGLE BUTTONS FOR ALL MODES */.analysis-toggle,.toggle-group {display: flex;gap: 8px;margin-bottom: 24px;background: #f9fafb;padding: 6px;border-radius: 12px;border: 1px solid rgba(58, 184, 169, 0.2);}.toggle-btn,.toggle-group-btn {flex: 1;padding: 12px 16px;border: 1.5px solid #e5e7eb;background: white;border-radius: 8px;cursor: pointer;font-weight: 500;transition: all 0.2s ease;color: #6b7280;font-size: 14px;display: flex;align-items: center;justify-content: center;gap: 8px;}.toggle-btn.active,.toggle-group-btn.active {border-color: #3AB8A9;background: rgba(58, 184, 169, 0.1);color: #3AB8A9;font-weight: 600;}.toggle-btn:hover:not(.active),.toggle-group-btn:hover:not(.active) {border-color: #3AB8A9;color: #3AB8A9;}.toggle-count {background: #f1f5f9;border-radius: 12px;padding: 2px 8px;font-size: 12px;font-weight: 700;color: #475569;margin-left: 6px;border: 1px solid #e2e8f0;}.toggle-group-btn.active .toggle-count {background: #3AB8A9;color: white;border-color: #3AB8A9;}/* CHARACTER ANALYSIS STYLES (Used in Character Mode and Combined Mode) */.character-analysis-container {background: #f9fafb;border-radius: 16px;padding: 24px;border: 1px solid rgba(58, 184, 169, 0.2);box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);}.character-tab-content {padding: 20px 0;}.character-analysis-header {display: flex;align-items: center;gap: 20px;margin-bottom: 30px;padding: 25px;background: linear-gradient(135deg, rgba(58, 184, 169, 0.1) 0%, rgba(58, 184, 169, 0.05) 100%);border-radius: 16px;border: 1px solid rgba(58, 184, 169, 0.2);}.character-header-icon {width: 60px;height: 60px;border-radius: 12px;background: linear-gradient(135deg, #3AB8A9, #D4A755);display: flex;align-items: center;justify-content: center;font-size: 28px;color: white;}.character-header-content h3 {margin: 0 0 8px 0;color: #D4A755;font-size: 22px;font-weight: 700;}.character-subtitle {margin: 0;color: #6b7280;font-size: 14px;font-weight: 500;}/* Character Insights Grid */.character-insights-grid {display: grid;grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));gap: 25px;margin-top: 20px;}.character-insight-card {background: white;border-radius: 16px;overflow: hidden;box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);border: 1px solid rgba(58, 184, 169, 0.2);display: flex;flex-direction: column;height: 100%;}.character-insight-card:hover {transform: translateY(-5px);box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);}/* Card Header */.character-card-header {display: flex;align-items: center;padding: 20px 24px;border-bottom: 1px solid #f3f4f6;gap: 16px;}.character-card-icon {width: 48px;height: 48px;border-radius: 10px;display: flex;align-items: center;justify-content: center;font-size: 22px;flex-shrink: 0;}.strength-card .character-card-icon {background: linear-gradient(135deg, rgba(58, 184, 169, 0.15), rgba(94, 200, 186, 0.1));color: #3AB8A9;}.risk-card .character-card-icon {background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.1));color: #ef4444;}.sacrifice-card .character-card-icon {background: linear-gradient(135deg, rgba(212, 167, 85, 0.15), rgba(227, 185, 108, 0.1));color: #D4A755;}.character-card-title {flex: 1;}.character-card-title h4 {margin: 0 0 4px 0;color: #374151;font-size: 18px;font-weight: 700;}.card-subtitle {margin: 0;color: #6b7280;font-size: 12px;font-weight: 500;}.character-card-badge {background: #f9fafb;border-radius: 20px;padding: 6px 12px;border: 1px solid #e5e7eb;}.badge-count {font-weight: 700;font-size: 14px;color: #3AB8A9;}/* Card Body */.character-card-body {padding: 20px 24px;flex: 1;}.character-insight-list {margin: 0;padding: 0;list-style: none;}.character-insight-item {display: flex;gap: 12px;padding: 12px 0;border-bottom: 1px solid #f3f4f6;}.character-insight-item:last-child {border-bottom: none;}.insight-number {width: 28px;height: 28px;border-radius: 8px;background: #f9fafb;border: 1px solid #e5e7eb;display: flex;align-items: center;justify-content: center;font-size: 12px;font-weight: 700;color: #D4A755;flex-shrink: 0;box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);}.insight-content {flex: 1;}.insight-content p {margin: 0;color: #374151;font-size: 14px;line-height: 1.5;}/* Card Footer */.character-card-footer {padding: 16px 24px;background: #f9fafb;border-top: 1px solid #e5e7eb;}.footer-tag {display: inline-block;padding: 6px 12px;background: white;border-radius: 20px;font-size: 12px;font-weight: 600;color: #3AB8A9;border: 1px solid #e5e7eb;}/* Card Specific Colors */.strength-card {border-top: 4px solid #3AB8A9;}.risk-card {border-top: 4px solid #ef4444;}.sacrifice-card {border-top: 4px solid #D4A755;}/* No Character Data */.no-character-data {text-align: center;padding: 60px 40px;background: #f9fafb;border-radius: 16px;border: 2px dashed rgba(58, 184, 169, 0.3);}.no-character-data .no-data-icon {font-size: 48px;margin-bottom: 20px;opacity: 0.5;color: #3AB8A9;}.no-character-data h4 {margin: 0 0 12px 0;color: #D4A755;font-size: 20px;font-weight: 600;}.no-character-data p {margin: 0;color: #6b7280;font-size: 15px;max-width: 400px;margin: 0 auto;}/* COMBINED MODE SPECIFIC STYLES */.combined-analysis-container {display: flex;flex-direction: column;gap: 24px;margin-top: 20px;}/* Combined Mode Tabs Only - Premium Design */.combined-mode-tabs {width: 100%;margin-bottom: 30px;}.combined-tabs-nav {display: flex;align-items: center;justify-content: center;gap: 20px;position: relative;}.combined-tab {padding: 14px 28px;border: none;background: transparent;border-radius: 12px;cursor: pointer;font-weight: 700;transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);color: #6b7280;font-size: 15px;display: flex;align-items: center;gap: 10px;position: relative;min-width: 200px;justify-content: center;background: white;border: 2px solid #e5e7eb;box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);}.combined-tab.active {background: linear-gradient(135deg, #3AB8A9, #D4A755);color: white;border-color: rgba(255, 255, 255, 0.2);box-shadow: 0 6px 20px rgba(58, 184, 169, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;transform: translateY(-2px);}.combined-tab.active .tab-icon {transform: scale(1.2);filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));}.combined-tab.active .tab-text {font-weight: 800;text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);}.combined-tab:hover:not(.active) {background: white;color: #3AB8A9;border-color: rgba(58, 184, 169, 0.3);transform: translateY(-1px);box-shadow: 0 4px 15px rgba(58, 184, 169, 0.15);}.tab-icon {font-size: 18px;transition: transform 0.3s ease;}.tab-text {font-weight: 700;letter-spacing: 0.3px;}.tab-separator {display: flex;align-items: center;gap: 8px;padding: 0 5px;}.separator-line {width: 40px;height: 2px;background: linear-gradient(90deg, transparent, #e5e7eb, transparent);}.separator-plus {font-size: 20px;font-weight: 900;color: #D4A755;background: white;width: 32px;height: 32px;border-radius: 50%;display: flex;align-items: center;justify-content: center;border: 2px solid #D4A755;box-shadow: 0 4px 8px rgba(212, 167, 85, 0.2);}/* LOADING ANIMATIONS */.loading-animation {display: flex;align-items: center;justify-content: center;min-height: 300px;width: 100%;grid-column: 1 / -1;position:relative;top:50%;}/* Elegant Dot Spinner */.elegant-spinner {display: flex;flex-direction: column;align-items: center;gap: 25px;}.spinner-dots {display: flex;gap: 12px;}.spinner-dots .dot {width: 14px;height: 14px;border-radius: 50%;background: linear-gradient(135deg, #3AB8A9, #D4A755);animation: bounce 1.4s ease-in-out infinite;}.spinner-dots .dot:nth-child(1) {animation-delay: -0.32s;}.spinner-dots .dot:nth-child(2) {animation-delay: -0.16s;}.spinner-dots .dot:nth-child(3) {animation-delay: 0s;}.spinner-dots .dot:nth-child(4) {animation-delay: 0.16s;}@keyframes bounce {0%, 80%, 100% {transform: scale(0);}40% {transform: scale(1);}}.spinner-text {color: #D4A755;font-weight: 600;font-size: 16px;}/* SCROLLBAR STYLING */.modal-body::-webkit-scrollbar {width: 6px;}.modal-body::-webkit-scrollbar-track {background: #f9fafb;border-radius: 3px;}.modal-body::-webkit-scrollbar-thumb {background: #d1d5db;border-radius: 3px;}.modal-body::-webkit-scrollbar-thumb:hover {background: #9ca3af;}/* ADDITIONAL MICRO-INTERACTIONS */.detail-item {position: relative;overflow: hidden;}.detail-item::after {content: '';position: absolute;top: 0;left: 0;width: 4px;height: 100%;background: linear-gradient(to bottom, #3AB8A9, #D4A755);transform: translateX(-100%);transition: transform 0.3s ease;}.detail-item:hover::after {transform: translateX(0);}/* SMOOTH TRANSITIONS */.tab-btn,.modal-btn,.toggle-btn,.toggle-group-btn,.close {transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);}/* FOCUS STATES */.tab-btn:focus-visible,.modal-btn:focus-visible,.toggle-btn:focus-visible,.toggle-group-btn:focus-visible {outline: 2px solid #3AB8A9;outline-offset: 2px;}/* RESPONSIVE IMPROVEMENTS */@media (max-width: 768px) {.modal-content {width: 95vw;margin: 16px;border-radius: 20px;}.modal-header {flex-direction: column;text-align: center;padding: 32px 24px;gap: 20px;}.modal-profile-img {width: 90px;height: 90px;}.modal-profile-info h2 {font-size: 24px;}.modal-tabs {padding: 0 24px;}.tab-btn {padding: 16px 20px;font-size: 14px;}.modal-body {padding: 24px;}.details-grid {grid-template-columns: 1fr;gap: 12px;}.modal-actions {flex-direction: column;gap: 12px;padding: 20px 24px;}.section h4 {font-size: 16px;}.character-insights-grid {grid-template-columns: 1fr;gap: 20px;}.character-analysis-header {flex-direction: column;text-align: center;padding: 20px;}.character-header-icon {width: 50px;height: 50px;font-size: 24px;}.character-card-header {padding: 16px 20px;}.character-card-body {padding: 16px 20px;}.character-card-footer {padding: 12px 20px;}.combined-tabs-nav {flex-direction: column;gap: 10px;}.tab-separator {display: none;}.combined-tab {width: 100%;min-width: auto;}.toggle-group {flex-direction: column;width: 100%;}.toggle-group-btn {width: 100%;min-width: auto;}.analysis-toggle {flex-direction: column;}}@media (max-width: 480px) {.modal {backdrop-filter: blur(4px);}.modal-content {width: 100%;margin: 0;border-radius: 0;max-height: 100vh;}.modal-body {max-height: calc(100vh - 300px);}.modal-profile-img {width: 80px;height: 80px;}.modal-profile-info h2 {font-size: 22px;}.tab-btn {padding: 14px 16px;font-size: 13px;}.detail-item {padding: 14px;}.close {right: 16px;top: 16px;width: 36px;height: 36px;}.combined-tab {padding: 12px 16px;font-size: 14px;}.tab-icon {font-size: 16px;}}@media (max-width: 992px) {.combined-tabs-nav {gap: 15px;}.combined-tab {min-width: 180px;padding: 12px 24px;}}/* USER INFO SECTION STYLES */.user-info-section {position: absolute;top: 0;left: 0;right: 0;bottom: 0;background: white;z-index: 100;border-radius: 24px;display: flex;flex-direction: column;overflow: hidden;}.user-info-header {display: flex;justify-content: space-between;align-items: center;padding: 20px 40px;background: linear-gradient(135deg, #3AB8A9, #5EC8BA);color: white;}.user-info-header h3 {margin: 0;font-size: 20px;font-weight: 700;}.close-user-info {background: transparent;border: none;color: white;font-size: 24px;cursor: pointer;transition: all 0.3s ease;}.close-user-info:hover {transform: scale(1.1);}.user-info-content {flex: 1;overflow-y: auto;padding: 30px 40px;}.scrollable-content {max-height: 100%;overflow-y: auto;}/* User Info Content Styles */.user-basic-info {display: flex;align-items: center;gap: 20px;margin-bottom: 30px;padding: 20px;background: #f9fafb;border-radius: 12px;border: 1px solid rgba(58, 184, 169, 0.2);}.user-info-img {width: 80px;height: 80px;border-radius: 50%;object-fit: cover;border: 3px solid #3AB8A9;}.user-info-details h4 {margin: 0 0 8px 0;color: #D4A755;font-size: 20px;}.user-info-details p {margin: 0 0 4px 0;color: #3AB8A9;}.matching-mode-info {margin-bottom: 30px;padding: 20px;background: #f9fafb;border-radius: 12px;border: 1px solid rgba(58, 184, 169, 0.2);}.matching-mode-info h5 {margin: 0 0 12px 0;color: #D4A755;font-size: 16px;}.mode-indicator {display: flex;align-items: center;gap: 10px;}/* EDIT MODAL STYLES */.edit-modal {width: 400px;max-width: 90vw;}.modal-title {margin: 0 0 30px 0;color: #D4A755;font-size: 22px;font-weight: 700;text-align: center;}.form-group {margin-bottom: 20px;}.form-group label {display: block;margin-bottom: 8px;color: #3AB8A9;font-weight: 600;font-size: 14px;}.form-input {width: 100%;padding: 12px 16px;border-radius: 8px;border: 1px solid #d1d5db;background: white;color: #374151;font-size: 14px;transition: all 0.3s ease;}.form-input:focus {outline: none;border-color: #3AB8A9;box-shadow: 0 0 0 3px rgba(58, 184, 169, 0.1);}.form-actions {display: flex;gap: 12px;margin-top: 30px;}/* CHAT WINDOW STYLES */.chat-window {position: fixed;bottom: 20px;right: 20px;width: 350px;height: 500px;background: white;border-radius: 16px;box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);border: 1px solid #3AB8A9;display: none;flex-direction: column;z-index: 1000;overflow: hidden;}.chat-window.show {display: flex;}.chat-header {display: flex;justify-content: space-between;align-items: center;padding: 16px 20px;background: linear-gradient(135deg, #3AB8A9, #5EC8BA);color: white;}.chat-user-info {display: flex;align-items: center;gap: 12px;}.chat-user-img {width: 40px;height: 40px;border-radius: 50%;object-fit: cover;border: 2px solid white;}.chat-user-name {font-weight: 700;font-size: 14px;}.chat-user-status {font-size: 12px;opacity: 0.9;}.chat-close {background: transparent;border: none;color: white;font-size: 18px;cursor: pointer;transition: all 0.3s ease;}.chat-close:hover {transform: scale(1.1);}.chat-body {flex: 1;padding: 20px;overflow-y: auto;display: flex;flex-direction: column;gap: 12px;background: #f9fafb;}.chat-msg {max-width: 80%;padding: 12px 16px;border-radius: 16px;font-size: 14px;}.user-msg {align-self: flex-end;background: linear-gradient(135deg, #3AB8A9, #5EC8BA);color: white;border-bottom-right-radius: 4px;}.other-msg {align-self: flex-start;background: white;color: #374151;border-bottom-left-radius: 4px;border: 1px solid #e5e7eb;}.timestamp {font-size: 10px;margin-top: 4px;opacity: 0.7;}.typing-indicator {display: flex;align-items: center;gap: 8px;padding: 8px 16px;background: white;border-radius: 20px;width: fit-content;border: 1px solid #e5e7eb;}.typing-dots {display: flex;gap: 4px;}.typing-dots span {width: 6px;height: 6px;background: #3AB8A9;border-radius: 50%;animation: typing 1.4s ease-in-out infinite;}.typing-dots span:nth-child(2) {animation-delay: 0.2s;}.typing-dots span:nth-child(3) {animation-delay: 0.4s;}@keyframes typing {0%, 100% {transform: translateY(0);}50% {transform: translateY(-4px);}}.typing-text {font-size: 12px;color: #3AB8A9;}.chat-input {padding: 16px;background: white;border-top: 1px solid #e5e7eb;display: flex;gap: 12px;}.chat-input-field {flex: 1;padding: 12px 16px;border-radius: 20px;border: 1px solid #d1d5db;background: white;color: #374151;font-size: 14px;transition: all 0.3s ease;}.chat-input-field:focus {outline: none;border-color: #3AB8A9;}.send-btn {width: 44px;height: 44px;border-radius: 50%;border: none;background: linear-gradient(135deg, #3AB8A9, #5EC8BA);color: white;display: flex;align-items: center;justify-content: center;cursor: pointer;transition: all 0.3s ease;}.send-btn:hover {transform: translateY(-2px);box-shadow: 0 4px 12px rgba(58, 184, 169, 0.3);}.send-icon {font-size: 18px;}/* PROFILE SCORE STYLES */.profile-score {display: inline-flex;align-items: center;gap: 6px;background: #f9fafb;padding: 6px 12px;border-radius: 20px;font-size: 12px;font-weight: 600;color: #D4A755;border: 1px solid rgba(212, 167, 85, 0.3);}/* Additional scrollbar styling for chat */.chat-body::-webkit-scrollbar {width: 4px;}.chat-body::-webkit-scrollbar-track {background: #f9fafb;}.chat-body::-webkit-scrollbar-thumb {background: #d1d5db;border-radius: 2px;}.chat-body::-webkit-scrollbar-thumb:hover {background: #9ca3af;}/* USER PROFILE MODAL STYLES */.profile-modal {width: 700px;max-width: 90vw;}.user-photo-container {position: relative;}.profile-completion {font-size: 12px;color: #3AB8A9;margin-top: 4px;}/* Button styles for consistency */.btn-icon {font-size: 16px;}.btn-text {font-weight: 600;}/* Filter specific styles */.filter-select option {background: white;color: #374151;}/* Range specific styles */.range-select option {background: white;color: #374151;}/* Ensure all buttons have consistent hover effects */button:not(:disabled):hover {transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);}/* Disabled state styling */button:disabled {opacity: 0.5;cursor: not-allowed;}/* Spinner dots specific styling */.elegant-spinner .spinner-text {color: #D4A755 !important;}/* Liked profile items in dropdown */.liked-profile-item {display: flex;align-items: center;gap: 12px;padding: 12px 16px;border-bottom: 1px solid #f3f4f6;}.liked-profile-item:last-child {border-bottom: none;}.liked-profile-img {width: 40px;height: 40px;border-radius: 50%;object-fit: cover;}.no-likes {text-align: center;padding: 24px 16px;color: #6b7280;font-style: italic;}.dropdown-header {padding: 16px;border-bottom: 1px solid #f3f4f6;}.dropdown-header h4 {margin: 0;color: #3AB8A9;font-size: 16px;font-weight: 600;}/*[file content end]*/.main-container {position: relative;top: 5vw;}
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228<!-- Loader Overlay --><div class="loader-overlay" *ngIf="loading"><div class="loader-container"><img src="assets/Loader.gif" alt="Loading..." class="loader-gif" /></div></div><!-- Main Content --><div *ngIf="!loading" class="main-container"><!-- HEADER --><div class="header-bar"><div class="left-section"><!--<img src="https://cdn-icons-png.flaticon.com/512/168/168724.png" class="logo" alt="logo"><h2>Py-Match</h2>--><!-- Mode Toggle --><div class="mode-toggle"><button class="mode-btn"[class.active]="mode === 'expectation'"(click)="sortByExpectation()">Expectation</button><button class="mode-btn"[class.active]="mode === 'character'"(click)="sortCharacterwise()">Character</button></div></div><div class="search-section"><input type="text" id="searchBox" placeholder="Search name or city"[(ngModel)]="searchTerm" (input)="onSearchChange()"><select id="filterLocation" (change)="onLocationFilterChange($event)"><option value="">All Locations</option><option *ngFor="let location of availableLocations" [value]="location">{{ location }}</option></select><select id="filterAge" (change)="onAgeFilterChange($event)"><option value="">All Ages</option><option *ngFor="let ageRange of availableAgeRanges" [value]="ageRange">{{ ageRange }}</option></select><select id="filterProfession" (change)="onProfessionFilterChange($event)"><option value="">All Professions</option><option *ngFor="let profession of availableProfessions" [value]="profession">{{ profession }}</option></select><select id="scoreFilter" (change)="onScoreFilterChange($event)"><option value="0">All Scores</option><option value="80">80%+</option><option value="90">90%+</option></select><select id="sortBy" (change)="onSortChange($event)"><option value="compatibility">Top Compatibility</option><option value="newest">Newest</option><option value="location">Closest Location</option></select><button class="filter-btn" (click)="applyFilters()">Apply</button><!-- Mode Toggle --><!--<div class="mode-toggle"><button class="mode-btn"[class.active]="mode === 'expectation'"(click)="sortByExpectation()">Expectation</button><button class="mode-btn"[class.active]="mode === 'character'"(click)="sortCharacterwise()">Character</button></div>--></div><div class="like-section" (click)="toggleLikedDropdown()">❤️<span class="like-count">{{ likedProfiles.length }}</span><div class="liked-dropdown" [class.show]="showLikedDropdown"><ul><li *ngFor="let profile of likedProfiles">{{ profile.name }}</li><li *ngIf="likedProfiles.length === 0">No liked profiles</li></ul></div></div></div><!-- MAIN LAYOUT --><div class="main-layout"><!-- LEFT USER PANEL --><div class="user-panel"><img [src]="userPhoto" class="user-photo" alt="User Photo"><div class="user-name">{{ userName }}</div><div class="user-city">{{ userCity }}</div><div class="user-stats"><div><span>Matches</span><span class="value">{{ totalMatches }}</span></div><div><span>Likes</span><span class="value">{{ likedProfiles.length }}</span></div><div><span>Compatibility</span><span class="value">87%</span></div></div><button class="edit-btn" (click)="openEditModal()">⚙️ Edit Profile</button><div class="progress-bar-user"><div class="progress-fill" [style.width]="userProfileCompletion + '%'"></div></div></div><!-- RIGHT MATCHING CONTAINER --><div class="matching-container"><!-- Score Range Filter --><div class="range-filter"><select [(ngModel)]="selectedRange" (change)="processMatchesForDisplay()"><option *ngFor="let range of availableRanges" [value]="range">{{ range === 'all' ? 'All Scores' : range === 'below_60' ? 'Below 60%' : range + '%' }}</option></select><span class="mode-indicator">Mode: {{ mode === 'expectation' ? 'Expectation Matching' : 'Character Matching' }}</span></div><div class="grid-view" id="profilesContainer"><!-- Skeleton Loaders --><div class="skeleton" *ngIf="displayedMatches.length === 0 && !loading"></div><div class="skeleton" *ngIf="displayedMatches.length === 0 && !loading"></div><div class="skeleton" *ngIf="displayedMatches.length === 0 && !loading"></div><!-- Profile Cards --><div *ngFor="let profile of displayedMatches"class="profile-card"(click)="openProfileModal(profile)"><div class="image-wrapper"><div class="online-dot" *ngIf="profile.isOnline"></div><img [src]="profile.photo_url" [alt]="profile.name"(error)="handleImageError($event, profile)"><span class="badge">{{ profile.match_score || profile.score }}%</span></div><div class="profile-info"><h3>{{ profile.name }}</h3><p>{{ profile.age }} • {{ profile.city }}</p><p class="profession">{{ profile.job }}</p><div class="progress-bar"><div class="progress-bar-inner" [style.width]="(profile.match_score || profile.score) + '%'"></div></div><div class="actions"><button [class.liked]="isLiked(profile)"(click)="$event.stopPropagation(); toggleLike(profile)">❤️</button><button (click)="$event.stopPropagation(); openChat(profile)">💬</button><button (click)="$event.stopPropagation(); openProfileModal(profile)">👁️</button></div></div></div></div></div></div><!-- PROFILE MODAL --><!-- PROFILE MODAL --><div class="modal" [class.show]="showProfileModal"><div class="modal-content" *ngIf="selectedProfile"><span class="close" (click)="closeModal()">×</span><img [src]="selectedProfile.photo_url" [alt]="selectedProfile.name"(error)="handleImageError($event, selectedProfile)" class="modal-profile-img"><h3>{{ selectedProfile.name }} ({{ selectedProfile.gender || 'Not specified' }})</h3><p>{{ selectedProfile.age }} • {{ selectedProfile.city }}</p><!--<p>{{ selectedProfile.job }}</p>--><!-- Additional profile information --><div *ngIf="selectedProfile.marital_status" class="profile-detail"><strong>Marital Status:</strong> {{ selectedProfile.marital_status }}</div><div *ngIf="selectedProfile.education_level" class="profile-detail"><strong>Education:</strong> {{ selectedProfile.education_level }}</div><div *ngIf="selectedProfile.employment_status" class="profile-detail"><strong>Employment:</strong> {{ selectedProfile.employment_status }}</div><p><strong>Overall Match: {{ selectedProfile.match_score || selectedProfile.score }}%</strong></p><!-- Personality Scores --><!--<div class="personality-scores" *ngIf="selectedProfile.blue !== undefined"><h4>Personality Traits:</h4>--><!--<div class="trait-grid"><div class="trait blue">Blue: {{ selectedProfile.blue }}%</div><div class="trait green">Green: {{ selectedProfile.green }}%</div><div class="trait yellow">Yellow: {{ selectedProfile.yellow }}%</div><div class="trait red">Red: {{ selectedProfile.red }}%</div></div>--><!--</div>--><div class="ai-summary" [innerHTML]="getCompatibilityReport(selectedProfile)"></div></div></div><!-- EDIT PROFILE MODAL --><div class="modal" [class.show]="showEditModal"><div class="modal-content"><span class="close" (click)="closeEditModal()">×</span><h3>Edit Profile</h3><input [(ngModel)]="editName" placeholder="Name" style="margin:6px;padding:6px;width:90%"><input [(ngModel)]="editCity" placeholder="City" style="margin:6px;padding:6px;width:90%"><button class="filter-btn" (click)="saveProfile()">Save</button></div></div><!-- CHAT WINDOW --><div class="chat-window" [class.show]="showChatWindow"><div class="chat-header"><span>Chat with {{ currentChatUser?.name }}</span><span style="cursor:pointer" (click)="closeChat()">✖</span></div><div class="chat-body" #chatBody><div *ngFor="let message of chatMessages"class="chat-msg"[class.user-msg]="message.sender === 'me'"[class.other-msg]="message.sender === 'them'">{{ message.text }}<div class="timestamp">{{ message.time }}</div></div><div *ngIf="showTyping" class="typing" id="typingMsg">Typing...</div></div><div class="chat-input"><input type="text"[(ngModel)]="newMessage"placeholder="Type a message..."(keyup.enter)="sendMessage()"(keypress)="typingIndicator()"><button (click)="sendMessage()">Send</button></div></div></div>12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331<!-- Loader Overlay --><div class="loader-overlay" *ngIf="loading"><div class="loader-container"><img src="assets/Loader.gif" alt="Loading..." style="width:50%;height:50%;display:block;margin:0 auto 25px;" /></div></div><!-- Main Content --><div *ngIf="!loading" class="main-container"><!-- ENHANCED HEADER BAR --><div class="header-bar"><div class="header-left"><!-- Enhanced Mode Toggle --><div class="mode-toggle"><button class="mode-btn"[class.active]="mode === 'character'"(click)="sortCharacterwise()">Character<span class="mode-badge" *ngIf="mode === 'character'">✓</span></button><button class="mode-btn"[class.active]="mode === 'expectation-only'"(click)="sortByExpectationOnly()">Expectation<span class="mode-badge" *ngIf="mode === 'expectation-only'">✓</span><!--<span *ngIf="mode === 'expectation-only'"><span class="badge-info">Exact Matches: {{compatibilityAnalysis?.totalExactMatches || 0}}</span><span class="badge-info">Differences: {{compatibilityAnalysis?.totalDifferences || 0}}</span></span>--></button><button class="mode-btn"[class.active]="mode === 'expectation'"(click)="sortByExpectation()">Expectation with Character<span class="mode-badge" *ngIf="mode === 'expectation'">✓</span><!--<span *ngIf="mode === 'expectation'"><span class="badge-info">Exact Matches: {{compatibilityAnalysis?.totalExactMatches || 0}}</span><span class="badge-info">Differences: {{compatibilityAnalysis?.totalDifferences || 0}}</span></span>--></button></div><!-- App Brand --><div class="app-brand"><!-- Enhanced Results Info --><!--<div class="results-info"><span class="results-count">🎯 {{ displayedMatches.length }} Matches Found</span><span class="mode-indicator"><span class="mode-dot"[class.expectation-only]="mode === 'expectation-only'"[class.expectation]="mode === 'expectation'"[class.character]="mode === 'character'"></span><span *ngIf="mode === 'expectation-only'">Pure Expectation Matching</span><span *ngIf="mode === 'character'">Pure Character Matching</span><span *ngIf="mode === 'expectation'">Combined Matching</span></span></div>--></div></div><div class="header-right"><!-- Enhanced Search Section --><div class="search-section"><div class="search-box"><input type="text" placeholder="Search profiles..."[(ngModel)]="searchTerm" (input)="onSearchChange()"><span class="search-icon">🔍</span></div></div><!-- Enhanced Like Section --><div class="like-section" (click)="toggleLikedDropdown($event)"><div class="heart-container">❤️<span class="like-count">{{ likedProfiles.length }}</span></div><div class="liked-dropdown" [class.show]="showLikedDropdown"><div class="dropdown-header"><h4>Liked Profiles</h4></div><ul><li *ngFor="let profile of likedProfiles" class="liked-profile-item"><img [src]="profile.photo_url" [alt]="profile.name" class="liked-profile-img"><span>{{ profile.name }}</span></li><li *ngIf="likedProfiles.length === 0" class="no-likes">No liked profiles yet</li></ul></div></div></div></div><!-- MAIN LAYOUT --><div class="main-layout"><!-- ENHANCED USER PANEL --><div class="user-panel"><div class="user-header"><div class="user-photo-container"><img [src]="userPhoto" class="user-photo" alt="User Photo"><div class="online-status"></div></div><div class="user-info"><h3 class="user-name">{{ userName }}</h3><p class="user-city">📍 {{ userCity }}</p></div></div><!-- Enhanced User Stats --><div class="user-stats"><div class="stat-item"><div class="stat-value">{{ totalMatches }}</div><div class="stat-label">Total Matches</div></div><div class="stat-item"><div class="stat-value">{{ likedProfiles.length }}</div><div class="stat-label">Liked Profiles</div></div><!--<div class="stat-item"><div class="stat-value">{{ userProfileCompletion }}</div><div class="stat-label">Profile Score</div></div>--></div><!-- Enhanced Profile Completion --><!--<div class="profile-completion">--><!--<div class="completion-header"><span>Profile Completion</span><span class="completion-percent">{{ userProfileCompletion }}%</span></div>--><!--<div class="progress-bar-user"><div class="progress-fill" [style.width]="userProfileCompletion + '%'"></div></div></div>--><!-- Enhanced Edit Button --><button class="edit-btn" (click)="openEditModal()"><span class="btn-icon">⚙️</span>View Your Profile</button> </div><!-- ENHANCED MATCHING CONTAINER --><div class="matching-container"><div class="matching-header"><!-- ENHANCED HEADER TOP ROW --><div class="header-top-row"><div class="range-filter"><!-- Range Selector --><select [(ngModel)]="selectedRange" class="range-select" (change)="onRangeChange()"><option *ngFor="let range of availableRanges" [value]="range">{{ range === 'all' ? 'All Scores' : range === 'below_60' ? 'Below 60%' : range + '%' }}</option></select><!-- Enhanced Filter Group - Only show in Character mode --><div class="filter-group" *ngIf="mode === 'character' && displayedMatches.length > 0"><!-- Location Filter --><select [(ngModel)]="selectedLocation" class="filter-select"><option value="">📍 All Locations</option><option *ngFor="let location of availableLocations" [value]="location">{{ location }}</option></select><!-- Profession Filter --><select [(ngModel)]="selectedProfession" class="filter-select"><option value="">💼 All Professions</option><option *ngFor="let profession of availableProfessions" [value]="profession">{{ profession }}</option></select><!-- Education Filter --><select [(ngModel)]="selectedEducation" class="filter-select"><option value="">🎓 All Education</option><option *ngFor="let education of availableEducationLevels" [value]="education">{{ education }}</option></select><!-- Age Range Filter --><select [(ngModel)]="selectedAgeRange" class="filter-select"><option value="">👤 All Ages</option><option *ngFor="let ageRange of availableAgeRanges" [value]="ageRange">{{ ageRange }}</option></select><!-- Religion Filter --><select [(ngModel)]="selectedReligion" class="filter-select" *ngIf="availableReligions.length > 0"><option value="">🙏 All Religions</option><option *ngFor="let religion of availableReligions" [value]="religion">{{ religion }}</option></select></div><!-- Enhanced Filter Actions - Only show in Character mode --><div class="filter-actions" *ngIf="mode === 'character' && displayedMatches.length > 0"><button class="filter-btn primary" (click)="applyFilters()"><span class="btn-text">Apply Filters</span><span class="btn-icon">⚡</span></button><button class="filter-btn secondary" (click)="clearFilters()"*ngIf="selectedLocation || selectedProfession || selectedEducation || selectedReligion || selectedAgeRange"><span class="btn-text">Clear All</span><span class="btn-icon">❌</span></button></div></div></div></div><!-- GRID VIEW --><div class="grid-view" id="profilesContainer"><!-- Minimalist Spinner --><div *ngIf="displayedMatches.length === 0 && !loading" class="loading-animation"><div class="elegant-spinner"><div class="spinner-dots"><div class="dot"></div><div class="dot"></div><div class="dot"></div><div class="dot"></div></div><div class="spinner-text" style="color: #f3a54c; font-weight:600;">Finding your perfect matches...</div></div></div><!-- Profile Cards --><div *ngFor="let profile of displayedMatches"class="profile-card"[class.high-match]="((profile.match_score ?? profile.score ?? 0) >= 80)"(click)="openProfileModal(profile)"><div class="card-header"><div class="image-wrapper"><div class="online-dot" *ngIf="profile.isOnline"></div><img [src]="profile.photo_url" [alt]="profile.name"(error)="handleImageError($event, profile)"><span class="badge">{{ profile.match_score ?? profile.score ?? 0 }}%</span></div><div class="profile-basic-info"><h3 class="profile-name">{{ profile.name }}</h3><p class="profile-details">{{ profile.age }} • {{ profile.city }}</p><p class="profession">{{ profile.job }}</p></div></div><div class="compatibility-bar"><div class="progress-bar"><div class="progress-bar-inner" [style.width]="(profile.match_score ?? profile.score ?? 0) + '%'"></div></div><span class="score-text">{{ profile.match_score ?? profile.score ?? 0 }}% Match</span></div><div class="actions"><button class="action-btn like"[class.liked]="isLiked(profile)"(click)="$event.stopPropagation(); toggleLike(profile)">❤️</button><button class="action-btn chat"(click)="$event.stopPropagation(); openChat(profile)">💬</button><button class="action-btn view"(click)="$event.stopPropagation(); openProfileModal(profile)">👁️</button></div></div></div></div></div><!-- PROFILE MODAL --><div class="modal" [class.show]="showProfileModal"><div class="modal-content profile-modal" *ngIf="selectedProfile"><span class="close" (click)="closeModal()">×</span><!-- User Info Section --><div class="user-info-section" *ngIf="showUserInfo && userProfileData"><div class="user-info-header"><h3>Your Complete Profile Information</h3><button class="close-user-info" (click)="toggleUserInfo()">✖</button></div><div class="user-info-content scrollable-content"><!-- Basic User Info --><div class="user-basic-info"><img [src]="userPhoto" [alt]="userName" class="user-info-img"><div class="user-info-details"><h4>{{ userName }}</h4><p>📍 {{ userCity }}</p><!--<p class="profile-completion">Profile Completion: {{ userProfileCompletion }}%</p>--></div></div><!-- Current Matching Mode --><div class="matching-mode-info"><h5>Current Matching Mode:</h5><div class="mode-indicator"><span class="mode-dot"[class.expectation-only]="mode === 'expectation-only'"[class.expectation]="mode === 'expectation'"[class.character]="mode === 'character'"></span><span *ngIf="mode === 'expectation-only'">Pure Expectation Matching</span><span *ngIf="mode === 'character'">Pure Character Matching</span><span *ngIf="mode === 'expectation'">Expectation + Character Refinement</span></div></div><!-- Full Profile Details --><div class="profile-details-container"><!-- Basic Information Section --><div class="section" *ngIf="userProfileData.gender || userProfileData.marital_status || userProfileData.date_of_birth || userProfileData.height || userProfileData.skin_tone || userProfileData.blood_group"><h4>Basic Information</h4><div class="details-grid"><div *ngIf="userProfileData.gender" class="detail-item"><span class="detail-label">Gender</span><span class="detail-value">{{ userProfileData.gender }}</span></div><div *ngIf="userProfileData.marital_status" class="detail-item"><span class="detail-label">Marital Status</span><span class="detail-value">{{ userProfileData.marital_status }}</span></div><div *ngIf="userProfileData.date_of_birth" class="detail-item"><span class="detail-label">Date of Birth</span><span class="detail-value">{{ userProfileData.date_of_birth }}</span></div><div *ngIf="userProfileData.height" class="detail-item"><span class="detail-label">Height</span><span class="detail-value">{{ userProfileData.height }}</span></div><div *ngIf="userProfileData.skin_tone" class="detail-item"><span class="detail-label">Skin Tone</span><span class="detail-value">{{ userProfileData.skin_tone }}</span></div><div *ngIf="userProfileData.blood_group" class="detail-item"><span class="detail-label">Blood Group</span><span class="detail-value">{{ userProfileData.blood_group }}</span></div></div></div><!-- Location & Background Section --><div class="section" *ngIf="userProfileData.current_city || userProfileData.country || userProfileData.religion || userProfileData.languages_spoken || userProfileData.dual_citizenship"><h4>Location & Background</h4><div class="details-grid"><div *ngIf="userProfileData.current_city" class="detail-item"><span class="detail-label">Current City</span><span class="detail-value">{{ userProfileData.current_city }}</span></div><div *ngIf="userProfileData.country" class="detail-item"><span class="detail-label">Country</span><span class="detail-value">{{ userProfileData.country }}</span></div><div *ngIf="userProfileData.religion" class="detail-item"><span class="detail-label">Religion</span><span class="detail-value">{{ userProfileData.religion }}</span></div><div *ngIf="userProfileData.languages_spoken" class="detail-item"><span class="detail-label">Languages Spoken</span><span class="detail-value">{{ userProfileData.languages_spoken }}</span></div><div *ngIf="userProfileData.dual_citizenship" class="detail-item"><span class="detail-label">Dual Citizenship</span><span class="detail-value">{{ userProfileData.dual_citizenship }}</span></div></div></div><!-- Education & Career Section --><div class="section" *ngIf="userProfileData.education_level || userProfileData.field_of_study || userProfileData.employment_status || userProfileData.job_role || userProfileData.work_experience_years || userProfileData.career_aspirations || userProfileData.income_range"><h4>Education & Career</h4><div class="details-grid"><div *ngIf="userProfileData.education_level" class="detail-item"><span class="detail-label">Education Level</span><span class="detail-value">{{ userProfileData.education_level }}</span></div><div *ngIf="userProfileData.field_of_study" class="detail-item"><span class="detail-label">Field of Study</span><span class="detail-value">{{ userProfileData.field_of_study }}</span></div><div *ngIf="userProfileData.employment_status" class="detail-item"><span class="detail-label">Employment Status</span><span class="detail-value">{{ userProfileData.employment_status }}</span></div><div *ngIf="userProfileData.job_role" class="detail-item"><span class="detail-label">Profession</span><span class="detail-value">{{ userProfileData.job_role }}</span></div><div *ngIf="userProfileData.work_experience_years" class="detail-item"><span class="detail-label">Work Experience</span><span class="detail-value">{{ userProfileData.work_experience_years }}</span></div><div *ngIf="userProfileData.career_aspirations" class="detail-item"><span class="detail-label">Career Aspirations</span><span class="detail-value">{{ userProfileData.career_aspirations }}</span></div><div *ngIf="userProfileData.income_range" class="detail-item"><span class="detail-label">Income Range</span><span class="detail-value">{{ userProfileData.income_range }}</span></div></div></div></div></div></div><div class="modal-header"><img [src]="selectedProfile.photo_url" [alt]="selectedProfile.name"(error)="handleImageError($event, selectedProfile)" class="modal-profile-img"><div class="modal-profile-info"><h2>{{ selectedProfile.name }}</h2><p class="modal-subtitle">{{ selectedProfile.age }} • {{ selectedProfile.city }}</p><div class="match-score-large">{{ selectedProfile.match_score ?? selectedProfile.score ?? 0 }}% Match</div></div></div><!-- TAB NAVIGATION --><div class="modal-tabs"><button class="tab-btn"[class.active]="activeTab === 'details'"(click)="setActiveTab('details')">📋 Details</button><button class="tab-btn"[class.active]="activeTab === 'compatibility'"(click)="setActiveTab('compatibility')">🔍 Compatibility Analysis</button></div><div class="modal-body"><!-- DETAILS TAB CONTENT --><div class="tab-content" [class.active]="activeTab === 'details'"><!-- Basic Information Section --><div class="section"><h4>Basic Information</h4><div class="details-grid"><div *ngIf="selectedProfile.gender" class="detail-item"><span class="detail-label">Gender</span><span class="detail-value">{{ selectedProfile.gender }}</span></div><div *ngIf="selectedProfile.marital_status" class="detail-item"><span class="detail-label">Marital Status</span><span class="detail-value">{{ selectedProfile.marital_status }}</span></div><div *ngIf="selectedProfile.date_of_birth" class="detail-item"><span class="detail-label">Date of Birth</span><span class="detail-value">{{ selectedProfile.date_of_birth }}</span></div><div *ngIf="selectedProfile.height" class="detail-item"><span class="detail-label">Height</span><span class="detail-value">{{ selectedProfile.height }}</span></div><div *ngIf="selectedProfile.skin_tone" class="detail-item"><span class="detail-label">Skin Tone</span><span class="detail-value">{{ selectedProfile.skin_tone }}</span></div><div *ngIf="selectedProfile.blood_group" class="detail-item"><span class="detail-label">Blood Group</span><span class="detail-value">{{ selectedProfile.blood_group }}</span></div></div></div><!-- Location & Background Section --><div class="section"><h4>Location & Background</h4><div class="details-grid"><div *ngIf="selectedProfile.current_city" class="detail-item"><span class="detail-label">Current City</span><span class="detail-value">{{ selectedProfile.current_city }}</span></div><div *ngIf="selectedProfile.country" class="detail-item"><span class="detail-label">Country</span><span class="detail-value">{{ selectedProfile.country }}</span></div><div *ngIf="selectedProfile.religion" class="detail-item"><span class="detail-label">Religion</span><span class="detail-value">{{ selectedProfile.religion }}</span></div><div *ngIf="selectedProfile.languages_spoken" class="detail-item"><span class="detail-label">Languages Spoken</span><span class="detail-value">{{ selectedProfile.languages_spoken }}</span></div><div *ngIf="selectedProfile.dual_citizenship" class="detail-item"><span class="detail-label">Dual Citizenship</span><span class="detail-value">{{ selectedProfile.dual_citizenship }}</span></div></div></div><!-- Education & Career Section --><div class="section"><h4>Education & Career</h4><div class="details-grid"><div *ngIf="selectedProfile.education_level" class="detail-item"><span class="detail-label">Education Level</span><span class="detail-value">{{ selectedProfile.education_level }}</span></div><div *ngIf="selectedProfile.field_of_study" class="detail-item"><span class="detail-label">Field of Study</span><span class="detail-value">{{ selectedProfile.field_of_study }}</span></div><div *ngIf="selectedProfile.employment_status" class="detail-item"><span class="detail-label">Employment Status</span><span class="detail-value">{{ selectedProfile.employment_status }}</span></div><div *ngIf="selectedProfile.job_role" class="detail-item"><span class="detail-label">Profession</span><span class="detail-value">{{ selectedProfile.job_role }}</span></div><div *ngIf="selectedProfile.work_experience_years" class="detail-item"><span class="detail-label">Work Experience</span><span class="detail-value">{{ selectedProfile.work_experience_years }}</span></div><div *ngIf="selectedProfile.career_aspirations" class="detail-item"><span class="detail-label">Career Aspirations</span><span class="detail-value">{{ selectedProfile.career_aspirations }}</span></div><div *ngIf="selectedProfile.income_range" class="detail-item"><span class="detail-label">Income Range</span><span class="detail-value">{{ selectedProfile.income_range }}</span></div></div></div></div><!-- COMPATIBILITY ANALYSIS TAB CONTENT --><div class="tab-content" [class.active]="activeTab === 'compatibility'"><!-- ENHANCED COMPATIBILITY ANALYSIS SECTION --><div class="compatibility-section" *ngIf="activeTab === 'compatibility'"><!-- Mode-specific header --><!--<div class="mode-specific-header"><div class="mode-info-banner"><span class="mode-icon"[class.character]="mode === 'character'"[class.combined]="mode === 'expectation'"[class.expectation-only]="mode === 'expectation-only'">{{ mode === 'character' ? '🧠' : mode === 'expectation' ? '⚡' : '🎯' }}</span><div class="mode-info-content">--><!-- Combined mode tab buttons only --><!--<div class="combined-mode-tabs" *ngIf="mode === 'expectation'"><nav class="combined-tabs-nav"><button class="combined-tab"[class.active]="subTab === 'expectation'"(click)="subTab = 'expectation'"><span class="tab-icon">📊</span><span class="tab-text">Expectation Analysis</span></button><div class="tab-separator"><span class="separator-line"></span><span class="separator-plus">+</span><span class="separator-line"></span></div><button class="combined-tab"[class.active]="subTab === 'character'"(click)="subTab = 'character'"><span class="tab-icon">🧬</span><span class="tab-text">Character Analysis</span></button></nav></div>--><!-- Other modes --><!--<div *ngIf="mode !== 'expectation'"><h5>{{ getModeDisplayName() }} Analysis</h5><p *ngIf="mode === 'expectation-only'">Pure expectation matching based on profile criteria</p><p *ngIf="mode === 'character'">Personality-based compatibility analysis</p></div></div></div></div>--><!-- Mode-specific content --><ng-container [ngSwitch]="mode"><!-- EXPECTATION-ONLY MODE --><div *ngSwitchCase="'expectation-only'" class="analysis-container"><!-- Toggle for expectation-only mode --><div class="analysis-toggle"><button class="toggle-btn"[class.active]="showDifferences"(click)="toggleDifferences()"><span class="toggle-icon">❌</span><span class="toggle-text">Difference Areas</span><span class="toggle-count">({{compatibilityAnalysis?.totalDifferences || 0}})</span></button><button class="toggle-btn"[class.active]="showExactMatches"(click)="toggleExactMatches()"><span class="toggle-icon">✅</span><span class="toggle-text">Common Expectations</span><span class="toggle-count">({{compatibilityAnalysis?.totalExactMatches || 0}})</span></button></div><!-- Exact Matches View --><div *ngIf="showExactMatches && compatibilityAnalysis" class="analysis-view"><div *ngIf="compatibilityAnalysis.exactMatches && compatibilityAnalysis.exactMatches.length > 0; else noExactMatches"><!-- Table Header for Exact Matches --><div class="comparison-table exact-matches-table"><div class="table-header"><div class="table-column field-column"><h6>📋 Expectation Field</h6></div><div class="table-column value-column"><h6>🤝 Mutual Expectation</h6></div></div><!-- Table Content for Exact Matches --><div class="table-body"><div *ngFor="let match of compatibilityAnalysis.exactMatches; let i = index"class="table-row"><div class="table-column field-column"><div class="field-name">{{getFieldNameFromMatch(match)}}</div></div><div class="table-column value-column"><div class="common-value"><div class="mutual-expectation"><span class="mutual-label">Both are expecting:</span><span class="value-text">{{getExpectationValueFromMatch(match)}}</span></div></div></div></div></div></div></div></div><!-- Differences View --><div *ngIf="showDifferences && compatibilityAnalysis" class="analysis-view"><div *ngIf="compatibilityAnalysis.differences && compatibilityAnalysis.differences.length > 0; else noDifferences"><!-- Table Header for Differences --><div class="comparison-table differences-table"><div class="table-header"><div class="table-column"><h6>🎯 Your Expectation</h6></div><div class="table-column"><h6>👤 Partner's Profile</h6></div></div><!-- Table Content for Differences --><div class="table-body"><div *ngFor="let difference of compatibilityAnalysis.differences; let i = index"class="table-row"[class.critical-row]="difference.isCritical"><div class="table-column your-expectation-column"><div class="field-name">{{difference.fieldName}}</div><div class="expectation-value">{{difference.yourExpectation}}</div><div *ngIf="difference.isCritical" class="critical-badge">Critical difference</div></div><div class="table-column their-profile-column"><div class="field-name">{{difference.fieldName}}</div><div class="profile-value">{{difference.theirProfile}}</div><div *ngIf="difference.isCritical" class="critical-badge">Critical difference</div></div></div></div></div></div></div></div><!-- CHARACTER MODE - Now uses the same professional UI --><div *ngSwitchCase="'character'" class="character-analysis-container"><!-- Character Analysis Header --><div class="character-analysis-header"><div class="character-header-icon"><span class="icon">🧠</span></div><div class="character-header-content"><h3>Character Compatibility Analysis</h3><p class="character-subtitle">Based on personality color traits and psychological patterns</p></div></div><!-- Character Insights Grid --><div class="character-insights-grid" *ngIf="strengths?.length || risks?.length || sacrifices?.length"><!-- STRENGTHS CARD --><div class="character-insight-card strength-card" *ngIf="strengths?.length"><div class="character-card-header"><div class="character-card-icon strength-icon"><span>💪</span></div><div class="character-card-title"><h4>Character Strengths</h4><p class="card-subtitle">Positive synergies and complementary traits</p></div><div class="character-card-badge"><span class="badge-count">{{ strengths.length }}</span></div></div><div class="character-card-body"><ul class="character-insight-list"><li *ngFor="let point of strengths; let i = index" class="character-insight-item"><div class="insight-number">{{ i + 1 }}</div><div class="insight-content"><p>{{ point }}</p></div></li></ul></div><div class="character-card-footer"><span class="footer-tag">Strong Foundation</span></div></div><!-- RISKS CARD --><div class="character-insight-card risk-card" *ngIf="risks?.length"><div class="character-card-header"><div class="character-card-icon risk-icon"><span>⚠️</span></div><div class="character-card-title"><h4>Character Risks</h4><p class="card-subtitle">Potential challenges and areas of friction</p></div><div class="character-card-badge"><span class="badge-count">{{ risks.length }}</span></div></div><div class="character-card-body"><ul class="character-insight-list"><li *ngFor="let point of risks; let i = index" class="character-insight-item"><div class="insight-number">{{ i + 1 }}</div><div class="insight-content"><p>{{ point }}</p></div></li></ul></div><div class="character-card-footer"><span class="footer-tag">Manageable Challenges</span></div></div><!-- SACRIFICES CARD --><div class="character-insight-card sacrifice-card" *ngIf="sacrifices?.length"><div class="character-card-header"><div class="character-card-icon sacrifice-icon"><span>🤝</span></div><div class="character-card-title"><h4>Sacrifices Needed</h4><p class="card-subtitle">Compromises for harmonious partnership</p></div><div class="character-card-badge"><span class="badge-count">{{ sacrifices.length }}</span></div></div><div class="character-card-body"><ul class="character-insight-list"><li *ngFor="let point of sacrifices; let i = index" class="character-insight-item"><div class="insight-number">{{ i + 1 }}</div><div class="insight-content"><p>{{ point }}</p></div></li></ul></div><div class="character-card-footer"><span class="footer-tag">Growth Opportunities</span></div></div></div><!-- No Character Data --><div *ngIf="!strengths?.length && !risks?.length && !sacrifices?.length" class="no-character-data"><div class="no-data-icon">🔍</div><h4>Character Analysis Unavailable</h4><p>Character compatibility data is not available for this match. Try refreshing or selecting another profile.</p></div></div><!-- EXPECTATION WITH CHARACTER MODE --><div *ngSwitchCase="'expectation'" class="combined-analysis-container"><!-- Combined Mode Tabs --><div class="combined-mode-tabs"><nav class="combined-tabs-nav"><button class="combined-tab"[class.active]="subTab === 'expectation'"(click)="subTab = 'expectation'"><span class="tab-icon">📊</span><span class="tab-text">Expectation Analysis</span></button><div class="tab-separator"><span class="separator-line"></span><span class="separator-plus">+</span><span class="separator-line"></span></div><button class="combined-tab"[class.active]="subTab === 'character'"(click)="subTab = 'character'"><span class="tab-icon">🧬</span><span class="tab-text">Character Analysis</span></button></nav></div><!-- Expectation Analysis Tab Content --><div *ngIf="subTab === 'expectation'" class="expectation-tab-content"><!-- Toggle buttons for expectation analysis --><div class="toggle-group"><button class="toggle-group-btn"[class.active]="showDifferences"(click)="toggleDifferences()"><span class="toggle-icon">❌</span><span class="toggle-text">Difference Areas</span><span class="toggle-count">({{compatibilityAnalysis?.totalDifferences || 0}})</span></button><button class="toggle-group-btn"[class.active]="showExactMatches"(click)="toggleExactMatches()"><span class="toggle-icon">✅</span><span class="toggle-text">Common Expectations</span><span class="toggle-count">({{compatibilityAnalysis?.totalExactMatches || 0}})</span></button></div><!-- Exact Matches View --><div *ngIf="showExactMatches && compatibilityAnalysis" class="analysis-view"><div *ngIf="compatibilityAnalysis.exactMatches && compatibilityAnalysis.exactMatches.length > 0; else noExactMatches"><!-- Table Header for Exact Matches --><div class="comparison-table exact-matches-table"><div class="table-header"><div class="table-column field-column"><h6>📋 Expectation Field</h6></div><div class="table-column value-column"><h6>🤝 Mutual Expectation</h6></div></div><!-- Table Content for Exact Matches --><div class="table-body"><div *ngFor="let match of compatibilityAnalysis.exactMatches; let i = index"class="table-row"><div class="table-column field-column"><div class="field-name">{{getFieldNameFromMatch(match)}}</div></div><div class="table-column value-column"><div class="common-value"><div class="mutual-expectation"><span class="mutual-label">Both are expecting:</span><span class="value-text">{{getExpectationValueFromMatch(match)}}</span></div></div></div></div></div></div></div></div><!-- Differences View --><div *ngIf="showDifferences && compatibilityAnalysis" class="analysis-view"><div *ngIf="compatibilityAnalysis.differences && compatibilityAnalysis.differences.length > 0; else noDifferences"><!-- Table Header for Differences --><div class="comparison-table differences-table"><div class="table-header"><div class="table-column"><h6>🎯 Your Expectation</h6></div><div class="table-column"><h6>👤 Partner's Profile</h6></div></div><!-- Table Content for Differences --><div class="table-body"><div *ngFor="let difference of compatibilityAnalysis.differences; let i = index"class="table-row"[class.critical-row]="difference.isCritical"><div class="table-column your-expectation-column"><div class="field-name">{{difference.fieldName}}</div><div class="expectation-value">{{difference.yourExpectation}}</div><div *ngIf="difference.isCritical" class="critical-badge">Critical difference</div></div><div class="table-column their-profile-column"><div class="field-name">{{difference.fieldName}}</div><div class="profile-value">{{difference.theirProfile}}</div><div *ngIf="difference.isCritical" class="critical-badge">Critical difference</div></div></div></div></div></div></div></div><!-- Character Analysis Tab Content --><div *ngIf="subTab === 'character'" class="character-tab-content"><!-- Character Analysis Header --><div class="character-analysis-header"><div class="character-header-icon"><span class="icon">🧬</span></div><div class="character-header-content"><h3>Character Compatibility Analysis</h3><p class="character-subtitle">Based on personality color traits and psychological patterns</p></div></div><!-- Character Insights Grid --><div class="character-insights-grid" *ngIf="strengths?.length || risks?.length || sacrifices?.length"><!-- STRENGTHS CARD --><div class="character-insight-card strength-card" *ngIf="strengths?.length"><div class="character-card-header"><div class="character-card-icon strength-icon"><span>💪</span></div><div class="character-card-title"><h4>Character Strengths</h4><p class="card-subtitle">Positive synergies and complementary traits</p></div><div class="character-card-badge"><span class="badge-count">{{ strengths.length }}</span></div></div><div class="character-card-body"><ul class="character-insight-list"><li *ngFor="let point of strengths; let i = index" class="character-insight-item"><div class="insight-number">{{ i + 1 }}</div><div class="insight-content"><p>{{ point }}</p></div></li></ul></div><div class="character-card-footer"><span class="footer-tag">Strong Foundation</span></div></div><!-- RISKS CARD --><div class="character-insight-card risk-card" *ngIf="risks?.length"><div class="character-card-header"><div class="character-card-icon risk-icon"><span>⚠️</span></div><div class="character-card-title"><h4>Character Risks</h4><p class="card-subtitle">Potential challenges and areas of friction</p></div><div class="character-card-badge"><span class="badge-count">{{ risks.length }}</span></div></div><div class="character-card-body"><ul class="character-insight-list"><li *ngFor="let point of risks; let i = index" class="character-insight-item"><div class="insight-number">{{ i + 1 }}</div><div class="insight-content"><p>{{ point }}</p></div></li></ul></div><div class="character-card-footer"><span class="footer-tag">Manageable Challenges</span></div></div><!-- SACRIFICES CARD --><div class="character-insight-card sacrifice-card" *ngIf="sacrifices?.length"><div class="character-card-header"><div class="character-card-icon sacrifice-icon"><span>🤝</span></div><div class="character-card-title"><h4>Sacrifices Needed</h4><p class="card-subtitle">Compromises for harmonious partnership</p></div><div class="character-card-badge"><span class="badge-count">{{ sacrifices.length }}</span></div></div><div class="character-card-body"><ul class="character-insight-list"><li *ngFor="let point of sacrifices; let i = index" class="character-insight-item"><div class="insight-number">{{ i + 1 }}</div><div class="insight-content"><p>{{ point }}</p></div></li></ul></div><div class="character-card-footer"><span class="footer-tag">Growth Opportunities</span></div></div></div><!-- No Character Data --><div *ngIf="!strengths?.length && !risks?.length && !sacrifices?.length" class="no-character-data"><div class="no-data-icon">🔍</div><h4>Character Analysis Unavailable</h4><p>Character compatibility data is not available for this match. Try refreshing or selecting another profile.</p></div></div></div></ng-container><!-- Common No Data Templates --><ng-template #noExactMatches><div class="no-data-section"><div class="no-data-icon">🔍</div><p class="no-data">No common expectations found between both profiles</p></div></ng-template><ng-template #noDifferences><div class="no-data-section"><div class="no-data-icon">🎉</div><p class="no-data">No differences found - perfect match across all expectations!</p></div></ng-template></div></div></div><div class="modal-actions"><button class="modal-btn primary"[class.liked]="isLiked(selectedProfile)"(click)="toggleLike(selectedProfile)">{{ isLiked(selectedProfile) ? '❤️ Liked' : '❤️ Like' }}</button><button class="modal-btn primary" (click)="openChat(selectedProfile); closeModal()">💬 Start Chat</button><!--<button class="modal-btn secondary" (click)="toggleUserInfo()">👤 View My Profile</button>--></div></div></div><!-- EDIT PROFILE MODAL --><div class="modal" [class.show]="showEditModal" *ngIf="showEditModal"><div class="modal-content edit-modal"><span class="close" (click)="closeEditModal()">×</span><h3 class="modal-title">Edit Profile</h3><div class="form-group"><label for="editName">Name</label><input id="editName" [(ngModel)]="editName" placeholder="Enter your name" class="form-input"></div><div class="form-group"><label for="editCity">City</label><input id="editCity" [(ngModel)]="editCity" placeholder="Enter your city" class="form-input"></div><div class="form-actions"><button class="modal-btn secondary" (click)="closeEditModal()">Cancel</button><button class="modal-btn primary" (click)="saveProfile()">Save Changes</button></div></div></div><!-- CHAT WINDOW --><div class="chat-window" [class.show]="showChatWindow"><div class="chat-header"><div class="chat-user-info"><img [src]="currentChatUser?.photo_url" [alt]="currentChatUser?.name" class="chat-user-img"><div><div class="chat-user-name">{{ currentChatUser?.name }}</div><div class="chat-user-status">Online</div></div></div><button class="chat-close" (click)="closeChat()">✖</button></div><div class="chat-body" #chatBody><div *ngFor="let message of chatMessages"class="chat-msg"[class.user-msg]="message.sender === 'me'"[class.other-msg]="message.sender === 'them'"><div class="msg-content">{{ message.text }}</div><div class="timestamp">{{ message.time }}</div></div><div *ngIf="showTyping" class="typing-indicator"><div class="typing-dots"><span></span><span></span><span></span></div><span class="typing-text">Typing...</span></div></div><div class="chat-input"><input type="text"[(ngModel)]="newMessage"placeholder="Type a message..."(keyup.enter)="sendMessage()"(keypress)="typingIndicator()"class="chat-input-field"><button class="send-btn" (click)="sendMessage()"><span class="send-icon">➤</span></button></div></div><!-- USER PROFILE MODAL --><div class="modal" [class.show]="showUserProfileModal"><div class="modal-content profile-modal"><span class="close" (click)="closeUserProfileModal()">×</span><!-- User Info Header --><div class="modal-header"><div class="user-photo-container"><img [src]="userPhoto" class="modal-profile-img" alt="User Photo"></div><div class="modal-profile-info"><h2>{{ userName }}</h2><p class="modal-subtitle">📍 {{ userCity }}</p><!--<div class="profile-score">Profile Completion: {{ userProfileCompletion }}%</div>--></div></div><!-- Profile Tabs --><div class="modal-tabs"><button class="tab-btn active">📋 Profile Details</button></div><div class="modal-body"><!-- Basic Information Section --><div class="section" *ngIf="userProfileData"><h4>Basic Information</h4><div class="details-grid"><div *ngIf="userProfileData.gender" class="detail-item"><span class="detail-label">Gender</span><span class="detail-value">{{ userProfileData.gender }}</span></div><div *ngIf="userProfileData.marital_status" class="detail-item"><span class="detail-label">Marital Status</span><span class="detail-value">{{ userProfileData.marital_status }}</span></div><div *ngIf="userProfileData.date_of_birth" class="detail-item"><span class="detail-label">Date of Birth</span><span class="detail-value">{{ userProfileData.date_of_birth }}</span></div><div *ngIf="userProfileData.height" class="detail-item"><span class="detail-label">Height</span><span class="detail-value">{{ userProfileData.height }}</span></div><div *ngIf="userProfileData.skin_tone" class="detail-item"><span class="detail-label">Skin Tone</span><span class="detail-value">{{ userProfileData.skin_tone }}</span></div><div *ngIf="userProfileData.blood_group" class="detail-item"><span class="detail-label">Blood Group</span><span class="detail-value">{{ userProfileData.blood_group }}</span></div></div></div><!-- Location & Background Section --><div class="section" *ngIf="userProfileData"><h4>Location & Background</h4><div class="details-grid"><div *ngIf="userProfileData.current_city" class="detail-item"><span class="detail-label">Current City</span><span class="detail-value">{{ userProfileData.current_city }}</span></div><div *ngIf="userProfileData.country" class="detail-item"><span class="detail-label">Country</span><span class="detail-value">{{ userProfileData.country }}</span></div><div *ngIf="userProfileData.religion" class="detail-item"><span class="detail-label">Religion</span><span class="detail-value">{{ userProfileData.religion }}</span></div><div *ngIf="userProfileData.languages_spoken" class="detail-item"><span class="detail-label">Languages Spoken</span><span class="detail-value">{{ userProfileData.languages_spoken }}</span></div><div *ngIf="userProfileData.dual_citizenship" class="detail-item"><span class="detail-label">Dual Citizenship</span><span class="detail-value">{{ userProfileData.dual_citizenship }}</span></div></div></div><!-- Education & Career Section --><div class="section" *ngIf="userProfileData"><h4>Education & Career</h4><div class="details-grid"><div *ngIf="userProfileData.education_level" class="detail-item"><span class="detail-label">Education Level</span><span class="detail-value">{{ userProfileData.education_level }}</span></div><div *ngIf="userProfileData.field_of_study" class="detail-item"><span class="detail-label">Field of Study</span><span class="detail-value">{{ userProfileData.field_of_study }}</span></div><div *ngIf="userProfileData.employment_status" class="detail-item"><span class="detail-label">Employment Status</span><span class="detail-value">{{ userProfileData.employment_status }}</span></div><div *ngIf="userProfileData.job_role" class="detail-item"><span class="detail-label">Profession</span><span class="detail-value">{{ userProfileData.job_role }}</span></div><div *ngIf="userProfileData.work_experience_years" class="detail-item"><span class="detail-label">Work Experience</span><span class="detail-value">{{ userProfileData.work_experience_years }}</span></div><div *ngIf="userProfileData.career_aspirations" class="detail-item"><span class="detail-label">Career Aspirations</span><span class="detail-value">{{ userProfileData.career_aspirations }}</span></div><div *ngIf="userProfileData.income_range" class="detail-item"><span class="detail-label">Income Range</span><span class="detail-value">{{ userProfileData.income_range }}</span></div></div></div><!-- Lifestyle & Preferences Section --><div class="section" *ngIf="userProfileData"><h4>Lifestyle & Preferences</h4><div class="details-grid"><div *ngIf="userProfileData.food_preference" class="detail-item"><span class="detail-label">Food Preference</span><span class="detail-value">{{ userProfileData.food_preference }}</span></div><div *ngIf="userProfileData.smoking_habit" class="detail-item"><span class="detail-label">Smoking Habit</span><span class="detail-value">{{ userProfileData.smoking_habit }}</span></div><div *ngIf="userProfileData.alcohol_habit" class="detail-item"><span class="detail-label">Alcohol Habit</span><span class="detail-value">{{ userProfileData.alcohol_habit }}</span></div><div *ngIf="userProfileData.fitness_level" class="detail-item"><span class="detail-label">Fitness Level</span><span class="detail-value">{{ userProfileData.fitness_level }}</span></div><div *ngIf="userProfileData.hobbies_interests" class="detail-item"><span class="detail-label">Hobbies & Interests</span><span class="detail-value">{{ userProfileData.hobbies_interests }}</span></div><div *ngIf="userProfileData.travel_preference" class="detail-item"><span class="detail-label">Travel Preference</span><span class="detail-value">{{ userProfileData.travel_preference }}</span></div></div></div><!-- Relationship Preferences Section --><div class="section" *ngIf="userProfileData"><h4>Relationship Preferences</h4><div class="details-grid"><div *ngIf="userProfileData.family_type" class="detail-item"><span class="detail-label">Family Type</span><span class="detail-value">{{ userProfileData.family_type }}</span></div><div *ngIf="userProfileData.children_timeline" class="detail-item"><span class="detail-label">Children Timeline</span><span class="detail-value">{{ userProfileData.children_timeline }}</span></div><div *ngIf="userProfileData.open_to_adoption" class="detail-item"><span class="detail-label">Open to Adoption</span><span class="detail-value">{{ userProfileData.open_to_adoption }}</span></div><div *ngIf="userProfileData.relocation_willingness" class="detail-item"><span class="detail-label">Relocation Willingness</span><span class="detail-value">{{ userProfileData.relocation_willingness }}</span></div><div *ngIf="userProfileData.live_with_inlaws" class="detail-item"><span class="detail-label">Live with In-Laws</span><span class="detail-value">{{ userProfileData.live_with_inlaws }}</span></div></div></div></div><div class="modal-actions"><button class="modal-btn primary" (click)="editProfile()">✏️ Edit Profile</button><!--<button class="modal-btn secondary" (click)="closeUserProfileModal()">Close</button>--></div></div></div></div>
123456789101112131415161718192021import { ComponentFixture, TestBed } from '@angular/core/testing';import { MatchingListComponent } from './matching-list.component';describe('MatchingListComponent', () => {let component: MatchingListComponent;let fixture: ComponentFixture<MatchingListComponent>;beforeEach(() => {TestBed.configureTestingModule({imports: [MatchingListComponent]});fixture = TestBed.createComponent(MatchingListComponent);component = fixture.componentInstance;fixture.detectChanges();});it('should create', () => {expect(component).toBeTruthy();});});123456789101112131415161718192021import { ComponentFixture, TestBed } from '@angular/core/testing';import { MatchingListComponent } from './matching-list.component';describe('MatchingListComponent', () => {let component: MatchingListComponent;let fixture: ComponentFixture<MatchingListComponent>;beforeEach(() => {TestBed.configureTestingModule({imports: [MatchingListComponent]});fixture = TestBed.createComponent(MatchingListComponent);component = fixture.componentInstance;fixture.detectChanges();});it('should create', () => {expect(component).toBeTruthy();});});
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859import { Injectable } from '@angular/core';import { HttpClient, HttpParams } from '@angular/common/http';import { Observable } from 'rxjs';export interface ApiMatchItem {user_id: number;role?: string | null;name?: string;gender?: string;blue: number;green: number;yellow: number;red: number;score: number;created_at?: string | null;explanations?: string[];// Optional display fields that may not come from API but used in templatescity?: string | null;age?: number | null;job?: string | null;isOnline?: boolean; // optional presence indicator for UIphoto_url?: string; // optional photo URL for profile image}export interface ApiMatchResponse {input_user: {user_id: number;role?: string | null;blue: number;green: number;yellow: number;red: number;created_at?: string | null;};matches: ApiMatchItem[];count: number;}@Injectable({ providedIn: 'root' })export class MatchingService {private readonly base = 'http://127.0.0.1:5000'; // Flask backendconstructor(private http: HttpClient) { }getMatches(userId: number,opts?: { role?: string; limit?: number; excludeSelf?: boolean }): Observable<ApiMatchResponse> {let params = new HttpParams().set('user_id', String(userId)).set('limit', String(opts?.limit ?? 10)).set('exclude_self', (opts?.excludeSelf ?? true) ? 'yes' : 'no');// 👇 Default to "marriage" if role is not explicitly passedparams = params.set('role', opts?.role ?? 'marriage');return this.http.get<ApiMatchResponse>(`${this.base}/match`, { params });}}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859import { Injectable } from '@angular/core';import { HttpClient, HttpParams } from '@angular/common/http';import { Observable } from 'rxjs';export interface ApiMatchItem {user_id: number;role?: string | null;name?: string;gender?: string;blue: number;green: number;yellow: number;red: number;score: number;created_at?: string | null;explanations?: string[];// Optional display fields that may not come from API but used in templatescity?: string | null;age?: number | null;job?: string | null;isOnline?: boolean; // optional presence indicator for UIphoto_url?: string; // optional photo URL for profile image}export interface ApiMatchResponse {input_user: {user_id: number;role?: string | null;blue: number;green: number;yellow: number;red: number;created_at?: string | null;};matches: ApiMatchItem[];count: number;}@Injectable({ providedIn: 'root' })export class MatchingService {private readonly base = 'http://127.0.0.1:5000'; // Flask backendconstructor(private http: HttpClient) { }getMatches(userId: number,opts?: { role?: string; limit?: number; excludeSelf?: boolean }): Observable<ApiMatchResponse> {let params = new HttpParams().set('user_id', String(userId)).set('limit', String(opts?.limit ?? 10)).set('exclude_self', (opts?.excludeSelf ?? true) ? 'yes' : 'no');// 👇 Default to "marriage" if role is not explicitly passedparams = params.set('role', opts?.role ?? 'marriage');return this.http.get<ApiMatchResponse>(`${this.base}/match`, { params });}}
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182import { Injectable } from '@angular/core';import { HttpClient, HttpParams } from '@angular/common/http';import { Observable } from 'rxjs';export interface ApiMatchItem {user_id: number;role?: string | null;name?: string;gender?: string;blue: number;green: number;yellow: number;red: number;score_color?: number;score_expect?: number;final_score?: number;percentage?: number;explanations?: string[];explanation_source?: string; // ✅ added for expectation vs character}export interface ApiMatchResponse {input_user: {user_id: number;name?: string;gender?: string;role?: string | null;blue: number;green: number;yellow: number;red: number;created_at?: string | null;};matches: {[range: string]: ApiMatchItem[];};}@Injectable({ providedIn: 'root' })export class MatchingService {private baseUrl: string;constructor(private http: HttpClient) {// Initialize baseUrl based on the current environmentif (typeof window !== 'undefined' && window.location.hostname.endsWith('hf.space')) {this.baseUrl = 'https://pykara-py-match-backend.hf.space/api';} else {this.baseUrl = 'http://localhost:5000/api';}}getMatches(userId: number,opts?: { role?: string; limit?: number; excludeSelf?: boolean }): Observable<ApiMatchResponse> {let params = new HttpParams().set('user_id', String(userId)).set('limit', String(opts?.limit ?? 10)).set('exclude_self', (opts?.excludeSelf ?? true) ? 'yes' : 'no').set('role', opts?.role ?? 'marriage');return this.http.get<ApiMatchResponse>(`${this.baseUrl}/match`, { params });}getCharacterwiseMatches(userId: number,options: { role?: string; limit?: number; excludeSelf?: boolean } = {}): Observable<ApiMatchResponse> {let params = new HttpParams().set('user_id', String(userId)).set('role', options.role ?? 'marriage').set('limit', String(options.limit ?? 10)).set('exclude_self', (options.excludeSelf ?? true) ? 'yes' : 'no').set('characterwise', 'true'); // ✅ activates LLM logic in backendreturn this.http.get<ApiMatchResponse>(`${this.baseUrl}/match`, { params });}getMarriageProfile(userId: number): Observable<any> {return this.http.get<any>(`${this.baseUrl}/marriage-profile/${userId}`);}}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115import { Injectable } from '@angular/core';import { HttpClient, HttpParams } from '@angular/common/http';import { Observable } from 'rxjs';export interface ApiMatchItem {user_id: number;role?: string | null;name?: string;gender?: string;blue: number;green: number;yellow: number;red: number;score_color?: number;score_expect?: number;final_score?: number;percentage?: number;explanations?: string[];explanation_source?: string; // ✅ added for expectation vs character}export interface ApiMatchResponse {input_user: {user_id: number;name?: string;gender?: string;role?: string | null;blue: number;green: number;yellow: number;red: number;created_at?: string | null;};matches: {[range: string]: ApiMatchItem[];};}@Injectable({ providedIn: 'root' })export class MatchingService {private baseUrl: string;constructor(private http: HttpClient) {// Initialize baseUrl based on the current environmentif (typeof window !== 'undefined' && window.location.hostname.endsWith('hf.space')) {this.baseUrl = 'https://pykara-py-match-backend.hf.space/api';} else {this.baseUrl = 'http://localhost:5000/api';}}getMatches(userId: number,opts?: { role?: string; limit?: number; excludeSelf?: boolean; mode?: string }): Observable<ApiMatchResponse> {let params = new HttpParams().set('user_id', String(userId)).set('limit', String(opts?.limit ?? 10)).set('exclude_self', (opts?.excludeSelf ?? true) ? 'yes' : 'no').set('role', opts?.role ?? 'marriage');// ✅ Add mode parameter if providedif (opts?.mode) {params = params.set('mode', opts.mode);}return this.http.get<ApiMatchResponse>(`${this.baseUrl}/match`, { params });}getCharacterwiseMatches(userId: number,options: { role?: string; limit?: number; excludeSelf?: boolean; mode?: string } = {}): Observable<ApiMatchResponse> {let params = new HttpParams().set('user_id', String(userId)).set('role', options.role ?? 'marriage').set('limit', String(options.limit ?? 10)).set('exclude_self', (options.excludeSelf ?? true) ? 'yes' : 'no').set('characterwise', 'true'); // ✅ activates LLM logic in backend// ✅ Add mode parameter if providedif (options?.mode) {params = params.set('mode', options.mode);}return this.http.get<ApiMatchResponse>(`${this.baseUrl}/match`, { params });}getMarriageProfile(userId: number): Observable<any> {return this.http.get<any>(`${this.baseUrl}/marriage-profile/${userId}`);}// Add this method to handle explanation requestsgetCompatibilityExplanation(userId: number,targetUserId: number,mode: string): Observable<{ explanations: string[]; source?: string }> {return this.http.get<{ explanations: string[]; source?: string }>(`${this.baseUrl}/compatibility-explanation`,{params: {user_id: String(userId),target_user_id: String(targetUserId),mode: mode}});}checkMandatoryFields(userId: number): Observable<any> {console.log('🔍 Checking mandatory fields for matching analysis:', userId);return this.http.get(`${this.baseUrl}/check-mandatory-fields/${userId}`);}}
123456789101112131415161718192021222324252627282930313233343536373839404142import { Injectable } from '@angular/core';import { HttpClient } from '@angular/common/http';import { environment } from '../../environments/environment';import { Observable } from 'rxjs';export interface QAItem {label: string;input_type: 'text' | 'date' | 'select' | 'radio' | 'multiselect';options?: string[];column_key: string;category: string;required?: boolean;placeholder?: string;}@Injectable({ providedIn: 'root' })export class QuestionAnswerService {private baseUrl: string;constructor(private http: HttpClient) {// Initialize baseUrl based on the current hostnamethis.baseUrl = typeof location !== 'undefined' && location.hostname.endsWith('hf.space')? 'https://pykara-py-match-backend.hf.space/api/questions': 'http://127.0.0.1:5000/api/questions';}// Assign role to userassignRole(payload: { user_id: number; role_name: string; assigned_at?: string }): Observable<any> {return this.http.post<any>(`${this.baseUrl}/select-role`, payload);}// Fetch questions by role (returns label/options/input_type/column_key/category)getQuestions(role: string): Observable<QAItem[]> {return this.http.get<QAItem[]>(`${this.baseUrl}/${role}`);}submitAnswers(role: string, userId: number, fields: Record<string, any>): Observable<any> {const payload = { user_id: userId, ...fields };console.log(payload);return this.http.post(`${this.baseUrl}/submit-answers/${role}`, payload);}}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152import { Injectable } from '@angular/core';import { HttpClient } from '@angular/common/http';import { environment } from '../../environments/environment';import { Observable } from 'rxjs';export interface QAItem {label: string;input_type: 'text' | 'date' | 'select' | 'radio' | 'multiselect' | 'checkbox' | 'textarea' | 'number';options?: string[];column_key: string;category: string;required?: boolean;placeholder?: string;}export interface CategoryMeta {key: string;title: string;}@Injectable({ providedIn: 'root' })export class QuestionAnswerService {private baseUrl: string;constructor(private http: HttpClient) {this.baseUrl = typeof location !== 'undefined' && location.hostname.endsWith('hf.space')? 'https://pykara-py-match-backend.hf.space/api/questions': 'http://127.0.0.1:5000/api/questions';}getQuestions(role: string): Observable<QAItem[]> {return this.http.get<QAItem[]>(`${this.baseUrl}/${role}`);}getCategories(role: string): Observable<CategoryMeta[]> {return this.http.get<CategoryMeta[]>(`${this.baseUrl}/categories/${role}`);}getExistingProfile(role: string, userId: number): Observable<any> {return this.http.get(`${this.baseUrl}/existing-profile/${role}/${userId}`);}submitAnswers(role: string, userId: number, fields: Record<string, any>): Observable<any> {const payload = { user_id: userId, ...fields };return this.http.post(`${this.baseUrl}/submit-answers/${role}`, payload);}updateAnswers(role: string, userId: number, fields: Record<string, any>): Observable<any> {const payload = { user_id: userId, ...fields };return this.http.put(`${this.baseUrl}/update-answers/${role}`, payload);}}
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693/* Professional Styles for Question Answer Component - Updated to match intro theme */.professional-page {min-height: 100vh;background: #f8fafc;}/* Loader */.loader-overlay {position: fixed;inset: 0;background: rgba(12, 18, 28, 0.7);display: grid;place-items: center;z-index: 9999;backdrop-filter: blur(5px);}.loader-container {text-align: center;}.loader-gif {width: 50%; height: 50%;}/* Hero Section */.hero {position: relative;width: 100%;min-height: 70vh;display: flex;align-items: center;}.hero .content {width: 100%;padding: 80px 5%;color: white;}.info-card {display: flex;gap: 2rem;margin: 0 auto;background: rgb(255 255 255 / 52%);border-radius: 24px;padding: 3rem;border: 1px solid rgba(255, 255, 255, 0.2);align-items: center;width: fit-content;position: relative;top: 50%;transform: translatey(-50%);right: 24vw;}.info-card__icon {flex: 0 0 100px;width: 100px;height: 100px;border-radius: 50%;background: linear-gradient(135deg, #f3a54c, #ffcb7a);display: flex;align-items: center;justify-content: center;color: #111;font-size: 2.5rem;box-shadow: 0 10px 30px rgba(243, 165, 76, 0.3);}.info-card__content {flex: 1;}.info-card__title {margin: 0 0 1rem 0;font-size: 2.5rem;font-weight: 700;color: #1a202c;display: flex;align-items: center;gap: 0.75rem;}.info-card__title i {color: #f3a54c;}.info-card__text {margin: 0 0 2rem 0;font-size: 1.1rem;line-height: 1.6;color: black;max-width: 600px;font-weight: 500;}.info-card__actions {display: flex;gap: 1rem;flex-wrap: wrap;}/* Buttons */.btn {display: inline-flex;align-items: center;gap: 0.5rem;padding: 0.875rem 1.75rem;border: none;border-radius: 12px;font-weight: 600;font-size: 0.95rem;text-decoration: none;cursor: pointer;transition: all 0.3s ease;font-family: inherit;}.btn-primary {background: linear-gradient(135deg, #f3a54c, #ffcb7a);color: #111;box-shadow: 0 4px 15px rgba(243, 165, 76, 0.3);}.btn-primary:hover {transform: translateY(-2px);box-shadow: 0 8px 25px rgba(243, 165, 76, 0.4);}.btn-secondary {background: white;color: #f3a54c;border: 2px solid #f3a54c;}.btn-secondary:hover {background: #f3a54c;color: white;}/* Questions Container */.questions-container {background: white;padding: 5rem 0 1vw 0;}.container {width: 80%;margin: 0 auto;/* padding: 0 2rem;*/}/* Category Navigation */.category-nav-wrapper {margin-bottom: 3rem;}.category-nav {display: flex;gap: 1rem;flex-wrap: wrap;justify-content: center;}.nav-chip {display: inline-flex;align-items: center;gap: 0.75rem;background: white;padding: 1rem 1.5rem;border-radius: 12px;font-weight: 600;color: #4a5568;text-decoration: none;border: 2px solid #e2e8f0;cursor: pointer;transition: all 0.3s ease;font-family: inherit;}.nav-chip:hover {border-color: #f3a54c;transform: translateY(-2px);box-shadow: 0 4px 12px rgba(243, 165, 76, 0.15);}.nav-chip.active {background: #f3a54c;color: white;border-color: #f3a54c;}.nav-chip.completed {background: #00d68f;color: #fff;border-color: #00d68f;}.nav-chip.completed i {color: #fff;}.nav-chip i {font-size: 1.1rem;}.chip-progress {background: rgba(255, 255, 255, 0.2);padding: 0.25rem 0.75rem;border-radius: 20px;font-size: 0.85rem;font-weight: 600;}/* Category Content */.category-content {background: white;border-radius: 20px;box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;overflow: hidden;border: 1px solid #e3e5e8;}.category-section {padding: 2vw 2vw 0.5vw 2vw;}.category-header {display: flex;gap: 3rem;margin-bottom: 3rem;align-items: center;}.category-image {flex: 0 0 300px;border-radius: 16px;overflow: hidden;box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);position: relative;}.category-image::before {content: "";position: absolute;inset: 0;background: linear-gradient(135deg, rgba(243, 165, 76, 0.1), rgba(0, 255, 136, 0.1));z-index: 1;}.category-image img {width: 100%;height: 200px;object-fit: cover;position: relative;z-index: 0;}.category-info {flex: 1;}.title-section {margin-bottom: 2rem;}.title-section h2 {margin: 0 0 1rem 0;font-size: 2rem;font-weight: 700;color: #1a202c;display: flex;align-items: center;gap: 0.75rem;}.title-section h2 i {color: #f3a54c;}.progress-indicator {display: flex;align-items: center;gap: 1rem;}.progress-bar {flex: 1;height: 8px;background: #e2e8f0;border-radius: 4px;overflow: hidden;}.progress-fill {height: 100%;background: linear-gradient(135deg, #f3a54c, #ffcb7a);border-radius: 4px;transition: width 0.4s ease;}.progress-indicator small {font-size: 0.9rem;font-weight: 600;color: #4a5568;min-width: 80px;}/* Questions Grid - Compact 3-column layout */.questions-grid {display: grid;grid-template-columns: repeat(4, 1fr);gap: 1.5rem;}.checkbox-options{overflow-y:scroll;height:3vh;}.question-card {background: white;border: 2px solid #f7fafc;border-radius: 16px;padding: 0.2vw;transition: all 0.3s ease;position: relative;box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);width: 100%;min-width: 0;box-sizing: border-box;height: auto;color: #1a202c;display: flex;flex-direction: column;justify-content: stretch;}.question-card:hover {border-color: #f3a54c;transform: translateY(-2px);box-shadow: 0 8px 25px rgba(243, 165, 76, 0.15);}.question-card.answered {border-color: #48bb78;background: #f0fff4;}.question-card.error {border-color: #f56565;animation: shake 0.5s ease-in-out;}.question-card.required::after {content: 'Required';position: absolute;top: 1rem;right: 1rem;background: #fed7d7;color: #c53030;padding: 0.25rem 0.75rem;border-radius: 20px;font-size: 0.75rem;font-weight: 700;}.question-card label {display: block;margin-bottom: 0.75rem;font-weight: 600;color: #2d3748;font-size: 0.95rem;line-height: 1.4;}.required-indicator {color: #f56565;}.question-card select,.question-card input[type="text"],.question-card input[type="date"] {width: 100%;padding: 0.875rem 1rem;border: 2px solid #e2e8f0;border-radius: 8px;font-size: 0.95rem;transition: all 0.3s ease;background: white;font-family: inherit;box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);}.question-card select:focus,.question-card input[type="text"]:focus,.question-card input[type="date"]:focus {outline: none;border-color: #f3a54c;box-shadow: 0 0 0 3px rgba(243, 165, 76, 0.1);}.radio-options {display: flex;/*flex-direction: column;*/gap: 0.75rem;}.radio-option {display: flex;align-items: center;gap: 0.75rem;padding: 0.75rem;background: #f7fafc;border-radius: 8px;cursor: pointer;transition: background 0.3s ease;}.radio-option:hover {background: #edf2f7;}.radio-option input {margin: 0;}.hint {font-size: 0.85rem;color: #718096;margin-top: 0.5rem;line-height: 1.4;}.error-message {font-size: 0.85rem;color: #e53e3e;font-weight: 600;margin-top: 0.5rem;}/* Submit Section */.submit-section {text-align: center;padding: 1vw;border-top: 1px solid #e2e8f0;/* margin-top: 2rem;*/}.submit-btn {padding: 1rem 2.5rem;font-size: 1.1rem;background: linear-gradient(135deg, #f3a54c, #ffcb7a);color: #111;border: none;border-radius: 12px;font-weight: 600;cursor: pointer;transition: all 0.3s ease;box-shadow: 0 4px 15px rgba(243, 165, 76, 0.3);}.submit-btn:hover {transform: translateY(-2px);box-shadow: 0 8px 25px rgba(243, 165, 76, 0.4);}.submit-btn:disabled {opacity: 0.6;cursor: not-allowed;transform: none !important;}.validation-message {margin-top: 1rem;color: #e53e3e;font-weight: 600;}/* Empty State */.empty-state {padding: 4rem 2rem;text-align: center;}.empty-state-text {font-size: 1.1rem;color: #718096;}/* Modal */.modal-backdrop {position: fixed;top: 0;left: 0;width: 100%;height: 100%;background: rgba(0, 0, 0, 0.6);display: flex;justify-content: center;align-items: center;z-index: 1000;padding: 2rem;}.modal {background: white;border-radius: 20px;padding: 3rem;max-width: 500px;width: 100%;text-align: center;box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);border: 1px solid #e3e5e8;}.success-title {color: #48bb78;font-size: 1.5rem;margin-bottom: 1rem;display: flex;align-items: center;justify-content: center;gap: 0.5rem;}/* Tip Card */.tip-card {background: linear-gradient(135deg, #fed7aa, #fdba74);border-radius: 16px;padding: 1.5rem;margin: 2rem 0;text-align: left;}.tip-content {display: flex;align-items: center;gap: 1rem;}.tip-icon {width: 50px;height: 50px;flex-shrink: 0;}.tip-text {flex: 1;}.tip-message {margin: 0;color: #7c2d12;font-weight: 500;line-height: 1.5;}/* Modal Actions */.modal-actions {display: flex;gap: 1rem;justify-content: center;margin-bottom: 2rem;}/* Countdown Timer */.countdown-timer {margin-top: 2rem;}.timer-bar {width: 100%;height: 6px;background: #e2e8f0;border-radius: 3px;overflow: hidden;margin-bottom: 0.5rem;}.timer-fill {height: 100%;background: linear-gradient(135deg, #48bb78, #38a169);border-radius: 3px;transition: width 0.1s linear;}.countdown-timer small {color: #718096;font-size: 0.85rem;}/* Animations */@keyframes shake {0%, 100% {transform: translateX(0);}25% {transform: translateX(-5px);}75% {transform: translateX(5px);}}/* Responsive Design */@media (max-width: 1024px) {.questions-grid {grid-template-columns: repeat(2, 1fr);}}@media (max-width: 768px) {.hero .content {padding: 60px 2rem;}.info-card {flex-direction: column;text-align: center;padding: 2rem;}.info-card__icon {width: 80px;height: 80px;font-size: 2rem;}.info-card__title {font-size: 2rem;justify-content: center;}.info-card__actions {justify-content: center;}.category-header {flex-direction: column;gap: 2rem;}.category-image {flex: none;width: 100%;}.questions-grid {grid-template-columns: 1fr;}.category-nav {justify-content: flex-start;overflow-x: auto;padding-bottom: 1rem;}.nav-chip {flex-shrink: 0;}.modal-actions {flex-direction: column;}}@media (max-width: 480px) {.container {padding: 0 1rem;}.category-section {padding: 2rem 1rem;}.modal {padding: 2rem 1.5rem;}.info-card__title {font-size: 1.75rem;}.questions-grid {gap: 1rem;}.question-card {padding: 1.25rem;}}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716:root {--primary-color: #3AB8A9;--secondary-color: #D4A755;--accent-color: #2DA89A;--light-color: #f8fafc;--success-color: #00cc6a;--warning-color: #e74c3c;--text-color: #2c3e50;--border-color: #e9ecef;--border-radius: 12px;--box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);}* {box-sizing: border-box;}.professional-page {min-height: 100vh;background: radial-gradient(circle at 20% 30%, rgba(58, 184, 169, .08), transparent 60%), radial-gradient(circle at 75% 55%, rgba(212, 167, 85, .05), transparent 55%), linear-gradient(135deg, #f8fafc 0%, #eef2f6 100%);font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;color: var(--text-color);line-height: 1.7;padding: 20px 15px;display: flex;justify-content: center;top: 4vw !important;position: relative;}.container {max-width: 1300px;width: 100%;background: #ffffff;border-radius: 20px;box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);overflow: hidden;animation: fadeInUp 0.8s ease;border: 1px solid rgba(58, 184, 169, 0.1);display: flex;flex-direction: column;max-height: calc(100vh - 90px);}@keyframes fadeInUp {from {opacity: 0;transform: translateY(40px);}to {opacity: 1;transform: translateY(0);}}.header {background: linear-gradient(135deg, #3AB8A9 0%, #5EC8BA 100%);color: #0D1B2A;padding: 25px 30px;text-align: center;position: sticky;top: 0;z-index: 100;width: 100%;overflow: hidden;}.header h1 {font-size: 2.2rem;margin-bottom: 8px;text-transform: uppercase;color: #0D1B2A;font-weight: 800;text-shadow: 2px 2px 8px rgba(0,0,0,0.1);position: relative;letter-spacing: 1.5px;margin-top: 0 !important;}.header p {opacity: 0.9;margin: 0;color: #0D1B2A;font-weight: 600;font-size: 1.1rem;position: relative;letter-spacing: 0.5px;}.progress-section {padding: 20px 25px;background: rgba(255, 255, 255, 0.3);backdrop-filter: blur(10px);border-radius: 12px;margin: 15px 30px;}.progress-bar {display: flex;justify-content: space-between;position: relative;margin: 0;padding: 0 20px;}.progress-bar::before {content: '';position: absolute;top: 50%;left: 50px;right: 50px;transform: translateY(-50%);height: 6px;background: rgba(255, 255, 255, 0.5);z-index: 1;border-radius: 3px;}.progress-bar-line {position: absolute;top: 50%;left: 50px;right: 50px;transform: translateY(-50%);height: 6px;width: calc(100% - 100px);background: linear-gradient(90deg, #3AB8A9 0%, #D4A755 100%);z-index: 2;transition: var(--transition);border-radius: 3px;transform-origin: left;}.step {width: 50px;height: 50px;border-radius: 50%;background: rgba(255, 255, 255, 0.8);display: flex;justify-content: center;align-items: center;position: relative;z-index: 3;transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);font-weight: 800;cursor: pointer;border: 4px solid #fff;box-shadow: 0 6px 20px rgba(58, 184, 169, 0.3);}.step:hover {transform: scale(1.15);box-shadow: 0 8px 25px rgba(58, 184, 169, 0.4);}.step.active {background: linear-gradient(135deg, #3AB8A9 0%, #5EC8BA 100%);color: #0D1B2A;transform: scale(1.2);box-shadow: 0 10px 30px rgba(58, 184, 169, 0.4);border-color: #ffffff;}.step.completed {background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);color: #111;border: 4px solid #fff;box-shadow: 0 10px 30px rgba(0, 255, 136, 0.4);}.step.completed.active {background: linear-gradient(135deg, #3AB8A9 0%, #5EC8BA 100%);color: #0D1B2A;border: 4px solid white;box-shadow: 0 10px 30px rgba(58, 184, 169, 0.4);}.step-label {position: absolute;top: 55px;font-size: 0.8rem;text-align: center;width: 80px;left: -15px;color: #2c3e50;font-weight: 700;text-transform: uppercase;letter-spacing: 1px;}.step-icon {font-size: 1.1rem;color: #2c3e50;transition: all 0.3s ease;}.step.active .step-icon,.step.completed .step-icon {color: #0D1B2A;}.content-area {display: flex;flex-direction: column;flex: 1;overflow: hidden;}.category-header {display: flex;justify-content: space-between;align-items: center;margin-bottom: 0;padding: 20px 30px;background: linear-gradient(135deg, #f0f9f8 0%, #e8f6f5 100%);border-bottom: 2px solid rgba(58, 184, 169, 0.2);}.category-info {display: flex;align-items: center;gap: 15px;}.category-header-icon {font-size: 2rem;color: #3AB8A9;}.category-details h3 {color: #2c3e50;margin-bottom: 5px;font-size: 1.3rem;font-weight: 800;}.category-details p {color: #5a6c7d;margin: 0;font-weight: 600;font-size: 0.9rem;}.category-progress-indicator {text-align: right;}.progress-bar-mini {width: 120px;height: 6px;background: rgba(58, 184, 169, 0.2);border-radius: 3px;overflow: hidden;margin-bottom: 6px;}.progress-fill {height: 100%;background: linear-gradient(90deg, #3AB8A9 0%, #D4A755 100%);border-radius: 3px;transition: width 0.5s ease;}.progress-text {font-size: 0.8rem;font-weight: 600;color: #2c3e50;}.completion-status {display: flex;align-items: center;gap: 10px;padding: 12px 18px;border-radius: 8px;background: linear-gradient(135deg, #e8f6f5 0%, #d4f0ed 100%);border: 2px solid #3AB8A9;color: #2c3e50;font-weight: 700;}.completion-status.complete {background: linear-gradient(135deg, #d1f7e1 0%, #b8f5d0 100%);border-color: #00ff88;color: #2c3e50;}.status-icon {width: 30px;height: 30px;border-radius: 50%;display: flex;align-items: center;justify-content: center;background: linear-gradient(135deg, #3AB8A9 0%, #2DA89A 100%);font-weight: 800;font-size: 1rem;box-shadow: 0 4px 12px rgba(58, 184, 169, 0.3);color: #fff;}.completion-status.complete .status-icon {background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);color: #111;}.status-text {font-weight: 700;font-size: 0.9rem;color: #2c3e50;}.form-container {padding: 20px 30px;flex: 1;display: flex;flex-direction: column;overflow: hidden;background: #ffffff;min-height: 0;}.form-container .tab-content::-webkit-scrollbar {width: 8px;}.form-container .tab-content::-webkit-scrollbar-track {background: #f1f1f1;border-radius: 4px;margin: 4px 0;}.form-container .tab-content::-webkit-scrollbar-thumb {background: linear-gradient(135deg, #3AB8A9 0%, #D4A755 100%);border-radius: 4px;border: 2px solid #f1f1f1;}.form-container .tab-content::-webkit-scrollbar-thumb:hover {background: linear-gradient(135deg, #2DA89A 0%, #3AB8A9 100%);}.form-container .tab-content {scrollbar-width: thin;scrollbar-color: #3AB8A9 #f1f1f1;}.form-container::-webkit-scrollbar,.tab-content::-webkit-scrollbar {width: 0;display: none;}.form-container,.tab-content {scrollbar-width: none;-ms-overflow-style: none;}.tab {display: none;animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);height: 100%;flex-direction: column;min-height: 0;}@keyframes slideInUp {from {opacity: 0;transform: translateY(30px);}to {opacity: 1;transform: translateY(0);}}.tab.active {display: flex;}.tab-content {flex: 1;overflow-y: auto;overflow-x: hidden;padding-bottom: 20px;min-height: 0;}.tab-footer {margin-top: auto;padding-top: 20px;border-top: 2px solid rgba(58, 184, 169, 0.1);background: #ffffff;position: sticky;bottom: 0;z-index: 100;flex-shrink: 0;}.form-grid {display: grid;grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));gap: 20px;min-height: 0;}.form-group {margin-bottom: 0;padding: 20px;border: 2px solid #00000054;border-radius: 12px;background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);display: flex;flex-direction: column;min-height: 120px;box-shadow: 0 6px 20px rgba(58, 184, 169, 0.1);position: relative;overflow: visible !important;z-index: 1;}.form-group::before {content: '';position: absolute;top: 0;left: 0;right: 0;height: 4px;background: linear-gradient(90deg, #3AB8A9 0%, #D4A755 100%);transform: scaleX(0);transition: transform 0.4s ease;border-radius: 12px 12px 0 0;}.form-group:hover::before {transform: scaleX(1);}.form-group:hover {border-color: #3AB8A9;z-index: 2;box-shadow: 0 10px 30px rgba(58, 184, 169, 0.15);}.form-group label {display: block;font-weight: 700;color: #2c3e50;font-size: 0.9rem;font-family: 'Segoe UI', 'Roboto', sans-serif;letter-spacing: 0.5px;}.form-control {width: 100%;padding: 14px 16px;border: 2px solid rgb(58, 184, 169, 0.26);border-radius: 10px;font-size: 0.9rem;transition: all 0.3s ease;background: #ffffff;font-weight: 600;font-family: 'Segoe UI', 'Roboto', sans-serif;color: #2c3e50;box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);height: fit-content;}.form-control::placeholder {color: #95a5a6;font-weight: 500;}.form-control:focus {outline: none;border-color: #3AB8A9;background-color: #f0f9f8;box-shadow: 0 0 0 3px rgba(58, 184, 169, 0.1);}select.form-control {appearance: none;background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233AB8A9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");background-repeat: no-repeat;background-position: right 16px center;background-size: 16px;padding-right: 45px;}.checkbox-group,.radio-group {display: flex;flex-direction: row;flex-wrap: wrap;gap: 10px;}.multiselect-group {display: grid;grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));gap: 10px;max-height: 150px;overflow-y: auto;padding: 15px;border: 2px solid #e9ecef;border-radius: 10px;background: #ffffff;box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05);}.checkbox-option,.radio-option {display: flex;align-items: center;gap: 8px;border-radius: 8px;transition: all 0.3s ease;cursor: pointer;border: 1px solid transparent;padding: 8px 12px;}.checkbox-option:hover,.radio-option:hover {background: linear-gradient(135deg, #f0f9f8 0%, #e8f6f5 100%);border-color: #3AB8A9;}.checkbox-input,.radio-input {width: 18px;height: 18px;cursor: pointer;accent-color: #3AB8A9;transform: scale(1.05);}.checkbox-label,.radio-label {cursor: pointer;font-weight: 600;margin: 0;font-family: 'Segoe UI', 'Roboto', sans-serif;color: #2c3e50;font-size: 0.9rem;}.checkbox-single {display: flex;align-items: center;gap: 12px;padding: 12px 0;}.field-error {color: #e74c3c;font-size: 0.85rem;margin-top: 8px;font-weight: 600;display: flex;align-items: center;gap: 6px;background: rgba(231, 76, 60, 0.1);padding: 8px 12px;border-radius: 6px;border-left: 3px solid #e74c3c;}.field-error::before {content: '⚠';font-size: 1rem;}.required-asterisk {color: #e74c3c;font-weight: 800;}.form-group.required label::after {content: " *";color: #e74c3c;}.form-group.invalid {border-color: #e74c3c;background: linear-gradient(135deg, #fdf2f2 0%, #fce4e4 100%);animation: shake 0.5s cubic-bezier(0.4, 0, 0.2, 1);}@keyframes shake {0%, 100% {transform: translateX(0);}25% {transform: translateX(-6px);}75% {transform: translateX(6px);}}.form-group.invalid label {color: #e74c3c;}.form-group.invalid .form-control {border-color: #e74c3c;background: #fff5f5;}.button-group {display: flex;justify-content: space-between;gap: 15px;align-items: center;}.btn {padding: 14px 24px;border: none;border-radius: 10px;font-size: 0.9rem;font-weight: 700;cursor: pointer;transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);display: flex;align-items: center;gap: 10px;font-family: 'Segoe UI', 'Roboto', sans-serif;text-transform: uppercase;letter-spacing: 1px;box-shadow: 0 6px 20px rgba(58, 184, 169, 0.2);position: relative;overflow: hidden;}.btn::before {content: '';position: absolute;top: 0;left: -100%;width: 100%;height: 100%;background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);transition: left 0.5s ease;}.btn:hover::before {left: 100%;}.btn:disabled {opacity: 0.6;cursor: not-allowed;transform: none !important;box-shadow: none !important;}.btn-prev {background: linear-gradient(135deg, #6c757d 0%, #495057 100%);color: #ffffff;}.btn-prev:hover {background: linear-gradient(135deg, #495057 0%, #343a40 100%);transform: translateY(-3px);box-shadow: 0 10px 25px rgba(108, 117, 125, 0.4);}.btn-next {background: linear-gradient(135deg, #3AB8A9 0%, #5EC8BA 100%);color: #0D1B2A;}.btn-next:hover {background: linear-gradient(135deg, #2DA89A 0%, #3AB8A9 100%);transform: translateY(-3px);box-shadow: 0 10px 25px rgba(58, 184, 169, 0.4);}.btn-submit {background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);color: #111;border: 2px solid #00cc6a;}.btn-submit:hover:not(:disabled) {background: linear-gradient(135deg, #00cc6a 0%, #00b359 100%);transform: translateY(-3px);box-shadow: 0 10px 25px rgba(0, 204, 106, 0.4);}.btn-secondary {background: linear-gradient(135deg, #6c757d 0%, #495057 100%);color: #ffffff;padding: 10px 16px;font-size: 0.8rem;}.btn-secondary:hover {background: linear-gradient(135deg, #495057 0%, #343a40 100%);transform: translateY(-2px);box-shadow: 0 6px 15px rgba(108, 117, 125, 0.4);}.btn-primary {background: linear-gradient(135deg, #3AB8A9 0%, #5EC8BA 100%);color: #0D1B2A;}.btn-primary:hover {background: linear-gradient(135deg, #2DA89A 0%, #3AB8A9 100%);transform: translateY(-3px);box-shadow: 0 10px 25px rgba(58, 184, 169, 0.4);}/* Review Tab Styles */.review-tab .tab-content {display: flex;flex-direction: column;overflow: hidden;min-height: 0;}.review-section {flex: 1;display: flex;flex-direction: column;overflow: hidden;min-height: 0;}.review-tab-content {display: flex;gap: 30px;height: 100%;min-height: 400px;flex: 1;overflow: hidden;}.review-sidebar {flex: 0 0 250px;background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);border-radius: 12px;padding: 20px;box-shadow: 0 6px 20px rgba(58, 184, 169, 0.1);border: 2px solid rgba(58, 184, 169, 0.2);overflow-y: auto;}.review-category-tabs {display: flex;flex-direction: column;gap: 10px;}.review-category-tab {display: flex;justify-content: space-between;align-items: center;padding: 15px 18px;border-radius: 10px;cursor: pointer;transition: all 0.3s ease;background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);border: 2px solid rgba(58, 184, 169, 0.2);font-weight: 600;color: #2c3e50;}.review-category-tab:hover {background: linear-gradient(135deg, #f0f9f8 0%, #e8f6f5 100%);border-color: #3AB8A9;transform: translateX(5px);}.review-category-tab.active {background: linear-gradient(135deg, #3AB8A9 0%, #5EC8BA 100%);color: #0D1B2A;border-color: #3AB8A9;box-shadow: 0 6px 15px rgba(58, 184, 169, 0.4);}.category-name {font-weight: 700;font-size: 0.9rem;}.category-progress {font-size: 0.8rem;font-weight: 700;background: rgba(255, 255, 255, 0.3);padding: 4px 8px;border-radius: 6px;color: #0D1B2A;}.review-category-tab.active .category-progress {background: rgba(255, 255, 255, 0.4);color: #0D1B2A;}.review-content {flex: 1;background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);border-radius: 12px;padding: 25px;box-shadow: 0 6px 20px rgba(58, 184, 169, 0.1);border: 2px solid rgba(58, 184, 169, 0.2);overflow-y: auto;}.review-category-header {display: flex;justify-content: space-between;align-items: center;margin-bottom: 25px;padding-bottom: 15px;border-bottom: 2px solid rgba(58, 184, 169, 0.2);}.review-category-title {color: #2c3e50;font-weight: 800;font-size: 1.4rem;margin: 0;}.review-category-stats {display: flex;align-items: center;gap: 15px;font-weight: 700;color: #2c3e50;}.review-answers {display: flex;flex-direction: column;gap: 15px;}.review-answer-item {display: flex;justify-content: space-between;align-items: flex-start;padding: 18px 20px;border-radius: 10px;background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);border: 2px solid rgba(58, 184, 169, 0.1);transition: all 0.3s ease;}.review-answer-item:hover {border-color: #3AB8A9;box-shadow: 0 4px 12px rgba(58, 184, 169, 0.1);}.review-answer-label {font-weight: 700;color: #2c3e50;flex: 0 0 40%;font-size: 0.9rem;}.review-answer-value {flex: 1;font-weight: 600;color: #5a6c7d;text-align: right;font-size: 0.9rem;}.review-answer-value.missing {color: #e74c3c;font-style: italic;}.review-empty-state {display: flex;align-items: center;justify-content: center;height: 100%;min-height: 300px;}/* Multi-select Dropdown with Checkboxes */.multiselect-dropdown-checkbox {position: relative;width: 100%;z-index: 10;}.dropdown-toggle {width: 100%;padding: 14px 16px;border: 2px solid #e9ecef;border-radius: 10px;background: #ffffff;font-size: 0.9rem;font-weight: 600;color: #2c3e50;cursor: pointer;transition: all 0.3s ease;display: flex;justify-content: space-between;align-items: center;box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);}.dropdown-toggle:hover {border-color: #3AB8A9;background-color: #f0f9f8;}.dropdown-toggle.dropdown-open {border-color: #3AB8A9;background-color: #f0f9f8;border-bottom-left-radius: 0;border-bottom-right-radius: 0;}.selected-text {flex: 1;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;}.dropdown-arrow {font-size: 0.8rem;color: #3AB8A9;transition: transform 0.3s ease;}.dropdown-toggle.dropdown-open .dropdown-arrow {transform: rotate(180deg);color: #3AB8A9;}.dropdown-options {position: absolute;top: 100%;left: 0;right: 0;background: #ffffff;border: 2px solid #3AB8A9;border-top: none;border-radius: 0 0 10px 10px;max-height: 0;overflow: hidden;transition: max-height 0.3s ease;z-index: 1000;box-shadow: 0 8px 25px rgba(58, 184, 169, 0.15);opacity: 0;visibility: hidden;}.dropdown-options.show {max-height: 200px;border-top: 1px solid #e9ecef;opacity: 1;visibility: visible;}.dropdown-options-container {max-height: 200px;overflow-y: auto;padding: 10px;}.dropdown-options-container::-webkit-scrollbar {width: 6px;}.dropdown-options-container::-webkit-scrollbar-track {background: #f1f1f1;border-radius: 3px;}.dropdown-options-container::-webkit-scrollbar-thumb {background: linear-gradient(135deg, #3AB8A9 0%, #D4A755 100%);border-radius: 3px;}.dropdown-options-container::-webkit-scrollbar-thumb:hover {background: linear-gradient(135deg, #2DA89A 0%, #3AB8A9 100%);}.dropdown-option {display: flex;align-items: center;gap: 12px;padding: 10px 12px;border-radius: 8px;transition: all 0.2s ease;cursor: pointer;}.dropdown-option:hover {background: linear-gradient(135deg, #f0f9f8 0%, #e8f6f5 100%);}.dropdown-option .checkbox-input {width: 18px;height: 18px;cursor: pointer;accent-color: #3AB8A9;transform: scale(1.05);}.dropdown-option .checkbox-label {cursor: pointer;font-weight: 600;margin: 0;color: #2c3e50;font-size: 0.9rem;flex: 1;}.form-group.dropdown-open {z-index: 1001;}.select-all {background: linear-gradient(135deg, #f0f9f8 0%, #e8f6f5 100%);border-bottom: 1px solid #e9ecef;margin-bottom: 5px;}.select-all-label {font-weight: 700 !important;color: #2c3e50 !important;}.dropdown-divider {height: 1px;background: #e9ecef;margin: 5px 0;}/* Loader Styles */.loader-overlay {position: fixed;top: 0;left: 0;width: 100%;height: 100%;background: rgba(0, 0, 0, 0.7);display: flex;justify-content: center;align-items: center;z-index: 9999;}.loader-container {padding: 40px;text-align: center;width: 35%;}/* Modal Styles */.success-modal-overlay,.text-input-popup-overlay,.submission-popup-overlay {position: fixed;top: 0;left: 0;width: 100%;height: 100%;background: rgba(0, 0, 0, 0.8);display: flex;justify-content: center;align-items: center;z-index: 9999;animation: fadeIn 0.3s ease;}@keyframes fadeIn {from {opacity: 0;}to {opacity: 1;}}.success-modal-container,.text-input-popup-container,.submission-popup {background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);border-radius: 20px;box-shadow: 0 25px 50px rgba(58, 184, 169, 0.2);overflow: hidden;animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);border: 1px solid rgba(58, 184, 169, 0.2);}@keyframes modalSlideIn {from {opacity: 0;transform: translateY(-30px) scale(0.9);}to {opacity: 1;transform: translateY(0) scale(1);}}.success-modal-container {max-width: 500px;width: 90%;}.text-input-popup-container {max-width: 600px;width: 90%;max-height: 80vh;}.submission-popup {max-width: 500px;width: 90%;animation: popIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);}@keyframes popIn {from {opacity: 0;transform: scale(0.8);}to {opacity: 1;transform: scale(1);}}.success-modal-header,.text-input-popup-header,.popup-header {background: linear-gradient(135deg, #3AB8A9 0%, #5EC8BA 100%);padding: 25px 30px;text-align: center;position: relative;}.text-input-popup-header {padding: 20px 30px;display: flex;justify-content: space-between;align-items: center;}.popup-header.error {background: linear-gradient(135deg, #fdf2f2 0%, #fce4e4 100%);}.success-modal-close,.text-input-popup-close {position: absolute;top: 15px;right: 15px;background: rgba(255, 255, 255, 0.9);border: none;border-radius: 50%;width: 32px;height: 32px;display: flex;align-items: center;justify-content: center;color: #0D1B2A;cursor: pointer;transition: all 0.3s ease;font-weight: bold;}.text-input-popup-close {position: relative;top: auto;right: auto;flex-shrink: 0;margin-left: 15px;}.success-modal-close:hover,.text-input-popup-close:hover {background: rgba(255, 255, 255, 1);transform: scale(1.1);}.success-modal-icon {margin-bottom: 15px;}.success-modal-icon i {font-size: 4rem;background: linear-gradient(135deg, #00ff88, #00cc6a);-webkit-background-clip: text;-webkit-text-fill-color: transparent;background-clip: text;}.success-modal-title,.text-input-popup-header h3,.popup-title {color: #0D1B2A;font-size: 1.8rem;font-weight: 800;margin: 0;text-shadow: 2px 2px 8px rgba(0,0,0,0.1);}.text-input-popup-header h3 {font-size: 1.4rem;flex: 1;}.popup-title {color: #0D1B2A;}.success-modal-body,.text-input-popup-body,.popup-body {padding: 30px;text-align: center;}.text-input-popup-body {text-align: left;display: flex;flex-direction: column;gap: 20px;}.popup-body {padding: 0 30px 20px;}.success-modal-message,.popup-message {color: #2c3e50;font-size: 1.1rem;line-height: 1.6;margin-bottom: 25px;font-weight: 600;}.popup-message {margin-bottom: 0;}.success-modal-stats {background: linear-gradient(135deg, #f0f9f8 0%, #e8f6f5 100%);border-radius: 12px;padding: 20px;margin: 20px 0;border: 2px solid rgba(58, 184, 169, 0.3);}.success-modal-stats p {margin: 0;color: #2c3e50;font-weight: 700;font-size: 0.95rem;}.success-modal-stats i {color: #3AB8A9;margin-right: 8px;}.success-modal-actions,.text-input-popup-actions,.popup-footer {display: flex;gap: 15px;justify-content: center;margin-top: 25px;}.text-input-popup-actions {justify-content: flex-end;margin-top: 10px;}.popup-footer {padding: 20px 30px 30px;margin-top: 0;}.success-modal-btn,.text-input-popup-actions .btn {padding: 14px 24px;border: none;border-radius: 10px;font-size: 0.9rem;font-weight: 700;cursor: pointer;transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);display: flex;align-items: center;gap: 10px;text-transform: uppercase;letter-spacing: 1px;box-shadow: 0 6px 20px rgba(58, 184, 169, 0.2);position: relative;overflow: hidden;}.success-modal-btn::before,.text-input-popup-actions .btn::before {content: '';position: absolute;top: 0;left: -100%;width: 100%;height: 100%;background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);transition: left 0.5s ease;}.success-modal-btn:hover::before,.text-input-popup-actions .btn:hover::before {left: 100%;}.success-modal-btn-primary,.text-input-popup-actions .btn-primary {background: linear-gradient(135deg, #3AB8A9 0%, #5EC8BA 100%);color: #0D1B2A;}.success-modal-btn-primary:hover,.text-input-popup-actions .btn-primary:hover {background: linear-gradient(135deg, #2DA89A 0%, #3AB8A9 100%);transform: translateY(-3px);box-shadow: 0 10px 25px rgba(58, 184, 169, 0.4);}.success-modal-btn-secondary,.text-input-popup-actions .btn-secondary {background: linear-gradient(135deg, #6c757d 0%, #495057 100%);color: #ffffff;}.success-modal-btn-secondary:hover,.text-input-popup-actions .btn-secondary:hover {background: linear-gradient(135deg, #495057 0%, #343a40 100%);transform: translateY(-3px);box-shadow: 0 10px 25px rgba(108, 117, 125, 0.4);}.popup-icon {font-size: 3rem;margin-bottom: 15px;}/* Text Input Styles */.text-input-container {width: 100%;}.text-input-preview {width: 100%;padding: 14px 16px;border: 2px solid #e9ecef;border-radius: 10px;font-size: 0.9rem;font-weight: 600;color: #95a5a6;background: #ffffff;cursor: pointer;transition: all 0.3s ease;min-height: 50px;max-height: 50px;display: flex;align-items: center;box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);word-wrap: break-word;word-break: break-word;white-space: pre-wrap;overflow-wrap: break-word;line-height: 1.4;overflow: hidden;}.text-input-preview:hover {border-color: #3AB8A9;background-color: #f0f9f8;transform: translateY(-2px);box-shadow: 0 4px 12px rgba(58, 184, 169, 0.1);}.text-input-preview.has-value {color: #2c3e50;border-color: #bdc3c7;}.text-input-preview.has-value:hover {border-color: #3AB8A9;}.text-input-popup-field {width: 100%;padding: 16px 20px;border: 2px solid #e9ecef;border-radius: 12px;font-size: 1rem;font-family: 'Segoe UI', 'Roboto', sans-serif;font-weight: 500;color: #2c3e50;background: #ffffff;transition: all 0.3s ease;resize: none;overflow-y: hidden;min-height: 120px;max-height: 400px;box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05);word-wrap: break-word;word-break: break-word;white-space: pre-wrap;overflow-wrap: break-word;line-height: 1.5;text-align: left;}.text-input-popup-field:focus {outline: none;border-color: #3AB8A9;background-color: #f0f9f8;box-shadow: 0 0 0 3px rgba(58, 184, 169, 0.1);}.text-input-popup-field::placeholder {color: #95a5a6;font-weight: 500;}.blur-background {filter: blur(5px);pointer-events: none;}/* Responsive Design */@media (max-width: 1200px) {.container {max-width: 95%;}.form-grid {grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));}}@media (max-width: 992px) {.professional-page {padding: 15px 10px;margin-top: 60px;}.container {max-height: calc(100vh - 80px);}.header {padding: 20px 25px;}.header h1 {font-size: 1.8rem;}.progress-bar {padding: 0 10px;}.progress-bar::before,.progress-bar-line {left: 30px;right: 30px;width: calc(100% - 60px);}.step {width: 45px;height: 45px;}.step-label {font-size: 0.7rem;width: 70px;left: -12px;}.category-header {flex-direction: column;align-items: flex-start;gap: 15px;}.review-tab-content {flex-direction: column;gap: 20px;}.review-sidebar {flex: 0 0 auto;}.review-category-tabs {flex-direction: row;overflow-x: auto;padding-bottom: 10px;}.review-category-tab {flex: 0 0 auto;min-width: 150px;}}@media (max-width: 768px) {.professional-page {padding: 10px 5px;margin-top: 50px;}.container {max-height: calc(100vh - 70px);border-radius: 15px;}.header {padding: 15px 20px;}.header h1 {font-size: 1.5rem;}.header p {font-size: 0.9rem;}.progress-section {padding: 15px 20px;}.progress-bar {padding: 0 5px;}.progress-bar::before,.progress-bar-line {left: 20px;right: 20px;width: calc(100% - 40px);}.step {width: 40px;height: 40px;}.step-label {font-size: 0.65rem;width: 60px;left: -10px;}.category-header {padding: 15px 20px;}.category-header-icon {font-size: 1.5rem;}.category-details h3 {font-size: 1.1rem;}.category-details p {font-size: 0.8rem;}.form-container {padding: 15px 20px;}.form-grid {grid-template-columns: 1fr;gap: 15px;}.form-group {padding: 15px;min-height: 100px;}.btn {padding: 12px 18px;font-size: 0.8rem;}}@media (max-width: 480px) {.professional-page {margin-top: 40px;}.container {max-height: calc(100vh - 60px);border-radius: 12px;}.header {padding: 12px 15px;}.header h1 {font-size: 1.3rem;}.progress-section {padding: 10px 15px;}.step {width: 35px;height: 35px;}.step-label {font-size: 0.6rem;width: 50px;left: -7px;}.step-icon {font-size: 0.9rem;}.category-header {padding: 12px 15px;}.form-container {padding: 12px 15px;}.form-group {padding: 12px;}.form-control {padding: 12px 14px;}.checkbox-group,.radio-group {flex-direction: column;gap: 8px;}.multiselect-group {grid-template-columns: 1fr;}.button-group {flex-direction: column;gap: 10px;}.btn {width: 100%;justify-content: center;}}/* Print Styles */@media print {.professional-page {background: white;margin: 0;padding: 0;}.container {box-shadow: none;border-radius: 0;max-width: 100%;}.btn,.progress-section,.loader-overlay,.success-modal-overlay,.text-input-popup-overlay,.submission-popup-overlay {display: none !important;}}
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175<div class="professional-page"><!-- Loader Overlay (same as llm-quiz) --><div class="loader-overlay" *ngIf="isLoading"><div class="loader-container"><img src="assets/Loader.gif" alt="Loading..." class="loader-gif" /></div></div><!-- Hero Section --><section class="hero"><div class="content" [ngStyle]="heroContentStyle"><div class="info-card"><div class="info-card__icon"><i [class]="headingIcon"></i></div><div class="info-card__content"><h1 class="info-card__title">{{ selectedOption ? (selectedOption | titlecase) + ' Match' : 'Marriage Match' }}</h1><p class="info-card__text">Discover meaningful connections beyond surface-level swipes.<br>This helps to analyse compatibility deeply.<br>Understand habits, values, and life goals.Find harmony and balance for a lasting relationship.</p><div class="info-card__actions"><button class="btn btn-primary" (click)="scrollToQuestions()">Fill Your Details</button><button class="btn btn-secondary" (click)="goToPreferences()">Set Preference</button></div></div></div></div></section><!-- Questions container --><div id="questions-section" class="questions-container" *ngIf="selectedQuestions.length"><div class="container"><!-- Category Navigation --><div class="category-nav-wrapper"><nav class="category-nav" aria-label="Question categories"><button *ngFor="let cat of categoriesMeta" type="button"(click)="selectCategory(cat.key)"[class.active]="selectedCategory === cat.key"[class.completed]="getCategoryAnsweredCount(cat.key) === getCategoryRequiredCount(cat.key) && getCategoryRequiredCount(cat.key) > 0"[attr.aria-selected]="selectedCategory === cat.key"class="nav-chip"><i class="fa-solid" [ngClass]="cat.icon"></i><span>{{ cat.title }}</span><span class="chip-progress" *ngIf="getCategoryQuestions(cat.key).length">{{ getCategoryAnsweredCount(cat.key) }}/{{ getCategoryRequiredCount(cat.key) }}</span></button></nav></div><!-- Single Category Rendering --><div class="category-content"><ng-container *ngFor="let cat of categoriesMeta; let last = last"><section *ngIf="selectedCategory === cat.key" [attr.id]="'cat-' + cat.key" class="category-section"><div class="category-header"><div class="category-image"><img [src]="getCategoryImage(cat.key)" [alt]="cat.title" loading="lazy" /></div><div class="category-info"><div class="title-section"><h2><i class="fa-solid" [ngClass]="cat.icon"></i> {{ cat.title }}</h2><div class="progress-indicator"><div class="progress-bar"><div class="progress-fill" [style.width.%]="getCategoryPercent(cat.key)"></div></div><small>{{ getCategoryProgressLabel(cat.key) }}</small></div></div></div></div><div class="questions-grid"><div *ngFor="let question of getCategoryQuestions(cat.key); trackBy: trackQuestion"class="question-card"[attr.id]="'q-' + question.column_key"[class.required]="question.required"[class.answered]="isAnswered(question)"[class.error]="showError(question)"><label [attr.for]="'answer' + question.column_key">{{ question.label }} <span *ngIf="question.required" class="required-indicator">*</span></label><ng-container [ngSwitch]="question.input_type"><!-- Custom multi-select for Languages Spoken --><div *ngIf="question.label === 'Languages Spoken'" class="checkbox-options"><label class="checkbox-option" *ngFor="let opt of question.options"><input type="checkbox"[value]="opt"[checked]="answers[question.column_key]?.includes(opt)"(change)="onLanguagesCheckboxChange($event, question.column_key)" /><span class="checkmark"></span>{{ opt }}</label></div><!-- Default rendering for other types, only if not Languages Spoken --><ng-container *ngIf="question.label !== 'Languages Spoken'"><select *ngSwitchCase="'select'" [id]="'answer' + question.column_key"[(ngModel)]="answers[question.column_key]"[name]="'answer' + question.column_key"(ngModelChange)="onAnswerChange(question.column_key, $event)"[required]="question.required || false"><option value="" disabled>{{ getPlaceholder(question) }}</option><option *ngFor="let opt of question.options" [value]="opt">{{ opt }}</option></select><select *ngSwitchCase="'multiselect'" multiple [id]="'answer' + question.column_key"[(ngModel)]="answers[question.column_key]"[name]="'answer' + question.column_key"(ngModelChange)="onAnswerChange(question.column_key, $event)"[required]="question.required || false"><option *ngFor="let opt of question.options" [value]="opt">{{ opt }}</option></select></ng-container><input *ngSwitchCase="'date'" type="date" [id]="'answer' + question.column_key"[(ngModel)]="answers[question.column_key]"[name]="'answer' + question.column_key"(ngModelChange)="onAnswerChange(question.column_key, $event)"[required]="question.required || false"[placeholder]="getPlaceholder(question)" /><input *ngSwitchCase="'text'" type="text" [id]="'answer' + question.column_key"[(ngModel)]="answers[question.column_key]"[name]="'answer' + question.column_key"(ngModelChange)="onAnswerChange(question.column_key, $event)"[required]="question.required || false"[placeholder]="getPlaceholder(question)" /><div *ngSwitchCase="'radio'" class="radio-options"><label *ngFor="let opt of question.options" class="radio-option"><input type="radio" [name]="'answer' + question.column_key" [value]="opt"[(ngModel)]="answers[question.column_key]"(ngModelChange)="onAnswerChange(question.column_key, $event)" />{{ opt }}</label></div><input *ngSwitchDefault type="text" [id]="'answer' + question.column_key"[(ngModel)]="answers[question.column_key]"[name]="'answer' + question.column_key"(ngModelChange)="onAnswerChange(question.column_key, $event)"[required]="question.required || false"[placeholder]="getPlaceholder(question)" /></ng-container><div class="hint" *ngIf="question.placeholder && !showError(question)">{{ question.placeholder }}</div><div class="error-message" *ngIf="showError(question)">This field is required.</div></div></div><div class="submit-section" *ngIf="last"><button class="btn btn-primary submit-btn" (click)="submitAnswers()" [disabled]="isLoading || !allFieldsAnswered"><span *ngIf="!isLoading"><i class="fa-solid fa-paper-plane"></i> Submit Answers</span><span *ngIf="isLoading"><i class="fa-solid fa-circle-notch fa-spin"></i> Submitting...</span></button><div class="validation-message" *ngIf="attemptedSubmit && !allFieldsAnswered">Please complete all fields ({{ unansweredCount }} remaining).</div></div></section></ng-container></div></div></div><div class="empty-state" *ngIf="!selectedQuestions.length && !isLoading"><p class="empty-state-text">Select a matching mode to begin answering questions.</p></div></div>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516<div class="professional-page"><!-- Loader Overlay --><div class="loader-overlay" *ngIf="isLoading"><div class="loader-container"><img src="assets/Loader.gif" alt="Loading..." style="width:40%;height:40%;display:block;margin:0 auto 25px;" /></div></div><!-- Text Input Popup Modal - ONLY FOR ADDITIONAL REMARKS --><div class="text-input-popup-overlay" *ngIf="showTextInputPopup && isAdditionalRemarksField()" (click)="closeTextInputPopup()"><div class="text-input-popup-container" (click)="$event.stopPropagation()"><div class="text-input-popup-header"><h3>{{ popupQuestion?.label }}</h3><button class="text-input-popup-close" (click)="closeTextInputPopup()"><i class="fas fa-times"></i></button></div><div class="text-input-popup-body"><textarea class="text-input-popup-field"[(ngModel)]="popupTextValue"[placeholder]="popupQuestion ? getPlaceholder(popupQuestion) : 'Enter your answer'"(input)="onTextareaInput($event)"rows="1"></textarea><div class="text-input-popup-actions"><button class="btn btn-secondary" (click)="closeTextInputPopup()">Cancel</button><button class="btn btn-primary" (click)="saveTextInputPopup()">Save</button></div></div></div></div><!-- In the form grid - Modify the text input preview fields --><!--<div *ngSwitchCase="'text'" class="text-input-container"><div *ngIf="isAdditionalRemarksField(question)" class="text-input-preview"(click)="openTextInputPopup(question)"[class.has-value]="answers[question.column_key]">{{ answers[question.column_key] || getPlaceholder(question) }}</div>--><!-- For other text fields, use regular input --><!--<input *ngIf="!isAdditionalRemarksField(question)"type="text"class="form-control"[id]="'answer' + question.column_key"[(ngModel)]="answers[question.column_key]"[name]="'answer' + question.column_key"(ngModelChange)="onAnswerChange(question.column_key, $event)"[placeholder]="getPlaceholder(question)"[required]="question.required || false" /></div>--><!--<div *ngSwitchCase="'textarea'" class="text-input-container"><div *ngIf="isAdditionalRemarksField(question)" class="text-input-preview"(click)="openTextInputPopup(question)"[class.has-value]="answers[question.column_key]">{{ (answers[question.column_key] || getPlaceholder(question)) | truncate:100 }}</div>--><!-- For other textarea fields, use regular textarea --><!--<textarea *ngIf="!isAdditionalRemarksField(question)"class="form-control"[id]="'answer' + question.column_key"[(ngModel)]="answers[question.column_key]"[name]="'answer' + question.column_key"(ngModelChange)="onAnswerChange(question.column_key, $event)"[placeholder]="getPlaceholder(question)"[required]="question.required || false"rows="3"></textarea></div>--><!-- Main Container --><div class="container"><!-- Header --><div class="header"><h1>{{ selectedOption ? (toTitleCase(selectedOption) + ' Profile') : 'Personal Details' }}</h1><!-- Progress Bar --><div class="progress-section"><div class="progress-bar"><div class="progress-bar-line" [style.width.%]="getProgressBarWidth()"></div><div *ngFor="let cat of categoriesMeta; let i = index"class="step"[class.active]="selectedCategory === cat.key"[class.completed]="getCategoryAnsweredCount(cat.key) === getCategoryRequiredCount(cat.key) && getCategoryRequiredCount(cat.key) > 0"(click)="selectCategory(cat.key)"><span class="step-icon"><i class="fas {{ getCategoryIcon(cat.key) }}"></i></span><span class="step-label">{{ getStepLabel(cat.title) }}</span></div><div class="step"[class.active]="selectedCategory === 'review'"[class.completed]="allFieldsAnswered"(click)="selectCategory('review')"><span class="step-icon"><i class="fas fa-check"></i></span><span class="step-label">Review</span></div></div></div></div><!-- Content Area --><div class="content-area"><!-- Category Header --><div class="category-header"><div class="category-info"><i class="fas {{ getCurrentCategoryIcon() }} category-header-icon"></i><div class="category-details"><h3>{{ getCurrentCategoryTitle() }}</h3><p>{{ getCurrentCategoryDescription() }}</p></div></div><!-- Progress Indicator --><div *ngIf="selectedCategory !== 'review'" class="category-progress-indicator"><div class="progress-bar-mini"><div class="progress-fill" [style.width.%]="getCategoryPercent(selectedCategory)"></div></div><span class="progress-text">{{ getCategoryPercent(selectedCategory) }}% Complete</span></div><!-- Completion Status --><div *ngIf="selectedCategory === 'review'" class="completion-status" [class.complete]="allFieldsAnswered"><span class="status-icon">{{ allFieldsAnswered ? '✓' : '!' }}</span><span class="status-text">{{ allFieldsAnswered ? 'All fields completed' : (unansweredCount + ' field(s) remaining') }}</span></div></div><!-- Form Container --><div class="form-container" [class.review-mode]="selectedCategory === 'review'"><!-- Success Popup Overlay --><div class="success-modal-overlay" *ngIf="showSubmissionPopup && isSubmissionSuccess"><div class="success-modal-container"><div class="success-modal-header"><button class="success-modal-close" (click)="showSubmissionPopup = false"><i class="fas fa-times"></i></button><div class="success-modal-icon"><i class="fas fa-check-circle"></i></div><h2 class="success-modal-title">{{ isEditingExistingProfile ? 'Profile Updated!' : 'Profile Submitted!' }}</h2></div><div class="success-modal-body"><p class="success-modal-message">Your {{ selectedOption }} profile has been{{ isEditingExistingProfile ? 'updated' : 'submitted' }} successfully!</p><div class="success-modal-stats"><p><i class="fas fa-check"></i>All required fields have been completed.</p></div><div class="success-modal-actions"><button class="success-modal-btn success-modal-btn-secondary" (click)="redirectToHome()"><i class="fas fa-home"></i>Go to Home</button><button class="success-modal-btn success-modal-btn-primary" (click)="redirectToPreferences()"><i class="fas fa-sliders-h"></i>Set Preferences</button></div></div></div></div><!-- Category Panels --><section *ngFor="let cat of categoriesMeta"class="tab"[class.active]="selectedCategory === cat.key"[class.blur-background]="showSubmissionPopup && isSubmissionSuccess || showTextInputPopup"><div class="tab-content"><div class="form-grid"><div *ngFor="let question of getCategoryQuestions(cat.key); trackBy: trackQuestion"class="form-group"[class.required]="question.required"[class.invalid]="showError(question)"[id]="'q-' + question.column_key"><label [attr.for]="'answer' + question.column_key">{{ question.label }}<span *ngIf="question.required" class="required-asterisk">*</span></label><ng-container [ngSwitch]="question.input_type"><!-- Text Input --><!-- Text Input --><div *ngSwitchCase="'text'" class="text-input-container"><!-- For Additional Remarks - use popup --><div *ngIf="isAdditionalRemarksField(question)"class="text-input-preview"(click)="openTextInputPopup(question)"[class.has-value]="answers[question.column_key]">{{ answers[question.column_key] || getPlaceholder(question) }}</div><!-- For other text fields - use regular inline input --><input *ngIf="!isAdditionalRemarksField(question)"type="text"class="form-control"[id]="'answer' + question.column_key"[(ngModel)]="answers[question.column_key]"[name]="'answer' + question.column_key"(ngModelChange)="onAnswerChange(question.column_key, $event)"[placeholder]="getPlaceholder(question)"[required]="question.required || false" /></div><!-- Textarea Input --><div *ngSwitchCase="'textarea'" class="text-input-container"><!-- For Additional Remarks - use popup --><div *ngIf="isAdditionalRemarksField(question)"class="text-input-preview"(click)="openTextInputPopup(question)"[class.has-value]="answers[question.column_key]">{{ (answers[question.column_key] || getPlaceholder(question)) | truncate:100 }}</div><!-- For other textarea fields - use regular inline textarea --><textarea *ngIf="!isAdditionalRemarksField(question)"class="form-control"[id]="'answer' + question.column_key"[(ngModel)]="answers[question.column_key]"[name]="'answer' + question.column_key"(ngModelChange)="onAnswerChange(question.column_key, $event)"[placeholder]="getPlaceholder(question)"[required]="question.required || false"rows="3"></textarea></div><!-- Date Input --><input *ngSwitchCase="'date'"type="date"class="form-control"[id]="'answer' + question.column_key"[(ngModel)]="answers[question.column_key]"[name]="'answer' + question.column_key"(ngModelChange)="onAnswerChange(question.column_key, $event)"[required]="question.required || false" /><!-- Select Input --><select *ngSwitchCase="'select'"class="form-control"[id]="'answer' + question.column_key"[(ngModel)]="answers[question.column_key]"[name]="'answer' + question.column_key"(ngModelChange)="onAnswerChange(question.column_key, $event)"[required]="question.required || false"><option value="" disabled selected>{{ getPlaceholder(question) }}</option><option *ngFor="let opt of question.options" [value]="opt">{{ opt }}</option></select><!-- Multi-select Input with Dropdown --><div *ngSwitchCase="'multiselect'" class="multiselect-dropdown-checkbox"><div class="dropdown-toggle"(click)="toggleDropdown(question.column_key)"[class.dropdown-open]="isDropdownOpen(question.column_key)"><span class="selected-text">{{ getSelectedOptionsText(question.column_key) || getPlaceholder(question) }}</span><i class="fas fa-chevron-down dropdown-arrow"></i></div><div class="dropdown-options" [class.show]="isDropdownOpen(question.column_key)"><div class="dropdown-options-container"><!-- Select All Option --><div class="dropdown-option select-all" *ngIf="getMultiselectOptions(question).length > 1"><input type="checkbox"class="checkbox-input"[id]="'select_all_' + question.column_key"[checked]="areAllOptionsSelected(question)"(change)="toggleSelectAll(question)" /><label [for]="'select_all_' + question.column_key"class="checkbox-label select-all-label">Select All</label></div><div class="dropdown-divider" *ngIf="getMultiselectOptions(question).length > 1"></div><!-- Regular Options --><div *ngFor="let option of getMultiselectOptions(question)"class="dropdown-option"><input type="checkbox"class="checkbox-input"[id]="'dropdown_' + question.column_key + '_' + option"[value]="option"(change)="onMultiselectChange($event, question.column_key)"[checked]="isMultiselectSelected(question.column_key, option)" /><label [for]="'dropdown_' + question.column_key + '_' + option"class="checkbox-label">{{ option }}</label></div></div></div></div><!-- Radio Input --><div *ngSwitchCase="'radio'" class="radio-group"><div *ngFor="let opt of question.options" class="radio-option"><input type="radio"class="radio-input"[id]="'radio_' + question.column_key + '_' + opt"[name]="'radio_' + question.column_key"[value]="opt"[checked]="isRadioSelected(question.column_key, opt)"(change)="onRadioChange(question.column_key, opt)" /><label [for]="'radio_' + question.column_key + '_' + opt"class="radio-label">{{ opt }}</label></div></div><!-- Checkbox Input (single) --><div *ngSwitchCase="'checkbox'" class="checkbox-single"><input type="checkbox"class="checkbox-input"[id]="'checkbox_' + question.column_key"[checked]="answers[question.column_key]"(change)="onAnswerChange(question.column_key, ($any($event.target)).checked)" /><label [for]="'checkbox_' + question.column_key"class="checkbox-label">{{ question.label }}</label></div><!-- Textarea Input --><div *ngSwitchCase="'textarea'" class="text-input-container"><div class="text-input-preview"(click)="openTextInputPopup(question)"[class.has-value]="answers[question.column_key]">{{ (answers[question.column_key] || getPlaceholder(question)) | truncate:100 }}</div></div><!-- Number Input --><input *ngSwitchCase="'number'"type="number"class="form-control"[id]="'answer' + question.column_key"[(ngModel)]="answers[question.column_key]"[name]="'answer' + question.column_key"(ngModelChange)="onAnswerChange(question.column_key, $event)"[placeholder]="getPlaceholder(question)"[required]="question.required || false" /><!-- Default Input (fallback) --><div *ngSwitchDefault class="text-input-container"><!-- Only use popup for Additional Remarks in default case --><div *ngIf="isAdditionalRemarksField(question)"class="text-input-preview"(click)="openTextInputPopup(question)"[class.has-value]="answers[question.column_key]">{{ answers[question.column_key] || getPlaceholder(question) }}</div><!-- For other fields - use regular input --><input *ngIf="!isAdditionalRemarksField(question)"type="text"class="form-control"[id]="'answer' + question.column_key"[(ngModel)]="answers[question.column_key]"[name]="'answer' + question.column_key"(ngModelChange)="onAnswerChange(question.column_key, $event)"[placeholder]="getPlaceholder(question)"[required]="question.required || false" /></div></ng-container><div class="field-error" *ngIf="showError(question)">This field is required.</div></div></div></div><div class="tab-footer"><div class="button-group"><button *ngIf="selectedCategory !== categoriesMeta[0].key"type="button"class="btn btn-prev"(click)="goToPreviousCategory(cat.key)"><i class="fas fa-arrow-left"></i> Previous</button><button *ngIf="selectedCategory !== 'review'"type="button"class="btn btn-next"(click)="goToNextCategory(cat.key)">Next <i class="fas fa-arrow-right"></i></button></div></div></section><!-- Review Panel --><section class="tab review-tab"[class.active]="selectedCategory === 'review'"[class.blur-background]="showSubmissionPopup && isSubmissionSuccess || showTextInputPopup"><div class="tab-content"><div class="review-section"><div class="review-tab-content"><!-- Left Sidebar with Category Tabs --><div class="review-sidebar"><div class="review-category-tabs"><div *ngFor="let cat of categoriesMeta"class="review-category-tab"[class.active]="selectedReviewCategory === cat.key"(click)="selectReviewCategory(cat.key)"><span class="category-name">{{ cat.title }}</span><span class="category-progress">{{ getCategoryAnsweredCount(cat.key) }}/{{ getCategoryRequiredCount(cat.key) }}</span></div></div></div><!-- Right Content Area --><div class="review-content"><div *ngIf="selectedReviewCategory" class="review-category-content"><!-- Category Header --><div class="review-category-header"><h3 class="review-category-title">{{ getReviewCategoryTitle(selectedReviewCategory) }}</h3><div class="review-category-stats"><span>{{ getCategoryAnsweredCountByKey(selectedReviewCategory) }}/{{ getCategoryRequiredCountByKey(selectedReviewCategory) }} answered</span><button type="button"class="btn btn-secondary"(click)="selectCategory(selectedReviewCategory)">Edit Section</button></div></div><!-- Answers List --><div class="review-answers"><div *ngFor="let question of getCategoryQuestions(selectedReviewCategory)"class="review-answer-item"><span class="review-answer-label">{{ question.label }}:</span><span class="review-answer-value" [class.missing]="!isAnswered(question)">{{ isAnswered(question) ? getAnswerDisplay(question) : '(Not answered)' }}</span></div></div></div><!-- Empty State --><div *ngIf="!selectedReviewCategory" class="review-empty-state"><div style="text-align: center; padding: 60px 20px;"><i class="fas fa-folder-open" style="font-size: 3rem; color: #bdc3c7; margin-bottom: 20px;"></i><h3 style="color: #2c3e50; margin-bottom: 10px;">Select a Category</h3><p style="color: #7f8c8d;">Choose a category from the left sidebar to review your answers.</p></div></div></div></div></div></div><div class="tab-footer"><div class="button-group"><button type="button"class="btn btn-prev"(click)="goToPreviousCategory('review')"><i class="fas fa-arrow-left"></i> Previous</button><button type="button"class="btn btn-submit"(click)="submitAnswers()"[disabled]="isSubmitting || !allFieldsAnswered">{{ isSubmitting ? 'Submitting...' : 'Submit' }} <i class="fas fa-check"></i></button></div></div></section></div></div></div><!-- Error Submission Popup --><div class="submission-popup-overlay" *ngIf="showSubmissionPopup && !isSubmissionSuccess"><div class="submission-popup"><div class="popup-header error"><div class="popup-icon">⚠</div><h3 class="popup-title">Submission Failed</h3></div><div class="popup-body"><p class="popup-message">{{ submissionMessage }}</p></div><div class="popup-footer"><button class="btn btn-primary" (click)="showSubmissionPopup = false">Try Again</button></div></div></div></div>
123456789101112131415161718192021import { ComponentFixture, TestBed } from '@angular/core/testing';import { QuestionAnswerComponent } from './question-answer.component';describe('QuestionAnswerComponent', () => {let component: QuestionAnswerComponent;let fixture: ComponentFixture<QuestionAnswerComponent>;beforeEach(() => {TestBed.configureTestingModule({declarations: [QuestionAnswerComponent]});fixture = TestBed.createComponent(QuestionAnswerComponent);component = fixture.componentInstance;fixture.detectChanges();});it('should create', () => {expect(component).toBeTruthy();});});123456789101112131415161718192021import { ComponentFixture, TestBed } from '@angular/core/testing';import { QuestionAnswerComponent } from './question-answer.component';describe('QuestionAnswerComponent', () => {let component: QuestionAnswerComponent;let fixture: ComponentFixture<QuestionAnswerComponent>;beforeEach(() => {TestBed.configureTestingModule({declarations: [QuestionAnswerComponent]});fixture = TestBed.createComponent(QuestionAnswerComponent);component = fixture.componentInstance;fixture.detectChanges();});it('should create', () => {expect(component).toBeTruthy();});});
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521import { Component, OnInit, ViewChild } from '@angular/core';import { QuestionAnswerService, QAItem } from './question-answer-service.service';import { Router, ActivatedRoute } from '@angular/router';import { HttpErrorResponse } from '@angular/common/http';import { MatButtonModule } from '@angular/material/button';import { MatIconModule } from '@angular/material/icon';import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';import { MatTabsModule } from '@angular/material/tabs';import { MatTabGroup } from '@angular/material/tabs';import { FormsModule } from '@angular/forms';import { CommonModule } from '@angular/common';@Component({selector: 'app-question-answer',standalone: true,imports: [CommonModule, FormsModule, MatButtonModule, MatIconModule, MatProgressSpinnerModule, MatTabsModule],templateUrl: './question-answer.component.html',styleUrls: ['./question-answer.component.css']})export class QuestionAnswerComponent implements OnInit {@ViewChild('tabGroup') tabGroup!: MatTabGroup;selectedQuestions: QAItem[] = [];filteredQuestions: QAItem[] = [];selectedOption = '';currentTabIndex = 0;isModalOpen = false;displayMode: 'modal' | 'page' = 'modal';isLoading = false;userId: any;answers: Record<string, any> = {};attemptedSubmit = false;showProceedModal = false;selectedCategory: string = '';// NEW: Add submission status variablesshowSubmissionPopup = false;submissionMessage = '';isSubmissionSuccess = false;redirectTimer: any = null;countdownProgress = 100;countdownInterval: any = null;categories = ['personal', 'locationfamily', 'lifestyle', 'educationcareer'];categoriesMeta = [{ key: 'personal', title: 'Personal Info', icon: 'fa-user', color: '#f3a54c' },{ key: 'locationfamily', title: 'Family & Location', icon: 'fa-people-roof', color: '#ffcb7a' },{ key: 'lifestyle', title: 'Lifestyle', icon: 'fa-seedling', color: '#f3a54c' },{ key: 'educationcareer', title: 'Education & Career', icon: 'fa-briefcase', color: '#ffcb7a' }];private readonly allowedRoles = new Set(['marriage', 'interview', 'partnership']);/** Columns that are BIT in SQL Server and require 1/0 values */private readonly BIT_FIELDS = new Set<string>(['dual_citizenship','live_with_parents','support_parents_financially','own_pets']);// Added getter for icon next to headingget headingIcon(): string {switch (this.selectedOption) {case 'marriage':return 'fa-solid fa-ring';case 'interview':return 'fa-solid fa-user-tie';case 'partnership':return 'fa-solid fa-handshake';default:return 'fa-solid fa-layer-group';}}// Dynamic hero background style used in templateget heroBackgroundStyle() {const role = this.selectedOption || 'marriage';const img = this.getBackgroundForRole(role);return { 'background-image': `linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)), url(${img})` } as { [k: string]: string };}// Combined content style for hero content divget heroContentStyle() {return {...this.heroBackgroundStyle,'background-repeat': 'no-repeat','background-position': 'center center','background-attachment': 'fixed','background-size': 'cover','width': '100%','height': '100vh'} as { [k: string]: string };}get totalRequired(): number {return this.selectedQuestions.filter(q => q.required).length;}get answeredRequired(): number {return this.selectedQuestions.filter(q => q.required && this.isAnswered(q)).length;}get progressPercent(): number {return this.totalRequired ? Math.round((this.answeredRequired / this.totalRequired) * 100) : 0;}get progressLabel(): string {return `${this.answeredRequired} / ${this.totalRequired || 0} Required`;}get allFieldsAnswered(): boolean {return this.selectedQuestions.length > 0 && this.selectedQuestions.every(q => this.isAnswered(q));}get unansweredFields(): QAItem[] {return this.selectedQuestions.filter(q => !this.isAnswered(q));}get unansweredCount(): number {return this.unansweredFields.length;}// --- Category progress helpers ---getCategoryQuestions(key: string): QAItem[] {const norm = key.replace(/\s+/g, '').toLowerCase();return this.selectedQuestions.filter(q => (q.category || '').replace(/\s+/g, '').toLowerCase() === norm);}getCategoryAnsweredCount(key: string): number {return this.getCategoryQuestions(key).filter(q => this.isAnswered(q)).length;}getCategoryRequiredCount(key: string): number {const qs = this.getCategoryQuestions(key);const requiredCnt = qs.filter(q => q.required).length;return requiredCnt || qs.length;}getCategoryPercent(key: string): number {const denom = this.getCategoryRequiredCount(key) || 1;return (this.getCategoryAnsweredCount(key) / denom) * 100;}getCategoryProgressLabel(key: string): string {return `${this.getCategoryAnsweredCount(key)} / ${this.getCategoryRequiredCount(key)}`;}// NEW: Method to get the completed category key (only one at a time).completedCategory(): string | null {// Return the first category key that is fully completedfor (const cat of this.categoriesMeta) {const total = this.getCategoryRequiredCount(cat.key);const answered = this.getCategoryAnsweredCount(cat.key);if (total > 0 && answered === total) {return cat.key;}}return null;}constructor(private qaService: QuestionAnswerService,private router: Router,private route: ActivatedRoute) { }// NEW: Method to show submission popup and redirectprivate showSubmissionSuccessPopup(): void {console.log('Submission successful, preparing redirect to preferences');console.log('User ID:', this.userId, 'Role:', this.selectedOption);this.showSubmissionPopup = true;this.isSubmissionSuccess = true;// Updated message for next screenthis.submissionMessage = 'Profile submitted! Redirecting to preferences....';// Reset countdownthis.countdownProgress = 100;// Clear any existing timersif (this.redirectTimer) {clearTimeout(this.redirectTimer);}if (this.countdownInterval) {clearInterval(this.countdownInterval);}// Start countdown animationconst countdownDuration = 5000; // 5 secondsconst intervalDuration = 50; // update every 50msconst steps = countdownDuration / intervalDuration;const progressDecrement = 100 / steps;this.countdownInterval = setInterval(() => {this.countdownProgress -= progressDecrement;if (this.countdownProgress <= 0) {this.countdownProgress = 0;clearInterval(this.countdownInterval);}}, intervalDuration);// Set redirect timerthis.redirectTimer = setTimeout(() => {console.log('Auto-redirecting to preferences...');this.redirectToPreferences();}, countdownDuration);}private redirectToPreferences(): void {this.showSubmissionPopup = false;this.router.navigate(['/userPreference'], {queryParams: {user_id: this.userId,role: this.selectedOption}});}// NEW: Navigate directly from hero to preferencesgoToPreferences(): void {if (!this.userId) {const uid = localStorage.getItem('user_id');if (uid) this.userId = Number(uid);}const role = this.selectedOption || 'marriage';this.router.navigate(['/userPreference'], {queryParams: {user_id: this.userId,role}});}onSelect(role: string, mode: 'modal' | 'page' = 'page'): void {this.selectedOption = role;this.displayMode = mode;this.isModalOpen = mode === 'modal';this.isLoading = true;this.fetchQuestions(role);}ngOnInit(): void {const uid = localStorage.getItem('user_id');if (uid) {this.userId = Number(uid);}this.selectedCategory = this.categoriesMeta[0]?.key || '';// Restore answers from localStorage if availableconst savedAnswers = localStorage.getItem('qa_answers');if (savedAnswers) {try {this.answers = JSON.parse(savedAnswers);} catch { }}// If navigated with role param -> show full page (not popup)this.route.queryParamMap.subscribe(params => {const role = (params.get('role') || '').toLowerCase();if (this.allowedRoles.has(role)) {this.onSelect(role, 'page');}// Scroll to questions-section if scrollTo param is presentconst scrollTo = params.get('scrollTo');if (scrollTo === 'questions-section') {// Wait for questions to load, then scrollconst scrollAfterLoad = () => {if (this.selectedQuestions.length) {setTimeout(() => this.scrollToQuestions(), 200);} else {setTimeout(scrollAfterLoad, 100);}};scrollAfterLoad();}});}selectCategory(key: string): void { this.selectedCategory = key; }scrollToCategory(key: string): void { this.selectCategory(key); }private getScrollOffset(): number {const header = document.querySelector('.topbar') as HTMLElement | null;const categoryNav = document.querySelector('.category-nav-wrapper') as HTMLElement | null;let offset = 0;if (header) offset += header.offsetHeight;if (categoryNav) offset += categoryNav.offsetHeight;return offset + 16; // Add some extra spacing}scrollToQuestions(): void {setTimeout(() => {const el = document.getElementById('questions-section');if (el) {el.scrollIntoView({ behavior: 'smooth', block: 'start' });}}, 100); // Delay to ensure DOM is rendered}trackQuestion(index: number, item: QAItem): string { return item.column_key; }private applyMarriageOptionMapping(questions: QAItem[]): void {const map: Record<string, string[] | undefined> = {'gender': ['Male', 'Female', 'Other'],'marital status': ['Single', 'Divorced', 'Widowed'],'education level': ['School', 'Diploma', 'Bachelor', 'Master', 'Doctorate'],'employment status': ['Student', 'Employed', 'Self-employed', 'Homemaker', 'Not working'],'family type': ['Nuclear', 'Joint', 'Extended'],'hobbies/interests': ['Music', 'Reading', 'Sports', 'Travel', 'Cooking', 'Art'],'conflict approach': ['Avoid', 'Discuss calmly', 'Decide fast', 'Problem-solving'],'financial style': ['Budget-oriented', 'Balanced', 'Spend-oriented'],'relocation willingness': ['Yes', 'No', 'Maybe']};questions.forEach(q => {const key = q.label.toLowerCase().trim();const opts = map[key];if (opts) { q.input_type = 'select'; q.options = opts; }});}fetchQuestions(role: string): void {this.qaService.getQuestions(role).subscribe({next: (data: QAItem[]) => {// Process questions to ensure proper formattingif (role === 'marriage') this.applyMarriageOptionMapping(data);this.selectedQuestions = data;this.answers = {};data.forEach(q => { this.answers[q.column_key] = q.input_type === 'multiselect' ? [] : ''; });this.isLoading = false;this.attemptedSubmit = false;if (role === 'marriage') {this.displayMode = 'page';this.isModalOpen = false;} else if (this.displayMode === 'modal') {this.isModalOpen = true;} else {this.isModalOpen = false;}this.selectedCategory = this.categoriesMeta[0]?.key || '';this.filterQuestionsByCategory('personal');},error: (err: HttpErrorResponse) => {console.error('Error fetching questions:', err);this.isLoading = false;}});}filterQuestionsByCategory(category: string): void {const norm = category.replace(/\s+/g, '').toLowerCase();this.filteredQuestions = this.selectedQuestions.filter(q => (q.category || '').replace(/\s+/g, '').toLowerCase() === norm);}getQuestionsByCategory(category: string): QAItem[] {const norm = category.replace(/\s+/g, '').toLowerCase();return this.selectedQuestions.filter(q => (q.category || '').replace(/\s+/g, '').toLowerCase() === norm);}onAnswerChange(key: string, value: any): void {this.answers[key] = value;localStorage.setItem('qa_answers', JSON.stringify(this.answers));// Auto-move to next category if current is completed and not lastconst currentIndex = this.categoriesMeta.findIndex(cat => cat.key === this.selectedCategory);const currentCat = this.categoriesMeta[currentIndex];const total = this.getCategoryRequiredCount(currentCat.key);const answered = this.getCategoryAnsweredCount(currentCat.key);if (total > 0 && answered === total && currentIndex < this.categoriesMeta.length - 1) {// Move to next categorythis.selectedCategory = this.categoriesMeta[currentIndex + 1].key;}}// Add handler for Languages Spoken checkbox grouponLanguagesCheckboxChange(event: Event, key: string): void {const input = event.target as HTMLInputElement;if (!Array.isArray(this.answers[key])) {this.answers[key] = [];}if (input.checked) {if (!this.answers[key].includes(input.value)) {this.answers[key].push(input.value);}} else {this.answers[key] = this.answers[key].filter((v: string) => v !== input.value);}localStorage.setItem('qa_answers', JSON.stringify(this.answers));this.onAnswerChange(key, this.answers[key]);}isCurrentTabComplete(): boolean {const cat = this.categories[this.currentTabIndex];return this.getQuestionsByCategory(cat).every(q => !q.required || (this.answers[q.column_key] ?? '') !== '');}isAnswered(q: QAItem): boolean {const v = this.answers[q.column_key];if (q.input_type === 'multiselect') {return Array.isArray(v) && v.length > 0;}return v !== undefined && v !== null && v !== '';}goToNextTab(group: MatTabGroup): void {if (!group || group.selectedIndex == null) return;const next = group.selectedIndex + 1;if (next < (group as any)._tabs.length) { group.selectedIndex = next; this.currentTabIndex = next; }}private normalizeForBackend(obj: Record<string, any>): Record<string, any> {const out: Record<string, any> = {};for (const [k, v] of Object.entries(obj)) {if (!this.BIT_FIELDS.has(k)) {out[k] = v;continue;}if (v === undefined || v === null || v === '') { out[k] = null; continue; }if (typeof v === 'boolean') { out[k] = v ? 1 : 0; continue; }if (typeof v === 'number') { out[k] = v !== 0 ? 1 : 0; continue; }if (typeof v === 'string') {const s = v.trim().toLowerCase();if (['yes', 'true', 'y', '1'].includes(s)) { out[k] = 1; continue; }if (['no', 'false', 'n', '0'].includes(s)) { out[k] = 0; continue; }out[k] = v;continue;}out[k] = v;}return out;}submitAnswers(): void {this.attemptedSubmit = true;// Validate required fieldsconst incompleteRequired = this.selectedQuestions.filter(q => q.required && !this.isAnswered(q));if (incompleteRequired.length) {const first = incompleteRequired[0];const el = document.getElementById('q-' + first.column_key);if (el) el.scrollIntoView({ behavior: 'smooth', block: 'center' });return;}this.isLoading = true;// Normalize answers (only affects BIT fields)const normalizedAnswers = this.normalizeForBackend(this.answers);// Build fields by column_keyconst fields: Record<string, any> = {};this.selectedQuestions.forEach((q) => {fields[q.column_key] = normalizedAnswers[q.column_key] ?? null;});// Build payload for Marriage tableconst payload = {user_id: this.userId,...fields,created_at: new Date().toISOString()};this.qaService.submitAnswers(this.selectedOption, this.userId, payload).subscribe({next: () => {this.isLoading = false;// Redirect to user preferences after successful submitthis.router.navigate(['/userPreference'], {queryParams: {user_id: this.userId,role: this.selectedOption || 'marriage'}});},error: (err: HttpErrorResponse) => {this.isLoading = false;const reason = err.status === 0? 'Network/CORS or server unreachable': (err.error?.error || err.message || 'Server error');console.error('Submit failed:', err);alert(`Submit failed: ${reason}`);}});}dismissProceedModal(): void {this.showProceedModal = false;}closeModal(): void {this.isModalOpen = false;if (this.displayMode === 'modal') { this.selectedQuestions = []; this.answers = {}; this.selectedOption = ''; }}goHome(): void { this.router.navigate(['/']); }getBackgroundForRole(role: string): string {const backgrounds: Record<string, string> = {marriage: 'assets/wedding.png',interview: 'assets/interview.png',partnership: 'assets/partnership.png'};return backgrounds[role] || 'assets/default-bg.png';}getCategoryImage(key: string): string {const images: Record<string, string> = {personal: 'assets/marriage-match/17.png',locationfamily: 'assets/marriage-match/12.png',lifestyle: 'assets/marriage-match/7.png',educationcareer: 'assets/marriage-match/15.png'};return images[key] || 'assets/marriage-match/9.png';}getPlaceholder(question: QAItem): string {if (question.placeholder) return question.placeholder;switch (question.input_type) {case 'date': return 'Select date';case 'select': return 'Select option';default: return 'Enter your answer';}}showError(q: QAItem): boolean {return this.attemptedSubmit && !!q.required && !this.isAnswered(q);}}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876import { Component, OnInit, HostListener, OnDestroy } from '@angular/core';import { HttpClient, HttpErrorResponse } from '@angular/common/http';import { Router, ActivatedRoute } from '@angular/router';import { CommonModule } from '@angular/common';import { FormsModule } from '@angular/forms';import { QAItem, QuestionAnswerService, CategoryMeta } from './question-answer-service.service';import { AuthService } from '../services/auth.service';// Add this simple pipe at the top of the fileimport { Pipe, PipeTransform } from '@angular/core';@Pipe({name: 'truncate',standalone: true})export class TruncatePipe implements PipeTransform {transform(value: string, limit: number = 100, trail: string = '...'): string {if (!value) return '';return value.length > limit ? value.substring(0, limit) + trail : value;}}@Component({selector: 'app-question-answer',templateUrl: './question-answer.component.html',styleUrls: ['./question-answer.component.css'],standalone: true,imports: [CommonModule, FormsModule, TruncatePipe]})export class QuestionAnswerComponent implements OnInit, OnDestroy {selectedOption: string = '';displayMode: 'modal' | 'page' = 'page';isLoading: boolean = true;isModalOpen: boolean = false;selectedQuestions: QAItem[] = [];answers: Record<string, any> = {};attemptedSubmit: boolean = false;isSubmitting: boolean = false;userId: number = 0;currentTabIndex: number = 0;selectedReviewCategory: string = '';categoriesMeta: CategoryMeta[] = [];selectedCategory: string = '';allowedRoles = new Set(['marriage', 'interview', 'partnership']);BIT_FIELDS = new Set(['smoking', 'drinking', 'vegetarian']);showSubmissionPopup: boolean = false;isSubmissionSuccess: boolean = false;submissionMessage: string = '';isEditingExistingProfile: boolean = false;existingProfileData: any = null;openDropdowns: { [key: string]: boolean } = {};// Add new properties for text input popupshowTextInputPopup: boolean = false;popupQuestion: QAItem | null = null;popupTextValue: string = '';constructor(private qaService: QuestionAnswerService,private router: Router,private route: ActivatedRoute,private authService: AuthService) { }// Add this method to check if the field should use popup overlayisAdditionalRemarksField(question?: QAItem): boolean {if (question) {// Check if this is specifically the "Additional Remarks" fieldconst label = question.label?.toLowerCase();const columnKey = question.column_key?.toLowerCase();// Only show popup for Additional Remarks and similar specific fieldsconst popupFields = ['additional remarks','remark','remarks'// Remove other fields if you only want Additional Remarks];return popupFields.some(field =>label?.includes(field) || columnKey?.includes(field));}// For the popup overlay check (when no question parameter)const currentLabel = this.popupQuestion?.label?.toLowerCase();const currentColumnKey = this.popupQuestion?.column_key?.toLowerCase();const popupFields = ['additional remarks','remark','remarks'];return popupFields.some(field =>currentLabel?.includes(field) || currentColumnKey?.includes(field));}// Add these methods for dropdown functionalitytoggleDropdown(columnKey: string): void {// Close all other dropdowns firstthis.openDropdowns = {};// Toggle the current dropdownthis.openDropdowns[columnKey] = !this.openDropdowns[columnKey];// Add/remove class to form group for z-index managementsetTimeout(() => {const formGroup = document.querySelector(`[id="q-${columnKey}"]`);if (formGroup) {if (this.openDropdowns[columnKey]) {formGroup.classList.add('dropdown-open');} else {formGroup.classList.remove('dropdown-open');}}});}isDropdownOpen(columnKey: string): boolean {return this.openDropdowns[columnKey] === true;}getSelectedOptionsText(columnKey: string): string {const value = this.answers[columnKey];if (!Array.isArray(value) || value.length === 0) {return '';}if (value.length === 1) {return value[0];}return `${value.length} options selected`;}areAllOptionsSelected(question: QAItem): boolean {const value = this.answers[question.column_key];const options = this.getMultiselectOptions(question);return Array.isArray(value) && options.length > 0 && value.length === options.length;}toggleSelectAll(question: QAItem): void {const options = this.getMultiselectOptions(question);if (!this.areAllOptionsSelected(question)) {// Select allthis.answers[question.column_key] = [...options];} else {// Deselect allthis.answers[question.column_key] = [];}this.onAnswerChange(question.column_key, this.answers[question.column_key]);}// Add these methods for text input popup functionalityopenTextInputPopup(question: QAItem): void {// Only open popup for specific fields (like Additional Remarks)if (this.isAdditionalRemarksField(question)) {this.popupQuestion = question;this.popupTextValue = this.answers[question.column_key] || '';this.showTextInputPopup = true;// Initialize textarea height after view updatessetTimeout(() => {this.initializeTextareaHeight();});}// For other fields, do nothing (no popup will open)}closeTextInputPopup(): void {this.showTextInputPopup = false;this.popupQuestion = null;this.popupTextValue = '';}saveTextInputPopup(): void {if (this.popupQuestion) {this.answers[this.popupQuestion.column_key] = this.popupTextValue;this.onAnswerChange(this.popupQuestion.column_key, this.popupTextValue);}this.closeTextInputPopup();}// Auto-expanding textarea functionality for popup onlyonTextareaInput(event: Event): void {const textarea = event.target as HTMLTextAreaElement;this.adjustTextareaHeight(textarea);}initializeTextareaHeight(): void {const textarea = document.querySelector('.text-input-popup-field') as HTMLTextAreaElement;if (textarea) {this.adjustTextareaHeight(textarea);textarea.focus();// Set cursor to end of textconst length = textarea.value.length;textarea.setSelectionRange(length, length);}}adjustTextareaHeight(textarea: HTMLTextAreaElement): void {// Reset height to auto to get the correct scrollHeighttextarea.style.height = 'auto';// Set the height to scrollHeight to expand, with max limitconst maxHeight = 400;const newHeight = Math.min(textarea.scrollHeight, maxHeight);textarea.style.height = newHeight + 'px';// Enable scrolling only when content exceeds max heighttextarea.style.overflowY = textarea.scrollHeight > maxHeight ? 'auto' : 'hidden';}private enhanceUserExperience(): void {if (this.selectedCategory !== 'review') {setTimeout(() => {const formContainer = document.querySelector('.form-container');if (formContainer) {formContainer.scrollTop = 0;}}, 150);}}getProgressBarWidth(): number {if (this.selectedCategory === 'review') {return 100;}const currentIndex = this.categoriesMeta.findIndex(cat => cat.key === this.selectedCategory);if (currentIndex >= 0) {return ((currentIndex + 1) / (this.categoriesMeta.length + 1)) * 100;}return 0;}getStepLabel(title: string): string {const words = title.split(' ');return words.length > 2 ? words[0] : title.split(' ')[0];}@HostListener('window:resize')onWindowResize() {// Responsive behavior placeholder}get totalRequired(): number {return this.selectedQuestions.filter(q => q.required).length;}get answeredRequired(): number {return this.selectedQuestions.filter(q => q.required && this.isAnswered(q)).length;}get progressPercent(): number {return this.totalRequired ? Math.round((this.answeredRequired / this.totalRequired) * 100) : 0;}get allFieldsAnswered(): boolean {return this.selectedQuestions.length > 0 && this.selectedQuestions.every(q => this.isAnswered(q));}get unansweredCount(): number {return this.selectedQuestions.filter(q => !this.isAnswered(q)).length;}getCategoryQuestions(key: string): QAItem[] {const norm = key.replace(/\s+/g, '').toLowerCase();return this.selectedQuestions.filter(q => (q.category || '').replace(/\s+/g, '').toLowerCase() === norm);}getCategoryAnsweredCount(key: string): number {return this.getCategoryQuestions(key).filter(q => this.isAnswered(q)).length;}getCategoryRequiredCount(key: string): number {const qs = this.getCategoryQuestions(key);const requiredCnt = qs.filter(q => q.required).length;return requiredCnt || qs.length;}getCategoryPercent(key: string): number {const denom = this.getCategoryRequiredCount(key) || 1;return Math.round((this.getCategoryAnsweredCount(key) / denom) * 100);}showSubmissionSuccessPopup(): void {this.showSubmissionPopup = true;this.isSubmissionSuccess = true;this.submissionMessage = 'Profile submitted successfully!';}redirectToHome(): void {this.showSubmissionPopup = false;this.router.navigate(['/']);}redirectToPreferences(): void {this.showSubmissionPopup = false;this.router.navigate(['/userpreferences'], {queryParams: { user_id: this.userId }});}closeSuccessModal(): void {this.showSubmissionPopup = false;// Remove blur effects from main contentconst container = document.querySelector('.container');const tabs = document.querySelectorAll('.tab');if (container) {container.classList.remove('blur-background');}tabs.forEach(tab => {tab.classList.remove('blur-background');});}// Single closeModal method that handles both scenarioscloseModal(): void {if (this.displayMode === 'modal') {this.isModalOpen = false;this.selectedQuestions = [];this.answers = {};this.selectedOption = '';} else {// For page mode, close the success modalthis.closeSuccessModal();}}private checkExistingProfile(role: string): void {this.isLoading = true;this.qaService.getExistingProfile(role, this.userId).subscribe({next: (existingData: any) => {console.log('🟢 Existing profile data received:', existingData);if (existingData && Object.keys(existingData).length > 0 && !existingData.error) {this.isEditingExistingProfile = true;this.existingProfileData = existingData;console.log('🟢 Editing existing profile with data:', this.existingProfileData);} else {this.isEditingExistingProfile = false;this.existingProfileData = null;console.log('🟡 No existing profile found or empty data');}this.onSelect(role, 'page');},error: (err: HttpErrorResponse) => {console.log('🟡 No existing profile found or error:', err.message);this.isEditingExistingProfile = false;this.existingProfileData = null;this.onSelect(role, 'page');}});}onSelect(role: string, mode: 'modal' | 'page' = 'page'): void {this.selectedOption = role;this.displayMode = mode;this.isModalOpen = mode === 'modal';this.isLoading = true;// Fetch categories first, then questionsthis.qaService.getCategories(role).subscribe({next: (categories: CategoryMeta[]) => {this.categoriesMeta = categories;// Set default review categoryif (this.categoriesMeta.length > 0) {this.selectedReviewCategory = this.categoriesMeta[0].key;}this.fetchQuestions(role);},error: (err: HttpErrorResponse) => {console.error('Failed to load categories, using defaults', err);// Fallback to default categories if API failsthis.categoriesMeta = this.getDefaultCategories();// Set default review categoryif (this.categoriesMeta.length > 0) {this.selectedReviewCategory = this.categoriesMeta[0].key;}this.fetchQuestions(role);}});}private getDefaultCategories(): CategoryMeta[] {return [{ key: 'Personal', title: 'Personal Information' },{ key: 'Location', title: 'Location & Family' },{ key: 'Lifestyle', title: 'Lifestyle & Preferences' },{ key: 'Education', title: 'Education & Career' }];}ngOnInit(): void {this.route.queryParamMap.subscribe(params => {const role = (params.get('role') || '').toLowerCase();const userIdFromParams = params.get('user_id');if (userIdFromParams) {this.userId = Number(userIdFromParams);} else {this.userId = this.authService.userId || 0;}if (this.allowedRoles.has(role)) {this.checkExistingProfile(role);}});// Set default review categoryif (this.categoriesMeta.length > 0) {this.selectedReviewCategory = this.categoriesMeta[0].key;}}// Add this method to handle review category selectionselectReviewCategory(categoryKey: string): void {this.selectedReviewCategory = categoryKey;}ngOnDestroy(): void {// Clean up if needed}selectCategory(key: string): void {this.selectedCategory = key;const categoryIndex = this.categoriesMeta.findIndex(cat => cat.key === key);this.currentTabIndex = categoryIndex >= 0 ? categoryIndex : this.categoriesMeta.length;// Initialize selected review category when entering review tabif (key === 'review' && this.categoriesMeta.length > 0) {this.selectedReviewCategory = this.categoriesMeta[0].key;}this.enhanceUserExperience();}trackQuestion(index: number, item: QAItem): string {return item.column_key;}fetchQuestions(role: string): void {this.qaService.getQuestions(role).subscribe({next: (data: QAItem[]) => {this.selectedQuestions = data;console.log('🟢 Questions loaded:', this.selectedQuestions.length);this.initializeAnswers(this.selectedQuestions);this.isLoading = false;this.attemptedSubmit = false;// Set initial category after questions are loadedif (this.categoriesMeta.length > 0) {this.selectedCategory = this.categoriesMeta[0].key;this.currentTabIndex = 0;}if (role === 'marriage') {this.displayMode = 'page';this.isModalOpen = false;} else if (this.displayMode === 'modal') {this.isModalOpen = true;} else {this.isModalOpen = false;}setTimeout(() => {this.enhanceUserExperience();}, 500);},error: (err: HttpErrorResponse) => {this.isLoading = false;this.showSubmissionPopup = true;this.isSubmissionSuccess = false;this.submissionMessage = 'Failed to load questions. Please try again.';}});}private initializeAnswers(questions: QAItem[]): void {this.answers = {};console.log('🟢 Initializing answers. Editing existing profile:', this.isEditingExistingProfile);console.log('🟢 Existing profile data:', this.existingProfileData);questions.forEach(q => {if (this.isEditingExistingProfile && this.existingProfileData) {const existingValue = this.existingProfileData[q.column_key];console.log(`🟢 Processing field ${q.column_key}:`, {value: existingValue,type: typeof existingValue,inputType: q.input_type});if (q.input_type === 'multiselect') {// Handle multiselect fieldsif (typeof existingValue === 'string' && existingValue) {// Clean and split comma-separated stringconst cleanValue = existingValue.replace(/[\[\]"]/g, '');this.answers[q.column_key] = cleanValue.split(',').map((item: string) => item.trim()).filter(item => item.length > 0);console.log(`🟢 Multiselect parsed: ${q.column_key} =`, this.answers[q.column_key]);} else if (Array.isArray(existingValue)) {this.answers[q.column_key] = existingValue.filter(item => item && item.length > 0);} else {this.answers[q.column_key] = [];}} else if (q.input_type === 'radio' || q.input_type === 'select') {// Handle radio buttons and select fieldsif (existingValue !== null && existingValue !== undefined && existingValue !== '') {this.answers[q.column_key] = String(existingValue).trim();console.log(`🟢 Radio/Select set: ${q.column_key} = "${this.answers[q.column_key]}"`);} else {this.answers[q.column_key] = '';}} else if (q.input_type === 'checkbox') {// Handle checkbox fieldsif (existingValue === 1 || existingValue === '1' || existingValue === true || existingValue === 'true' || existingValue === 'Yes') {this.answers[q.column_key] = true;} else if (existingValue === 0 || existingValue === '0' || existingValue === false || existingValue === 'false' || existingValue === 'No') {this.answers[q.column_key] = false;} else {this.answers[q.column_key] = false;}console.log(`🟢 Checkbox set: ${q.column_key} =`, this.answers[q.column_key]);} else if (q.input_type === 'date' && existingValue) {// Handle date fieldstry {if (existingValue instanceof Date) {this.answers[q.column_key] = existingValue.toISOString().split('T')[0];} else if (typeof existingValue === 'string') {const date = new Date(existingValue);if (!isNaN(date.getTime())) {this.answers[q.column_key] = date.toISOString().split('T')[0];} else {this.answers[q.column_key] = existingValue;}} else {this.answers[q.column_key] = existingValue;}} catch {this.answers[q.column_key] = existingValue;}} else {// Handle text, textarea, number fieldsif (existingValue !== null && existingValue !== undefined) {this.answers[q.column_key] = String(existingValue);} else {this.answers[q.column_key] = '';}console.log(`🟢 Text field set: ${q.column_key} = "${this.answers[q.column_key]}"`);}} else {// Initialize empty values for new profilethis.answers[q.column_key] = q.input_type === 'multiselect' ? [] :q.input_type === 'checkbox' ? false : '';console.log(`🟡 New profile - empty value for: ${q.column_key}`);}});console.log('🟢 Final answers object:', this.answers);}onAnswerChange(key: string, value: any): void {this.answers[key] = value;console.log(`🟢 Answer changed: ${key} =`, value);}isAnswered(q: QAItem): boolean {const v = this.answers[q.column_key];if (q.input_type === 'multiselect') {return Array.isArray(v) && v.length > 0;}if (q.input_type === 'checkbox') {return v !== undefined && v !== null;}return v !== undefined && v !== null && v !== '' && v !== false;}private normalizeForBackend(obj: Record<string, any>): Record<string, any> {const out: Record<string, any> = {};for (const [k, v] of Object.entries(obj)) {if (!this.BIT_FIELDS.has(k)) {out[k] = v;continue;}if (v === undefined || v === null || v === '') {out[k] = null;continue;}if (typeof v === 'boolean') {out[k] = v ? 1 : 0;continue;}if (typeof v === 'number') {out[k] = v !== 0 ? 1 : 0;continue;}if (typeof v === 'string') {const s = v.trim().toLowerCase();if (['yes', 'true', 'y', '1'].includes(s)) {out[k] = 1;continue;}if (['no', 'false', 'n', '0'].includes(s)) {out[k] = 0;continue;}out[k] = v;continue;}out[k] = v;}return out;}submitAnswers(): void {this.attemptedSubmit = true;const incompleteRequired = this.selectedQuestions.filter(q => q.required && !this.isAnswered(q));if (incompleteRequired.length) {const first = incompleteRequired[0];const el = document.getElementById('q-' + first.column_key);if (el) {el.scrollIntoView({behavior: 'smooth',block: 'center',inline: 'nearest'});el.classList.add('highlight-required');setTimeout(() => {el.classList.remove('highlight-required');}, 2000);}return;}this.isLoading = true;this.isSubmitting = true;const normalizedAnswers = this.normalizeForBackend(this.answers);const fields: Record<string, any> = {};this.selectedQuestions.forEach((q) => {fields[q.column_key] = normalizedAnswers[q.column_key] ?? null;});const payload = {user_id: this.userId,...fields};console.log('🟢 Submitting payload:', payload);const submitObservable = this.isEditingExistingProfile? this.qaService.updateAnswers(this.selectedOption, this.userId, payload): this.qaService.submitAnswers(this.selectedOption, this.userId, payload);submitObservable.subscribe({next: (response) => {this.isLoading = false;this.isSubmitting = false;console.log('🟢 Submission successful:', response);// Update progress trackingconst userId = this.userId;if (userId) {const existingProgress = localStorage.getItem(`user_progress_${userId}`);let progressData: any = {};if (existingProgress) {try {progressData = JSON.parse(existingProgress);} catch (e) {console.error('Error parsing existing progress:', e);}}progressData.profileCompleted = true;localStorage.setItem(`user_progress_${userId}`, JSON.stringify(progressData));}// Dispatch event for progress updatesconst profileCompletedEvent = new CustomEvent('profileCompleted', {detail: {userId: this.userId,role: this.selectedOption,timestamp: Date.now()}});window.dispatchEvent(profileCompletedEvent);this.showSubmissionSuccessPopup();},error: (err: HttpErrorResponse) => {this.isLoading = false;this.isSubmitting = false;const reason = err.status === 0? 'Network/CORS or server unreachable': (err.error?.error || err.message || 'Server error');console.error('🔴 Submission error:', err);this.showSubmissionPopup = true;this.isSubmissionSuccess = false;this.submissionMessage = `Submission failed: ${reason}. Please try again.`;}});}getMultiselectOptions(question: QAItem): string[] {return question.options || [];}isMultiselectSelected(key: string, option: string): boolean {return Array.isArray(this.answers[key]) && this.answers[key].includes(option);}@HostListener('document:click', ['$event'])onDocumentClick(event: MouseEvent): void {const target = event.target as HTMLElement;if (!target.closest('.multiselect-dropdown-checkbox')) {// Remove dropdown-open class from all form groupsdocument.querySelectorAll('.form-group.dropdown-open').forEach(group => {group.classList.remove('dropdown-open');});this.openDropdowns = {};}}onMultiselectChange(event: Event, key: string, option?: string): void {const input = event.target as HTMLInputElement;if (!Array.isArray(this.answers[key])) {this.answers[key] = [];}const value = option || input.value;const isChecked = input.checked;if (isChecked) {if (!this.answers[key].includes(value)) {this.answers[key].push(value);}} else {this.answers[key] = this.answers[key].filter((v: string) => v !== value);}this.onAnswerChange(key, this.answers[key]);}isRadioSelected(key: string, option: string): boolean {return this.answers[key] === option;}onRadioChange(key: string, option: string): void {this.answers[key] = option;this.onAnswerChange(key, option);}goToPreviousCategory(currentKey: string): void {const currentIndex = this.categoriesMeta.findIndex(cat => cat.key === currentKey);if (currentIndex > 0) {this.selectedCategory = this.categoriesMeta[currentIndex - 1].key;this.currentTabIndex = currentIndex - 1;this.enhanceUserExperience();}}goToNextCategory(currentKey: string): void {const currentIndex = this.categoriesMeta.findIndex(cat => cat.key === currentKey);if (currentIndex < this.categoriesMeta.length - 1) {this.selectedCategory = this.categoriesMeta[currentIndex + 1].key;this.currentTabIndex = currentIndex + 1;} else {this.selectedCategory = 'review';this.currentTabIndex = this.categoriesMeta.length;// Ensure review category is set when navigating to reviewif (this.categoriesMeta.length > 0) {this.selectedReviewCategory = this.categoriesMeta[0].key;}}this.enhanceUserExperience();}getAnswerDisplay(question: QAItem): string {const value = this.answers[question.column_key];if (value === null || value === undefined || value === '') {return '(Not answered)';}if (Array.isArray(value)) {return value.length > 0 ? value.join(', ') : '(Not answered)';}if (typeof value === 'boolean') {return value ? 'Yes' : 'No';}return String(value);}getPlaceholder(question: QAItem): string {if (question.placeholder) return question.placeholder;switch (question.input_type) {case 'date': return 'Select date';case 'select': return 'Select option';default: return 'Enter your answer';}}showError(q: QAItem): boolean {return this.attemptedSubmit && !!q.required && !this.isAnswered(q);}toTitleCase(text: string): string {return text.replace(/\w\S*/g, (txt) => {return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();});}getCategoryIcon(categoryKey: string): string {const iconMap: { [key: string]: string } = {'Personal': 'fa-user','Location': 'fa-home','Lifestyle': 'fa-heart','Education': 'fa-graduation-cap','review': 'fa-check'};return iconMap[categoryKey] || 'fa-question';}getCurrentCategoryIcon(): string {return this.getCategoryIcon(this.selectedCategory);}getCurrentCategoryTitle(): string {if (this.selectedCategory === 'review') {return 'Review Your Information';}const category = this.categoriesMeta.find(c => c.key === this.selectedCategory);return category?.title || 'Category';}getCurrentCategoryDescription(): string {const descriptions: Record<string, string> = {'Personal': 'Please provide your personal information','Location': 'Share your location and family details','Lifestyle': 'Describe your lifestyle and preferences','Education': 'Tell us about your education and career','review': 'Review all the information you have provided'};return descriptions[this.selectedCategory] || 'Complete this section';}getReviewCategoryTitle(categoryKey: string): string {const category = this.categoriesMeta.find(c => c.key === categoryKey);return category?.title || categoryKey;}getCategoryAnsweredCountByKey(categoryKey: string): number {return this.getCategoryAnsweredCount(categoryKey);}getCategoryRequiredCountByKey(categoryKey: string): number {return this.getCategoryRequiredCount(categoryKey);}}
1234567891011121314151617import { TestBed } from '@angular/core/testing';import { CanActivateFn } from '@angular/router';
import { authGuard } from './auth.guard';
describe('authGuard', () => { const executeGuard: CanActivateFn = (...guardParameters) => TestBed.runInInjectionContext(() => authGuard(...guardParameters));
beforeEach(() => { TestBed.configureTestingModule({}); });
it('should be created', () => { expect(executeGuard).toBeTruthy(); });});1234567891011121314151617181920import { Injectable } from '@angular/core';import { CanActivate, Router } from '@angular/router';import { AuthService } from './auth.service';
@Injectable({ providedIn: 'root',})export class AuthGuard implements CanActivate { constructor(private auth: AuthService, private router: Router) { }
canActivate(): boolean { if (this.auth.isAuthenticated) { return true; } else { // Redirect to signin and show modal this.router.navigate(['/'], { queryParams: { showSignIn: true } }); return false; } }}12345678910111213141516import { TestBed } from '@angular/core/testing';import { AuthService } from './auth.service';describe('AuthService', () => {let service: AuthService;beforeEach(() => {TestBed.configureTestingModule({});service = TestBed.inject(AuthService);});it('should be created', () => {expect(service).toBeTruthy();});});12345678910111213141516import { TestBed } from '@angular/core/testing';import { AuthService } from './auth.service';describe('AuthService', () => {let service: AuthService;beforeEach(() => {TestBed.configureTestingModule({});service = TestBed.inject(AuthService);});it('should be created', () => {expect(service).toBeTruthy();});});
1234567891011121314151617181920212223// src/app/services/auth.service.tsimport { Injectable } from '@angular/core';import { BehaviorSubject } from 'rxjs';@Injectable({providedIn: 'root'})export class AuthService {private isAuthenticatedSubject = new BehaviorSubject<boolean>(false);isAuthenticated$ = this.isAuthenticatedSubject.asObservable();signIn() {this.isAuthenticatedSubject.next(true);}signOut() {this.isAuthenticatedSubject.next(false);}getIsAuthenticated(): boolean {return this.isAuthenticatedSubject.value;}}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185import { Injectable } from '@angular/core';import { HttpClient } from '@angular/common/http';import { BehaviorSubject, Observable, tap, catchError, throwError } from 'rxjs';import { Router } from '@angular/router';@Injectable({providedIn: 'root',})export class AuthService {private baseUrl = 'http://localhost:5000/api';private isLoggedInSubject = new BehaviorSubject<boolean>(false);private currentUserId = new BehaviorSubject<number | null>(this.getUserIdFromStorage());private userIdSubject = new BehaviorSubject<number | null>(this.getUserIdFromStorage());constructor(private http: HttpClient, private router: Router) {// Check if user is already logged in (from session)this.initializeAuthState();}// Get user ID from storage with sessionStorage priorityprivate getUserIdFromStorage(): number | null {const savedUserId = sessionStorage.getItem('user_id') || localStorage.getItem('user_id');return savedUserId ? Number(savedUserId) : null;}setUserId(userId: number): void {// Use sessionStorage as primarysessionStorage.setItem('user_id', userId.toString());// Update both BehaviorSubjects for consistencythis.currentUserId.next(userId);this.userIdSubject.next(userId);this.isLoggedInSubject.next(true);console.log('🔐 AuthService - User ID set via setUserId:', userId);}getUserId(): number | null {// Prefer sessionStorage over localStorageconst userId = sessionStorage.getItem('user_id') || localStorage.getItem('user_id');return userId ? parseInt(userId, 10) : null;}private initializeAuthState(): void {const savedUserId = this.getUserIdFromStorage();const savedUserData = sessionStorage.getItem('user_data') || localStorage.getItem('user_data');if (savedUserId && savedUserData) {this.isLoggedInSubject.next(true);this.currentUserId.next(savedUserId);this.userIdSubject.next(savedUserId);console.log('🔐 AuthService initialized with user:', savedUserId);} else {console.log('🔐 AuthService initialized - no user logged in');}}get isAuthenticated(): boolean {return this.isLoggedInSubject.value;}get userId(): number | null {return this.currentUserId.value;}get userId$(): Observable<number | null> {return this.currentUserId.asObservable();}/** SIGN UP */signUp(name: string, email: string, password: string): Observable<any> {return this.http.post(`${this.baseUrl}/signup`, { name, email, password }).pipe(tap((response: any) => {if (response.message && response.user_id) {this.setUserId(response.user_id);// Store user data in sessionStorage (primary)const userData = {user_id: response.user_id,name: name,email: email};sessionStorage.setItem('user_id', response.user_id.toString());sessionStorage.setItem('user_data', JSON.stringify(userData));// Keep localStorage as fallback onlylocalStorage.setItem('user_id', response.user_id.toString());localStorage.setItem('user_name', name);console.log('✅ Signup successful, user auto-logged in:', response.user_id);}}),catchError((error) => {console.error('Signup error:', error);return throwError(() => error);}));}/** LOGIN */login(email: string, password: string): Observable<any> {return this.http.post(`${this.baseUrl}/login`, { email, password }).pipe(tap((response: any) => {if (response.message === 'Login successful.' && response.user_id) {this.setUserId(response.user_id);// Store user data in sessionStorage (primary)const userData = {user_id: response.user_id,name: response.name,email: response.email};sessionStorage.setItem('user_id', response.user_id.toString());sessionStorage.setItem('user_data', JSON.stringify(userData));// Keep localStorage as fallback onlylocalStorage.setItem('user_id', response.user_id.toString());if (response.name) {localStorage.setItem('user_name', response.name);localStorage.setItem('userName', response.name);localStorage.setItem('name', response.name);}console.log('✅ Login successful, user ID:', response.user_id);}}),catchError((error) => {console.error('Login error:', error);return throwError(() => error);}));}/** LOGOUT - UPDATED: Remove page reload to preserve animations */logout(): void {console.log('🔐 AuthService - Logging out user:', this.currentUserId.value);// Update BehaviorSubjects firstthis.isLoggedInSubject.next(false);this.currentUserId.next(null);this.userIdSubject.next(null);// Clear session storagesessionStorage.clear(); // Clear all session storage to be safe// Clear specific localStorage itemslocalStorage.removeItem('user_id');localStorage.removeItem('user_name');localStorage.removeItem('userName');localStorage.removeItem('name');localStorage.removeItem('auth_token');console.log('✅ Logout complete - all storage cleared');// Only navigate, don't reload - let the component handle the UI statethis.router.navigate(['/']);}// Alternative logout method that doesn't navigate at alllogoutSilent(): void {console.log('🔐 AuthService - Silent logout for user:', this.currentUserId.value);// Update BehaviorSubjects firstthis.isLoggedInSubject.next(false);this.currentUserId.next(null);this.userIdSubject.next(null);// Clear session storagesessionStorage.clear();// Clear specific localStorage itemslocalStorage.removeItem('user_id');localStorage.removeItem('user_name');localStorage.removeItem('userName');localStorage.removeItem('name');localStorage.removeItem('auth_token');console.log('✅ Silent logout complete - storage cleared without navigation');}// Check if user is logged in (observable)get isLoggedIn$(): Observable<boolean> {return this.isLoggedInSubject.asObservable();}}
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485import { Injectable } from '@angular/core';import { HttpClient } from '@angular/common/http';import { Observable } from 'rxjs';export type Role =| 'marriage'| 'interview'| 'partnership'| 'team'| 'general'| 'assistant'| 'ceo';export type ColorKey = 'blue' | 'green' | 'red' | 'yellow';export interface LlmOption {text: string;color: ColorKey;}export interface StartRequest {user_id: string; // <- IMPORTANT: user id only; no profile JSONrole: Role;n_questions: number;batch_size: number;}export interface StartResponse {session_id: string;index: number;total: number;question: string;options: LlmOption[];source?: string;role: Role | string;profile_used?: boolean; // true if backend found the profile row}export interface NextRequest {session_id: string;selected_color: ColorKey;}export interface NextResponse {// when continuing:session_id?: string;index?: number;total?: number;question?: string;options?: LlmOption[];progress?: Record<ColorKey, number>;source?: string;role?: Role | string;// when finished:done?: boolean;message?: string;mix?: Record<ColorKey, number>;db_write?: 'ok' | 'failed';error?: string;}@Injectable({ providedIn: 'root' })export class LlmQaService {private readonly api: string;private readonly baseUrl: string;constructor(private http: HttpClient) {// Initialize URLs based on the current hostnamethis.api = typeof location !== 'undefined' && location.hostname.endsWith('hf.space')? 'https://pykara-py-match-backend.hf.space': 'http://localhost:5000';this.baseUrl = `${this.api}/api/questions`;}start(req: StartRequest): Observable<StartResponse> {return this.http.post<StartResponse>(`${this.api}/llm/start`, req);}next(req: NextRequest): Observable<NextResponse> {return this.http.post<NextResponse>(`${this.api}/llm/next`, req);}}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495import { Injectable } from '@angular/core';import { HttpClient } from '@angular/common/http';import { Observable } from 'rxjs';import { AuthService } from '../services/auth.service';export type Role =| 'marriage'| 'interview'| 'partnership'| 'team'| 'general'| 'assistant'| 'ceo';export type ColorKey = 'blue' | 'green' | 'red' | 'yellow';export interface LlmOption {text: string;color: ColorKey;}export interface StartRequest {user_id: string; // <- IMPORTANT: user id only; no profile JSONrole: Role;n_questions: number;batch_size: number;}export interface StartResponse {session_id: string;index: number;total: number;question: string;options: LlmOption[];source?: string;role: Role | string;profile_used?: boolean; // true if backend found the profile rowassessment_already_taken?: boolean; // 🚨 NEW: Add this field}export interface NextRequest {session_id: string;selected_color: ColorKey;}export interface NextResponse {// when continuing:session_id?: string;index?: number;total?: number;question?: string;options?: LlmOption[];progress?: Record<ColorKey, number>;source?: string;role?: Role | string;// when finished:done?: boolean;message?: string;mix?: Record<ColorKey, number>;db_write?: 'ok' | 'failed';error?: string;assessment_already_taken?: boolean; // 🚨 NEW: Add this field}@Injectable({ providedIn: 'root' })export class LlmQaService {private readonly api: string;private readonly baseUrl: string;constructor(private http: HttpClient, private authService: AuthService) {// Initialize URLs based on the current hostnamethis.api = typeof location !== 'undefined' && location.hostname.endsWith('hf.space')? 'https://pykara-py-match-backend.hf.space': 'http://localhost:5000';this.baseUrl = `${this.api}/api/questions`;}start(req: StartRequest): Observable<StartResponse> {return this.http.post<StartResponse>(`${this.api}/llm/start`, req);}next(req: NextRequest): Observable<NextResponse> {return this.http.post<NextResponse>(`${this.api}/llm/next`, req);}// 🚨 NEW: Add method to check assessment completioncheckAssessmentCompletion(userId: string): Observable<{has_taken_assessment: boolean, message: string}> {return this.http.get<{has_taken_assessment: boolean, message: string}>(`${this.api}/api/check-assessment-completion/${userId}`);}}
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438/* Reuse Question Answer styles for shared hero and info-card UI */@import url('../question-answer/question-answer.component.css');/* Professional Styles for User Preferences Component - Light theme to match question-answer */.preferences-container {background: #f8fafc;padding: 7.5vw 0 1.5vw 0;color: #1a202c;}.preferences-content {background: white;border-radius: 20px;box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);overflow: hidden;border: 1px solid #e3e5e8;}.preferences-section {padding: 3rem;}.preferences-header {display: flex;gap: 3rem;margin-bottom: unset !important;align-items: flex-start;}.preferences-image {flex: 0 0 300px;border-radius: 16px;overflow: hidden;box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);position: relative;}.preferences-image::before {content: "";position: absolute;inset: 0;background: linear-gradient(135deg, rgba(243, 165, 76, 0.1), rgba(0, 255, 136, 0.1));z-index: 1;}.preferences-image img {width: 100%;height: 200px;object-fit: cover;position: relative;z-index: 0;border-radius: 16px;}.preferences-info {flex: 1;}.section-description {color: #4a5568;font-size: 1rem;font-weight: 500;line-height: 1.6;margin: 0;}/* Progress Indicator (match QA) */.progress-indicator {display: flex;align-items: center;gap: 1rem;margin-top: 1rem;}.progress-bar {flex: 1;height: 8px;background: #e2e8f0;border-radius: 4px;overflow: hidden;}.progress-fill {height: 100%;background: linear-gradient(135deg, #f3a54c, #ffcb7a);border-radius: 4px;transition: width 0.4s ease;}.progress-indicator small {color: #4a5568;font-weight: 600;min-width: 80px;}/* Category Sections */.category-section {margin-bottom: 3rem;padding-bottom: 2rem;border-bottom: 1px solid #e2e8f0;}.category-section:last-of-type {border-bottom: none;margin-bottom: 2rem;}/* category-title is a button; reset to look like a heading */.category-title {background: none;border: none;padding: 0;margin: 0 0 1.5rem 0;text-align: left;font: inherit;cursor: default;font-size: 1.5rem;font-weight: 700;color: #2d3748;padding-bottom: 0.5rem;border-bottom: 2px solid #f3a54c;display: inline-block;}.category-title:focus {outline: none;box-shadow: none;}/* Preferences Form */.preferences-form {margin-top: 2rem;}/* Form Controls */.form-control {width: 100%;padding: 0.875rem 1rem;border: 2px solid #e2e8f0;border-radius: 12px;font-size: 0.95rem;transition: all 0.3s ease;background: white;color: #1a202c;font-family: inherit;box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);}.form-control:focus {outline: none;border-color: #f3a54c;box-shadow: 0 0 0 3px rgba(243, 165, 76, 0.1);}.form-control::placeholder {color: #718096;}/* Checkbox Options */.checkbox-options {display: flex;flex-direction: column;align-items: stretch;}.checkbox-options .question-card {width: 100%;min-width: 0;box-sizing: border-box;max-height: 260px;overflow-y: auto;overflow-x: hidden;}.checkbox-option {display: flex;align-items: center;gap: 0.75rem;padding: 0.2vw;background: #f7fafc;border-radius: 12px;cursor: pointer;transition: all 0.3s ease;position: relative;border: 2px solid transparent;color: #2d3748;margin-bottom: unset !important;}.checkbox-options {overflow: scroll;height: 8vh;}.checkbox-option:hover {background: #edf2f7;border-color: #f3a54c;transform: translateY(-2px);box-shadow: 0 4px 12px rgba(243, 165, 76, 0.15);}.checkbox-option input {position: absolute;opacity: 0;cursor: pointer;}.checkmark {position: relative;height: 20px;width: 20px;background-color: white;border: 2px solid #cbd5e0;border-radius: 6px;transition: all 0.3s ease;}.checkbox-option input:checked ~ .checkmark {background-color: #f3a54c;border-color: #f3a54c;}.checkmark:after {content: "";position: absolute;display: none;left: 6px;top: 2px;width: 4px;height: 8px;border: solid white;border-width: 0 2px 2px 0;transform: rotate(45deg);}.checkbox-option input:checked ~ .checkmark:after {display: block;}/* Questions Grid - ensure consistent card widths */.questions-grid {display: grid;grid-template-columns: repeat(4, minmax(0, 1fr));gap: unset !important;margin-bottom: 2rem;align-items: start;justify-items: stretch;}.question-card {background: white;border: 2px solid #f7fafc;border-radius: 16px;padding: 1.5rem;transition: all 0.3s ease;position: relative;box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);width: 100%;box-sizing: border-box;height: 18vh;overflow-y: auto;color: #1a202c;}.question-card:hover {border-color: #f3a54c;transform: translateY(-2px);box-shadow: 0 8px 25px rgba(243, 165, 76, 0.15);}.question-card label {display: flex;margin-bottom: 0.75rem;font-weight: 600;color: #2d3748;font-size: 0.95rem;/*line-height: 1.4;*/overflow-wrap: anywhere;}.question-card.answered {border-color: #00d68f !important;background: linear-gradient(135deg, #e6fff5 60%, #f7fafc 100%);box-shadow: 0 4px 16px rgba(0, 214, 143, 0.12);}/* Submit Section */.submit-section {text-align: center;padding: 2rem 0 0;border-top: 1px solid #e2e8f0;margin-top: 2rem;}.submit-btn {padding: 1rem 2.5rem;font-size: 1.1rem;background: linear-gradient(135deg, #f3a54c, #ffcb7a);color: #111;border: none;border-radius: 12px;font-weight: 600;cursor: pointer;transition: all 0.3s ease;box-shadow: 0 4px 15px rgba(243, 165, 76, 0.3);}.submit-btn:hover {transform: translateY(-2px);box-shadow: 0 8px 25px rgba(243, 165, 76, 0.4);}.submit-btn:disabled {opacity: 0.6;cursor: not-allowed;transform: none !important;}/* Modal Styles - light */.modal-backdrop {position: fixed;inset: 0;background: rgba(0, 0, 0, 0.6);display: flex;justify-content: center;align-items: center;z-index: 1000;}.modal {background: white;padding: 3rem;border-radius: 16px;max-width: 460px;text-align: center;box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);border: 1px solid #e3e5e8;}.success-title {color: #48bb78;font-size: 1.5rem;margin-bottom: 1rem;}.error-title {color: #e53e3e;font-size: 1.5rem;margin-bottom: 1rem;}.modal p {color: #4a5568;margin-bottom: 2rem;line-height: 1.5;}.modal-actions {display: flex;justify-content: center;gap: 1rem;}/* Empty State */.empty-state {text-align: center;padding: 4rem 2rem;color: #718096;}.empty-state-text {font-size: 1.1rem;}/* Responsive Design for Preferences */@media (max-width: 1024px) {.questions-grid {grid-template-columns: repeat(2, minmax(0, 1fr));}}@media (max-width: 768px) {.preferences-header {flex-direction: column;gap: 2rem;}.preferences-image {flex: none;width: 100%;}.preferences-section {padding: 2rem;}.questions-grid {grid-template-columns: 1fr;}.category-title {font-size: 1.3rem;}.modal {margin: 1rem;padding: 2rem;}}@media (max-width: 480px) {.preferences-section {padding: 1.5rem;}.questions-grid {gap: 1rem;}.question-card {padding: 1.25rem;}.category-title {font-size: 1.2rem;}.progress-indicator {flex-direction: column;align-items: stretch;gap: 0.5rem;}.modal {padding: 1.5rem;}}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044:root {--primary-color: #3AB8A9;--secondary-color: #D4A755;--accent-color: #2DA89A;--light-color: #f8fafc;--success-color: #00cc6a;--warning-color: #e74c3c;--text-color: #2c3e50;--border-color: #e9ecef;--border-radius: 12px;--box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);}* {box-sizing: border-box;}.professional-page {min-height: 100vh;background: radial-gradient(circle at 20% 30%, rgba(58, 184, 169, .08), transparent 60%), radial-gradient(circle at 75% 55%, rgba(212, 167, 85, .05), transparent 55%), linear-gradient(135deg, #f8fafc 0%, #eef2f6 100%);font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;color: var(--text-color);line-height: 1.7;padding: 20px 15px;display: flex;justify-content: center;top: 4vw !important;position: relative;}.container {max-width: 1300px;width: 100%;background: #ffffff;border-radius: 20px;box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);overflow: hidden;animation: fadeInUp 0.8s ease;border: 1px solid rgba(58, 184, 169, 0.1);display: flex;flex-direction: column;max-height: calc(100vh - 90px);}@keyframes fadeInUp {from {opacity: 0;transform: translateY(40px);}to {opacity: 1;transform: translateY(0);}}.header {background: linear-gradient(135deg, #3AB8A9 0%, #5EC8BA 100%);color: #0D1B2A;padding: 25px 30px;text-align: center;position: sticky;top: 0;z-index: 100;width: 100%;overflow: hidden;padding-bottom: 2vw;}.header h1 {font-size: 2.2rem;margin-bottom: 8px;text-transform: uppercase;color: #0D1B2A;font-weight: 800;text-shadow: 2px 2px 8px rgba(0,0,0,0.1);position: relative;letter-spacing: 1.5px;margin-top: 0 !important;}.header p {opacity: 0.9;margin: 0;color: #0D1B2A;font-weight: 600;font-size: 1.1rem;position: relative;letter-spacing: 0.5px;}.progress-bar {display: flex;justify-content: space-between;position: relative;margin: 0;padding: 0 20px;}.progress-bar::before {content: '';position: absolute;top: 50%;left: 50px;right: 50px;transform: translateY(-50%);height: 6px;background: rgba(255, 255, 255, 0.5);z-index: 1;border-radius: 3px;}.progress-bar-line {position: absolute;top: 50%;left: 50px;right: 50px;transform: translateY(-50%);height: 6px;width: calc(100% - 100px);background: linear-gradient(90deg, #3AB8A9 0%, #D4A755 100%);z-index: 2;transition: var(--transition);border-radius: 3px;transform-origin: left;}.step {width: 50px;height: 50px;border-radius: 50%;background: rgba(255, 255, 255, 0.8);display: flex;justify-content: center;align-items: center;position: relative;z-index: 3;transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);font-weight: 800;cursor: pointer;border: 4px solid #fff;box-shadow: 0 6px 20px rgba(58, 184, 169, 0.3);}.step:hover {transform: scale(1.15);box-shadow: 0 8px 25px rgba(58, 184, 169, 0.4);}.step.active {background: linear-gradient(135deg, #3AB8A9 0%, #5EC8BA 100%);color: #0D1B2A;transform: scale(1.2);box-shadow: 0 10px 30px rgba(58, 184, 169, 0.4);border-color: #ffffff;}.step.completed {background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);color: #111;border: 4px solid #fff;box-shadow: 0 10px 30px rgba(0, 255, 136, 0.4);}.step.completed.active {background: linear-gradient(135deg, #3AB8A9 0%, #5EC8BA 100%);color: #0D1B2A;border: 4px solid white;box-shadow: 0 10px 30px rgba(58, 184, 169, 0.4);}.step-label {position: absolute;top: 55px;font-size: 0.8rem;text-align: center;width: 80px;left: -15px;color: #2c3e50;font-weight: 700;text-transform: uppercase;letter-spacing: 1px;}.step-icon {font-size: 1.1rem;color: #2c3e50;transition: all 0.3s ease;}.step.active .step-icon,.step.completed .step-icon {color: #0D1B2A;}.category-header {display: flex;justify-content: space-between;align-items: center;margin-bottom: 0;padding: 20px 30px;background: linear-gradient(135deg, #f0f9f8 0%, #e8f6f5 100%);border-bottom: 2px solid rgba(58, 184, 169, 0.2);}.category-info {display: flex;align-items: center;gap: 15px;}.category-header-icon {font-size: 2rem;color: #3AB8A9;}.category-details h3 {color: #2c3e50;margin-bottom: 5px;font-size: 1.3rem;font-weight: 800;}.category-details p {color: #5a6c7d;margin: 0;font-weight: 600;font-size: 0.9rem;}.category-progress-indicator {text-align: right;}.progress-bar-mini {width: 120px;height: 6px;background: rgba(58, 184, 169, 0.2);border-radius: 3px;overflow: hidden;margin-bottom: 6px;}.progress-fill {height: 100%;background: linear-gradient(90deg, #3AB8A9 0%, #D4A755 100%);border-radius: 3px;transition: width 0.5s ease;}.progress-text {font-size: 0.8rem;font-weight: 600;color: #2c3e50;}.completion-status {display: flex;align-items: center;gap: 10px;padding: 12px 18px;border-radius: 8px;background: linear-gradient(135deg, #e8f6f5 0%, #d4f0ed 100%);border: 2px solid #3AB8A9;color: #2c3e50;font-weight: 700;}.completion-status.complete {background: linear-gradient(135deg, #d1f7e1 0%, #b8f5d0 100%);border-color: #00ff88;color: #2c3e50;}.status-icon {width: 30px;height: 30px;border-radius: 50%;display: flex;align-items: center;justify-content: center;background: linear-gradient(135deg, #3AB8A9 0%, #2DA89A 100%);font-weight: 800;font-size: 1rem;box-shadow: 0 4px 12px rgba(58, 184, 169, 0.3);color: #fff;}.completion-status.complete .status-icon {background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);color: #111;}.status-text {font-weight: 700;font-size: 0.9rem;color: #2c3e50;}.form-container {padding: 20px 30px;flex: 1;display: flex;flex-direction: column;overflow: hidden;background: #ffffff;min-height: 0;}.form-container .tab-content::-webkit-scrollbar {width: 8px;}.form-container .tab-content::-webkit-scrollbar-track {background: #f1f1f1;border-radius: 4px;margin: 4px 0;}.form-container .tab-content::-webkit-scrollbar-thumb {background: linear-gradient(135deg, #3AB8A9 0%, #D4A755 100%);border-radius: 4px;border: 2px solid #f1f1f1;}.form-container .tab-content::-webkit-scrollbar-thumb:hover {background: linear-gradient(135deg, #2DA89A 0%, #3AB8A9 100%);}.form-container .tab-content {scrollbar-width: thin;scrollbar-color: #3AB8A9 #f1f1f1;}.form-container::-webkit-scrollbar,.tab-content::-webkit-scrollbar {width: 0;display: none;}.form-container,.tab-content {scrollbar-width: none;-ms-overflow-style: none;}.tab {display: none;animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);height: 100%;flex-direction: column;min-height: 0;}@keyframes slideInUp {from {opacity: 0;transform: translateY(30px);}to {opacity: 1;transform: translateY(0);}}.tab.active {display: flex;}.tab-content {flex: 1;overflow-y: auto;overflow-x: hidden;padding-bottom: 20px;min-height: 0;}.tab-footer {margin-top: auto;padding-top: 20px;border-top: 2px solid rgba(58, 184, 169, 0.1);background: #ffffff;position: sticky;bottom: 0;z-index: 100;flex-shrink: 0;}.form-grid {display: grid;grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));gap: 20px;position: relative;min-height: 0;}.form-group {margin-bottom: 0;padding: 20px;border: 2px solid rgba(58, 184, 169, 0.2);border-radius: 12px;background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);display: flex;flex-direction: column;min-height: 120px;box-shadow: 0 6px 20px rgba(58, 184, 169, 0.1);position: relative;overflow: visible !important;z-index: 1;}.form-group::before {content: '';position: absolute;top: 0;left: 0;right: 0;height: 4px;background: linear-gradient(90deg, #3AB8A9 0%, #D4A755 100%);transform: scaleX(0);transition: transform 0.4s ease;border-radius: 12px 12px 0 0;}.form-group:hover::before {transform: scaleX(1);}.form-group:hover {border-color: #3AB8A9;z-index: 2;box-shadow: 0 10px 30px rgba(58, 184, 169, 0.15);}.form-group label {display: block;font-weight: 700;color: #2c3e50;font-size: 0.9rem;font-family: 'Segoe UI', 'Roboto', sans-serif;letter-spacing: 0.5px;}.form-control {width: 100%;padding: 14px 16px;border: 2px solid #e9ecef;border-radius: 10px;font-size: 0.9rem;transition: all 0.3s ease;background: #ffffff;font-weight: 600;font-family: 'Segoe UI', 'Roboto', sans-serif;color: #2c3e50;box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);height: fit-content;}.form-control::placeholder {color: #95a5a6;font-weight: 500;}.form-control:focus {outline: none;border-color: #3AB8A9;background-color: #f0f9f8;box-shadow: 0 0 0 3px rgba(58, 184, 169, 0.1);}select.form-control {appearance: none;background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233AB8A9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");background-repeat: no-repeat;background-position: right 16px center;background-size: 16px;padding-right: 45px;}.checkbox-group,.radio-group {display: flex;flex-direction: row;flex-wrap: wrap;gap: 10px;}.multiselect-group {display: grid;grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));gap: 10px;max-height: 150px;overflow-y: auto;padding: 15px;border: 2px solid #e9ecef;border-radius: 10px;background: #ffffff;box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05);}.checkbox-option,.radio-option {display: flex;align-items: center;gap: 8px;border-radius: 8px;transition: all 0.3s ease;cursor: pointer;border: 1px solid transparent;padding: 8px 12px;}.checkbox-option:hover,.radio-option:hover {background: linear-gradient(135deg, #f0f9f8 0%, #e8f6f5 100%);border-color: #3AB8A9;}.checkbox-input,.radio-input {width: 18px;height: 18px;cursor: pointer;accent-color: #3AB8A9;transform: scale(1.05);}.checkbox-label,.radio-label {cursor: pointer;font-weight: 600;margin: 0;font-family: 'Segoe UI', 'Roboto', sans-serif;color: #2c3e50;font-size: 0.9rem;}.checkbox-single {display: flex;align-items: center;gap: 12px;padding: 12px 0;}.button-group {display: flex;justify-content: space-between;gap: 15px;align-items: center;}.btn {padding: 14px 24px;border: none;border-radius: 10px;font-size: 0.9rem;font-weight: 700;cursor: pointer;transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);display: flex;align-items: center;gap: 10px;font-family: 'Segoe UI', 'Roboto', sans-serif;text-transform: uppercase;letter-spacing: 1px;box-shadow: 0 6px 20px rgba(58, 184, 169, 0.2);position: relative;overflow: hidden;}.btn::before {content: '';position: absolute;top: 0;left: -100%;width: 100%;height: 100%;background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);transition: left 0.5s ease;}.btn:hover::before {left: 100%;}.btn:disabled {opacity: 0.6;cursor: not-allowed;transform: none !important;box-shadow: none !important;}.btn-prev {background: linear-gradient(135deg, #6c757d 0%, #495057 100%);color: #ffffff;}.btn-prev:hover {background: linear-gradient(135deg, #495057 0%, #343a40 100%);transform: translateY(-3px);box-shadow: 0 10px 25px rgba(108, 117, 125, 0.4);}.btn-next {background: linear-gradient(135deg, #3AB8A9 0%, #5EC8BA 100%);color: #0D1B2A;}.btn-next:hover {background: linear-gradient(135deg, #2DA89A 0%, #3AB8A9 100%);transform: translateY(-3px);box-shadow: 0 10px 25px rgba(58, 184, 169, 0.4);}.btn-submit {background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);color: #111;border: 2px solid #00cc6a;}.btn-submit:hover:not(:disabled) {background: linear-gradient(135deg, #00cc6a 0%, #00b359 100%);transform: translateY(-3px);box-shadow: 0 10px 25px rgba(0, 204, 106, 0.4);}.btn-secondary {background: linear-gradient(135deg, #6c757d 0%, #495057 100%);color: #ffffff;padding: 10px 16px;font-size: 0.8rem;}.btn-secondary:hover {background: linear-gradient(135deg, #495057 0%, #343a40 100%);transform: translateY(-2px);box-shadow: 0 6px 15px rgba(108, 117, 125, 0.4);}/* Review Tab Styles */.review-tab .tab-content {display: flex;flex-direction: column;overflow: hidden;min-height: 0;}.review-section {flex: 1;display: flex;flex-direction: column;overflow: hidden;min-height: 0;}.review-tab-content {display: flex;gap: 30px;height: 100%;min-height: 400px;flex: 1;overflow: hidden;min-height: 0;}.review-sidebar {flex: 0 0 250px;background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);border-radius: 12px;padding: 20px;box-shadow: 0 6px 20px rgba(58, 184, 169, 0.1);border: 2px solid rgba(58, 184, 169, 0.2);overflow-y: auto;min-height: 0;}.review-category-tabs {display: flex;flex-direction: column;gap: 10px;}.review-category-tab {display: flex;justify-content: space-between;align-items: center;padding: 15px 18px;border-radius: 10px;cursor: pointer;transition: all 0.3s ease;background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);border: 2px solid rgba(58, 184, 169, 0.2);font-weight: 600;color: #2c3e50;}.review-category-tab:hover {background: linear-gradient(135deg, #f0f9f8 0%, #e8f6f5 100%);border-color: #3AB8A9;transform: translateX(5px);}.review-category-tab.active {background: linear-gradient(135deg, #3AB8A9 0%, #5EC8BA 100%);color: #0D1B2A;border-color: #3AB8A9;box-shadow: 0 6px 15px rgba(58, 184, 169, 0.4);}.category-name {font-weight: 700;font-size: 0.9rem;}.category-progress {font-size: 0.8rem;font-weight: 700;background: rgba(255, 255, 255, 0.3);padding: 4px 8px;border-radius: 6px;color: #0D1B2A;}.review-category-tab.active .category-progress {background: rgba(255, 255, 255, 0.4);color: #0D1B2A;}.review-content {flex: 1;background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);border-radius: 12px;padding: 25px;box-shadow: 0 6px 20px rgba(58, 184, 169, 0.1);border: 2px solid rgba(58, 184, 169, 0.2);overflow-y: auto;min-height: 0;}.review-category-header {display: flex;justify-content: space-between;align-items: center;margin-bottom: 25px;padding-bottom: 15px;border-bottom: 2px solid rgba(58, 184, 169, 0.2);}.review-category-title {color: #2c3e50;font-weight: 800;font-size: 1.4rem;margin: 0;}.review-category-stats {display: flex;align-items: center;gap: 15px;font-weight: 700;color: #2c3e50;}.review-answers {display: flex;flex-direction: column;gap: 15px;}.review-answer-item {display: flex;justify-content: space-between;align-items: flex-start;padding: 18px 20px;border-radius: 10px;background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);border: 2px solid rgba(58, 184, 169, 0.1);transition: all 0.3s ease;}.review-answer-item:hover {border-color: #3AB8A9;box-shadow: 0 4px 12px rgba(58, 184, 169, 0.1);}.review-answer-label {font-weight: 700;color: #2c3e50;flex: 0 0 40%;font-size: 0.9rem;}.review-answer-value {flex: 1;font-weight: 600;color: #5a6c7d;text-align: right;font-size: 0.9rem;}.review-answer-value.missing {color: #e74c3c;font-style: italic;}.review-empty-state {display: flex;align-items: center;justify-content: center;height: 100%;min-height: 300px;}/* Unanswered items styling */.review-answer-item.unanswered {background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);border-color: #fed7d7;}.review-answer-item.unanswered .review-answer-label {color: #e53e3e;}.review-answer-item.unanswered .review-answer-value.missing {color: #e53e3e !important;font-weight: 700;}/* Multi-select Dropdown with Checkboxes */.multiselect-dropdown-checkbox {position: relative;width: 100%;z-index: 10;}.dropdown-toggle {width: 100%;padding: 14px 16px;border: 2px solid #e9ecef;border-radius: 10px;background: #ffffff;font-size: 0.9rem;font-weight: 600;color: #2c3e50;cursor: pointer;transition: all 0.3s ease;display: flex;justify-content: space-between;align-items: center;box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);}.dropdown-toggle:hover {border-color: #3AB8A9;background-color: #f0f9f8;}.dropdown-toggle.dropdown-open {border-color: #3AB8A9;background-color: #f0f9f8;border-bottom-left-radius: 0;border-bottom-right-radius: 0;}.selected-text {flex: 1;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;}.dropdown-arrow {font-size: 0.8rem;color: #3AB8A9;transition: transform 0.3s ease;}.dropdown-toggle.dropdown-open .dropdown-arrow {transform: rotate(180deg);color: #3AB8A9;}.dropdown-options {position: absolute;top: 100%;left: 0;right: 0;background: #ffffff;border: 2px solid #3AB8A9;border-top: none;border-radius: 0 0 10px 10px;max-height: 0;overflow: hidden;transition: max-height 0.3s ease;z-index: 1000;box-shadow: 0 8px 25px rgba(58, 184, 169, 0.15);}.dropdown-options.show {max-height: 200px;border-top: 1px solid #e9ecef;}.dropdown-options-container {max-height: 200px;overflow-y: auto;padding: 10px;}.dropdown-options-container::-webkit-scrollbar {width: 6px;}.dropdown-options-container::-webkit-scrollbar-track {background: #f1f1f1;border-radius: 3px;}.dropdown-options-container::-webkit-scrollbar-thumb {background: linear-gradient(135deg, #3AB8A9 0%, #D4A755 100%);border-radius: 3px;}.dropdown-options-container::-webkit-scrollbar-thumb:hover {background: linear-gradient(135deg, #2DA89A 0%, #3AB8A9 100%);}.dropdown-option {display: flex;align-items: center;gap: 12px;padding: 10px 12px;border-radius: 8px;transition: all 0.2s ease;cursor: pointer;}.dropdown-option:hover {background: linear-gradient(135deg, #f0f9f8 0%, #e8f6f5 100%);}.dropdown-option .checkbox-input {width: 18px;height: 18px;cursor: pointer;accent-color: #3AB8A9;transform: scale(1.05);}.dropdown-option .checkbox-label {cursor: pointer;font-weight: 600;margin: 0;color: #2c3e50;font-size: 0.9rem;flex: 1;}.select-all {background: linear-gradient(135deg, #f0f9f8 0%, #e8f6f5 100%);border-bottom: 1px solid #e9ecef;margin-bottom: 5px;}.select-all-label {font-weight: 700 !important;color: #2c3e50 !important;}.dropdown-divider {height: 1px;background: #e9ecef;margin: 5px 0;}/* Mandatory Fields Styles */.mandatory-badge {background: #e53e3e;color: white;padding: 0.2rem 0.5rem;border-radius: 12px;font-size: 0.7rem;font-weight: 600;margin-left: 0.5rem;vertical-align: middle;}.form-group.has-mandatory {border-left: 4px solid #e53e3e;background: linear-gradient(135deg, #fff5f5 0%, #fafbfc 100%);}.mandatory-section {margin-top: 1rem;padding-top: 1rem;border-top: 1px solid rgba(58, 184, 169, 0.2);flex-shrink: 0;}.mandatory-options {display: flex;gap: 0.75rem;align-items: center;}.mandatory-label {color: #5a6c7d;font-weight: 600;font-size: 0.8rem;}.mandatory-options .radio-option.small {padding: 0.4rem 0.8rem;font-size: 0.8rem;background: #f8f9fa;border-radius: 8px;margin-bottom: 0;border: 1px solid #e2e8f0;flex: 0 0 auto;display: flex;align-items: center;gap: 0.5rem;cursor: pointer;transition: all 0.3s ease;}.mandatory-options .radio-option.small:hover {background: #e9ecef;transform: translateY(-1px);box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);}.mandatory-options .radio-checkmark {height: 14px;width: 14px;background-color: white;border: 2px solid #cbd5e0;border-radius: 50%;transition: all 0.3s ease;position: relative;}.mandatory-options .radio-option.small input:checked ~ .radio-checkmark {background-color: #3AB8A9;border-color: #3AB8A9;}.mandatory-options .radio-checkmark:after {content: "";position: absolute;display: none;top: 50%;left: 50%;transform: translate(-50%, -50%);width: 6px;height: 6px;border-radius: 50%;background: white;}.mandatory-options .radio-option.small input:checked ~ .radio-checkmark:after {display: block;}.option-text {font-size: 0.8rem;font-weight: 500;}.mandatory-summary {background: #f0f9f8;border: 1px solid #3AB8A9;border-radius: 12px;padding: 1rem;text-align: center;margin: 0 30px 20px 30px;}.mandatory-summary p {margin: 0;color: #2d3748;font-size: 0.95rem;}.mandatory-summary i {color: #00ff88;margin-right: 0.5rem;}.answer-item .mandatory-badge {background: #e53e3e;color: white;padding: 0.1rem 0.4rem;border-radius: 8px;font-size: 0.6rem;font-weight: 600;margin-left: 0.5rem;}.mandatory-options .radio-option.small input {position: absolute;opacity: 0;cursor: pointer;}/* Tutorial Modal Styles */.modal.tutorial-modal {position: fixed;top: 0;left: 0;width: 100%;height: 100%;background: rgba(0, 0, 0, 0.7);display: flex;justify-content: center;align-items: center;z-index: 1001;opacity: 0;visibility: hidden;transition: all 0.3s ease;}.modal.tutorial-modal.show {opacity: 1;visibility: visible;}.modal-content.tutorial-content {background: white;border-radius: 15px;padding: 2vw;width: 43%;box-shadow: 0 25px 50px rgba(58, 184, 169, 0.2);border: 1px solid rgba(58, 184, 169, 0.2);}.modal.tutorial-modal.show .modal-content.tutorial-content {transform: scale(1);}.modal-header {display: flex;justify-content: flex-end;padding: 15px 20px 0;}.modal-close {background: none;border: none;font-size: 1.2rem;cursor: pointer;color: #7f8c8d;transition: color 0.3s ease;}.modal-close:hover {color: #e74c3c;}.modal-icon {text-align: center;padding: 0 30px;display: flex;align-items: center;justify-content: center;}.modal-icon i {font-size: 3rem;color: #3AB8A9;}.modal-title {color: #2c3e50;font-size: 1.5rem;text-transform: uppercase;margin: 0;}.tutorial-body {margin: 20px 0;}.tutorial-message {font-size: 1.1rem;color: #2c3e50;text-align: center;line-height: 1.6;}.tutorial-features {background: #f8f9fa;border-radius: 12px;padding: 0 1.5rem;}.feature-item {display: flex;align-items: center;gap: 12px;border-radius: 8px;transition: background-color 0.3s ease;padding: 0.5rem;}.feature-item:hover {background: #e9ecef;}.feature-item i {font-size: 1.2rem;width: 24px;text-align: center;}.feature-item span {color: #2c3e50;font-size: 0.95rem;}.tutorial-example {background: linear-gradient(135deg, #f0f9f8, #e8f6f5);border: 1px solid #3AB8A9;border-radius: 12px;padding: 20px;margin: 20px 0;}.tutorial-example p {margin: 0 0 15px 0;color: #0D1B2A;font-weight: 600;text-align: center;}.example-mandatory-section {display: flex;gap: 15px;align-items: center;justify-content: center;padding: 15px;background: white;border-radius: 8px;border: 2px dashed #dee2e6;}.example-mandatory-section .mandatory-label {color: #495057;font-weight: 600;font-size: 0.8rem;}.example-mandatory-section .radio-option.small {padding: 0.4rem 0.8rem;font-size: 0.8rem;background: #f8f9fa;border-radius: 8px;border: 1px solid #e2e8f0;display: flex;align-items: center;gap: 0.5rem;cursor: default;}.example-mandatory-section .radio-checkmark {height: 14px;width: 14px;background-color: white;border: 2px solid #cbd5e0;border-radius: 50%;position: relative;}.example-mandatory-section input[type="radio"] {display: none;}.modal-actions {padding: 20px 30px 30px;text-align: center;}.modal-actions .btn {padding: 12px 30px;font-size: 1rem;background: linear-gradient(135deg, #3AB8A9 0%, #5EC8BA 100%);color: #0D1B2A;}.modal-actions .btn:hover {background: linear-gradient(135deg, #2DA89A 0%, #3AB8A9 100%);}/* Success Modal Styles */.success-modal-overlay {position: fixed;top: 0;left: 0;width: 100%;height: 100%;background: rgba(0, 0, 0, 0.8);display: flex;justify-content: center;align-items: center;z-index: 9999;animation: fadeIn 0.3s ease;}.success-modal-container {background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);border-radius: 20px;box-shadow: 0 25px 50px rgba(58, 184, 169, 0.2);max-width: 500px;width: 90%;overflow: hidden;animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);border: 1px solid rgba(58, 184, 169, 0.2);}@keyframes fadeIn {from {opacity: 0;}to {opacity: 1;}}@keyframes modalSlideIn {from {opacity: 0;transform: translateY(-30px) scale(0.9);}to {opacity: 1;transform: translateY(0) scale(1);}}.success-modal-header {background: linear-gradient(135deg, #3AB8A9 0%, #5EC8BA 100%);padding: 25px 30px;text-align: center;position: relative;}.success-modal-close {position: absolute;top: 15px;right: 15px;background: rgba(255, 255, 255, 0.9);border: none;border-radius: 50%;width: 32px;height: 32px;display: flex;align-items: center;justify-content: center;color: #0D1B2A;cursor: pointer;transition: all 0.3s ease;font-weight: bold;}.success-modal-close:hover {background: rgba(255, 255, 255, 1);transform: scale(1.1);}.success-modal-icon {margin-bottom: 15px;}.success-modal-icon i {font-size: 4rem;background: linear-gradient(135deg, #00ff88, #00cc6a);-webkit-background-clip: text;-webkit-text-fill-color: transparent;background-clip: text;}.success-modal-title {color: #0D1B2A;font-size: 1.8rem;font-weight: 800;margin: 0;text-shadow: 2px 2px 8px rgba(0,0,0,0.1);}.success-modal-body {padding: 30px;text-align: center;}.success-modal-message {color: #2c3e50;font-size: 1.1rem;line-height: 1.6;margin-bottom: 25px;font-weight: 600;}.success-modal-stats {background: linear-gradient(135deg, #f0f9f8 0%, #e8f6f5 100%);border-radius: 12px;padding: 20px;margin: 20px 0;border: 2px solid rgba(58, 184, 169, 0.3);}.success-modal-stats p {margin: 0;color: #2c3e50;font-weight: 700;font-size: 0.95rem;}.success-modal-stats i {color: #3AB8A9;margin-right: 8px;}.success-modal-actions {display: flex;gap: 15px;justify-content: center;margin-top: 25px;}.success-modal-btn {padding: 14px 24px;border: none;border-radius: 10px;font-size: 0.9rem;font-weight: 700;cursor: pointer;transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);display: flex;align-items: center;gap: 10px;text-transform: uppercase;letter-spacing: 1px;box-shadow: 0 6px 20px rgba(58, 184, 169, 0.2);position: relative;overflow: hidden;}.success-modal-btn::before {content: '';position: absolute;top: 0;left: -100%;width: 100%;height: 100%;background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);transition: left 0.5s ease;}.success-modal-btn:hover::before {left: 100%;}.success-modal-btn-primary {background: linear-gradient(135deg, #3AB8A9 0%, #5EC8BA 100%);color: #0D1B2A;}.success-modal-btn-primary:hover {background: linear-gradient(135deg, #2DA89A 0%, #3AB8A9 100%);transform: translateY(-3px);box-shadow: 0 10px 25px rgba(58, 184, 169, 0.4);}.success-modal-btn-secondary {background: linear-gradient(135deg, #6c757d 0%, #495057 100%);color: #ffffff;}.success-modal-btn-secondary:hover {background: linear-gradient(135deg, #495057 0%, #343a40 100%);transform: translateY(-3px);box-shadow: 0 10px 25px rgba(108, 117, 125, 0.4);}/* Loader Styles */.loader-overlay {position: fixed;top: 0;left: 0;width: 100%;height: 100%;background: rgba(0, 0, 0, 0.7);display: flex;justify-content: center;align-items: center;z-index: 9999;}.loader-container {padding: 40px;text-align: center;max-width: 400px;width: 90%;}/* Focus States for Accessibility */.btn:focus,.form-control:focus,.checkbox-input:focus,.radio-input:focus {outline: 2px solid #3AB8A9;outline-offset: 2px;}/* Tutorial Icon Styles */.tutorial-icon-container {position: fixed;top: 7vw;right: 3vw;z-index: 1000;}.tutorial-icon-btn {border-radius: 50%;background: #e53e3e;border: 5px solid #e53e3e;color: white;font-size: 2vw;cursor: pointer;display: flex;align-items: center;justify-content: center;box-shadow: 0 6px 20px rgba(58, 184, 169, 0.3) !important;transition: all 0.3s ease;position: relative;overflow: hidden;animation: tutorialPulse 1.2s infinite;width: 40px;height: 40px;}@keyframes tutorialPulse {0% {transform: scale(1);box-shadow: 0 6px 20px rgba(58, 184, 169, 0.3);}50% {transform: scale(1.13);box-shadow: 0 0 12px 2px rgba(58, 184, 169, 0.4);}100% {transform: scale(1);box-shadow: 0 6px 20px rgba(58, 184, 169, 0.3);}}.tutorial-icon-btn::before {content: '';position: absolute;top: 0;left: 0;right: 0;bottom: 0;background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 100%);opacity: 0;transition: opacity 0.3s ease;}.tutorial-icon-btn:hover {transform: translateY(-3px);}.tutorial-icon-btn:hover::before {opacity: 1;}.tutorial-icon-btn:active {transform: translateY(-1px);}/* Tooltip */.tutorial-icon-btn::after {content: 'Learn about mandatory fields';position: absolute;right: 70px;top: 50%;transform: translateY(-50%);background: #2c3e50;color: white;padding: 8px 12px;border-radius: 6px;font-size: 0.8rem;white-space: nowrap;opacity: 0;pointer-events: none;transition: opacity 0.3s ease;font-weight: 600;}.tutorial-icon-btn:hover::after {opacity: 1;}/* Text Input Popup Styles */.text-input-popup-overlay {position: fixed;top: 0;left: 0;width: 100%;height: 100%;background: rgba(0, 0, 0, 0.8);display: flex;justify-content: center;align-items: center;z-index: 9999;animation: fadeIn 0.3s ease;}.text-input-popup-container {background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);border-radius: 20px;box-shadow: 0 25px 50px rgba(58, 184, 169, 0.2);max-width: 600px;width: 90%;max-height: 80vh;overflow: hidden;animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);border: 1px solid rgba(58, 184, 169, 0.2);}.text-input-popup-header {background: linear-gradient(135deg, #3AB8A9 0%, #5EC8BA 100%);padding: 20px 30px;display: flex;justify-content: space-between;align-items: center;}.text-input-popup-header h3 {color: #0D1B2A;font-size: 1.4rem;flex: 1;margin: 0;font-weight: 800;text-shadow: 2px 2px 8px rgba(0,0,0,0.1);}.text-input-popup-close {background: rgba(255, 255, 255, 0.9);border: none;border-radius: 50%;width: 32px;height: 32px;display: flex;align-items: center;justify-content: center;color: #0D1B2A;cursor: pointer;transition: all 0.3s ease;font-weight: bold;flex-shrink: 0;margin-left: 15px;}.text-input-popup-close:hover {background: rgba(255, 255, 255, 1);transform: scale(1.1);}.text-input-popup-body {padding: 30px;display: flex;flex-direction: column;gap: 20px;}.text-input-popup-field {width: 100%;padding: 16px 20px;border: 2px solid #e9ecef;border-radius: 12px;font-size: 1rem;font-family: 'Segoe UI', 'Roboto', sans-serif;font-weight: 500;color: #2c3e50;background: #ffffff;transition: all 0.3s ease;resize: none;overflow-y: hidden;min-height: 120px;max-height: 400px;box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05);word-wrap: break-word;word-break: break-word;white-space: pre-wrap;overflow-wrap: break-word;line-height: 1.5;text-align: left;}.text-input-popup-field:focus {outline: none;border-color: #3AB8A9;background-color: #f0f9f8;box-shadow: 0 0 0 3px rgba(58, 184, 169, 0.1);}.text-input-popup-field::placeholder {color: #95a5a6;font-weight: 500;}.text-input-popup-actions {display: flex;justify-content: flex-end;gap: 15px;margin-top: 10px;}.text-input-popup-actions .btn {padding: 12px 24px;font-size: 0.9rem;}/* Text Input Preview Styles */.text-input-container {width: 100%;}.text-input-preview {width: 100%;padding: 14px 16px;border: 2px solid #e9ecef;border-radius: 10px;font-size: 0.9rem;font-weight: 600;color: #95a5a6;background: #ffffff;cursor: pointer;transition: all 0.3s ease;min-height: 50px;max-height: 50px;display: flex;align-items: center;box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);word-wrap: break-word;word-break: break-word;white-space: pre-wrap;overflow-wrap: break-word;line-height: 1.4;overflow: hidden;}.text-input-preview:hover {border-color: #3AB8A9;background-color: #f0f9f8;transform: translateY(-2px);box-shadow: 0 4px 12px rgba(58, 184, 169, 0.1);}.text-input-preview.has-value {color: #2c3e50;border-color: #bdc3c7;}.text-input-preview.has-value:hover {border-color: #3AB8A9;}/* Truncate Pipe (if not already available) */.truncate {white-space: nowrap;overflow: hidden;text-overflow: ellipsis;}/* Responsive Design */@media (max-width: 992px) {.review-tab-content {flex-direction: column;gap: 20px;}.review-sidebar {flex: 0 0 auto;}.review-category-tabs {flex-direction: row;overflow-x: auto;padding-bottom: 10px;}.review-category-tab {flex: 0 0 auto;min-width: 150px;}.success-modal-container {max-width: 90%;}.success-modal-header {padding: 20px 25px;}.success-modal-title {font-size: 1.5rem;}.success-modal-body {padding: 25px 20px;}.success-modal-actions {flex-direction: column;}.success-modal-btn {width: 100%;justify-content: center;}}@media (max-width: 768px) {.professional-page {padding: 10px;margin-top: 60px;}.container {border-radius: 15px;max-height: calc(100vh - 70px);}.header {padding: 20px 15px;}.header h1 {font-size: 1.8rem;}.progress-bar {padding: 0 10px;}.progress-bar::before,.progress-bar-line {left: 30px;right: 30px;width: calc(100% - 60px);}.step {width: 40px;height: 40px;font-size: 0.9rem;}.step-label {font-size: 0.7rem;width: 60px;left: -10px;}.category-header {padding: 15px 20px;flex-direction: column;gap: 15px;align-items: flex-start;}.category-progress-indicator {align-self: flex-end;}.form-container {padding: 15px 20px;}.form-grid {grid-template-columns: 1fr;gap: 15px;}.form-group {padding: 15px;}.review-tab-content {flex-direction: column;gap: 20px;}.review-sidebar {flex: none;}.review-category-header {flex-direction: column;align-items: flex-start;gap: 10px;}.review-answer-item {flex-direction: column;gap: 8px;align-items: flex-start;}.review-answer-label {flex: 0 0 auto;}.review-answer-value {text-align: left;}.button-group {flex-direction: column;gap: 10px;}.btn {width: 100%;justify-content: center;}.tutorial-icon-container {top: 80px;right: 20px;}.tutorial-icon-btn {width: 45px;height: 45px;font-size: 1.3rem;}}@media (max-width: 576px) {.header h1 {font-size: 1.5rem;}.header p {font-size: 0.9rem;}.step {width: 35px;height: 35px;font-size: 0.8rem;}.step-label {font-size: 0.6rem;width: 50px;left: -7px;}.category-details h3 {font-size: 1.1rem;}.category-details p {font-size: 0.8rem;}.form-control {padding: 12px 14px;}.review-category-header {flex-direction: column;gap: 10px;align-items: flex-start;}.review-category-stats {align-self: flex-end;}.review-category-tabs {flex-direction: column;}.review-category-tab {min-width: auto;}.tutorial-icon-container {top: 70px;right: 15px;}.tutorial-icon-btn {width: 40px;height: 40px;font-size: 1.2rem;}.success-modal-header {padding: 15px 20px;}.success-modal-title {font-size: 1.3rem;}.success-modal-icon i {font-size: 3rem;}.success-modal-message {font-size: 1rem;}}/* Print Styles */@media print {.professional-page {background: white !important;margin: 0 !important;padding: 0 !important;}.container {box-shadow: none !important;border: 1px solid #ccc !important;}.btn {display: none !important;}}
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135<div class="professional-page"><!-- Loader Overlay --><div *ngIf="!questions.length" class="loader-overlay"><div class="loader-container"><img src="assets/Loader.gif" alt="Loading..." class="loader-gif" /></div></div><!-- Loader Overlay (same as llm-quiz) --><div class="loader-overlay" *ngIf="isLoading"><div class="loader-container"><img src="assets/Loader.gif" alt="Loading..." class="loader-gif" /></div></div><!-- Hero Section --><section class="hero"><div class="content" [ngStyle]="heroContentStyle"><div class="info-card"><div class="info-card__icon"><i class="fa-solid fa-sliders"></i></div><div class="info-card__content"><h1 class="info-card__title"><i class="fa-solid fa-sliders"></i> Preferences</h1><p class="info-card__text">Tell us what matters to you most. These preferences guide better matching and help highlight alignment.</p><div class="info-card__actions"><button class="btn btn-primary" (click)="scrollToPrefSection()">Set Preferences</button></div></div></div></div></section><!-- Preferences Form --><div id="pref-section" class="preferences-container" *ngIf="questions.length"><div class="container"><!-- Category Navigation (like QA) --><div class="category-nav-wrapper"><button class="btn btn-secondary" style="margin-bottom: 1rem;" (click)="goBackToQuestions()"><i class="fa fa-arrow-left"></i> Go Back</button><nav class="category-nav" aria-label="Question categories"><button *ngFor="let cat of categoriesMeta" type="button"(click)="selectCategory(cat.key)"[class.active]="selectedCategory === cat.key"[class.completed]="getCategoryAnsweredCount(cat.key) === getQuestionsByCategory(cat.key).length && getQuestionsByCategory(cat.key).length > 0"[attr.aria-selected]="selectedCategory === cat.key"class="nav-chip"><i class="fa-solid" [ngClass]="cat.icon"></i><span>{{ cat.title }}</span><span class="chip-progress" *ngIf="getQuestionsByCategory(cat.key).length">{{ getCategoryAnsweredCount(cat.key) }}/{{ getQuestionsByCategory(cat.key).length }}</span></button></nav></div><div class="preferences-content category-content"><ng-container *ngFor="let cat of categoriesMeta; let last = last"><section *ngIf="selectedCategory === cat.key" class="preferences-section category-section"><div class="preferences-header category-header"><div class="preferences-image category-image"><img [src]="getCategoryImage(cat.key)" [alt]="cat.title" loading="lazy" /></div><div class="preferences-info category-info"><div class="title-section"><h2><i class="fa-solid" [ngClass]="cat.icon"></i> {{ cat.title }}</h2><p class="section-description">Configure your matching preferences for this section.</p><div class="progress-indicator"><div class="progress-bar"><div class="progress-fill" [style.width.%]="getCategoryPercent(cat.key)"></div></div><small>{{ getCategoryProgressLabel(cat.key) }}</small></div></div></div></div><form [formGroup]="form" (ngSubmit)="submit()" class="preferences-form"><div class="questions-grid"><div class="question-card" *ngFor="let q of getQuestionsByCategory(cat.key)"><label [attr.for]="q.column_key">{{ q.question }}</label><!-- Select --><select *ngIf="q.input_type === 'select'"[formControlName]="q.column_key"[id]="q.column_key"class="form-control"(change)="onInputChange(q.column_key)"><option value="">Select an option</option><option *ngFor="let opt of getOptions(q)" [value]="opt">{{ opt }}</option></select><!-- Text --><input *ngIf="q.input_type === 'text'"type="text"[formControlName]="q.column_key"[id]="q.column_key"placeholder="Enter your preference"class="form-control"(input)="onInputChange(q.column_key)" /><!-- Multi select (checkbox group) --><div *ngIf="q.input_type === 'multi_select'" class="checkbox-options"><label class="checkbox-option" *ngFor="let opt of getOptions(q)"><input type="checkbox"[value]="opt"(change)="onCheckboxChange($event, q.column_key); onInputChange(q.column_key)" /><span class="checkmark"></span>{{ opt }}</label></div></div></div><div class="submit-section" *ngIf="last"><button class="btn submit-btn" type="submit"><i class="fa-solid fa-floppy-disk"></i> Save Preferences</button></div></form></section></ng-container></div></div></div><div class="empty-state" *ngIf="!questions.length && !isLoading"><p class="empty-state-text">Loading your preference questions...</p></div></div>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469<div class="professional-page"><!-- Loader Overlay --><div class="loader-overlay" *ngIf="isLoading"><div class="loader-container"><img src="assets/Loader.gif" alt="Loading..." style="width:72%;height:50%;display:block;margin:0 auto 25px;" /></div></div><!-- Text Input Popup Modal - ONLY FOR SUMMARY OF EXPECTATIONS --><div class="text-input-popup-overlay" *ngIf="showTextInputPopup && isAdditionalRemarksField()" (click)="closeTextInputPopup()"><div class="text-input-popup-container" (click)="$event.stopPropagation()"><div class="text-input-popup-header"><h3>{{ popupQuestion?.question }}</h3><button class="text-input-popup-close" (click)="closeTextInputPopup()"><i class="fas fa-times"></i></button></div><div class="text-input-popup-body"><textarea class="text-input-popup-field"[(ngModel)]="popupTextValue"[placeholder]="popupQuestion ? 'Enter your answer...' : 'Enter your answer'"(input)="onTextareaInput($event)"rows="1"></textarea><div class="text-input-popup-actions"><button class="btn btn-secondary" (click)="closeTextInputPopup()">Cancel</button><button class="btn btn-primary" (click)="saveTextInputPopup()">Save</button></div></div></div></div><!-- Tutorial Icon --><div class="tutorial-icon-container" *ngIf="selectedCategory !== 'review'"><button class="tutorial-icon-btn" (click)="openTutorialModal()" title="Learn about mandatory fields"><i class="fas fa-exclamation-circle"></i></button></div><!-- Tutorial Modal --><div class="modal tutorial-modal" [class.show]="showTutorialModal"><div class="modal-content tutorial-content"><div class="modal-icon"><i class="fas fa-info-circle" style="color: #e74c3c;"></i><h2 class="modal-title">Important: Set Your Match Preferences</h2></div><div class="tutorial-body"><p class="tutorial-message"><strong>You can mark preferences as "Mandatory" if they are essential for your matches.</strong></p><div class="tutorial-features"><div class="feature-item"><i class="fas fa-star" style="color: #e74c3c;"></i><span><strong>Mandatory:</strong> These preferences must be matched exactly</span></div><div class="feature-item"><i class="fas fa-circle" style="color: #95a5a6;"></i><span><strong>Optional:</strong> These are preferred but not required</span></div></div><div class="tutorial-example"><p>Look for this section under each question:</p><div class="example-mandatory-section"><small class="mandatory-label">Match Type:</small><label class="radio-option small"><input type="radio" name="example_mandatory" checked /><span class="radio-checkmark"></span><span class="option-text">Mandatory</span></label><label class="radio-option small"><input type="radio" name="example_mandatory" /><span class="radio-checkmark"></span><span class="option-text">Optional</span></label></div></div></div><div class="modal-actions"><button class="btn btn-primary" (click)="closeTutorialModal()">Got it, let's start!</button></div></div></div><!-- Header --><div class="container" id="pref-section"><div class="header"><h1>{{ isEditingExistingPreferences ? 'Update Your Preferences' : 'Set Your Preferences' }}</h1><!-- Progress Bar --><div class="progress-bar"><div class="progress-bar-line" [style.width.%]="getProgressBarWidth()"></div><div *ngFor="let cat of categoriesMeta; let i = index"class="step"[class.active]="selectedCategory === cat.key"[class.completed]="getCategoryPercent(cat.key) === 100 && cat.key !== 'review'"(click)="selectCategory(cat.key)"><span class="step-icon"><i class="fas {{ getCategoryIcon(cat.key) }}"></i></span><span class="step-label">{{ getStepLabel(cat.title) }}</span></div></div></div><!-- Category Header with Progress --><div class="category-header"><div class="category-info"><i class="fas {{ getCurrentCategoryIcon() }} category-header-icon"></i><div class="category-details"><h3>{{ getCurrentCategoryTitle() }}</h3><p>{{ getCurrentCategoryDescription() }}</p></div></div><!-- Show completion status for review tab, progress indicator for others --><div *ngIf="selectedCategory !== 'review'" class="category-progress-indicator"><div class="progress-bar-mini"><div class="progress-fill" [style.width.%]="getCategoryPercent(selectedCategory)"></div></div><span class="progress-text">{{ getCategoryPercent(selectedCategory) }}% Complete</span></div><div *ngIf="selectedCategory === 'review'" class="completion-status" [class.complete]="allFieldsAnswered"><span class="status-icon">{{ allFieldsAnswered ? '✓' : '!' }}</span><span class="status-text">{{ allFieldsAnswered ? 'All fields completed' : (unansweredCount + ' field(s) remaining') }}</span></div></div><!-- Single Mandatory Summary - For non-review tabs --><div *ngIf="selectedCategory !== 'review' && getQuestionsByCategory(selectedCategory).length > 0" class="mandatory-summary"><p><i class="fas fa-info-circle"></i><strong>{{ getMandatoryFieldsCount() }} fields marked as mandatory.</strong>These will be strictly enforced in matching.</p></div><!-- Form Container --><div class="form-container" [class.review-mode]="selectedCategory === 'review'"><!-- Category Panels --><ng-container *ngFor="let cat of categoriesMeta"><section *ngIf="cat.key !== 'review'"class="tab"[class.active]="selectedCategory === cat.key"[class.blur-background]="showTextInputPopup"><div class="tab-content"><!-- No Questions Message --><div *ngIf="getQuestionsByCategory(cat.key).length === 0" class="no-questions-message"><h4>No questions available for this category</h4><p>Category: <strong>{{ cat.key }}</strong> ({{ cat.title }})</p><p>Total questions in system: {{ questions.length }}</p></div><!-- Questions Grid --><div class="form-grid" *ngIf="getQuestionsByCategory(cat.key).length > 0"><div *ngFor="let question of getQuestionsByCategory(cat.key); trackBy: trackQuestion"class="form-group"[class.has-mandatory]="isMandatory(question.column_key)"[id]="'q-' + question.column_key"><label [attr.for]="'answer' + question.column_key">{{ question.question }}<span *ngIf="isMandatory(question.column_key)" class="required-asterisk mandatory-badge">*Required</span><span *ngIf="question.required && !isMandatory(question.column_key)" class="required-asterisk">*</span></label><!-- Text Input with Popup for Summary of Expectations --><div *ngIf="question.input_type === 'text'" class="text-input-container"><!-- For Summary of Expectations - use popup --><div *ngIf="isAdditionalRemarksField(question)"class="text-input-preview"(click)="openTextInputPopup(question)"[class.has-value]="getFormValue(question.column_key)">{{ (getFormValue(question.column_key) || 'Enter your answer...') | truncate:100 }}</div><!-- For other text fields - use regular inline input --><input *ngIf="!isAdditionalRemarksField(question)"type="text"class="form-control"[id]="'answer' + question.column_key"[value]="getFormValue(question.column_key)"(input)="onTextInputChange($event, question.column_key)"[placeholder]="isMandatory(question.column_key) ? 'Required field' : 'Enter your answer...'" /></div><!-- Select Dropdown --><select *ngIf="question.input_type === 'select'"class="form-control"[id]="'answer' + question.column_key"[value]="getFormValue(question.column_key)"(change)="onSelectChange($event, question.column_key)"><option value="">Select an option</option><option *ngFor="let option of getOptions(question)" [value]="option">{{ option }}</option></select><!-- Multi-select Dropdown with Checkboxes --><div *ngIf="question.input_type === 'multi_select'" class="multiselect-dropdown-checkbox"><div class="dropdown-toggle"(click)="toggleDropdown(question.column_key)"[class.dropdown-open]="isDropdownOpen(question.column_key)"><span class="selected-text">{{ getSelectedOptionsText(question.column_key) || 'Select options' }}</span><i class="fas fa-chevron-down dropdown-arrow"></i></div><div class="dropdown-options" [class.show]="isDropdownOpen(question.column_key)"><div class="dropdown-options-container"><!-- Select All Option --><div class="dropdown-option select-all" *ngIf="getOptions(question).length > 1"><input type="checkbox"class="checkbox-input"[id]="'select_all_' + question.column_key"[checked]="areAllOptionsSelected(question)"(change)="toggleSelectAll(question)" /><label [for]="'select_all_' + question.column_key"class="checkbox-label select-all-label">Select All</label></div><div class="dropdown-divider" *ngIf="getOptions(question).length > 1"></div><!-- Regular Options --><div *ngFor="let option of getOptions(question)"class="dropdown-option"><input type="checkbox"class="checkbox-input"[id]="'dropdown_' + question.column_key + '_' + option"[value]="option"(change)="onCheckboxChange($event, question.column_key)"[checked]="isCheckboxSelected(question.column_key, option)" /><label [for]="'dropdown_' + question.column_key + '_' + option"class="checkbox-label">{{ option }}</label></div></div></div></div><!-- Radio Buttons --><div *ngIf="question.input_type === 'radio'" class="radio-group"><div *ngFor="let option of getOptions(question)" class="radio-option"><input type="radio"class="radio-input"[id]="'radio_' + question.column_key + '_' + option"[name]="'radio_' + question.column_key"[value]="option"[checked]="isRadioSelected(question.column_key, option)"(change)="onRadioChange($event, question.column_key)" /><label [for]="'radio_' + question.column_key + '_' + option"class="radio-label">{{ option }}</label></div></div><!-- Single Checkbox --><div *ngIf="question.input_type === 'checkbox'" class="checkbox-single"><input type="checkbox"class="checkbox-input"[id]="'checkbox_' + question.column_key"[checked]="getFormValue(question.column_key)"(change)="onCheckboxSingleChange($event, question.column_key)" /><label [for]="'checkbox_' + question.column_key"class="checkbox-label">Yes</label></div><!-- Mandatory/Optional Radio Buttons --><div class="mandatory-section"><div class="mandatory-options"><small class="mandatory-label">Match Type:</small><label class="radio-option small"><input type="radio"[name]="'mandatory_' + question.column_key"value="mandatory"[checked]="isMandatory(question.column_key)"(change)="onMandatoryChange(question.column_key, 'mandatory')" /><span class="radio-checkmark"></span><span class="option-text">Mandatory</span></label><label class="radio-option small"><input type="radio"[name]="'mandatory_' + question.column_key"value="optional"[checked]="!isMandatory(question.column_key)"(change)="onMandatoryChange(question.column_key, 'optional')" /><span class="radio-checkmark"></span><span class="option-text">Optional</span></label></div></div></div></div></div><div class="tab-footer"><div class="button-group"><button *ngIf="selectedCategory !== categoriesMeta[0].key"type="button"class="btn btn-prev"(click)="goToPreviousCategory(cat.key)"><i class="fas fa-arrow-left"></i> Previous</button><button *ngIf="selectedCategory !== 'review'"type="button"class="btn btn-next"(click)="goToNextCategory(cat.key)">Next <i class="fas fa-arrow-right"></i></button></div></div></section></ng-container><!-- Review Panel --><section class="tab review-tab"[class.active]="selectedCategory === 'review'"[class.blur-background]="showTextInputPopup"><div class="tab-content"><div class="review-section"><!-- Review Tab Content with Sidebar --><div class="review-tab-content"><!-- Left Sidebar with Category Tabs --><div class="review-sidebar"><div class="review-category-tabs"><ng-container *ngFor="let cat of categoriesMeta"><div *ngIf="cat.key !== 'review'"class="review-category-tab"[class.active]="selectedReviewCategory === cat.key"(click)="selectReviewCategory(cat.key)"><span class="category-name">{{ cat.title }}</span><span class="category-progress">{{ getCategoryAnsweredCount(cat.key) }}/{{ getQuestionsByCategory(cat.key).length }}</span></div></ng-container></div></div><!-- Right Content Area --><div class="review-content"><div *ngIf="selectedReviewCategory" class="review-category-content"><!-- Category Header --><div class="review-category-header"><h3 class="review-category-title">{{ getReviewCategoryTitle(selectedReviewCategory) }}</h3><div class="review-category-stats"><span>{{ getCategoryAnsweredCount(selectedReviewCategory) }}/{{ getQuestionsByCategory(selectedReviewCategory).length }} answered</span><button type="button"class="btn btn-secondary"(click)="selectCategory(selectedReviewCategory)">Edit Section</button></div></div><!-- Answers List --><div class="review-answers"><div *ngFor="let question of getQuestionsByCategory(selectedReviewCategory)"class="review-answer-item"[class.unanswered]="!isAnswered(question)"><span class="review-answer-label">{{ question.question }}<span *ngIf="isMandatory(question.column_key)" class="mandatory-badge">Mandatory</span></span><span class="review-answer-value" [class.missing]="!isAnswered(question)">{{ getAnswerDisplay(question) }}</span></div></div></div><!-- Empty State --><div *ngIf="!selectedReviewCategory" class="review-empty-state"><div style="text-align: center; padding: 60px 20px;"><i class="fas fa-folder-open" style="font-size: 3rem; color: #bdc3c7; margin-bottom: 20px;"></i><h3 style="color: #2c3e50; margin-bottom: 10px;">Select a Category</h3><p style="color: #7f8c8d;">Choose a category from the left sidebar to review your answers.</p></div></div></div></div></div></div><div class="tab-footer"><div class="button-group"><button type="button"class="btn btn-prev"(click)="goToPreviousCategory('review')"><i class="fas fa-arrow-left"></i> Previous</button><button type="button"class="btn btn-submit"(click)="submit()"[disabled]="!form.valid">{{ isEditingExistingPreferences ? 'Update Preferences' : 'Save Preferences' }} <i class="fas fa-check"></i></button></div></div></section></div></div><!-- Success Modal --><div class="success-modal-overlay" *ngIf="showModal"><div class="success-modal-container"><div class="success-modal-header"><button class="success-modal-close" (click)="closeModal()"><i class="fas fa-times"></i></button><div class="success-modal-icon"><i class="fas fa-check-circle"></i></div><h2 class="success-modal-title">{{ isEditingExistingPreferences ? 'Preferences Updated!' : 'Preferences Saved!' }}</h2></div><div class="success-modal-body"><p class="success-modal-message">Your preferences have been {{ isEditingExistingPreferences ? 'updated' : 'saved' }} successfullyand will be used for matching.</p><div class="success-modal-stats" *ngIf="getMandatoryFieldsCount() > 0"><p><i class="fas fa-star"></i><strong>{{ getMandatoryFieldsCount() }} field(s)</strong> marked as mandatory will be strictly enforced in matching.</p></div><div class="success-modal-actions"><button class="success-modal-btn success-modal-btn-secondary" (click)="redirectToHome()"><i class="fas fa-home"></i>Go to Home</button><button class="success-modal-btn success-modal-btn-primary" (click)="redirectToAssessment()"><i class="fas fa-clipboard-list"></i>Take Assessment</button></div></div></div></div></div>
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280import { Component, OnInit, Renderer2, ElementRef } from '@angular/core';import { FormBuilder, FormGroup, FormArray, FormControl, ReactiveFormsModule } from '@angular/forms';import { CommonModule } from '@angular/common';import { Router, ActivatedRoute } from '@angular/router';import { UserPreferencesService, ExpectationQuestion } from './user-preferences.service';@Component({selector: 'app-user-preferences',standalone: true,imports: [CommonModule, ReactiveFormsModule],templateUrl: './user-preferences.component.html',styleUrls: ['./user-preferences.component.css']})export class UserPreferencesComponent implements OnInit {questions: ExpectationQuestion[] = [];form!: FormGroup;user_id = 1; // fallback; will be overridden by query/localStoragerole: string | null = null;isLoading = true;showModal = false;progress = 0;savedSuccessfully = false;// Merge Family and Personality & Values into one tabcategoriesMeta: Array<{ key: string; title: string; icon: string }> = [{ key: 'personal_education', title: 'Personal & Education', icon: 'fa-user-graduate' },{ key: 'family_values', title: 'Family & Values', icon: 'fa-people-roof' },{ key: 'lifestyle', title: 'Lifestyle & Habits', icon: 'fa-heart' },{ key: 'finances_dealbreakers', title: 'Finances & Deal Breakers', icon: 'fa-sack-dollar' },{ key: 'interests', title: 'Interests & Social', icon: 'fa-bullseye' }];selectedCategory: string = 'personal_education';constructor(private service: UserPreferencesService,private fb: FormBuilder,private router: Router,private route: ActivatedRoute,private renderer: Renderer2,private el: ElementRef) { }// Match QA: background helpersget heroBackgroundStyle() {const role = (this.role || 'marriage').toLowerCase();const img = this.getBackgroundForRole(role);return { 'background-image': `linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)), url(${img})` } as { [k: string]: string };}get heroContentStyle() {return {...this.heroBackgroundStyle,'background-repeat': 'no-repeat','background-position': 'center center','background-attachment': 'fixed','background-size': 'cover','width': '100%','height': '100vh'} as { [k: string]: string };}private getBackgroundForRole(role: string): string {const backgrounds: Record<string, string> = {marriage: 'assets/wedding.png',interview: 'assets/interview.png',partnership: 'assets/partnership.png'};return backgrounds[role] || 'assets/default-bg.png';}ngOnInit(): void {// Enhanced parameter capture - check both query params and localStoragethis.route.queryParamMap.subscribe(params => {const qpUser = params.get('user_id');const qpRole = params.get('role');if (qpUser) {this.user_id = Number(qpUser);// Also store in localStorage for consistencylocalStorage.setItem('user_id', qpUser);} else {// Fallback to localStorageconst lsUser = localStorage.getItem('user_id');if (lsUser) this.user_id = Number(lsUser);}this.role = qpRole;console.log('UserPreferences: user_id=', this.user_id, 'role=', this.role);});this.service.getQuestions().subscribe({next: (data) => {this.questions = data;this.buildForm();this.setInitialSelectedCategory();this.isLoading = false;},error: () => {this.isLoading = false;}});}buildForm(): void {const group: any = {};this.questions.forEach(q => {if (q.input_type === 'multi_select') {group[q.column_key] = this.fb.array([]);} else {group[q.column_key] = new FormControl('');}});this.form = this.fb.group(group);// Initialize progress after form is builtthis.updateProgress();// Keep progress up-to-date for all input typesthis.form.valueChanges.subscribe(() => this.updateProgress());}// Normalize options to a string array for template bindinggetOptions(q: ExpectationQuestion): string[] {const opts = q.options;if (Array.isArray(opts)) return (opts as string[]).filter(Boolean);if (typeof opts === 'string') return opts.split(',').map(s => s.trim()).filter(Boolean);return [];}// Get questions by categorygetQuestionsByCategory(category: string): ExpectationQuestion[] {if (category === 'personal_education') {return this.questions.filter(q => q.category === 'demographics' || q.category === 'educationcareer');}if (category === 'finances_dealbreakers') {return this.questions.filter(q => q.category === 'finances' || q.category === 'dealbreakers');}if (category === 'family_values') {return this.questions.filter(q => q.category === 'family' || q.category === 'values');}return this.questions.filter(q => q.category === category);}selectCategory(key: string): void {this.selectedCategory = key;}private setInitialSelectedCategory(): void {const firstWithQuestions = this.categoriesMeta.find(c => this.getQuestionsByCategory(c.key).length > 0);if (firstWithQuestions) {this.selectedCategory = firstWithQuestions.key;}}getCategoryAnsweredCount(key: string): number {const qs = this.getQuestionsByCategory(key);return qs.reduce((acc, q) => {const ctrl = this.form?.get(q.column_key);if (!ctrl) return acc;const val = ctrl.value;if (Array.isArray(val)) return acc + (val.length > 0 ? 1 : 0);return acc + (!!val && val.toString().trim().length > 0 ? 1 : 0);}, 0);}getCategoryPercent(key: string): number {const total = this.getQuestionsByCategory(key).length || 1;const answered = this.getCategoryAnsweredCount(key);return Math.round((answered / total) * 100);}getCategoryProgressLabel(key: string): string {const total = this.getQuestionsByCategory(key).length;const answered = this.getCategoryAnsweredCount(key);return `${answered}/${total} answered`;}getCategoryImage(key: string): string {const images: Record<string, string> = {personal_education: 'assets/marriage-match/1.png',lifestyle: 'assets/marriage-match/3.png',family_values: 'assets/marriage-match/4.png',interests: 'assets/marriage-match/6.png',finances_dealbreakers: 'assets/marriage-match/7.png'};return images[key] || 'assets/marriage-match/9.png';}onCheckboxChange(event: any, columnKey: string) {const formArray: FormArray = this.form.get(columnKey) as FormArray;if (event.target.checked) {formArray.push(new FormControl(event.target.value));} else {const index = formArray.controls.findIndex(x => x.value === event.target.value);formArray.removeAt(index);}this.updateProgress();}onInputChange(columnKey: string): void {// Auto-move to next category if current is completed and not lastconst currentIndex = this.categoriesMeta.findIndex(cat => cat.key === this.selectedCategory);const currentCat = this.categoriesMeta[currentIndex];const total = this.getQuestionsByCategory(currentCat.key).length;const answered = this.getCategoryAnsweredCount(currentCat.key);if (total > 0 && answered === total && currentIndex < this.categoriesMeta.length - 1) {// Move to next categorythis.selectedCategory = this.categoriesMeta[currentIndex + 1].key;}}scrollToPrefSection(): void {const el = document.getElementById('pref-section');if (el) el.scrollIntoView({ behavior: 'smooth', block: 'start' });}updateProgress(): void {const total = Object.keys(this.form.controls).length || 1;const filled = Object.values(this.form.value).filter(v => {if (Array.isArray(v)) return v.length > 0;return !!v && v.toString().trim().length > 0;}).length;this.progress = Math.round((filled / total) * 100);}submit(): void {if (this.form.valid) {this.savedSuccessfully = false;this.showModal = true;const payload = {user_id: this.user_id,...this.form.value};this.service.saveResponse(payload).subscribe({next: () => {this.savedSuccessfully = true;// Redirect to LLM quiz after successful savethis.router.navigate(['/llmquiz'], {queryParams: {user_id: this.user_id,role: this.role || 'marriage',autostart: '1'}});},error: (err) => {this.savedSuccessfully = false;console.error('Error saving preferences:', err);}});}}closeModal(): void {this.showModal = false;if (this.savedSuccessfully) {// Redirect to LLM quiz after successful savethis.router.navigate(['/llmquiz'], {queryParams: {user_id: this.user_id,role: this.role || 'marriage',autostart: '1'}});}}goBackToQuestions(): void {this.router.navigate(['/question-answer'], {queryParams: {user_id: this.user_id,role: this.role || 'marriage',scrollTo: 'questions-section'}});}}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020import { Component, OnInit, Renderer2, ElementRef, HostListener, ChangeDetectorRef } from '@angular/core';import { FormBuilder, FormGroup, FormArray, FormControl, ReactiveFormsModule } from '@angular/forms';import { CommonModule } from '@angular/common';import { Router, ActivatedRoute } from '@angular/router';import { UserPreferencesService, ExpectationQuestion } from './user-preferences.service';import { AuthService } from '../services/auth.service';import { FormsModule } from '@angular/forms'; // Add this import// Add Truncate Pipeimport { Pipe, PipeTransform } from '@angular/core';@Pipe({name: 'truncate',standalone: true})export class TruncatePipe implements PipeTransform {transform(value: string, limit: number = 100, trail: string = '...'): string {if (!value) return '';return value.length > limit ? value.substring(0, limit) + trail : value;}}@Component({selector: 'app-user-preferences',standalone: true,imports: [CommonModule, ReactiveFormsModule, TruncatePipe, FormsModule], // Add FormsModule heretemplateUrl: './user-preferences.component.html',styleUrls: ['./user-preferences.component.css']})export class UserPreferencesComponent implements OnInit {questions: ExpectationQuestion[] = [];form!: FormGroup;user_id = 1;role: string | null = null;isLoading = true;showModal = false;progress = 0;savedSuccessfully = false;selectedReviewCategory: string = '';// Mandatory fields trackingmandatoryFields: { [key: string]: boolean } = {};// Tutorial modal for mandatory fieldsshowTutorialModal = false;// Property to track open dropdownsopenDropdowns: { [key: string]: boolean } = {};// Text input popup propertiesshowTextInputPopup: boolean = false;popupQuestion: ExpectationQuestion | null = null;popupTextValue: string = '';isEditingExistingPreferences = false;existingPreferencesData: any = null;categoriesMeta = [{ key: 'personal_education', title: 'Personal & Education' },{ key: 'family_values', title: 'Family & Values' },{ key: 'lifestyle', title: 'Lifestyle & Habits' },{ key: 'finances_dealbreakers', title: 'Finances & Deal Breakers' },{ key: 'review', title: 'Review' }];selectedCategory: string = this.categoriesMeta[0]?.key || '';currentTabIndex: number = 0;constructor(private service: UserPreferencesService,private fb: FormBuilder,private router: Router,private route: ActivatedRoute,private renderer: Renderer2,private el: ElementRef,private authService: AuthService,private cdRef: ChangeDetectorRef) { }// Add the missing ngOnInit methodngOnInit(): void {this.route.queryParamMap.subscribe(params => {const qpUser = params.get('user_id');const qpRole = params.get('role');if (qpUser) {this.user_id = Number(qpUser);} else {this.user_id = this.authService.userId || 1;}this.role = qpRole;console.log('🔍 UserPreferences initialized:', {user_id: this.user_id,role: this.role});// Set default review categoryconst nonReviewCategories = this.categoriesMeta.filter(cat => cat.key !== 'review');if (nonReviewCategories.length > 0) {this.selectedReviewCategory = nonReviewCategories[0].key;}// Debug check for mandatory fieldsconsole.log('🔍 DEBUG: Checking current mandatory fields in database for user:', this.user_id);this.service.checkMandatoryFields(this.user_id).subscribe({next: (result) => {console.log('🔍 CURRENT MANDATORY FIELDS IN DB:', result);},error: (err) => {console.error('❌ Failed to check mandatory fields:', err);}});this.loadQuestionsAndPreferences();});}private enhanceUserExperience(): void {setTimeout(() => {const formContainer = document.querySelector('.form-container');if (formContainer) {formContainer.scrollTop = 0;}}, 150);}getProgressBarWidth(): number {if (this.selectedCategory === 'review') {return 100;}const currentIndex = this.categoriesMeta.findIndex(cat => cat.key === this.selectedCategory);if (currentIndex >= 0) {return ((currentIndex + 1) / (this.categoriesMeta.length + 1)) * 100;}return 0;}getStepLabel(title: string): string {const words = title.split(' ');return words.length > 2 ? words[0] : title.split(' ')[0];}@HostListener('window:resize')onWindowResize() {// Trigger responsive behavior}// Text Input Popup MethodsisAdditionalRemarksField(question?: ExpectationQuestion): boolean {if (question) {// Check if this is specifically the "Summary of Expectations" or similar fieldsconst label = question.question?.toLowerCase();const columnKey = question.column_key?.toLowerCase();// Define which fields should use the popupconst popupFields = ['summary of expectations','expectation summary','additional remarks','remark','remarks','summary','description'];return popupFields.some(field =>label?.includes(field) || columnKey?.includes(field));}// For the popup overlay check (when no question parameter)const currentLabel = this.popupQuestion?.question?.toLowerCase();const currentColumnKey = this.popupQuestion?.column_key?.toLowerCase();const popupFields = ['summary of expectations','expectation summary','additional remarks','remark','remarks','summary','description'];return popupFields.some(field =>currentLabel?.includes(field) || currentColumnKey?.includes(field));}openTextInputPopup(question: ExpectationQuestion): void {// Only open popup for specific fields (like Summary of Expectations)if (this.isAdditionalRemarksField(question)) {this.popupQuestion = question;this.popupTextValue = this.getFormValue(question.column_key) || '';this.showTextInputPopup = true;// Initialize textarea height after view updatessetTimeout(() => {this.initializeTextareaHeight();});}// For other fields, do nothing (no popup will open)}closeTextInputPopup(): void {this.showTextInputPopup = false;this.popupQuestion = null;this.popupTextValue = '';}saveTextInputPopup(): void {if (this.popupQuestion) {const control = this.form.get(this.popupQuestion.column_key);if (control) {control.setValue(this.popupTextValue);}this.onInputChange(this.popupQuestion.column_key);}this.closeTextInputPopup();}// Auto-expanding textarea functionality for popup onlyonTextareaInput(event: Event): void {const textarea = event.target as HTMLTextAreaElement;this.adjustTextareaHeight(textarea);}initializeTextareaHeight(): void {const textarea = document.querySelector('.text-input-popup-field') as HTMLTextAreaElement;if (textarea) {this.adjustTextareaHeight(textarea);textarea.focus();// Set cursor to end of textconst length = textarea.value.length;textarea.setSelectionRange(length, length);}}adjustTextareaHeight(textarea: HTMLTextAreaElement): void {// Reset height to auto to get the correct scrollHeighttextarea.style.height = 'auto';// Set the height to scrollHeight to expand, with max limitconst maxHeight = 400;const newHeight = Math.min(textarea.scrollHeight, maxHeight);textarea.style.height = newHeight + 'px';// Enable scrolling only when content exceeds max heighttextarea.style.overflowY = textarea.scrollHeight > maxHeight ? 'auto' : 'hidden';}// Mandatory Fields MethodsisMandatory(columnKey: string): boolean {return this.mandatoryFields[columnKey] === true;}onMandatoryChange(columnKey: string, value: string): void {this.mandatoryFields[columnKey] = value === 'mandatory';console.log(`🎯 Mandatory changed for ${columnKey}:`, this.mandatoryFields[columnKey]);this.updateProgress();this.cdRef.detectChanges();}getMandatoryFieldsCount(): number {const count = Object.values(this.mandatoryFields).filter(isMandatory => isMandatory).length;console.log(`📊 Mandatory fields count: ${count}`);return count;}openTutorialModal(): void {this.showTutorialModal = true;// Mark as seen when opened (optional)localStorage.setItem('mandatory_tutorial_seen', 'true');this.cdRef.detectChanges();console.log('📚 Opening mandatory fields tutorial');}closeTutorialModal(): void {this.showTutorialModal = false;this.cdRef.detectChanges();}// Event Handler MethodsonTextInputChange(event: any, columnKey: string): void {const value = event.target.value;this.form.get(columnKey)?.setValue(value);this.updateProgress();this.cdRef.detectChanges();}onSelectChange(event: any, columnKey: string): void {const value = event.target.value;this.form.get(columnKey)?.setValue(value);this.updateProgress();this.cdRef.detectChanges();}onRadioChange(event: any, columnKey: string): void {const value = event.target.value;this.form.get(columnKey)?.setValue(value);this.updateProgress();this.cdRef.detectChanges();}onCheckboxSingleChange(event: any, columnKey: string): void {const value = event.target.checked;this.form.get(columnKey)?.setValue(value);this.updateProgress();this.cdRef.detectChanges();}// Multi-select checkbox handler (used in both original and dropdown)onCheckboxChange(event: any, columnKey: string): void {const formArray: FormArray = this.form.get(columnKey) as FormArray;const value = event.target.value;const isChecked = event.target.checked;if (isChecked) {if (!formArray.value.includes(value)) {formArray.push(new FormControl(value));}} else {const index = formArray.controls.findIndex(x => x.value === value);if (index >= 0) {formArray.removeAt(index);}}this.updateProgress();this.cdRef.detectChanges();}// Dropdown multi-select specific methodstoggleDropdown(columnKey: string): void {this.openDropdowns[columnKey] = !this.openDropdowns[columnKey];}isDropdownOpen(columnKey: string): boolean {return this.openDropdowns[columnKey] === true;}getSelectedOptionsText(columnKey: string): string {const formArray = this.form.get(columnKey) as FormArray;if (!formArray || formArray.value.length === 0) {return '';}const selectedValues = formArray.value;if (selectedValues.length === 1) {return selectedValues[0];}return `${selectedValues.length} options selected`;}// Close dropdown when clicking outside@HostListener('document:click', ['$event'])onDocumentClick(event: MouseEvent): void {const target = event.target as HTMLElement;if (!target.closest('.multiselect-dropdown-checkbox')) {this.openDropdowns = {};this.cdRef.detectChanges();}}// Check if all options are selectedareAllOptionsSelected(question: ExpectationQuestion): boolean {const formArray = this.form.get(question.column_key) as FormArray;const options = this.getOptions(question);return formArray && options.length > 0 && formArray.value.length === options.length;}// Toggle select alltoggleSelectAll(question: ExpectationQuestion): void {const formArray: FormArray = this.form.get(question.column_key) as FormArray;const options = this.getOptions(question);formArray.clear();if (!this.areAllOptionsSelected(question)) {options.forEach(option => {formArray.push(new FormControl(option));});}this.updateProgress();this.cdRef.detectChanges();}isRadioSelected(columnKey: string, option: any): boolean {const value = this.getFormValue(columnKey);return value === option;}isCheckboxSelected(columnKey: string, option: any): boolean {const formArray = this.form.get(columnKey) as FormArray;return formArray && formArray.value.includes(option);}getFormValue(columnKey: string): any {const control = this.form?.get(columnKey);if (!control) return '';if (control instanceof FormArray) {return control.value || [];}return control.value || '';}private cleanValue(value: string): string {if (!value) return value;let cleaned = value.replace(/^\["+|"+]$/g, '').replace(/^"+|"+$/g, '').replace(/\\"/g, '"').trim();if (cleaned.startsWith('[') || cleaned.startsWith('{')) {try {const parsed = JSON.parse(cleaned);if (Array.isArray(parsed) && parsed.length > 0) {return parsed.map(item => this.cleanValue(String(item))).join(', ');}return String(parsed);} catch (e) {// If parsing fails, return the cleaned version}}return cleaned;}private loadQuestionsAndPreferences(): void {this.isLoading = true;console.log('📥 Loading questions and preferences...');this.service.getQuestions().subscribe({next: (data) => {this.questions = data;console.log('✅ Total questions loaded:', this.questions.length);this.buildForm();this.checkExistingPreferences();},error: (error) => {console.error('❌ Error loading questions:', error);this.isLoading = false;this.cdRef.detectChanges();}});}private checkExistingPreferences(): void {console.log('🔍 Checking for existing preferences...');this.service.getExistingPreferences(this.user_id).subscribe({next: (existingData: any) => {if (existingData && Object.keys(existingData).length > 0) {this.isEditingExistingPreferences = true;this.existingPreferencesData = existingData;console.log('📝 Loading existing preferences data:', existingData);this.populateFormWithExistingData();} else {console.log('📝 No existing preferences found, creating new ones');}this.finalizeInitialization();},error: (err) => {console.log('📝 No existing preferences found or error checking:', err);this.finalizeInitialization();}});}private finalizeInitialization(): void {this.setInitialSelectedCategory();this.updateProgress();this.isLoading = false;this.debugCategoriesAndQuestions();this.cdRef.detectChanges();// Auto-show tutorial on first loadthis.showMandatoryTutorial();setTimeout(() => {this.enhanceUserExperience();}, 100);console.log('✅ UserPreferences component initialized');}private showMandatoryTutorial(): void {// Check if user has seen the tutorial beforeconst tutorialSeen = localStorage.getItem('mandatory_tutorial_seen');if (!tutorialSeen) {// Show tutorial on first load with a slight delaysetTimeout(() => {this.showTutorialModal = true;// Mark as seen when shown automaticallylocalStorage.setItem('mandatory_tutorial_seen', 'true');this.cdRef.detectChanges();console.log('📚 Auto-showing mandatory fields tutorial');}, 800); // Slightly longer delay for better UX}}private buildForm(): void {const group: any = {};this.questions.forEach(q => {if (q.input_type === 'multi_select') {group[q.column_key] = this.fb.array([]);} else {const existingValue = this.existingPreferencesData ? this.existingPreferencesData[q.column_key] : '';let initialValue: any = '';if (q.input_type === 'checkbox') {initialValue = existingValue === true || existingValue === 'true' || existingValue === '1' || existingValue === 1;} else if (q.input_type === 'radio' || q.input_type === 'select') {if (Array.isArray(existingValue)) {initialValue = existingValue[0] || '';} else if (typeof existingValue === 'string') {initialValue = this.cleanValue(existingValue);} else {initialValue = existingValue || '';}} else {initialValue = existingValue || '';}group[q.column_key] = new FormControl(initialValue);}this.mandatoryFields[q.column_key] = false;});this.form = this.fb.group(group);console.log('✅ Form built with questions:', this.questions.length);console.log('📋 Form controls:', Object.keys(this.form.controls));this.questions.forEach(q => {const control = this.form.get(q.column_key);console.log(`🔍 Control for ${q.column_key}:`, control?.constructor.name, 'Type:', q.input_type);});this.updateProgress();this.form.valueChanges.subscribe(() => {this.updateProgress();this.cdRef.detectChanges();});console.log('✅ Form built with', this.questions.length, 'questions');}private populateFormWithExistingData(): void {console.log('🔄 Populating form with existing data...');let existingMandatoryFields: { [key: string]: any } = {};if (this.existingPreferencesData['_mandatory_fields']) {try {if (typeof this.existingPreferencesData['_mandatory_fields'] === 'string') {existingMandatoryFields = JSON.parse(this.existingPreferencesData['_mandatory_fields']);} else {existingMandatoryFields = this.existingPreferencesData['_mandatory_fields'];}console.log('🎯 Parsed mandatory fields:', existingMandatoryFields);} catch (e) {console.error('❌ Error parsing mandatory fields:', e);}}this.questions.forEach(q => {const existingValue = this.existingPreferencesData[q.column_key];const existingMandatory = existingMandatoryFields[q.column_key];console.log(`📝 Processing ${q.column_key}:`, {existingValue,existingMandatory,inputType: q.input_type});if (q.input_type === 'multi_select') {const formControl = this.form.get(q.column_key);if (formControl && formControl instanceof FormArray) {const formArray: FormArray = formControl;let values: string[] = [];if (existingValue) {if (typeof existingValue === 'string') {const cleanValue = existingValue.replace(/[\[\]"]/g, '');values = cleanValue.split(',').map(item => item.trim()).filter(item => item.length > 0);} else if (Array.isArray(existingValue)) {values = existingValue.filter(item => item && item.length > 0);}}console.log(`📋 Multi-select values for ${q.column_key}:`, values);formArray.clear();values.forEach(value => {formArray.push(new FormControl(value));});} else {console.warn(`⚠️ FormArray not found for multi-select question: ${q.column_key}`);}} else {const finalValue = existingValue || '';console.log(`📋 Setting ${q.column_key} to:`, finalValue);const formControl = this.form.get(q.column_key);if (formControl) {formControl.setValue(finalValue);} else {console.warn(`⚠️ FormControl not found for question: ${q.column_key}`);}}if (existingMandatory !== undefined && existingMandatory !== null) {this.mandatoryFields[q.column_key] = existingMandatory === true || existingMandatory === 'mandatory' || existingMandatory === 'true';console.log(`🎯 Mandatory for ${q.column_key}:`, this.mandatoryFields[q.column_key]);} else {this.mandatoryFields[q.column_key] = false;}});console.log('✅ Form populated with existing data');console.log('📋 Current form values:', this.form.value);console.log('📋 Current mandatory fields:', this.mandatoryFields);setTimeout(() => {this.updateProgress();});}getOptions(q: ExpectationQuestion): string[] {const opts = q.options;if (Array.isArray(opts)) return (opts as string[]).filter(Boolean);if (typeof opts === 'string') return opts.split(',').map(s => s.trim()).filter(Boolean);return [];}getQuestionsByCategory(category: string): ExpectationQuestion[] {const categoryMappings: { [key: string]: string[] } = {'personal_education': ['demographics', 'educationcareer', 'education', 'career', 'personal'],'family_values': ['family', 'values', 'family_values', 'family&values'],'finances_dealbreakers': ['finances', 'dealbreakers', 'financial', 'deal_breakers', 'finances_dealbreakers'],'lifestyle': ['lifestyle', 'habits', 'lifestyle_habits'],'interests': ['interests', 'hobbies', 'social', 'interests_social']};const targetCategories = categoryMappings[category] || [category];const filteredQuestions = this.questions.filter(q => {if (!q.category) return false;const qCategory = q.category.toLowerCase().trim();return targetCategories.some(target =>qCategory.includes(target.toLowerCase()) ||target.toLowerCase().includes(qCategory));});return filteredQuestions;}private debugCategoriesAndQuestions(): void {console.log('=== DEBUG: Available Categories and Questions ===');const allCategories = [...new Set(this.questions.map(q => q.category))];console.log('All categories in questions:', allCategories);this.categoriesMeta.forEach(cat => {if (cat.key !== 'review') {const questions = this.getQuestionsByCategory(cat.key);console.log(`Category ${cat.key} (${cat.title}): ${questions.length} questions`);questions.forEach(q => {console.log(` - ${q.column_key}: ${q.question}`);});}});console.log('=== END DEBUG ===');}selectCategory(key: string): void {this.selectedCategory = key;const categoryIndex = this.categoriesMeta.findIndex(cat => cat.key === key);this.currentTabIndex = categoryIndex >= 0 ? categoryIndex : this.categoriesMeta.length;// Initialize selected review category when entering review tabif (key === 'review') {const nonReviewCategories = this.categoriesMeta.filter(cat => cat.key !== 'review');if (nonReviewCategories.length > 0) {this.selectedReviewCategory = nonReviewCategories[0].key;}}if (key === 'review') {setTimeout(() => {this.debugReviewData();this.debugFormValues();}, 100);}this.enhanceUserExperience();this.cdRef.detectChanges();}selectReviewCategory(categoryKey: string): void {this.selectedReviewCategory = categoryKey;}getReviewCategoryTitle(categoryKey: string): string {const category = this.categoriesMeta.find(c => c.key === categoryKey);return category?.title || categoryKey;}private setInitialSelectedCategory(): void {const firstWithQuestions = this.categoriesMeta.find(c => c.key !== 'review' && this.getQuestionsByCategory(c.key).length > 0);if (firstWithQuestions) {this.selectedCategory = firstWithQuestions.key;this.currentTabIndex = this.categoriesMeta.findIndex(c => c.key === firstWithQuestions.key);}}getCategoryAnsweredCount(key: string): number {const qs = this.getQuestionsByCategory(key);return qs.reduce((acc, q) => {return acc + (this.isAnswered(q) ? 1 : 0);}, 0);}getCategoryPercent(key: string): number {const total = this.getQuestionsByCategory(key).length || 1;const answered = this.getCategoryAnsweredCount(key);return Math.round((answered / total) * 100);}getCategoryIcon(categoryKey: string): string {const iconMap: { [key: string]: string } = {'personal_education': 'fa-user-graduate','family_values': 'fa-people-roof','lifestyle': 'fa-heart','finances_dealbreakers': 'fa-sack-dollar','interests': 'fa-bullseye','review': 'fa-check'};return iconMap[categoryKey] || 'fa-question';}getCurrentCategoryIcon(): string {return this.getCategoryIcon(this.selectedCategory);}getCurrentCategoryTitle(): string {const category = this.categoriesMeta.find(c => c.key === this.selectedCategory);return category?.title || 'Category';}getCurrentCategoryDescription(): string {const descriptions: Record<string, string> = {'personal_education': 'Share your background, education, and career details','family_values': 'Tell us about your family expectations and core values','lifestyle': 'Describe your daily habits and lifestyle preferences','finances_dealbreakers': 'Set your financial expectations and deal breakers','interests': 'Share your hobbies, interests, and social preferences','review': 'Review all the information you have provided'};return descriptions[this.selectedCategory] || 'Complete this section to improve your matches';}onInputChange(columnKey: string): void {this.updateProgress();this.cdRef.detectChanges();}updateProgress(): void {const total = Object.keys(this.form.controls).length || 1;const filled = Object.values(this.form.value).filter(v => {if (Array.isArray(v)) return v.length > 0;return !!v && v.toString().trim().length > 0;}).length;this.progress = Math.round((filled / total) * 100);}submit(): void {console.log('🚀 SUBMITTING USER PREFERENCES FORM...');if (this.form.valid) {this.savedSuccessfully = false;this.showModal = true;this.isLoading = true;const payload: any = {user_id: this.user_id,...this.form.value,_mandatory_fields: this.mandatoryFields};console.log('🎯 Mandatory fields to save:', this.mandatoryFields);console.log('📊 Mandatory fields count:', this.getMandatoryFieldsCount());console.log('📤 COMPLETE PAYLOAD:', JSON.stringify(payload, null, 2));const submitObservable = this.isEditingExistingPreferences? this.service.updatePreferences(this.user_id, payload): this.service.saveResponse(payload);submitObservable.subscribe({next: (response) => {console.log('✅ Successfully saved preferences with mandatory fields:', response);this.savedSuccessfully = true;this.isLoading = false;},error: (err) => {console.error('❌ Error saving preferences:', err);this.savedSuccessfully = false;this.isLoading = false;}});} else {console.error('❌ Form is invalid!');console.log('Form validation errors:', this.form.errors);console.log('Form controls status:', this.form.status);}}closeModal(): void {this.showModal = false;// Remove blur effects if anyconst container = document.querySelector('.container');if (container) {container.classList.remove('blur-background');}}redirectToHome(): void {this.showModal = false;this.router.navigate(['/']);}redirectToAssessment(): void {this.showModal = false;this.router.navigate(['/llmquiz'], {queryParams: { user_id: this.user_id }});}goToPreviousCategory(currentKey: string): void {const currentIndex = this.categoriesMeta.findIndex(cat => cat.key === currentKey);if (currentIndex > 0) {this.selectedCategory = this.categoriesMeta[currentIndex - 1].key;this.currentTabIndex = currentIndex - 1;this.enhanceUserExperience();this.cdRef.detectChanges();}}goToNextCategory(currentKey: string): void {const currentIndex = this.categoriesMeta.findIndex(cat => cat.key === currentKey);if (currentIndex < this.categoriesMeta.length - 1) {this.selectedCategory = this.categoriesMeta[currentIndex + 1].key;this.currentTabIndex = currentIndex + 1;} else {this.selectedCategory = 'review';this.currentTabIndex = this.categoriesMeta.length;// Ensure review category is set when navigating to reviewconst nonReviewCategories = this.categoriesMeta.filter(cat => cat.key !== 'review');if (nonReviewCategories.length > 0) {this.selectedReviewCategory = nonReviewCategories[0].key;}}if (this.selectedCategory === 'review') {setTimeout(() => {this.cdRef.detectChanges();}, 50);}this.enhanceUserExperience();this.cdRef.detectChanges();}trackQuestion(index: number, item: ExpectationQuestion): string {return item.column_key;}// REVIEW TAB METHODSget allFieldsAnswered(): boolean {return this.questions.length > 0 && this.questions.every(q => this.isAnswered(q));}get unansweredCount(): number {return this.questions.filter(q => !this.isAnswered(q)).length;}isAnswered(q: ExpectationQuestion): boolean {const control = this.getFormControl(q.column_key);if (!control) return false;const value = control.value;if (q.input_type === 'multi_select') {return Array.isArray(value) && value.length > 0;}if (q.input_type === 'checkbox') {return value === true || value === 'true' || value === '1' || value === 1;}return !!value && value.toString().trim().length > 0;}getAnswerDisplay(question: ExpectationQuestion): string {const control = this.getFormControl(question.column_key);if (!control) return '(Not answered)';let value = control.value;if (typeof value === 'string') {value = this.cleanValue(value);}if (value === null || value === undefined || value === '') {return '(Not answered)';}// For popup fields, show truncated previewif (this.isAdditionalRemarksField(question) && typeof value === 'string' && value.length > 100) {return value.substring(0, 100) + '...';}if (question.input_type === 'multi_select') {if (Array.isArray(value)) {const cleanedValues = value.map(v => {if (typeof v === 'string') {return this.cleanValue(v);}return v;});return cleanedValues.length > 0 ? cleanedValues.join(', ') : '(Not answered)';}return this.cleanValue(String(value)) || '(Not answered)';}if (question.input_type === 'checkbox') {if (typeof value === 'boolean') {return value ? 'Yes' : 'No';}if (typeof value === 'string') {return value.toLowerCase() === 'true' || value === '1' ? 'Yes' : 'No';}if (typeof value === 'number') {return value === 1 ? 'Yes' : 'No';}return value ? 'Yes' : 'No';}if (question.input_type === 'select' || question.input_type === 'radio') {if (Array.isArray(value)) {const firstValue = value[0];return this.cleanValue(String(firstValue)) || '(Not answered)';}return this.cleanValue(String(value)) || '(Not answered)';}if (Array.isArray(value)) {const cleanedValues = value.map(v => this.cleanValue(String(v)));return cleanedValues.length > 0 ? cleanedValues.join(', ') : '(Not answered)';}if (typeof value === 'boolean') {return value ? 'Yes' : 'No';}return this.cleanValue(String(value)) || '(Not answered)';}getFormControl(columnKey: string): FormControl | FormArray | null {return this.form?.get(columnKey) as FormControl | FormArray | null;}// DEBUG METHODSdebugFormValues(): void {console.log('=== USER PREFERENCES FORM VALUES DEBUG ===');this.questions.forEach(q => {const value = this.getFormControl(q.column_key)?.value;const answered = this.isAnswered(q);console.log(`${q.column_key}:`, value, `(Type: ${q.input_type}, Answered: ${answered})`);});console.log('=== END FORM VALUES DEBUG ===');}debugReviewData(): void {console.log('=== USER PREFERENCES REVIEW TAB DEBUG ===');console.log('Form valid:', this.form.valid);console.log('Form values:', this.form.value);console.log('All fields answered:', this.allFieldsAnswered);console.log('Unanswered count:', this.unansweredCount);console.log('Mandatory fields count:', this.getMandatoryFieldsCount());this.categoriesMeta.forEach(cat => {if (cat.key !== 'review') {const questions = this.getQuestionsByCategory(cat.key);console.log(`Category: ${cat.title} (${cat.key})`);questions.forEach(q => {const value = this.getFormControl(q.column_key)?.value;const answered = this.isAnswered(q);const display = this.getAnswerDisplay(q);const mandatory = this.isMandatory(q.column_key);console.log(` ${q.column_key}:`, value, `Answered: ${answered}, Mandatory: ${mandatory}, Display: "${display}"`);});}});console.log('=== END REVIEW DEBUG ===');}getReviewCategories(): any[] {return this.categoriesMeta.filter(cat => cat.key !== 'review');}}
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263import { Injectable } from '@angular/core';import { HttpClient } from '@angular/common/http';import { Observable, of } from 'rxjs';interface ExpectationQuestion {id: number;question: string;options?: string | string[];input_type: string;column_key: string;category: string;required?: boolean;}interface UserExpectations {pref_age_range?: string;pref_location?: string;pref_education_level?: string;pref_employment_status?: string;pref_countries?: string[];pref_languages?: string[];[key: string]: any;}@Injectable({providedIn: 'root'})export class UserPreferencesService {private baseUrl: string;constructor(private http: HttpClient) {// Initialize baseUrl based on the current hostnamethis.baseUrl = location.hostname.endsWith('hf.space')? 'https://pykara-py-match-backend.hf.space/api': 'http://localhost:5000/api';}getQuestions(): Observable<ExpectationQuestion[]> {return this.http.get<ExpectationQuestion[]>(`${this.baseUrl}/expectation-questions`);}saveResponse(payload: any): Observable<any> {return this.http.post(`${this.baseUrl}/expectation-response`, payload);}// Add the missing method that MatchingListComponent expectsgetUserExpectations(userId: number): Observable<UserExpectations> {// Replace with your actual API endpoint for getting user expectations// return this.http.get<UserExpectations>(`${this.baseUrl}/user-expectations/${userId}`);// Temporary fallback - return empty expectationsreturn of({});}// Optional: Add method to save expectationssaveUserExpectations(userId: number, expectations: UserExpectations): Observable<any> {return this.http.post(`${this.baseUrl}/user-expectations/${userId}`, expectations);}}// Only export once at the end of the fileexport type { UserExpectations, ExpectationQuestion };123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151import { Injectable } from '@angular/core';import { HttpClient, HttpErrorResponse } from '@angular/common/http';import { Observable, of, throwError } from 'rxjs';import { catchError, tap } from 'rxjs/operators';import { AuthService } from '../services/auth.service';interface ExpectationQuestion {id: number;question: string;options?: string | string[];input_type: string;column_key: string;category: string;required?: boolean;}interface UserExpectations {pref_age_range?: string;pref_location?: string;pref_education_level?: string;pref_employment_status?: string;pref_countries?: string[];pref_languages?: string[];[key: string]: any;}@Injectable({providedIn: 'root'})export class UserPreferencesService {private baseUrl: string;constructor(private http: HttpClient, private authService: AuthService) {// Initialize baseUrl based on the current hostnamethis.baseUrl = typeof location !== 'undefined' && location.hostname.endsWith('hf.space')? 'https://pykara-py-match-backend.hf.space/api': 'http://127.0.0.1:5000/api';console.log('🔧 UserPreferencesService initialized with baseUrl:', this.baseUrl);}// Add error handling to all methodsprivate handleError(error: HttpErrorResponse) {console.error('❌ API Error:', error);let errorMessage = 'An unknown error occurred!';if (error.error instanceof ErrorEvent) {// Client-side errorerrorMessage = `Error: ${error.error.message}`;} else {// Server-side errorerrorMessage = `Error Code: ${error.status}\nMessage: ${error.message}\nDetails: ${JSON.stringify(error.error)}`;}return throwError(() => new Error(errorMessage));}getQuestions(): Observable<ExpectationQuestion[]> {console.log('🔍 Fetching questions from:', `${this.baseUrl}/expectation-questions`);return this.http.get<ExpectationQuestion[]>(`${this.baseUrl}/expectation-questions`).pipe(tap(questions => console.log('✅ Questions loaded:', questions.length)),catchError(this.handleError));}saveResponse(payload: any): Observable<any> {console.log('💾 Saving new preferences:', {url: `${this.baseUrl}/expectation-response`,payload: payload});return this.http.post(`${this.baseUrl}/expectation-response`, payload).pipe(tap(response => console.log('✅ Save response:', response)),catchError(this.handleError));}getExistingPreferences(userId: number): Observable<any> {console.log('🔍 Fetching existing preferences for user:', userId);return this.http.get(`${this.baseUrl}/existing-preferences/${userId}`).pipe(tap(preferences => console.log('✅ Existing preferences:', preferences)),catchError(error => {// Don't throw error for 404 - it just means no preferences existif (error.status === 404) {console.log('📝 No existing preferences found');return of(null);}return this.handleError(error);}));}// NEW: Method to check mandatory fields in databasecheckMandatoryFields(userId: number): Observable<any> {console.log('🔍 Checking mandatory fields in database for user:', userId);return this.http.get(`${this.baseUrl}/check-mandatory-fields/${userId}`).pipe(tap(result => console.log('✅ Mandatory fields check:', result)),catchError(this.handleError));}updatePreferences(userId: number, payload: any): Observable<any> {console.log('🔄 Updating existing preferences:', {url: `${this.baseUrl}/update-preferences/${userId}`,payload: payload});// Enhanced logging for debuggingconsole.log('📤 Full payload being sent:', JSON.stringify(payload, null, 2));console.log('🎯 Mandatory fields in payload:', payload._mandatory_fields);return this.http.put(`${this.baseUrl}/update-preferences/${userId}`, payload).pipe(tap(response => console.log('✅ Update response:', response)),catchError(this.handleError));}getUserExpectations(userId: number): Observable<UserExpectations> {console.log('🔍 Getting user expectations for:', userId);// Replace with your actual API endpoint for getting user expectations// return this.http.get<UserExpectations>(`${this.baseUrl}/user-expectations/${userId}`);// Temporary fallback - return empty expectationsreturn of({});}saveUserExpectations(userId: number, expectations: UserExpectations): Observable<any> {console.log('💾 Saving user expectations:', { userId, expectations });return this.http.post(`${this.baseUrl}/user-expectations/${userId}`, expectations).pipe(catchError(this.handleError));}// NEW: Method to validate payload before sendingvalidatePayload(payload: any): { isValid: boolean; errors: string[] } {const errors: string[] = [];if (!payload.user_id) {errors.push('User ID is required');}if (!payload._mandatory_fields || typeof payload._mandatory_fields !== 'object') {errors.push('Mandatory fields object is required');}return {isValid: errors.length === 0,errors};}}// Only export once at the end of the fileexport type { UserExpectations, ExpectationQuestion };
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165Fonticons, Inc. (https://fontawesome.com)
--------------------------------------------------------------------------------
Font Awesome Free License
Font Awesome Free is free, open source, and GPL friendly. You can use it forcommercial projects, open source projects, or really almost whatever you want.Full Font Awesome Free license: https://fontawesome.com/license/free.
--------------------------------------------------------------------------------
# Icons: CC BY 4.0 License (https://creativecommons.org/licenses/by/4.0/)
The Font Awesome Free download is licensed under a Creative CommonsAttribution 4.0 International License and applies to all icons packagedas SVG and JS file types.
--------------------------------------------------------------------------------
# Fonts: SIL OFL 1.1 License
In the Font Awesome Free download, the SIL OFL license applies to all iconspackaged as web and desktop font files.
Copyright (c) 2025 Fonticons, Inc. (https://fontawesome.com)with Reserved Font Name: "Font Awesome".
This Font Software is licensed under the SIL Open Font License, Version 1.1.This license is copied below, and is also available with a FAQ at:http://scripts.sil.org/OFL
SIL OPEN FONT LICENSEVersion 1.1 - 26 February 2007
PREAMBLEThe goals of the Open Font License (OFL) are to stimulate worldwidedevelopment of collaborative font projects, to support the font creationefforts of academic and linguistic communities, and to provide a free andopen framework in which fonts may be shared and improved in partnershipwith others.
The OFL allows the licensed fonts to be used, studied, modified andredistributed freely as long as they are not sold by themselves. Thefonts, including any derivative works, can be bundled, embedded,redistributed and/or sold with any software provided that any reservednames are not used by derivative works. The fonts and derivatives,however, cannot be released under any other type of license. Therequirement for fonts to remain under this license does not applyto any document created using the fonts or their derivatives.
DEFINITIONS"Font Software" refers to the set of files released by the CopyrightHolder(s) under this license and clearly marked as such. This mayinclude source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after thecopyright statement(s).
"Original Version" refers to the collection of Font Software components asdistributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,or substituting — in part or in whole — any of the components of theOriginal Version, by changing formats or by porting the Font Software to anew environment.
"Author" refers to any designer, engineer, programmer, technicalwriter or other person who contributed to the Font Software.
PERMISSION & CONDITIONSPermission is hereby granted, free of charge, to any person obtaininga copy of the Font Software, to use, study, copy, merge, embed, modify,redistribute, and sell modified and unmodified copies of the FontSoftware, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,redistributed and/or sold with any software, provided that each copycontains the above copyright notice and this license. These can beincluded either as stand-alone text files, human-readable headers orin the appropriate machine-readable metadata fields within text orbinary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved FontName(s) unless explicit written permission is granted by the correspondingCopyright Holder. This restriction only applies to the primary font name aspresented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the FontSoftware shall not be used to promote, endorse or advertise anyModified Version, except to acknowledge the contribution(s) of theCopyright Holder(s) and the Author(s) or with their explicit writtenpermission.
5) The Font Software, modified or unmodified, in part or in whole,must be distributed entirely under this license, and must not bedistributed under any other license. The requirement for fonts toremain under this license does not apply to any document createdusing the Font Software.
TERMINATIONThis license becomes null and void if any of the above conditions arenot met.
DISCLAIMERTHE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OFMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENTOF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THECOPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIALDAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISINGFROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROMOTHER DEALINGS IN THE FONT SOFTWARE.
--------------------------------------------------------------------------------
# Code: MIT License (https://opensource.org/licenses/MIT)
In the Font Awesome Free download, the MIT license applies to all non-font andnon-icon files.
Copyright 2025 Fonticons, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy ofthis software and associated documentation files (the "Software"), to deal in theSoftware without restriction, including without limitation the rights to use, copy,modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,and to permit persons to whom the Software is furnished to do so, subject to thefollowing conditions:
The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR APARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHTHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTIONOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THESOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
# Attribution
Attribution is required by MIT, SIL OFL, and CC BY licenses. Downloaded FontAwesome Free files already contain embedded comments with sufficientattribution, so you shouldn't need to do anything additional when using thesefiles normally.
We've kept attribution comments terse, so we ask that you do not actively workto remove them from files, especially code. They're a great way for folks tolearn about Font Awesome.
--------------------------------------------------------------------------------
# Brand Icons
All brand icons are trademarks of their respective owners. The use of thesetrademarks does not indicate endorsement of the trademark holder by FontAwesome, nor vice versa. **Please do not use brand logos for any purpose exceptto represent the company, product, or service to which they refer.**1234567891011121314151617181920212223242526272829303132333435363738# @fortawesome/fontawesome-free - The Official Font Awesome 7 NPM package
> "I came here to chew bubblegum and install Font Awesome 7 - and I'm all out of bubblegum"
[](https://www.npmjs.com/package/@fortawesome/fontawesome-free)
## Installation
```$ npm i --save @fortawesome/fontawesome-free```
Or
```$ yarn add @fortawesome/fontawesome-free```
## What's included?
**This package includes all the same files available through our Free and Pro CDN.**
* /js - All JavaScript files associated with Font Awesome 7 SVG with JS* /css - All CSS using the classic Web Fonts with CSS implementation* /sprites - SVG icons packaged in a convenient sprite* /scss - CSS Pre-processor files for Web Fonts with CSS* /webfonts - Accompanying files for Web Fonts with CSS* /svg - Individual icon files in SVG format
## Documentation
Get started [here](https://docs.fontawesome.com/web/setup/get-started). Continue your journey [here](https://docs.fontawesome.com/web/setup/packages).
Or go straight to the [API documentation](https://docs.fontawesome.com/apis/javascript/get-started).
## Issues and support
Start with [GitHub issues](https://github.com/FortAwesome/Font-Awesome/issues) and ping us on [Twitter](https://twitter.com/fontawesome) if you need to.123456789/*! * Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) * Copyright 2025 Fonticons, Inc. */.fa,.fa-brands,.fa-classic,.fa-regular,.fa-solid,.fab,.far,.fas{--_fa-family:var(--fa-family,var(--fa-style-family,"Font Awesome 7 Free"));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:var(--fa-display,inline-block);font-family:var(--_fa-family);font-feature-settings:normal;font-style:normal;font-synthesis:none;font-variant:normal;font-weight:var(--fa-style,900);line-height:1;text-align:center;text-rendering:auto;width:var(--fa-width,1.25em)}:is(.fas,.far,.fab,.fa-solid,.fa-regular,.fa-brands,.fa-classic,.fa):before{content:var(--fa);content:var(--fa)/""}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-2xs{font-size:.625em;line-height:.1em;vertical-align:.225em}.fa-xs{font-size:.75em;line-height:.08333em;vertical-align:.125em}.fa-sm{font-size:.875em;line-height:.07143em;vertical-align:.05357em}.fa-lg{font-size:1.25em;line-height:.05em;vertical-align:-.075em}.fa-xl{font-size:1.5em;line-height:.04167em;vertical-align:-.125em}.fa-2xl{font-size:2em;line-height:.03125em;vertical-align:-.1875em}.fa-width-auto{--fa-width:auto}.fa-fw,.fa-width-fixed{--fa-width:1.25em}.fa-ul{list-style-type:none;margin-inline-start:var(--fa-li-margin,2.5em);padding-inline-start:0}.fa-ul>li{position:relative}.fa-li{inset-inline-start:calc(var(--fa-li-width, 2em)*-1);position:absolute;text-align:center;width:var(--fa-li-width,2em);line-height:inherit}.fa-border{border-radius:var(--fa-border-radius,.1em);border:var(--fa-border-width,.0625em) var(--fa-border-style,solid) var(--fa-border-color,#eee);box-sizing:var(--fa-border-box-sizing,content-box);padding:var(--fa-border-padding,.1875em .25em)}.fa-pull-left,.fa-pull-start{float:inline-start;margin-inline-end:var(--fa-pull-margin,.3em)}.fa-pull-end,.fa-pull-right{float:inline-end;margin-inline-start:var(--fa-pull-margin,.3em)}.fa-beat{animation-name:fa-beat;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,ease-in-out)}.fa-bounce{animation-name:fa-bounce;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,cubic-bezier(.28,.84,.42,1))}.fa-fade{animation-name:fa-fade;animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,cubic-bezier(.4,0,.6,1))}.fa-beat-fade,.fa-fade{animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s)}.fa-beat-fade{animation-name:fa-beat-fade;animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,cubic-bezier(.4,0,.6,1))}.fa-flip{animation-name:fa-flip;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,ease-in-out)}.fa-shake{animation-name:fa-shake;animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,linear)}.fa-shake,.fa-spin{animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal)}.fa-spin{animation-name:fa-spin;animation-duration:var(--fa-animation-duration,2s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,linear)}.fa-spin-reverse{--fa-animation-direction:reverse}.fa-pulse,.fa-spin-pulse{animation-name:fa-spin;animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,steps(8))}@media (prefers-reduced-motion:reduce){.fa-beat,.fa-beat-fade,.fa-bounce,.fa-fade,.fa-flip,.fa-pulse,.fa-shake,.fa-spin,.fa-spin-pulse{animation:none!important;transition:none!important}}@keyframes fa-beat{0%,90%{transform:scale(1)}45%{transform:scale(var(--fa-beat-scale,1.25))}}@keyframes fa-bounce{0%{transform:scale(1) translateY(0)}10%{transform:scale(var(--fa-bounce-start-scale-x,1.1),var(--fa-bounce-start-scale-y,.9)) translateY(0)}30%{transform:scale(var(--fa-bounce-jump-scale-x,.9),var(--fa-bounce-jump-scale-y,1.1)) translateY(var(--fa-bounce-height,-.5em))}50%{transform:scale(var(--fa-bounce-land-scale-x,1.05),var(--fa-bounce-land-scale-y,.95)) translateY(0)}57%{transform:scale(1) translateY(var(--fa-bounce-rebound,-.125em))}64%{transform:scale(1) translateY(0)}to{transform:scale(1) translateY(0)}}@keyframes fa-fade{50%{opacity:var(--fa-fade-opacity,.4)}}@keyframes fa-beat-fade{0%,to{opacity:var(--fa-beat-fade-opacity,.4);transform:scale(1)}50%{opacity:1;transform:scale(var(--fa-beat-fade-scale,1.125))}}@keyframes fa-flip{50%{transform:rotate3d(var(--fa-flip-x,0),var(--fa-flip-y,1),var(--fa-flip-z,0),var(--fa-flip-angle,-180deg))}}@keyframes fa-shake{0%{transform:rotate(-15deg)}4%{transform:rotate(15deg)}8%,24%{transform:rotate(-18deg)}12%,28%{transform:rotate(18deg)}16%{transform:rotate(-22deg)}20%{transform:rotate(22deg)}32%{transform:rotate(-12deg)}36%{transform:rotate(12deg)}40%,to{transform:rotate(0deg)}}@keyframes fa-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.fa-rotate-90{transform:rotate(90deg)}.fa-rotate-180{transform:rotate(180deg)}.fa-rotate-270{transform:rotate(270deg)}.fa-flip-horizontal{transform:scaleX(-1)}.fa-flip-vertical{transform:scaleY(-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{transform:scale(-1)}.fa-rotate-by{transform:rotate(var(--fa-rotate-angle,0))}.fa-stack{display:inline-block;height:2em;line-height:2em;position:relative;vertical-align:middle;width:2.5em}.fa-stack-1x,.fa-stack-2x{left:0;position:absolute;text-align:center;width:100%;z-index:var(--fa-stack-z-index,auto)}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:var(--fa-inverse,#fff)}
.fa-0{--fa:"\30 "}.fa-1{--fa:"\31 "}.fa-2{--fa:"\32 "}.fa-3{--fa:"\33 "}.fa-4{--fa:"\34 "}.fa-5{--fa:"\35 "}.fa-6{--fa:"\36 "}.fa-7{--fa:"\37 "}.fa-8{--fa:"\38 "}.fa-9{--fa:"\39 "}.fa-exclamation{--fa:"\!"}.fa-hashtag{--fa:"\#"}.fa-dollar,.fa-dollar-sign,.fa-usd{--fa:"\$"}.fa-percent,.fa-percentage{--fa:"\%"}.fa-asterisk{--fa:"\*"}.fa-add,.fa-plus{--fa:"\+"}.fa-less-than{--fa:"\<"}.fa-equals{--fa:"\="}.fa-greater-than{--fa:"\>"}.fa-question{--fa:"\?"}.fa-at{--fa:"\@"}.fa-a{--fa:"A"}.fa-b{--fa:"B"}.fa-c{--fa:"C"}.fa-d{--fa:"D"}.fa-e{--fa:"E"}.fa-f{--fa:"F"}.fa-g{--fa:"G"}.fa-h{--fa:"H"}.fa-i{--fa:"I"}.fa-j{--fa:"J"}.fa-k{--fa:"K"}.fa-l{--fa:"L"}.fa-m{--fa:"M"}.fa-n{--fa:"N"}.fa-o{--fa:"O"}.fa-p{--fa:"P"}.fa-q{--fa:"Q"}.fa-r{--fa:"R"}.fa-s{--fa:"S"}.fa-t{--fa:"T"}.fa-u{--fa:"U"}.fa-v{--fa:"V"}.fa-w{--fa:"W"}.fa-x{--fa:"X"}.fa-y{--fa:"Y"}.fa-z{--fa:"Z"}.fa-faucet{--fa:"\e005"}.fa-faucet-drip{--fa:"\e006"}.fa-house-chimney-window{--fa:"\e00d"}.fa-house-signal{--fa:"\e012"}.fa-temperature-arrow-down,.fa-temperature-down{--fa:"\e03f"}.fa-temperature-arrow-up,.fa-temperature-up{--fa:"\e040"}.fa-trailer{--fa:"\e041"}.fa-bacteria{--fa:"\e059"}.fa-bacterium{--fa:"\e05a"}.fa-box-tissue{--fa:"\e05b"}.fa-hand-holding-medical{--fa:"\e05c"}.fa-hand-sparkles{--fa:"\e05d"}.fa-hands-bubbles,.fa-hands-wash{--fa:"\e05e"}.fa-handshake-alt-slash,.fa-handshake-simple-slash,.fa-handshake-slash{--fa:"\e060"}.fa-head-side-cough{--fa:"\e061"}.fa-head-side-cough-slash{--fa:"\e062"}.fa-head-side-mask{--fa:"\e063"}.fa-head-side-virus{--fa:"\e064"}.fa-house-chimney-user{--fa:"\e065"}.fa-house-laptop,.fa-laptop-house{--fa:"\e066"}.fa-lungs-virus{--fa:"\e067"}.fa-people-arrows,.fa-people-arrows-left-right{--fa:"\e068"}.fa-plane-slash{--fa:"\e069"}.fa-pump-medical{--fa:"\e06a"}.fa-pump-soap{--fa:"\e06b"}.fa-shield-virus{--fa:"\e06c"}.fa-sink{--fa:"\e06d"}.fa-soap{--fa:"\e06e"}.fa-stopwatch-20{--fa:"\e06f"}.fa-shop-slash,.fa-store-alt-slash{--fa:"\e070"}.fa-store-slash{--fa:"\e071"}.fa-toilet-paper-slash{--fa:"\e072"}.fa-users-slash{--fa:"\e073"}.fa-virus{--fa:"\e074"}.fa-virus-slash{--fa:"\e075"}.fa-viruses{--fa:"\e076"}.fa-vest{--fa:"\e085"}.fa-vest-patches{--fa:"\e086"}.fa-arrow-trend-down{--fa:"\e097"}.fa-arrow-trend-up{--fa:"\e098"}.fa-arrow-up-from-bracket{--fa:"\e09a"}.fa-austral-sign{--fa:"\e0a9"}.fa-baht-sign{--fa:"\e0ac"}.fa-bitcoin-sign{--fa:"\e0b4"}.fa-bolt-lightning{--fa:"\e0b7"}.fa-book-bookmark{--fa:"\e0bb"}.fa-camera-rotate{--fa:"\e0d8"}.fa-cedi-sign{--fa:"\e0df"}.fa-chart-column{--fa:"\e0e3"}.fa-chart-gantt{--fa:"\e0e4"}.fa-clapperboard{--fa:"\e131"}.fa-clover{--fa:"\e139"}.fa-code-compare{--fa:"\e13a"}.fa-code-fork{--fa:"\e13b"}.fa-code-pull-request{--fa:"\e13c"}.fa-colon-sign{--fa:"\e140"}.fa-cruzeiro-sign{--fa:"\e152"}.fa-display{--fa:"\e163"}.fa-dong-sign{--fa:"\e169"}.fa-elevator{--fa:"\e16d"}.fa-filter-circle-xmark{--fa:"\e17b"}.fa-florin-sign{--fa:"\e184"}.fa-folder-closed{--fa:"\e185"}.fa-franc-sign{--fa:"\e18f"}.fa-guarani-sign{--fa:"\e19a"}.fa-gun{--fa:"\e19b"}.fa-hands-clapping{--fa:"\e1a8"}.fa-home-user,.fa-house-user{--fa:"\e1b0"}.fa-indian-rupee,.fa-indian-rupee-sign,.fa-inr{--fa:"\e1bc"}.fa-kip-sign{--fa:"\e1c4"}.fa-lari-sign{--fa:"\e1c8"}.fa-litecoin-sign{--fa:"\e1d3"}.fa-manat-sign{--fa:"\e1d5"}.fa-mask-face{--fa:"\e1d7"}.fa-mill-sign{--fa:"\e1ed"}.fa-money-bills{--fa:"\e1f3"}.fa-naira-sign{--fa:"\e1f6"}.fa-notdef{--fa:"\e1fe"}.fa-panorama{--fa:"\e209"}.fa-peseta-sign{--fa:"\e221"}.fa-peso-sign{--fa:"\e222"}.fa-plane-up{--fa:"\e22d"}.fa-rupiah-sign{--fa:"\e23d"}.fa-stairs{--fa:"\e289"}.fa-timeline{--fa:"\e29c"}.fa-truck-front{--fa:"\e2b7"}.fa-try,.fa-turkish-lira,.fa-turkish-lira-sign{--fa:"\e2bb"}.fa-vault{--fa:"\e2c5"}.fa-magic-wand-sparkles,.fa-wand-magic-sparkles{--fa:"\e2ca"}.fa-wheat-alt,.fa-wheat-awn{--fa:"\e2cd"}.fa-wheelchair-alt,.fa-wheelchair-move{--fa:"\e2ce"}.fa-bangladeshi-taka-sign{--fa:"\e2e6"}.fa-bowl-rice{--fa:"\e2eb"}.fa-person-pregnant{--fa:"\e31e"}.fa-home-lg,.fa-house-chimney{--fa:"\e3af"}.fa-house-crack{--fa:"\e3b1"}.fa-house-medical{--fa:"\e3b2"}.fa-cent-sign{--fa:"\e3f5"}.fa-plus-minus{--fa:"\e43c"}.fa-sailboat{--fa:"\e445"}.fa-section{--fa:"\e447"}.fa-shrimp{--fa:"\e448"}.fa-brazilian-real-sign{--fa:"\e46c"}.fa-chart-simple{--fa:"\e473"}.fa-diagram-next{--fa:"\e476"}.fa-diagram-predecessor{--fa:"\e477"}.fa-diagram-successor{--fa:"\e47a"}.fa-earth-oceania,.fa-globe-oceania{--fa:"\e47b"}.fa-bug-slash{--fa:"\e490"}.fa-file-circle-plus{--fa:"\e494"}.fa-shop-lock{--fa:"\e4a5"}.fa-virus-covid{--fa:"\e4a8"}.fa-virus-covid-slash{--fa:"\e4a9"}.fa-anchor-circle-check{--fa:"\e4aa"}.fa-anchor-circle-exclamation{--fa:"\e4ab"}.fa-anchor-circle-xmark{--fa:"\e4ac"}.fa-anchor-lock{--fa:"\e4ad"}.fa-arrow-down-up-across-line{--fa:"\e4af"}.fa-arrow-down-up-lock{--fa:"\e4b0"}.fa-arrow-right-to-city{--fa:"\e4b3"}.fa-arrow-up-from-ground-water{--fa:"\e4b5"}.fa-arrow-up-from-water-pump{--fa:"\e4b6"}.fa-arrow-up-right-dots{--fa:"\e4b7"}.fa-arrows-down-to-line{--fa:"\e4b8"}.fa-arrows-down-to-people{--fa:"\e4b9"}.fa-arrows-left-right-to-line{--fa:"\e4ba"}.fa-arrows-spin{--fa:"\e4bb"}.fa-arrows-split-up-and-left{--fa:"\e4bc"}.fa-arrows-to-circle{--fa:"\e4bd"}.fa-arrows-to-dot{--fa:"\e4be"}.fa-arrows-to-eye{--fa:"\e4bf"}.fa-arrows-turn-right{--fa:"\e4c0"}.fa-arrows-turn-to-dots{--fa:"\e4c1"}.fa-arrows-up-to-line{--fa:"\e4c2"}.fa-bore-hole{--fa:"\e4c3"}.fa-bottle-droplet{--fa:"\e4c4"}.fa-bottle-water{--fa:"\e4c5"}.fa-bowl-food{--fa:"\e4c6"}.fa-boxes-packing{--fa:"\e4c7"}.fa-bridge{--fa:"\e4c8"}.fa-bridge-circle-check{--fa:"\e4c9"}.fa-bridge-circle-exclamation{--fa:"\e4ca"}.fa-bridge-circle-xmark{--fa:"\e4cb"}.fa-bridge-lock{--fa:"\e4cc"}.fa-bridge-water{--fa:"\e4ce"}.fa-bucket{--fa:"\e4cf"}.fa-bugs{--fa:"\e4d0"}.fa-building-circle-arrow-right{--fa:"\e4d1"}.fa-building-circle-check{--fa:"\e4d2"}.fa-building-circle-exclamation{--fa:"\e4d3"}.fa-building-circle-xmark{--fa:"\e4d4"}.fa-building-flag{--fa:"\e4d5"}.fa-building-lock{--fa:"\e4d6"}.fa-building-ngo{--fa:"\e4d7"}.fa-building-shield{--fa:"\e4d8"}.fa-building-un{--fa:"\e4d9"}.fa-building-user{--fa:"\e4da"}.fa-building-wheat{--fa:"\e4db"}.fa-burst{--fa:"\e4dc"}.fa-car-on{--fa:"\e4dd"}.fa-car-tunnel{--fa:"\e4de"}.fa-child-combatant,.fa-child-rifle{--fa:"\e4e0"}.fa-children{--fa:"\e4e1"}.fa-circle-nodes{--fa:"\e4e2"}.fa-clipboard-question{--fa:"\e4e3"}.fa-cloud-showers-water{--fa:"\e4e4"}.fa-computer{--fa:"\e4e5"}.fa-cubes-stacked{--fa:"\e4e6"}.fa-envelope-circle-check{--fa:"\e4e8"}.fa-explosion{--fa:"\e4e9"}.fa-ferry{--fa:"\e4ea"}.fa-file-circle-exclamation{--fa:"\e4eb"}.fa-file-circle-minus{--fa:"\e4ed"}.fa-file-circle-question{--fa:"\e4ef"}.fa-file-shield{--fa:"\e4f0"}.fa-fire-burner{--fa:"\e4f1"}.fa-fish-fins{--fa:"\e4f2"}.fa-flask-vial{--fa:"\e4f3"}.fa-glass-water{--fa:"\e4f4"}.fa-glass-water-droplet{--fa:"\e4f5"}.fa-group-arrows-rotate{--fa:"\e4f6"}.fa-hand-holding-hand{--fa:"\e4f7"}.fa-handcuffs{--fa:"\e4f8"}.fa-hands-bound{--fa:"\e4f9"}.fa-hands-holding-child{--fa:"\e4fa"}.fa-hands-holding-circle{--fa:"\e4fb"}.fa-heart-circle-bolt{--fa:"\e4fc"}.fa-heart-circle-check{--fa:"\e4fd"}.fa-heart-circle-exclamation{--fa:"\e4fe"}.fa-heart-circle-minus{--fa:"\e4ff"}.fa-heart-circle-plus{--fa:"\e500"}.fa-heart-circle-xmark{--fa:"\e501"}.fa-helicopter-symbol{--fa:"\e502"}.fa-helmet-un{--fa:"\e503"}.fa-hill-avalanche{--fa:"\e507"}.fa-hill-rockslide{--fa:"\e508"}.fa-house-circle-check{--fa:"\e509"}.fa-house-circle-exclamation{--fa:"\e50a"}.fa-house-circle-xmark{--fa:"\e50b"}.fa-house-fire{--fa:"\e50c"}.fa-house-flag{--fa:"\e50d"}.fa-house-flood-water{--fa:"\e50e"}.fa-house-flood-water-circle-arrow-right{--fa:"\e50f"}.fa-house-lock{--fa:"\e510"}.fa-house-medical-circle-check{--fa:"\e511"}.fa-house-medical-circle-exclamation{--fa:"\e512"}.fa-house-medical-circle-xmark{--fa:"\e513"}.fa-house-medical-flag{--fa:"\e514"}.fa-house-tsunami{--fa:"\e515"}.fa-jar{--fa:"\e516"}.fa-jar-wheat{--fa:"\e517"}.fa-jet-fighter-up{--fa:"\e518"}.fa-jug-detergent{--fa:"\e519"}.fa-kitchen-set{--fa:"\e51a"}.fa-land-mine-on{--fa:"\e51b"}.fa-landmark-flag{--fa:"\e51c"}.fa-laptop-file{--fa:"\e51d"}.fa-lines-leaning{--fa:"\e51e"}.fa-location-pin-lock{--fa:"\e51f"}.fa-locust{--fa:"\e520"}.fa-magnifying-glass-arrow-right{--fa:"\e521"}.fa-magnifying-glass-chart{--fa:"\e522"}.fa-mars-and-venus-burst{--fa:"\e523"}.fa-mask-ventilator{--fa:"\e524"}.fa-mattress-pillow{--fa:"\e525"}.fa-mobile-retro{--fa:"\e527"}.fa-money-bill-transfer{--fa:"\e528"}.fa-money-bill-trend-up{--fa:"\e529"}.fa-money-bill-wheat{--fa:"\e52a"}.fa-mosquito{--fa:"\e52b"}.fa-mosquito-net{--fa:"\e52c"}.fa-mound{--fa:"\e52d"}.fa-mountain-city{--fa:"\e52e"}.fa-mountain-sun{--fa:"\e52f"}.fa-oil-well{--fa:"\e532"}.fa-people-group{--fa:"\e533"}.fa-people-line{--fa:"\e534"}.fa-people-pulling{--fa:"\e535"}.fa-people-robbery{--fa:"\e536"}.fa-people-roof{--fa:"\e537"}.fa-person-arrow-down-to-line{--fa:"\e538"}.fa-person-arrow-up-from-line{--fa:"\e539"}.fa-person-breastfeeding{--fa:"\e53a"}.fa-person-burst{--fa:"\e53b"}.fa-person-cane{--fa:"\e53c"}.fa-person-chalkboard{--fa:"\e53d"}.fa-person-circle-check{--fa:"\e53e"}.fa-person-circle-exclamation{--fa:"\e53f"}.fa-person-circle-minus{--fa:"\e540"}.fa-person-circle-plus{--fa:"\e541"}.fa-person-circle-question{--fa:"\e542"}.fa-person-circle-xmark{--fa:"\e543"}.fa-person-dress-burst{--fa:"\e544"}.fa-person-drowning{--fa:"\e545"}.fa-person-falling{--fa:"\e546"}.fa-person-falling-burst{--fa:"\e547"}.fa-person-half-dress{--fa:"\e548"}.fa-person-harassing{--fa:"\e549"}.fa-person-military-pointing{--fa:"\e54a"}.fa-person-military-rifle{--fa:"\e54b"}.fa-person-military-to-person{--fa:"\e54c"}.fa-person-rays{--fa:"\e54d"}.fa-person-rifle{--fa:"\e54e"}.fa-person-shelter{--fa:"\e54f"}.fa-person-walking-arrow-loop-left{--fa:"\e551"}.fa-person-walking-arrow-right{--fa:"\e552"}.fa-person-walking-dashed-line-arrow-right{--fa:"\e553"}.fa-person-walking-luggage{--fa:"\e554"}.fa-plane-circle-check{--fa:"\e555"}.fa-plane-circle-exclamation{--fa:"\e556"}.fa-plane-circle-xmark{--fa:"\e557"}.fa-plane-lock{--fa:"\e558"}.fa-plate-wheat{--fa:"\e55a"}.fa-plug-circle-bolt{--fa:"\e55b"}.fa-plug-circle-check{--fa:"\e55c"}.fa-plug-circle-exclamation{--fa:"\e55d"}.fa-plug-circle-minus{--fa:"\e55e"}.fa-plug-circle-plus{--fa:"\e55f"}.fa-plug-circle-xmark{--fa:"\e560"}.fa-ranking-star{--fa:"\e561"}.fa-road-barrier{--fa:"\e562"}.fa-road-bridge{--fa:"\e563"}.fa-road-circle-check{--fa:"\e564"}.fa-road-circle-exclamation{--fa:"\e565"}.fa-road-circle-xmark{--fa:"\e566"}.fa-road-lock{--fa:"\e567"}.fa-road-spikes{--fa:"\e568"}.fa-rug{--fa:"\e569"}.fa-sack-xmark{--fa:"\e56a"}.fa-school-circle-check{--fa:"\e56b"}.fa-school-circle-exclamation{--fa:"\e56c"}.fa-school-circle-xmark{--fa:"\e56d"}.fa-school-flag{--fa:"\e56e"}.fa-school-lock{--fa:"\e56f"}.fa-sheet-plastic{--fa:"\e571"}.fa-shield-cat{--fa:"\e572"}.fa-shield-dog{--fa:"\e573"}.fa-shield-heart{--fa:"\e574"}.fa-square-nfi{--fa:"\e576"}.fa-square-person-confined{--fa:"\e577"}.fa-square-virus{--fa:"\e578"}.fa-rod-asclepius,.fa-rod-snake,.fa-staff-aesculapius,.fa-staff-snake{--fa:"\e579"}.fa-sun-plant-wilt{--fa:"\e57a"}.fa-tarp{--fa:"\e57b"}.fa-tarp-droplet{--fa:"\e57c"}.fa-tent{--fa:"\e57d"}.fa-tent-arrow-down-to-line{--fa:"\e57e"}.fa-tent-arrow-left-right{--fa:"\e57f"}.fa-tent-arrow-turn-left{--fa:"\e580"}.fa-tent-arrows-down{--fa:"\e581"}.fa-tents{--fa:"\e582"}.fa-toilet-portable{--fa:"\e583"}.fa-toilets-portable{--fa:"\e584"}.fa-tower-cell{--fa:"\e585"}.fa-tower-observation{--fa:"\e586"}.fa-tree-city{--fa:"\e587"}.fa-trowel{--fa:"\e589"}.fa-trowel-bricks{--fa:"\e58a"}.fa-truck-arrow-right{--fa:"\e58b"}.fa-truck-droplet{--fa:"\e58c"}.fa-truck-field{--fa:"\e58d"}.fa-truck-field-un{--fa:"\e58e"}.fa-truck-plane{--fa:"\e58f"}.fa-users-between-lines{--fa:"\e591"}.fa-users-line{--fa:"\e592"}.fa-users-rays{--fa:"\e593"}.fa-users-rectangle{--fa:"\e594"}.fa-users-viewfinder{--fa:"\e595"}.fa-vial-circle-check{--fa:"\e596"}.fa-vial-virus{--fa:"\e597"}.fa-wheat-awn-circle-exclamation{--fa:"\e598"}.fa-worm{--fa:"\e599"}.fa-xmarks-lines{--fa:"\e59a"}.fa-child-dress{--fa:"\e59c"}.fa-child-reaching{--fa:"\e59d"}.fa-file-circle-check{--fa:"\e5a0"}.fa-file-circle-xmark{--fa:"\e5a1"}.fa-person-through-window{--fa:"\e5a9"}.fa-plant-wilt{--fa:"\e5aa"}.fa-stapler{--fa:"\e5af"}.fa-train-tram{--fa:"\e5b4"}.fa-table-cells-column-lock{--fa:"\e678"}.fa-table-cells-row-lock{--fa:"\e67a"}.fa-thumb-tack-slash,.fa-thumbtack-slash{--fa:"\e68f"}.fa-table-cells-row-unlock{--fa:"\e691"}.fa-chart-diagram{--fa:"\e695"}.fa-comment-nodes{--fa:"\e696"}.fa-file-fragment{--fa:"\e697"}.fa-file-half-dashed{--fa:"\e698"}.fa-hexagon-nodes{--fa:"\e699"}.fa-hexagon-nodes-bolt{--fa:"\e69a"}.fa-square-binary{--fa:"\e69b"}.fa-pentagon{--fa:"\e790"}.fa-non-binary{--fa:"\e807"}.fa-spiral{--fa:"\e80a"}.fa-mobile-vibrate{--fa:"\e816"}.fa-single-quote-left{--fa:"\e81b"}.fa-single-quote-right{--fa:"\e81c"}.fa-bus-side{--fa:"\e81d"}.fa-heptagon,.fa-septagon{--fa:"\e820"}.fa-glass-martini,.fa-martini-glass-empty{--fa:"\f000"}.fa-music{--fa:"\f001"}.fa-magnifying-glass,.fa-search{--fa:"\f002"}.fa-heart{--fa:"\f004"}.fa-star{--fa:"\f005"}.fa-user,.fa-user-alt,.fa-user-large{--fa:"\f007"}.fa-film,.fa-film-alt,.fa-film-simple{--fa:"\f008"}.fa-table-cells-large,.fa-th-large{--fa:"\f009"}.fa-table-cells,.fa-th{--fa:"\f00a"}.fa-table-list,.fa-th-list{--fa:"\f00b"}.fa-check{--fa:"\f00c"}.fa-close,.fa-multiply,.fa-remove,.fa-times,.fa-xmark{--fa:"\f00d"}.fa-magnifying-glass-plus,.fa-search-plus{--fa:"\f00e"}.fa-magnifying-glass-minus,.fa-search-minus{--fa:"\f010"}.fa-power-off{--fa:"\f011"}.fa-signal,.fa-signal-5,.fa-signal-perfect{--fa:"\f012"}.fa-cog,.fa-gear{--fa:"\f013"}.fa-home,.fa-home-alt,.fa-home-lg-alt,.fa-house{--fa:"\f015"}.fa-clock,.fa-clock-four{--fa:"\f017"}.fa-road{--fa:"\f018"}.fa-download{--fa:"\f019"}.fa-inbox{--fa:"\f01c"}.fa-arrow-right-rotate,.fa-arrow-rotate-forward,.fa-arrow-rotate-right,.fa-redo{--fa:"\f01e"}.fa-arrows-rotate,.fa-refresh,.fa-sync{--fa:"\f021"}.fa-list-alt,.fa-rectangle-list{--fa:"\f022"}.fa-lock{--fa:"\f023"}.fa-flag{--fa:"\f024"}.fa-headphones,.fa-headphones-alt,.fa-headphones-simple{--fa:"\f025"}.fa-volume-off{--fa:"\f026"}.fa-volume-down,.fa-volume-low{--fa:"\f027"}.fa-volume-high,.fa-volume-up{--fa:"\f028"}.fa-qrcode{--fa:"\f029"}.fa-barcode{--fa:"\f02a"}.fa-tag{--fa:"\f02b"}.fa-tags{--fa:"\f02c"}.fa-book{--fa:"\f02d"}.fa-bookmark{--fa:"\f02e"}.fa-print{--fa:"\f02f"}.fa-camera,.fa-camera-alt{--fa:"\f030"}.fa-font{--fa:"\f031"}.fa-bold{--fa:"\f032"}.fa-italic{--fa:"\f033"}.fa-text-height{--fa:"\f034"}.fa-text-width{--fa:"\f035"}.fa-align-left{--fa:"\f036"}.fa-align-center{--fa:"\f037"}.fa-align-right{--fa:"\f038"}.fa-align-justify{--fa:"\f039"}.fa-list,.fa-list-squares{--fa:"\f03a"}.fa-dedent,.fa-outdent{--fa:"\f03b"}.fa-indent{--fa:"\f03c"}.fa-video,.fa-video-camera{--fa:"\f03d"}.fa-image{--fa:"\f03e"}.fa-location-pin,.fa-map-marker{--fa:"\f041"}.fa-adjust,.fa-circle-half-stroke{--fa:"\f042"}.fa-droplet,.fa-tint{--fa:"\f043"}.fa-edit,.fa-pen-to-square{--fa:"\f044"}.fa-arrows,.fa-arrows-up-down-left-right{--fa:"\f047"}.fa-backward-step,.fa-step-backward{--fa:"\f048"}.fa-backward-fast,.fa-fast-backward{--fa:"\f049"}.fa-backward{--fa:"\f04a"}.fa-play{--fa:"\f04b"}.fa-pause{--fa:"\f04c"}.fa-stop{--fa:"\f04d"}.fa-forward{--fa:"\f04e"}.fa-fast-forward,.fa-forward-fast{--fa:"\f050"}.fa-forward-step,.fa-step-forward{--fa:"\f051"}.fa-eject{--fa:"\f052"}.fa-chevron-left{--fa:"\f053"}.fa-chevron-right{--fa:"\f054"}.fa-circle-plus,.fa-plus-circle{--fa:"\f055"}.fa-circle-minus,.fa-minus-circle{--fa:"\f056"}.fa-circle-xmark,.fa-times-circle,.fa-xmark-circle{--fa:"\f057"}.fa-check-circle,.fa-circle-check{--fa:"\f058"}.fa-circle-question,.fa-question-circle{--fa:"\f059"}.fa-circle-info,.fa-info-circle{--fa:"\f05a"}.fa-crosshairs{--fa:"\f05b"}.fa-ban,.fa-cancel{--fa:"\f05e"}.fa-arrow-left{--fa:"\f060"}.fa-arrow-right{--fa:"\f061"}.fa-arrow-up{--fa:"\f062"}.fa-arrow-down{--fa:"\f063"}.fa-mail-forward,.fa-share{--fa:"\f064"}.fa-expand{--fa:"\f065"}.fa-compress{--fa:"\f066"}.fa-minus,.fa-subtract{--fa:"\f068"}.fa-circle-exclamation,.fa-exclamation-circle{--fa:"\f06a"}.fa-gift{--fa:"\f06b"}.fa-leaf{--fa:"\f06c"}.fa-fire{--fa:"\f06d"}.fa-eye{--fa:"\f06e"}.fa-eye-slash{--fa:"\f070"}.fa-exclamation-triangle,.fa-triangle-exclamation,.fa-warning{--fa:"\f071"}.fa-plane{--fa:"\f072"}.fa-calendar-alt,.fa-calendar-days{--fa:"\f073"}.fa-random,.fa-shuffle{--fa:"\f074"}.fa-comment{--fa:"\f075"}.fa-magnet{--fa:"\f076"}.fa-chevron-up{--fa:"\f077"}.fa-chevron-down{--fa:"\f078"}.fa-retweet{--fa:"\f079"}.fa-cart-shopping,.fa-shopping-cart{--fa:"\f07a"}.fa-folder,.fa-folder-blank{--fa:"\f07b"}.fa-folder-open{--fa:"\f07c"}.fa-arrows-up-down,.fa-arrows-v{--fa:"\f07d"}.fa-arrows-h,.fa-arrows-left-right{--fa:"\f07e"}.fa-bar-chart,.fa-chart-bar{--fa:"\f080"}.fa-camera-retro{--fa:"\f083"}.fa-key{--fa:"\f084"}.fa-cogs,.fa-gears{--fa:"\f085"}.fa-comments{--fa:"\f086"}.fa-star-half{--fa:"\f089"}.fa-arrow-right-from-bracket,.fa-sign-out{--fa:"\f08b"}.fa-thumb-tack,.fa-thumbtack{--fa:"\f08d"}.fa-arrow-up-right-from-square,.fa-external-link{--fa:"\f08e"}.fa-arrow-right-to-bracket,.fa-sign-in{--fa:"\f090"}.fa-trophy{--fa:"\f091"}.fa-upload{--fa:"\f093"}.fa-lemon{--fa:"\f094"}.fa-phone{--fa:"\f095"}.fa-phone-square,.fa-square-phone{--fa:"\f098"}.fa-unlock{--fa:"\f09c"}.fa-credit-card,.fa-credit-card-alt{--fa:"\f09d"}.fa-feed,.fa-rss{--fa:"\f09e"}.fa-hard-drive,.fa-hdd{--fa:"\f0a0"}.fa-bullhorn{--fa:"\f0a1"}.fa-certificate{--fa:"\f0a3"}.fa-hand-point-right{--fa:"\f0a4"}.fa-hand-point-left{--fa:"\f0a5"}.fa-hand-point-up{--fa:"\f0a6"}.fa-hand-point-down{--fa:"\f0a7"}.fa-arrow-circle-left,.fa-circle-arrow-left{--fa:"\f0a8"}.fa-arrow-circle-right,.fa-circle-arrow-right{--fa:"\f0a9"}.fa-arrow-circle-up,.fa-circle-arrow-up{--fa:"\f0aa"}.fa-arrow-circle-down,.fa-circle-arrow-down{--fa:"\f0ab"}.fa-globe{--fa:"\f0ac"}.fa-wrench{--fa:"\f0ad"}.fa-list-check,.fa-tasks{--fa:"\f0ae"}.fa-filter{--fa:"\f0b0"}.fa-briefcase{--fa:"\f0b1"}.fa-arrows-alt,.fa-up-down-left-right{--fa:"\f0b2"}.fa-users{--fa:"\f0c0"}.fa-chain,.fa-link{--fa:"\f0c1"}.fa-cloud{--fa:"\f0c2"}.fa-flask{--fa:"\f0c3"}.fa-cut,.fa-scissors{--fa:"\f0c4"}.fa-copy{--fa:"\f0c5"}.fa-paperclip{--fa:"\f0c6"}.fa-floppy-disk,.fa-save{--fa:"\f0c7"}.fa-square{--fa:"\f0c8"}.fa-bars,.fa-navicon{--fa:"\f0c9"}.fa-list-dots,.fa-list-ul{--fa:"\f0ca"}.fa-list-1-2,.fa-list-numeric,.fa-list-ol{--fa:"\f0cb"}.fa-strikethrough{--fa:"\f0cc"}.fa-underline{--fa:"\f0cd"}.fa-table{--fa:"\f0ce"}.fa-magic,.fa-wand-magic{--fa:"\f0d0"}.fa-truck{--fa:"\f0d1"}.fa-money-bill{--fa:"\f0d6"}.fa-caret-down{--fa:"\f0d7"}.fa-caret-up{--fa:"\f0d8"}.fa-caret-left{--fa:"\f0d9"}.fa-caret-right{--fa:"\f0da"}.fa-columns,.fa-table-columns{--fa:"\f0db"}.fa-sort,.fa-unsorted{--fa:"\f0dc"}.fa-sort-desc,.fa-sort-down{--fa:"\f0dd"}.fa-sort-asc,.fa-sort-up{--fa:"\f0de"}.fa-envelope{--fa:"\f0e0"}.fa-arrow-left-rotate,.fa-arrow-rotate-back,.fa-arrow-rotate-backward,.fa-arrow-rotate-left,.fa-undo{--fa:"\f0e2"}.fa-gavel,.fa-legal{--fa:"\f0e3"}.fa-bolt,.fa-zap{--fa:"\f0e7"}.fa-sitemap{--fa:"\f0e8"}.fa-umbrella{--fa:"\f0e9"}.fa-file-clipboard,.fa-paste{--fa:"\f0ea"}.fa-lightbulb{--fa:"\f0eb"}.fa-arrow-right-arrow-left,.fa-exchange{--fa:"\f0ec"}.fa-cloud-arrow-down,.fa-cloud-download,.fa-cloud-download-alt{--fa:"\f0ed"}.fa-cloud-arrow-up,.fa-cloud-upload,.fa-cloud-upload-alt{--fa:"\f0ee"}.fa-user-doctor,.fa-user-md{--fa:"\f0f0"}.fa-stethoscope{--fa:"\f0f1"}.fa-suitcase{--fa:"\f0f2"}.fa-bell{--fa:"\f0f3"}.fa-coffee,.fa-mug-saucer{--fa:"\f0f4"}.fa-hospital,.fa-hospital-alt,.fa-hospital-wide{--fa:"\f0f8"}.fa-ambulance,.fa-truck-medical{--fa:"\f0f9"}.fa-medkit,.fa-suitcase-medical{--fa:"\f0fa"}.fa-fighter-jet,.fa-jet-fighter{--fa:"\f0fb"}.fa-beer,.fa-beer-mug-empty{--fa:"\f0fc"}.fa-h-square,.fa-square-h{--fa:"\f0fd"}.fa-plus-square,.fa-square-plus{--fa:"\f0fe"}.fa-angle-double-left,.fa-angles-left{--fa:"\f100"}.fa-angle-double-right,.fa-angles-right{--fa:"\f101"}.fa-angle-double-up,.fa-angles-up{--fa:"\f102"}.fa-angle-double-down,.fa-angles-down{--fa:"\f103"}.fa-angle-left{--fa:"\f104"}.fa-angle-right{--fa:"\f105"}.fa-angle-up{--fa:"\f106"}.fa-angle-down{--fa:"\f107"}.fa-laptop{--fa:"\f109"}.fa-tablet-button{--fa:"\f10a"}.fa-mobile-button{--fa:"\f10b"}.fa-quote-left,.fa-quote-left-alt{--fa:"\f10d"}.fa-quote-right,.fa-quote-right-alt{--fa:"\f10e"}.fa-spinner{--fa:"\f110"}.fa-circle{--fa:"\f111"}.fa-face-smile,.fa-smile{--fa:"\f118"}.fa-face-frown,.fa-frown{--fa:"\f119"}.fa-face-meh,.fa-meh{--fa:"\f11a"}.fa-gamepad{--fa:"\f11b"}.fa-keyboard{--fa:"\f11c"}.fa-flag-checkered{--fa:"\f11e"}.fa-terminal{--fa:"\f120"}.fa-code{--fa:"\f121"}.fa-mail-reply-all,.fa-reply-all{--fa:"\f122"}.fa-location-arrow{--fa:"\f124"}.fa-crop{--fa:"\f125"}.fa-code-branch{--fa:"\f126"}.fa-chain-broken,.fa-chain-slash,.fa-link-slash,.fa-unlink{--fa:"\f127"}.fa-info{--fa:"\f129"}.fa-superscript{--fa:"\f12b"}.fa-subscript{--fa:"\f12c"}.fa-eraser{--fa:"\f12d"}.fa-puzzle-piece{--fa:"\f12e"}.fa-microphone{--fa:"\f130"}.fa-microphone-slash{--fa:"\f131"}.fa-shield,.fa-shield-blank{--fa:"\f132"}.fa-calendar{--fa:"\f133"}.fa-fire-extinguisher{--fa:"\f134"}.fa-rocket{--fa:"\f135"}.fa-chevron-circle-left,.fa-circle-chevron-left{--fa:"\f137"}.fa-chevron-circle-right,.fa-circle-chevron-right{--fa:"\f138"}.fa-chevron-circle-up,.fa-circle-chevron-up{--fa:"\f139"}.fa-chevron-circle-down,.fa-circle-chevron-down{--fa:"\f13a"}.fa-anchor{--fa:"\f13d"}.fa-unlock-alt,.fa-unlock-keyhole{--fa:"\f13e"}.fa-bullseye{--fa:"\f140"}.fa-ellipsis,.fa-ellipsis-h{--fa:"\f141"}.fa-ellipsis-v,.fa-ellipsis-vertical{--fa:"\f142"}.fa-rss-square,.fa-square-rss{--fa:"\f143"}.fa-circle-play,.fa-play-circle{--fa:"\f144"}.fa-ticket{--fa:"\f145"}.fa-minus-square,.fa-square-minus{--fa:"\f146"}.fa-arrow-turn-up,.fa-level-up{--fa:"\f148"}.fa-arrow-turn-down,.fa-level-down{--fa:"\f149"}.fa-check-square,.fa-square-check{--fa:"\f14a"}.fa-pen-square,.fa-pencil-square,.fa-square-pen{--fa:"\f14b"}.fa-external-link-square,.fa-square-arrow-up-right{--fa:"\f14c"}.fa-share-from-square,.fa-share-square{--fa:"\f14d"}.fa-compass{--fa:"\f14e"}.fa-caret-square-down,.fa-square-caret-down{--fa:"\f150"}.fa-caret-square-up,.fa-square-caret-up{--fa:"\f151"}.fa-caret-square-right,.fa-square-caret-right{--fa:"\f152"}.fa-eur,.fa-euro,.fa-euro-sign{--fa:"\f153"}.fa-gbp,.fa-pound-sign,.fa-sterling-sign{--fa:"\f154"}.fa-rupee,.fa-rupee-sign{--fa:"\f156"}.fa-cny,.fa-jpy,.fa-rmb,.fa-yen,.fa-yen-sign{--fa:"\f157"}.fa-rouble,.fa-rub,.fa-ruble,.fa-ruble-sign{--fa:"\f158"}.fa-krw,.fa-won,.fa-won-sign{--fa:"\f159"}.fa-file{--fa:"\f15b"}.fa-file-alt,.fa-file-lines,.fa-file-text{--fa:"\f15c"}.fa-arrow-down-a-z,.fa-sort-alpha-asc,.fa-sort-alpha-down{--fa:"\f15d"}.fa-arrow-up-a-z,.fa-sort-alpha-up{--fa:"\f15e"}.fa-arrow-down-wide-short,.fa-sort-amount-asc,.fa-sort-amount-down{--fa:"\f160"}.fa-arrow-up-wide-short,.fa-sort-amount-up{--fa:"\f161"}.fa-arrow-down-1-9,.fa-sort-numeric-asc,.fa-sort-numeric-down{--fa:"\f162"}.fa-arrow-up-1-9,.fa-sort-numeric-up{--fa:"\f163"}.fa-thumbs-up{--fa:"\f164"}.fa-thumbs-down{--fa:"\f165"}.fa-arrow-down-long,.fa-long-arrow-down{--fa:"\f175"}.fa-arrow-up-long,.fa-long-arrow-up{--fa:"\f176"}.fa-arrow-left-long,.fa-long-arrow-left{--fa:"\f177"}.fa-arrow-right-long,.fa-long-arrow-right{--fa:"\f178"}.fa-female,.fa-person-dress{--fa:"\f182"}.fa-male,.fa-person{--fa:"\f183"}.fa-sun{--fa:"\f185"}.fa-moon{--fa:"\f186"}.fa-archive,.fa-box-archive{--fa:"\f187"}.fa-bug{--fa:"\f188"}.fa-caret-square-left,.fa-square-caret-left{--fa:"\f191"}.fa-circle-dot,.fa-dot-circle{--fa:"\f192"}.fa-wheelchair{--fa:"\f193"}.fa-lira-sign{--fa:"\f195"}.fa-shuttle-space,.fa-space-shuttle{--fa:"\f197"}.fa-envelope-square,.fa-square-envelope{--fa:"\f199"}.fa-bank,.fa-building-columns,.fa-institution,.fa-museum,.fa-university{--fa:"\f19c"}.fa-graduation-cap,.fa-mortar-board{--fa:"\f19d"}.fa-language{--fa:"\f1ab"}.fa-fax{--fa:"\f1ac"}.fa-building{--fa:"\f1ad"}.fa-child{--fa:"\f1ae"}.fa-paw{--fa:"\f1b0"}.fa-cube{--fa:"\f1b2"}.fa-cubes{--fa:"\f1b3"}.fa-recycle{--fa:"\f1b8"}.fa-automobile,.fa-car{--fa:"\f1b9"}.fa-cab,.fa-taxi{--fa:"\f1ba"}.fa-tree{--fa:"\f1bb"}.fa-database{--fa:"\f1c0"}.fa-file-pdf{--fa:"\f1c1"}.fa-file-word{--fa:"\f1c2"}.fa-file-excel{--fa:"\f1c3"}.fa-file-powerpoint{--fa:"\f1c4"}.fa-file-image{--fa:"\f1c5"}.fa-file-archive,.fa-file-zipper{--fa:"\f1c6"}.fa-file-audio{--fa:"\f1c7"}.fa-file-video{--fa:"\f1c8"}.fa-file-code{--fa:"\f1c9"}.fa-life-ring{--fa:"\f1cd"}.fa-circle-notch{--fa:"\f1ce"}.fa-paper-plane{--fa:"\f1d8"}.fa-clock-rotate-left,.fa-history{--fa:"\f1da"}.fa-header,.fa-heading{--fa:"\f1dc"}.fa-paragraph{--fa:"\f1dd"}.fa-sliders,.fa-sliders-h{--fa:"\f1de"}.fa-share-alt,.fa-share-nodes{--fa:"\f1e0"}.fa-share-alt-square,.fa-square-share-nodes{--fa:"\f1e1"}.fa-bomb{--fa:"\f1e2"}.fa-futbol,.fa-futbol-ball,.fa-soccer-ball{--fa:"\f1e3"}.fa-teletype,.fa-tty{--fa:"\f1e4"}.fa-binoculars{--fa:"\f1e5"}.fa-plug{--fa:"\f1e6"}.fa-newspaper{--fa:"\f1ea"}.fa-wifi,.fa-wifi-3,.fa-wifi-strong{--fa:"\f1eb"}.fa-calculator{--fa:"\f1ec"}.fa-bell-slash{--fa:"\f1f6"}.fa-trash{--fa:"\f1f8"}.fa-copyright{--fa:"\f1f9"}.fa-eye-dropper,.fa-eye-dropper-empty,.fa-eyedropper{--fa:"\f1fb"}.fa-paint-brush,.fa-paintbrush{--fa:"\f1fc"}.fa-birthday-cake,.fa-cake,.fa-cake-candles{--fa:"\f1fd"}.fa-area-chart,.fa-chart-area{--fa:"\f1fe"}.fa-chart-pie,.fa-pie-chart{--fa:"\f200"}.fa-chart-line,.fa-line-chart{--fa:"\f201"}.fa-toggle-off{--fa:"\f204"}.fa-toggle-on{--fa:"\f205"}.fa-bicycle{--fa:"\f206"}.fa-bus{--fa:"\f207"}.fa-closed-captioning{--fa:"\f20a"}.fa-ils,.fa-shekel,.fa-shekel-sign,.fa-sheqel,.fa-sheqel-sign{--fa:"\f20b"}.fa-cart-plus{--fa:"\f217"}.fa-cart-arrow-down{--fa:"\f218"}.fa-diamond{--fa:"\f219"}.fa-ship{--fa:"\f21a"}.fa-user-secret{--fa:"\f21b"}.fa-motorcycle{--fa:"\f21c"}.fa-street-view{--fa:"\f21d"}.fa-heart-pulse,.fa-heartbeat{--fa:"\f21e"}.fa-venus{--fa:"\f221"}.fa-mars{--fa:"\f222"}.fa-mercury{--fa:"\f223"}.fa-mars-and-venus{--fa:"\f224"}.fa-transgender,.fa-transgender-alt{--fa:"\f225"}.fa-venus-double{--fa:"\f226"}.fa-mars-double{--fa:"\f227"}.fa-venus-mars{--fa:"\f228"}.fa-mars-stroke{--fa:"\f229"}.fa-mars-stroke-up,.fa-mars-stroke-v{--fa:"\f22a"}.fa-mars-stroke-h,.fa-mars-stroke-right{--fa:"\f22b"}.fa-neuter{--fa:"\f22c"}.fa-genderless{--fa:"\f22d"}.fa-server{--fa:"\f233"}.fa-user-plus{--fa:"\f234"}.fa-user-times,.fa-user-xmark{--fa:"\f235"}.fa-bed{--fa:"\f236"}.fa-train{--fa:"\f238"}.fa-subway,.fa-train-subway{--fa:"\f239"}.fa-battery,.fa-battery-5,.fa-battery-full{--fa:"\f240"}.fa-battery-4,.fa-battery-three-quarters{--fa:"\f241"}.fa-battery-3,.fa-battery-half{--fa:"\f242"}.fa-battery-2,.fa-battery-quarter{--fa:"\f243"}.fa-battery-0,.fa-battery-empty{--fa:"\f244"}.fa-arrow-pointer,.fa-mouse-pointer{--fa:"\f245"}.fa-i-cursor{--fa:"\f246"}.fa-object-group{--fa:"\f247"}.fa-object-ungroup{--fa:"\f248"}.fa-note-sticky,.fa-sticky-note{--fa:"\f249"}.fa-clone{--fa:"\f24d"}.fa-balance-scale,.fa-scale-balanced{--fa:"\f24e"}.fa-hourglass-1,.fa-hourglass-start{--fa:"\f251"}.fa-hourglass-2,.fa-hourglass-half{--fa:"\f252"}.fa-hourglass-3,.fa-hourglass-end{--fa:"\f253"}.fa-hourglass,.fa-hourglass-empty{--fa:"\f254"}.fa-hand-back-fist,.fa-hand-rock{--fa:"\f255"}.fa-hand,.fa-hand-paper{--fa:"\f256"}.fa-hand-scissors{--fa:"\f257"}.fa-hand-lizard{--fa:"\f258"}.fa-hand-spock{--fa:"\f259"}.fa-hand-pointer{--fa:"\f25a"}.fa-hand-peace{--fa:"\f25b"}.fa-trademark{--fa:"\f25c"}.fa-registered{--fa:"\f25d"}.fa-television,.fa-tv,.fa-tv-alt{--fa:"\f26c"}.fa-calendar-plus{--fa:"\f271"}.fa-calendar-minus{--fa:"\f272"}.fa-calendar-times,.fa-calendar-xmark{--fa:"\f273"}.fa-calendar-check{--fa:"\f274"}.fa-industry{--fa:"\f275"}.fa-map-pin{--fa:"\f276"}.fa-map-signs,.fa-signs-post{--fa:"\f277"}.fa-map{--fa:"\f279"}.fa-comment-alt,.fa-message{--fa:"\f27a"}.fa-circle-pause,.fa-pause-circle{--fa:"\f28b"}.fa-circle-stop,.fa-stop-circle{--fa:"\f28d"}.fa-bag-shopping,.fa-shopping-bag{--fa:"\f290"}.fa-basket-shopping,.fa-shopping-basket{--fa:"\f291"}.fa-universal-access{--fa:"\f29a"}.fa-blind,.fa-person-walking-with-cane{--fa:"\f29d"}.fa-audio-description{--fa:"\f29e"}.fa-phone-volume,.fa-volume-control-phone{--fa:"\f2a0"}.fa-braille{--fa:"\f2a1"}.fa-assistive-listening-systems,.fa-ear-listen{--fa:"\f2a2"}.fa-american-sign-language-interpreting,.fa-asl-interpreting,.fa-hands-american-sign-language-interpreting,.fa-hands-asl-interpreting{--fa:"\f2a3"}.fa-deaf,.fa-deafness,.fa-ear-deaf,.fa-hard-of-hearing{--fa:"\f2a4"}.fa-hands,.fa-sign-language,.fa-signing{--fa:"\f2a7"}.fa-eye-low-vision,.fa-low-vision{--fa:"\f2a8"}.fa-handshake,.fa-handshake-alt,.fa-handshake-simple{--fa:"\f2b5"}.fa-envelope-open{--fa:"\f2b6"}.fa-address-book,.fa-contact-book{--fa:"\f2b9"}.fa-address-card,.fa-contact-card,.fa-vcard{--fa:"\f2bb"}.fa-circle-user,.fa-user-circle{--fa:"\f2bd"}.fa-id-badge{--fa:"\f2c1"}.fa-drivers-license,.fa-id-card{--fa:"\f2c2"}.fa-temperature-4,.fa-temperature-full,.fa-thermometer-4,.fa-thermometer-full{--fa:"\f2c7"}.fa-temperature-3,.fa-temperature-three-quarters,.fa-thermometer-3,.fa-thermometer-three-quarters{--fa:"\f2c8"}.fa-temperature-2,.fa-temperature-half,.fa-thermometer-2,.fa-thermometer-half{--fa:"\f2c9"}.fa-temperature-1,.fa-temperature-quarter,.fa-thermometer-1,.fa-thermometer-quarter{--fa:"\f2ca"}.fa-temperature-0,.fa-temperature-empty,.fa-thermometer-0,.fa-thermometer-empty{--fa:"\f2cb"}.fa-shower{--fa:"\f2cc"}.fa-bath,.fa-bathtub{--fa:"\f2cd"}.fa-podcast{--fa:"\f2ce"}.fa-window-maximize{--fa:"\f2d0"}.fa-window-minimize{--fa:"\f2d1"}.fa-window-restore{--fa:"\f2d2"}.fa-square-xmark,.fa-times-square,.fa-xmark-square{--fa:"\f2d3"}.fa-microchip{--fa:"\f2db"}.fa-snowflake{--fa:"\f2dc"}.fa-spoon,.fa-utensil-spoon{--fa:"\f2e5"}.fa-cutlery,.fa-utensils{--fa:"\f2e7"}.fa-rotate-back,.fa-rotate-backward,.fa-rotate-left,.fa-undo-alt{--fa:"\f2ea"}.fa-trash-alt,.fa-trash-can{--fa:"\f2ed"}.fa-rotate,.fa-sync-alt{--fa:"\f2f1"}.fa-stopwatch{--fa:"\f2f2"}.fa-right-from-bracket,.fa-sign-out-alt{--fa:"\f2f5"}.fa-right-to-bracket,.fa-sign-in-alt{--fa:"\f2f6"}.fa-redo-alt,.fa-rotate-forward,.fa-rotate-right{--fa:"\f2f9"}.fa-poo{--fa:"\f2fe"}.fa-images{--fa:"\f302"}.fa-pencil,.fa-pencil-alt{--fa:"\f303"}.fa-pen{--fa:"\f304"}.fa-pen-alt,.fa-pen-clip{--fa:"\f305"}.fa-octagon{--fa:"\f306"}.fa-down-long,.fa-long-arrow-alt-down{--fa:"\f309"}.fa-left-long,.fa-long-arrow-alt-left{--fa:"\f30a"}.fa-long-arrow-alt-right,.fa-right-long{--fa:"\f30b"}.fa-long-arrow-alt-up,.fa-up-long{--fa:"\f30c"}.fa-hexagon{--fa:"\f312"}.fa-file-edit,.fa-file-pen{--fa:"\f31c"}.fa-expand-arrows-alt,.fa-maximize{--fa:"\f31e"}.fa-clipboard{--fa:"\f328"}.fa-arrows-alt-h,.fa-left-right{--fa:"\f337"}.fa-arrows-alt-v,.fa-up-down{--fa:"\f338"}.fa-alarm-clock{--fa:"\f34e"}.fa-arrow-alt-circle-down,.fa-circle-down{--fa:"\f358"}.fa-arrow-alt-circle-left,.fa-circle-left{--fa:"\f359"}.fa-arrow-alt-circle-right,.fa-circle-right{--fa:"\f35a"}.fa-arrow-alt-circle-up,.fa-circle-up{--fa:"\f35b"}.fa-external-link-alt,.fa-up-right-from-square{--fa:"\f35d"}.fa-external-link-square-alt,.fa-square-up-right{--fa:"\f360"}.fa-exchange-alt,.fa-right-left{--fa:"\f362"}.fa-repeat{--fa:"\f363"}.fa-code-commit{--fa:"\f386"}.fa-code-merge{--fa:"\f387"}.fa-desktop,.fa-desktop-alt{--fa:"\f390"}.fa-gem{--fa:"\f3a5"}.fa-level-down-alt,.fa-turn-down{--fa:"\f3be"}.fa-level-up-alt,.fa-turn-up{--fa:"\f3bf"}.fa-lock-open{--fa:"\f3c1"}.fa-location-dot,.fa-map-marker-alt{--fa:"\f3c5"}.fa-microphone-alt,.fa-microphone-lines{--fa:"\f3c9"}.fa-mobile-alt,.fa-mobile-screen-button{--fa:"\f3cd"}.fa-mobile,.fa-mobile-android,.fa-mobile-phone{--fa:"\f3ce"}.fa-mobile-android-alt,.fa-mobile-screen{--fa:"\f3cf"}.fa-money-bill-1,.fa-money-bill-alt{--fa:"\f3d1"}.fa-phone-slash{--fa:"\f3dd"}.fa-image-portrait,.fa-portrait{--fa:"\f3e0"}.fa-mail-reply,.fa-reply{--fa:"\f3e5"}.fa-shield-alt,.fa-shield-halved{--fa:"\f3ed"}.fa-tablet-alt,.fa-tablet-screen-button{--fa:"\f3fa"}.fa-tablet,.fa-tablet-android{--fa:"\f3fb"}.fa-ticket-alt,.fa-ticket-simple{--fa:"\f3ff"}.fa-rectangle-times,.fa-rectangle-xmark,.fa-times-rectangle,.fa-window-close{--fa:"\f410"}.fa-compress-alt,.fa-down-left-and-up-right-to-center{--fa:"\f422"}.fa-expand-alt,.fa-up-right-and-down-left-from-center{--fa:"\f424"}.fa-baseball-bat-ball{--fa:"\f432"}.fa-baseball,.fa-baseball-ball{--fa:"\f433"}.fa-basketball,.fa-basketball-ball{--fa:"\f434"}.fa-bowling-ball{--fa:"\f436"}.fa-chess{--fa:"\f439"}.fa-chess-bishop{--fa:"\f43a"}.fa-chess-board{--fa:"\f43c"}.fa-chess-king{--fa:"\f43f"}.fa-chess-knight{--fa:"\f441"}.fa-chess-pawn{--fa:"\f443"}.fa-chess-queen{--fa:"\f445"}.fa-chess-rook{--fa:"\f447"}.fa-dumbbell{--fa:"\f44b"}.fa-football,.fa-football-ball{--fa:"\f44e"}.fa-golf-ball,.fa-golf-ball-tee{--fa:"\f450"}.fa-hockey-puck{--fa:"\f453"}.fa-broom-ball,.fa-quidditch,.fa-quidditch-broom-ball{--fa:"\f458"}.fa-square-full{--fa:"\f45c"}.fa-ping-pong-paddle-ball,.fa-table-tennis,.fa-table-tennis-paddle-ball{--fa:"\f45d"}.fa-volleyball,.fa-volleyball-ball{--fa:"\f45f"}.fa-allergies,.fa-hand-dots{--fa:"\f461"}.fa-band-aid,.fa-bandage{--fa:"\f462"}.fa-box{--fa:"\f466"}.fa-boxes,.fa-boxes-alt,.fa-boxes-stacked{--fa:"\f468"}.fa-briefcase-medical{--fa:"\f469"}.fa-burn,.fa-fire-flame-simple{--fa:"\f46a"}.fa-capsules{--fa:"\f46b"}.fa-clipboard-check{--fa:"\f46c"}.fa-clipboard-list{--fa:"\f46d"}.fa-diagnoses,.fa-person-dots-from-line{--fa:"\f470"}.fa-dna{--fa:"\f471"}.fa-dolly,.fa-dolly-box{--fa:"\f472"}.fa-cart-flatbed,.fa-dolly-flatbed{--fa:"\f474"}.fa-file-medical{--fa:"\f477"}.fa-file-medical-alt,.fa-file-waveform{--fa:"\f478"}.fa-first-aid,.fa-kit-medical{--fa:"\f479"}.fa-circle-h,.fa-hospital-symbol{--fa:"\f47e"}.fa-id-card-alt,.fa-id-card-clip{--fa:"\f47f"}.fa-notes-medical{--fa:"\f481"}.fa-pallet{--fa:"\f482"}.fa-pills{--fa:"\f484"}.fa-prescription-bottle{--fa:"\f485"}.fa-prescription-bottle-alt,.fa-prescription-bottle-medical{--fa:"\f486"}.fa-bed-pulse,.fa-procedures{--fa:"\f487"}.fa-shipping-fast,.fa-truck-fast{--fa:"\f48b"}.fa-smoking{--fa:"\f48d"}.fa-syringe{--fa:"\f48e"}.fa-tablets{--fa:"\f490"}.fa-thermometer{--fa:"\f491"}.fa-vial{--fa:"\f492"}.fa-vials{--fa:"\f493"}.fa-warehouse{--fa:"\f494"}.fa-weight,.fa-weight-scale{--fa:"\f496"}.fa-x-ray{--fa:"\f497"}.fa-box-open{--fa:"\f49e"}.fa-comment-dots,.fa-commenting{--fa:"\f4ad"}.fa-comment-slash{--fa:"\f4b3"}.fa-couch{--fa:"\f4b8"}.fa-circle-dollar-to-slot,.fa-donate{--fa:"\f4b9"}.fa-dove{--fa:"\f4ba"}.fa-hand-holding{--fa:"\f4bd"}.fa-hand-holding-heart{--fa:"\f4be"}.fa-hand-holding-dollar,.fa-hand-holding-usd{--fa:"\f4c0"}.fa-hand-holding-droplet,.fa-hand-holding-water{--fa:"\f4c1"}.fa-hands-holding{--fa:"\f4c2"}.fa-hands-helping,.fa-handshake-angle{--fa:"\f4c4"}.fa-parachute-box{--fa:"\f4cd"}.fa-people-carry,.fa-people-carry-box{--fa:"\f4ce"}.fa-piggy-bank{--fa:"\f4d3"}.fa-ribbon{--fa:"\f4d6"}.fa-route{--fa:"\f4d7"}.fa-seedling,.fa-sprout{--fa:"\f4d8"}.fa-sign,.fa-sign-hanging{--fa:"\f4d9"}.fa-face-smile-wink,.fa-smile-wink{--fa:"\f4da"}.fa-tape{--fa:"\f4db"}.fa-truck-loading,.fa-truck-ramp-box{--fa:"\f4de"}.fa-truck-moving{--fa:"\f4df"}.fa-video-slash{--fa:"\f4e2"}.fa-wine-glass{--fa:"\f4e3"}.fa-user-astronaut{--fa:"\f4fb"}.fa-user-check{--fa:"\f4fc"}.fa-user-clock{--fa:"\f4fd"}.fa-user-cog,.fa-user-gear{--fa:"\f4fe"}.fa-user-edit,.fa-user-pen{--fa:"\f4ff"}.fa-user-friends,.fa-user-group{--fa:"\f500"}.fa-user-graduate{--fa:"\f501"}.fa-user-lock{--fa:"\f502"}.fa-user-minus{--fa:"\f503"}.fa-user-ninja{--fa:"\f504"}.fa-user-shield{--fa:"\f505"}.fa-user-alt-slash,.fa-user-large-slash,.fa-user-slash{--fa:"\f506"}.fa-user-tag{--fa:"\f507"}.fa-user-tie{--fa:"\f508"}.fa-users-cog,.fa-users-gear{--fa:"\f509"}.fa-balance-scale-left,.fa-scale-unbalanced{--fa:"\f515"}.fa-balance-scale-right,.fa-scale-unbalanced-flip{--fa:"\f516"}.fa-blender{--fa:"\f517"}.fa-book-open{--fa:"\f518"}.fa-broadcast-tower,.fa-tower-broadcast{--fa:"\f519"}.fa-broom{--fa:"\f51a"}.fa-blackboard,.fa-chalkboard{--fa:"\f51b"}.fa-chalkboard-teacher,.fa-chalkboard-user{--fa:"\f51c"}.fa-church{--fa:"\f51d"}.fa-coins{--fa:"\f51e"}.fa-compact-disc{--fa:"\f51f"}.fa-crow{--fa:"\f520"}.fa-crown{--fa:"\f521"}.fa-dice{--fa:"\f522"}.fa-dice-five{--fa:"\f523"}.fa-dice-four{--fa:"\f524"}.fa-dice-one{--fa:"\f525"}.fa-dice-six{--fa:"\f526"}.fa-dice-three{--fa:"\f527"}.fa-dice-two{--fa:"\f528"}.fa-divide{--fa:"\f529"}.fa-door-closed{--fa:"\f52a"}.fa-door-open{--fa:"\f52b"}.fa-feather{--fa:"\f52d"}.fa-frog{--fa:"\f52e"}.fa-gas-pump{--fa:"\f52f"}.fa-glasses{--fa:"\f530"}.fa-greater-than-equal{--fa:"\f532"}.fa-helicopter{--fa:"\f533"}.fa-infinity{--fa:"\f534"}.fa-kiwi-bird{--fa:"\f535"}.fa-less-than-equal{--fa:"\f537"}.fa-memory{--fa:"\f538"}.fa-microphone-alt-slash,.fa-microphone-lines-slash{--fa:"\f539"}.fa-money-bill-wave{--fa:"\f53a"}.fa-money-bill-1-wave,.fa-money-bill-wave-alt{--fa:"\f53b"}.fa-money-check{--fa:"\f53c"}.fa-money-check-alt,.fa-money-check-dollar{--fa:"\f53d"}.fa-not-equal{--fa:"\f53e"}.fa-palette{--fa:"\f53f"}.fa-parking,.fa-square-parking{--fa:"\f540"}.fa-diagram-project,.fa-project-diagram{--fa:"\f542"}.fa-receipt{--fa:"\f543"}.fa-robot{--fa:"\f544"}.fa-ruler{--fa:"\f545"}.fa-ruler-combined{--fa:"\f546"}.fa-ruler-horizontal{--fa:"\f547"}.fa-ruler-vertical{--fa:"\f548"}.fa-school{--fa:"\f549"}.fa-screwdriver{--fa:"\f54a"}.fa-shoe-prints{--fa:"\f54b"}.fa-skull{--fa:"\f54c"}.fa-ban-smoking,.fa-smoking-ban{--fa:"\f54d"}.fa-store{--fa:"\f54e"}.fa-shop,.fa-store-alt{--fa:"\f54f"}.fa-bars-staggered,.fa-reorder,.fa-stream{--fa:"\f550"}.fa-stroopwafel{--fa:"\f551"}.fa-toolbox{--fa:"\f552"}.fa-shirt,.fa-t-shirt,.fa-tshirt{--fa:"\f553"}.fa-person-walking,.fa-walking{--fa:"\f554"}.fa-wallet{--fa:"\f555"}.fa-angry,.fa-face-angry{--fa:"\f556"}.fa-archway{--fa:"\f557"}.fa-atlas,.fa-book-atlas{--fa:"\f558"}.fa-award{--fa:"\f559"}.fa-backspace,.fa-delete-left{--fa:"\f55a"}.fa-bezier-curve{--fa:"\f55b"}.fa-bong{--fa:"\f55c"}.fa-brush{--fa:"\f55d"}.fa-bus-alt,.fa-bus-simple{--fa:"\f55e"}.fa-cannabis{--fa:"\f55f"}.fa-check-double{--fa:"\f560"}.fa-cocktail,.fa-martini-glass-citrus{--fa:"\f561"}.fa-bell-concierge,.fa-concierge-bell{--fa:"\f562"}.fa-cookie{--fa:"\f563"}.fa-cookie-bite{--fa:"\f564"}.fa-crop-alt,.fa-crop-simple{--fa:"\f565"}.fa-digital-tachograph,.fa-tachograph-digital{--fa:"\f566"}.fa-dizzy,.fa-face-dizzy{--fa:"\f567"}.fa-compass-drafting,.fa-drafting-compass{--fa:"\f568"}.fa-drum{--fa:"\f569"}.fa-drum-steelpan{--fa:"\f56a"}.fa-feather-alt,.fa-feather-pointed{--fa:"\f56b"}.fa-file-contract{--fa:"\f56c"}.fa-file-arrow-down,.fa-file-download{--fa:"\f56d"}.fa-arrow-right-from-file,.fa-file-export{--fa:"\f56e"}.fa-arrow-right-to-file,.fa-file-import{--fa:"\f56f"}.fa-file-invoice{--fa:"\f570"}.fa-file-invoice-dollar{--fa:"\f571"}.fa-file-prescription{--fa:"\f572"}.fa-file-signature{--fa:"\f573"}.fa-file-arrow-up,.fa-file-upload{--fa:"\f574"}.fa-fill{--fa:"\f575"}.fa-fill-drip{--fa:"\f576"}.fa-fingerprint{--fa:"\f577"}.fa-fish{--fa:"\f578"}.fa-face-flushed,.fa-flushed{--fa:"\f579"}.fa-face-frown-open,.fa-frown-open{--fa:"\f57a"}.fa-glass-martini-alt,.fa-martini-glass{--fa:"\f57b"}.fa-earth-africa,.fa-globe-africa{--fa:"\f57c"}.fa-earth,.fa-earth-america,.fa-earth-americas,.fa-globe-americas{--fa:"\f57d"}.fa-earth-asia,.fa-globe-asia{--fa:"\f57e"}.fa-face-grimace,.fa-grimace{--fa:"\f57f"}.fa-face-grin,.fa-grin{--fa:"\f580"}.fa-face-grin-wide,.fa-grin-alt{--fa:"\f581"}.fa-face-grin-beam,.fa-grin-beam{--fa:"\f582"}.fa-face-grin-beam-sweat,.fa-grin-beam-sweat{--fa:"\f583"}.fa-face-grin-hearts,.fa-grin-hearts{--fa:"\f584"}.fa-face-grin-squint,.fa-grin-squint{--fa:"\f585"}.fa-face-grin-squint-tears,.fa-grin-squint-tears{--fa:"\f586"}.fa-face-grin-stars,.fa-grin-stars{--fa:"\f587"}.fa-face-grin-tears,.fa-grin-tears{--fa:"\f588"}.fa-face-grin-tongue,.fa-grin-tongue{--fa:"\f589"}.fa-face-grin-tongue-squint,.fa-grin-tongue-squint{--fa:"\f58a"}.fa-face-grin-tongue-wink,.fa-grin-tongue-wink{--fa:"\f58b"}.fa-face-grin-wink,.fa-grin-wink{--fa:"\f58c"}.fa-grid-horizontal,.fa-grip,.fa-grip-horizontal{--fa:"\f58d"}.fa-grid-vertical,.fa-grip-vertical{--fa:"\f58e"}.fa-headset{--fa:"\f590"}.fa-highlighter{--fa:"\f591"}.fa-hot-tub,.fa-hot-tub-person{--fa:"\f593"}.fa-hotel{--fa:"\f594"}.fa-joint{--fa:"\f595"}.fa-face-kiss,.fa-kiss{--fa:"\f596"}.fa-face-kiss-beam,.fa-kiss-beam{--fa:"\f597"}.fa-face-kiss-wink-heart,.fa-kiss-wink-heart{--fa:"\f598"}.fa-face-laugh,.fa-laugh{--fa:"\f599"}.fa-face-laugh-beam,.fa-laugh-beam{--fa:"\f59a"}.fa-face-laugh-squint,.fa-laugh-squint{--fa:"\f59b"}.fa-face-laugh-wink,.fa-laugh-wink{--fa:"\f59c"}.fa-cart-flatbed-suitcase,.fa-luggage-cart{--fa:"\f59d"}.fa-map-location,.fa-map-marked{--fa:"\f59f"}.fa-map-location-dot,.fa-map-marked-alt{--fa:"\f5a0"}.fa-marker{--fa:"\f5a1"}.fa-medal{--fa:"\f5a2"}.fa-face-meh-blank,.fa-meh-blank{--fa:"\f5a4"}.fa-face-rolling-eyes,.fa-meh-rolling-eyes{--fa:"\f5a5"}.fa-monument{--fa:"\f5a6"}.fa-mortar-pestle{--fa:"\f5a7"}.fa-paint-roller{--fa:"\f5aa"}.fa-passport{--fa:"\f5ab"}.fa-pen-fancy{--fa:"\f5ac"}.fa-pen-nib{--fa:"\f5ad"}.fa-pen-ruler,.fa-pencil-ruler{--fa:"\f5ae"}.fa-plane-arrival{--fa:"\f5af"}.fa-plane-departure{--fa:"\f5b0"}.fa-prescription{--fa:"\f5b1"}.fa-face-sad-cry,.fa-sad-cry{--fa:"\f5b3"}.fa-face-sad-tear,.fa-sad-tear{--fa:"\f5b4"}.fa-shuttle-van,.fa-van-shuttle{--fa:"\f5b6"}.fa-signature{--fa:"\f5b7"}.fa-face-smile-beam,.fa-smile-beam{--fa:"\f5b8"}.fa-solar-panel{--fa:"\f5ba"}.fa-spa{--fa:"\f5bb"}.fa-splotch{--fa:"\f5bc"}.fa-spray-can{--fa:"\f5bd"}.fa-stamp{--fa:"\f5bf"}.fa-star-half-alt,.fa-star-half-stroke{--fa:"\f5c0"}.fa-suitcase-rolling{--fa:"\f5c1"}.fa-face-surprise,.fa-surprise{--fa:"\f5c2"}.fa-swatchbook{--fa:"\f5c3"}.fa-person-swimming,.fa-swimmer{--fa:"\f5c4"}.fa-ladder-water,.fa-swimming-pool,.fa-water-ladder{--fa:"\f5c5"}.fa-droplet-slash,.fa-tint-slash{--fa:"\f5c7"}.fa-face-tired,.fa-tired{--fa:"\f5c8"}.fa-tooth{--fa:"\f5c9"}.fa-umbrella-beach{--fa:"\f5ca"}.fa-weight-hanging{--fa:"\f5cd"}.fa-wine-glass-alt,.fa-wine-glass-empty{--fa:"\f5ce"}.fa-air-freshener,.fa-spray-can-sparkles{--fa:"\f5d0"}.fa-apple-alt,.fa-apple-whole{--fa:"\f5d1"}.fa-atom{--fa:"\f5d2"}.fa-bone{--fa:"\f5d7"}.fa-book-open-reader,.fa-book-reader{--fa:"\f5da"}.fa-brain{--fa:"\f5dc"}.fa-car-alt,.fa-car-rear{--fa:"\f5de"}.fa-battery-car,.fa-car-battery{--fa:"\f5df"}.fa-car-burst,.fa-car-crash{--fa:"\f5e1"}.fa-car-side{--fa:"\f5e4"}.fa-charging-station{--fa:"\f5e7"}.fa-diamond-turn-right,.fa-directions{--fa:"\f5eb"}.fa-draw-polygon,.fa-vector-polygon{--fa:"\f5ee"}.fa-laptop-code{--fa:"\f5fc"}.fa-layer-group{--fa:"\f5fd"}.fa-location,.fa-location-crosshairs{--fa:"\f601"}.fa-lungs{--fa:"\f604"}.fa-microscope{--fa:"\f610"}.fa-oil-can{--fa:"\f613"}.fa-poop{--fa:"\f619"}.fa-shapes,.fa-triangle-circle-square{--fa:"\f61f"}.fa-star-of-life{--fa:"\f621"}.fa-dashboard,.fa-gauge,.fa-gauge-med,.fa-tachometer-alt-average{--fa:"\f624"}.fa-gauge-high,.fa-tachometer-alt,.fa-tachometer-alt-fast{--fa:"\f625"}.fa-gauge-simple,.fa-gauge-simple-med,.fa-tachometer-average{--fa:"\f629"}.fa-gauge-simple-high,.fa-tachometer,.fa-tachometer-fast{--fa:"\f62a"}.fa-teeth{--fa:"\f62e"}.fa-teeth-open{--fa:"\f62f"}.fa-masks-theater,.fa-theater-masks{--fa:"\f630"}.fa-traffic-light{--fa:"\f637"}.fa-truck-monster{--fa:"\f63b"}.fa-truck-pickup{--fa:"\f63c"}.fa-ad,.fa-rectangle-ad{--fa:"\f641"}.fa-ankh{--fa:"\f644"}.fa-bible,.fa-book-bible{--fa:"\f647"}.fa-briefcase-clock,.fa-business-time{--fa:"\f64a"}.fa-city{--fa:"\f64f"}.fa-comment-dollar{--fa:"\f651"}.fa-comments-dollar{--fa:"\f653"}.fa-cross{--fa:"\f654"}.fa-dharmachakra{--fa:"\f655"}.fa-envelope-open-text{--fa:"\f658"}.fa-folder-minus{--fa:"\f65d"}.fa-folder-plus{--fa:"\f65e"}.fa-filter-circle-dollar,.fa-funnel-dollar{--fa:"\f662"}.fa-gopuram{--fa:"\f664"}.fa-hamsa{--fa:"\f665"}.fa-bahai,.fa-haykal{--fa:"\f666"}.fa-jedi{--fa:"\f669"}.fa-book-journal-whills,.fa-journal-whills{--fa:"\f66a"}.fa-kaaba{--fa:"\f66b"}.fa-khanda{--fa:"\f66d"}.fa-landmark{--fa:"\f66f"}.fa-envelopes-bulk,.fa-mail-bulk{--fa:"\f674"}.fa-menorah{--fa:"\f676"}.fa-mosque{--fa:"\f678"}.fa-om{--fa:"\f679"}.fa-pastafarianism,.fa-spaghetti-monster-flying{--fa:"\f67b"}.fa-peace{--fa:"\f67c"}.fa-place-of-worship{--fa:"\f67f"}.fa-poll,.fa-square-poll-vertical{--fa:"\f681"}.fa-poll-h,.fa-square-poll-horizontal{--fa:"\f682"}.fa-person-praying,.fa-pray{--fa:"\f683"}.fa-hands-praying,.fa-praying-hands{--fa:"\f684"}.fa-book-quran,.fa-quran{--fa:"\f687"}.fa-magnifying-glass-dollar,.fa-search-dollar{--fa:"\f688"}.fa-magnifying-glass-location,.fa-search-location{--fa:"\f689"}.fa-socks{--fa:"\f696"}.fa-square-root-alt,.fa-square-root-variable{--fa:"\f698"}.fa-star-and-crescent{--fa:"\f699"}.fa-star-of-david{--fa:"\f69a"}.fa-synagogue{--fa:"\f69b"}.fa-scroll-torah,.fa-torah{--fa:"\f6a0"}.fa-torii-gate{--fa:"\f6a1"}.fa-vihara{--fa:"\f6a7"}.fa-volume-mute,.fa-volume-times,.fa-volume-xmark{--fa:"\f6a9"}.fa-yin-yang{--fa:"\f6ad"}.fa-blender-phone{--fa:"\f6b6"}.fa-book-dead,.fa-book-skull{--fa:"\f6b7"}.fa-campground{--fa:"\f6bb"}.fa-cat{--fa:"\f6be"}.fa-chair{--fa:"\f6c0"}.fa-cloud-moon{--fa:"\f6c3"}.fa-cloud-sun{--fa:"\f6c4"}.fa-cow{--fa:"\f6c8"}.fa-dice-d20{--fa:"\f6cf"}.fa-dice-d6{--fa:"\f6d1"}.fa-dog{--fa:"\f6d3"}.fa-dragon{--fa:"\f6d5"}.fa-drumstick-bite{--fa:"\f6d7"}.fa-dungeon{--fa:"\f6d9"}.fa-file-csv{--fa:"\f6dd"}.fa-fist-raised,.fa-hand-fist{--fa:"\f6de"}.fa-ghost{--fa:"\f6e2"}.fa-hammer{--fa:"\f6e3"}.fa-hanukiah{--fa:"\f6e6"}.fa-hat-wizard{--fa:"\f6e8"}.fa-hiking,.fa-person-hiking{--fa:"\f6ec"}.fa-hippo{--fa:"\f6ed"}.fa-horse{--fa:"\f6f0"}.fa-house-chimney-crack,.fa-house-damage{--fa:"\f6f1"}.fa-hryvnia,.fa-hryvnia-sign{--fa:"\f6f2"}.fa-mask{--fa:"\f6fa"}.fa-mountain{--fa:"\f6fc"}.fa-network-wired{--fa:"\f6ff"}.fa-otter{--fa:"\f700"}.fa-ring{--fa:"\f70b"}.fa-person-running,.fa-running{--fa:"\f70c"}.fa-scroll{--fa:"\f70e"}.fa-skull-crossbones{--fa:"\f714"}.fa-slash{--fa:"\f715"}.fa-spider{--fa:"\f717"}.fa-toilet-paper,.fa-toilet-paper-alt,.fa-toilet-paper-blank{--fa:"\f71e"}.fa-tractor{--fa:"\f722"}.fa-user-injured{--fa:"\f728"}.fa-vr-cardboard{--fa:"\f729"}.fa-wand-sparkles{--fa:"\f72b"}.fa-wind{--fa:"\f72e"}.fa-wine-bottle{--fa:"\f72f"}.fa-cloud-meatball{--fa:"\f73b"}.fa-cloud-moon-rain{--fa:"\f73c"}.fa-cloud-rain{--fa:"\f73d"}.fa-cloud-showers-heavy{--fa:"\f740"}.fa-cloud-sun-rain{--fa:"\f743"}.fa-democrat{--fa:"\f747"}.fa-flag-usa{--fa:"\f74d"}.fa-hurricane{--fa:"\f751"}.fa-landmark-alt,.fa-landmark-dome{--fa:"\f752"}.fa-meteor{--fa:"\f753"}.fa-person-booth{--fa:"\f756"}.fa-poo-bolt,.fa-poo-storm{--fa:"\f75a"}.fa-rainbow{--fa:"\f75b"}.fa-republican{--fa:"\f75e"}.fa-smog{--fa:"\f75f"}.fa-temperature-high{--fa:"\f769"}.fa-temperature-low{--fa:"\f76b"}.fa-cloud-bolt,.fa-thunderstorm{--fa:"\f76c"}.fa-tornado{--fa:"\f76f"}.fa-volcano{--fa:"\f770"}.fa-check-to-slot,.fa-vote-yea{--fa:"\f772"}.fa-water{--fa:"\f773"}.fa-baby{--fa:"\f77c"}.fa-baby-carriage,.fa-carriage-baby{--fa:"\f77d"}.fa-biohazard{--fa:"\f780"}.fa-blog{--fa:"\f781"}.fa-calendar-day{--fa:"\f783"}.fa-calendar-week{--fa:"\f784"}.fa-candy-cane{--fa:"\f786"}.fa-carrot{--fa:"\f787"}.fa-cash-register{--fa:"\f788"}.fa-compress-arrows-alt,.fa-minimize{--fa:"\f78c"}.fa-dumpster{--fa:"\f793"}.fa-dumpster-fire{--fa:"\f794"}.fa-ethernet{--fa:"\f796"}.fa-gifts{--fa:"\f79c"}.fa-champagne-glasses,.fa-glass-cheers{--fa:"\f79f"}.fa-glass-whiskey,.fa-whiskey-glass{--fa:"\f7a0"}.fa-earth-europe,.fa-globe-europe{--fa:"\f7a2"}.fa-grip-lines{--fa:"\f7a4"}.fa-grip-lines-vertical{--fa:"\f7a5"}.fa-guitar{--fa:"\f7a6"}.fa-heart-broken,.fa-heart-crack{--fa:"\f7a9"}.fa-holly-berry{--fa:"\f7aa"}.fa-horse-head{--fa:"\f7ab"}.fa-icicles{--fa:"\f7ad"}.fa-igloo{--fa:"\f7ae"}.fa-mitten{--fa:"\f7b5"}.fa-mug-hot{--fa:"\f7b6"}.fa-radiation{--fa:"\f7b9"}.fa-circle-radiation,.fa-radiation-alt{--fa:"\f7ba"}.fa-restroom{--fa:"\f7bd"}.fa-satellite{--fa:"\f7bf"}.fa-satellite-dish{--fa:"\f7c0"}.fa-sd-card{--fa:"\f7c2"}.fa-sim-card{--fa:"\f7c4"}.fa-person-skating,.fa-skating{--fa:"\f7c5"}.fa-person-skiing,.fa-skiing{--fa:"\f7c9"}.fa-person-skiing-nordic,.fa-skiing-nordic{--fa:"\f7ca"}.fa-sleigh{--fa:"\f7cc"}.fa-comment-sms,.fa-sms{--fa:"\f7cd"}.fa-person-snowboarding,.fa-snowboarding{--fa:"\f7ce"}.fa-snowman{--fa:"\f7d0"}.fa-snowplow{--fa:"\f7d2"}.fa-tenge,.fa-tenge-sign{--fa:"\f7d7"}.fa-toilet{--fa:"\f7d8"}.fa-screwdriver-wrench,.fa-tools{--fa:"\f7d9"}.fa-cable-car,.fa-tram{--fa:"\f7da"}.fa-fire-alt,.fa-fire-flame-curved{--fa:"\f7e4"}.fa-bacon{--fa:"\f7e5"}.fa-book-medical{--fa:"\f7e6"}.fa-bread-slice{--fa:"\f7ec"}.fa-cheese{--fa:"\f7ef"}.fa-clinic-medical,.fa-house-chimney-medical{--fa:"\f7f2"}.fa-clipboard-user{--fa:"\f7f3"}.fa-comment-medical{--fa:"\f7f5"}.fa-crutch{--fa:"\f7f7"}.fa-disease{--fa:"\f7fa"}.fa-egg{--fa:"\f7fb"}.fa-folder-tree{--fa:"\f802"}.fa-burger,.fa-hamburger{--fa:"\f805"}.fa-hand-middle-finger{--fa:"\f806"}.fa-hard-hat,.fa-hat-hard,.fa-helmet-safety{--fa:"\f807"}.fa-hospital-user{--fa:"\f80d"}.fa-hotdog{--fa:"\f80f"}.fa-ice-cream{--fa:"\f810"}.fa-laptop-medical{--fa:"\f812"}.fa-pager{--fa:"\f815"}.fa-pepper-hot{--fa:"\f816"}.fa-pizza-slice{--fa:"\f818"}.fa-sack-dollar{--fa:"\f81d"}.fa-book-tanakh,.fa-tanakh{--fa:"\f827"}.fa-bars-progress,.fa-tasks-alt{--fa:"\f828"}.fa-trash-arrow-up,.fa-trash-restore{--fa:"\f829"}.fa-trash-can-arrow-up,.fa-trash-restore-alt{--fa:"\f82a"}.fa-user-nurse{--fa:"\f82f"}.fa-wave-square{--fa:"\f83e"}.fa-biking,.fa-person-biking{--fa:"\f84a"}.fa-border-all{--fa:"\f84c"}.fa-border-none{--fa:"\f850"}.fa-border-style,.fa-border-top-left{--fa:"\f853"}.fa-digging,.fa-person-digging{--fa:"\f85e"}.fa-fan{--fa:"\f863"}.fa-heart-music-camera-bolt,.fa-icons{--fa:"\f86d"}.fa-phone-alt,.fa-phone-flip{--fa:"\f879"}.fa-phone-square-alt,.fa-square-phone-flip{--fa:"\f87b"}.fa-photo-film,.fa-photo-video{--fa:"\f87c"}.fa-remove-format,.fa-text-slash{--fa:"\f87d"}.fa-arrow-down-z-a,.fa-sort-alpha-desc,.fa-sort-alpha-down-alt{--fa:"\f881"}.fa-arrow-up-z-a,.fa-sort-alpha-up-alt{--fa:"\f882"}.fa-arrow-down-short-wide,.fa-sort-amount-desc,.fa-sort-amount-down-alt{--fa:"\f884"}.fa-arrow-up-short-wide,.fa-sort-amount-up-alt{--fa:"\f885"}.fa-arrow-down-9-1,.fa-sort-numeric-desc,.fa-sort-numeric-down-alt{--fa:"\f886"}.fa-arrow-up-9-1,.fa-sort-numeric-up-alt{--fa:"\f887"}.fa-spell-check{--fa:"\f891"}.fa-voicemail{--fa:"\f897"}.fa-hat-cowboy{--fa:"\f8c0"}.fa-hat-cowboy-side{--fa:"\f8c1"}.fa-computer-mouse,.fa-mouse{--fa:"\f8cc"}.fa-radio{--fa:"\f8d7"}.fa-record-vinyl{--fa:"\f8d9"}.fa-walkie-talkie{--fa:"\f8ef"}.fa-caravan{--fa:"\f8ff"}:host,:root{--fa-family-brands:"Font Awesome 7 Brands";--fa-font-brands:normal 400 1em/1 var(--fa-family-brands)}@font-face{font-family:"Font Awesome 7 Brands";font-style:normal;font-weight:400;font-display:block;src:url(../webfonts/fa-brands-400.woff2)}.fa-brands,.fa-classic.fa-brands,.fab{--fa-family:var(--fa-family-brands);--fa-style:400}.fa-firefox-browser{--fa:"\e007"}.fa-ideal{--fa:"\e013"}.fa-microblog{--fa:"\e01a"}.fa-pied-piper-square,.fa-square-pied-piper{--fa:"\e01e"}.fa-unity{--fa:"\e049"}.fa-dailymotion{--fa:"\e052"}.fa-instagram-square,.fa-square-instagram{--fa:"\e055"}.fa-mixer{--fa:"\e056"}.fa-shopify{--fa:"\e057"}.fa-deezer{--fa:"\e077"}.fa-edge-legacy{--fa:"\e078"}.fa-google-pay{--fa:"\e079"}.fa-rust{--fa:"\e07a"}.fa-tiktok{--fa:"\e07b"}.fa-unsplash{--fa:"\e07c"}.fa-cloudflare{--fa:"\e07d"}.fa-guilded{--fa:"\e07e"}.fa-hive{--fa:"\e07f"}.fa-42-group,.fa-innosoft{--fa:"\e080"}.fa-instalod{--fa:"\e081"}.fa-octopus-deploy{--fa:"\e082"}.fa-perbyte{--fa:"\e083"}.fa-uncharted{--fa:"\e084"}.fa-watchman-monitoring{--fa:"\e087"}.fa-wodu{--fa:"\e088"}.fa-wirsindhandwerk,.fa-wsh{--fa:"\e2d0"}.fa-bots{--fa:"\e340"}.fa-cmplid{--fa:"\e360"}.fa-bilibili{--fa:"\e3d9"}.fa-golang{--fa:"\e40f"}.fa-pix{--fa:"\e43a"}.fa-sitrox{--fa:"\e44a"}.fa-hashnode{--fa:"\e499"}.fa-meta{--fa:"\e49b"}.fa-padlet{--fa:"\e4a0"}.fa-nfc-directional{--fa:"\e530"}.fa-nfc-symbol{--fa:"\e531"}.fa-screenpal{--fa:"\e570"}.fa-space-awesome{--fa:"\e5ac"}.fa-square-font-awesome{--fa:"\e5ad"}.fa-gitlab-square,.fa-square-gitlab{--fa:"\e5ae"}.fa-odysee{--fa:"\e5c6"}.fa-stubber{--fa:"\e5c7"}.fa-debian{--fa:"\e60b"}.fa-shoelace{--fa:"\e60c"}.fa-threads{--fa:"\e618"}.fa-square-threads{--fa:"\e619"}.fa-square-x-twitter{--fa:"\e61a"}.fa-x-twitter{--fa:"\e61b"}.fa-opensuse{--fa:"\e62b"}.fa-letterboxd{--fa:"\e62d"}.fa-square-letterboxd{--fa:"\e62e"}.fa-mintbit{--fa:"\e62f"}.fa-google-scholar{--fa:"\e63b"}.fa-brave{--fa:"\e63c"}.fa-brave-reverse{--fa:"\e63d"}.fa-pixiv{--fa:"\e640"}.fa-upwork{--fa:"\e641"}.fa-webflow{--fa:"\e65c"}.fa-signal-messenger{--fa:"\e663"}.fa-bluesky{--fa:"\e671"}.fa-jxl{--fa:"\e67b"}.fa-square-upwork{--fa:"\e67c"}.fa-web-awesome{--fa:"\e682"}.fa-square-web-awesome{--fa:"\e683"}.fa-square-web-awesome-stroke{--fa:"\e684"}.fa-dart-lang{--fa:"\e693"}.fa-flutter{--fa:"\e694"}.fa-files-pinwheel{--fa:"\e69f"}.fa-css{--fa:"\e6a2"}.fa-square-bluesky{--fa:"\e6a3"}.fa-openai{--fa:"\e7cf"}.fa-square-linkedin{--fa:"\e7d0"}.fa-cash-app{--fa:"\e7d4"}.fa-disqus{--fa:"\e7d5"}.fa-11ty,.fa-eleventy{--fa:"\e7d6"}.fa-kakao-talk{--fa:"\e7d7"}.fa-linktree{--fa:"\e7d8"}.fa-notion{--fa:"\e7d9"}.fa-pandora{--fa:"\e7da"}.fa-pixelfed{--fa:"\e7db"}.fa-tidal{--fa:"\e7dc"}.fa-vsco{--fa:"\e7dd"}.fa-w3c{--fa:"\e7de"}.fa-lumon{--fa:"\e7e2"}.fa-lumon-drop{--fa:"\e7e3"}.fa-square-figma{--fa:"\e7e4"}.fa-tex{--fa:"\e7ff"}.fa-duolingo{--fa:"\e812"}.fa-square-twitter,.fa-twitter-square{--fa:"\f081"}.fa-facebook-square,.fa-square-facebook{--fa:"\f082"}.fa-linkedin{--fa:"\f08c"}.fa-github-square,.fa-square-github{--fa:"\f092"}.fa-twitter{--fa:"\f099"}.fa-facebook{--fa:"\f09a"}.fa-github{--fa:"\f09b"}.fa-pinterest{--fa:"\f0d2"}.fa-pinterest-square,.fa-square-pinterest{--fa:"\f0d3"}.fa-google-plus-square,.fa-square-google-plus{--fa:"\f0d4"}.fa-google-plus-g{--fa:"\f0d5"}.fa-linkedin-in{--fa:"\f0e1"}.fa-github-alt{--fa:"\f113"}.fa-maxcdn{--fa:"\f136"}.fa-html5{--fa:"\f13b"}.fa-css3{--fa:"\f13c"}.fa-btc{--fa:"\f15a"}.fa-youtube{--fa:"\f167"}.fa-xing{--fa:"\f168"}.fa-square-xing,.fa-xing-square{--fa:"\f169"}.fa-dropbox{--fa:"\f16b"}.fa-stack-overflow{--fa:"\f16c"}.fa-instagram{--fa:"\f16d"}.fa-flickr{--fa:"\f16e"}.fa-adn{--fa:"\f170"}.fa-bitbucket{--fa:"\f171"}.fa-tumblr{--fa:"\f173"}.fa-square-tumblr,.fa-tumblr-square{--fa:"\f174"}.fa-apple{--fa:"\f179"}.fa-windows{--fa:"\f17a"}.fa-android{--fa:"\f17b"}.fa-linux{--fa:"\f17c"}.fa-dribbble{--fa:"\f17d"}.fa-skype{--fa:"\f17e"}.fa-foursquare{--fa:"\f180"}.fa-trello{--fa:"\f181"}.fa-gratipay{--fa:"\f184"}.fa-vk{--fa:"\f189"}.fa-weibo{--fa:"\f18a"}.fa-renren{--fa:"\f18b"}.fa-pagelines{--fa:"\f18c"}.fa-stack-exchange{--fa:"\f18d"}.fa-square-vimeo,.fa-vimeo-square{--fa:"\f194"}.fa-slack,.fa-slack-hash{--fa:"\f198"}.fa-wordpress{--fa:"\f19a"}.fa-openid{--fa:"\f19b"}.fa-yahoo{--fa:"\f19e"}.fa-google{--fa:"\f1a0"}.fa-reddit{--fa:"\f1a1"}.fa-reddit-square,.fa-square-reddit{--fa:"\f1a2"}.fa-stumbleupon-circle{--fa:"\f1a3"}.fa-stumbleupon{--fa:"\f1a4"}.fa-delicious{--fa:"\f1a5"}.fa-digg{--fa:"\f1a6"}.fa-pied-piper-pp{--fa:"\f1a7"}.fa-pied-piper-alt{--fa:"\f1a8"}.fa-drupal{--fa:"\f1a9"}.fa-joomla{--fa:"\f1aa"}.fa-behance{--fa:"\f1b4"}.fa-behance-square,.fa-square-behance{--fa:"\f1b5"}.fa-steam{--fa:"\f1b6"}.fa-square-steam,.fa-steam-square{--fa:"\f1b7"}.fa-spotify{--fa:"\f1bc"}.fa-deviantart{--fa:"\f1bd"}.fa-soundcloud{--fa:"\f1be"}.fa-vine{--fa:"\f1ca"}.fa-codepen{--fa:"\f1cb"}.fa-jsfiddle{--fa:"\f1cc"}.fa-rebel{--fa:"\f1d0"}.fa-empire{--fa:"\f1d1"}.fa-git-square,.fa-square-git{--fa:"\f1d2"}.fa-git{--fa:"\f1d3"}.fa-hacker-news{--fa:"\f1d4"}.fa-tencent-weibo{--fa:"\f1d5"}.fa-qq{--fa:"\f1d6"}.fa-weixin{--fa:"\f1d7"}.fa-slideshare{--fa:"\f1e7"}.fa-twitch{--fa:"\f1e8"}.fa-yelp{--fa:"\f1e9"}.fa-paypal{--fa:"\f1ed"}.fa-google-wallet{--fa:"\f1ee"}.fa-cc-visa{--fa:"\f1f0"}.fa-cc-mastercard{--fa:"\f1f1"}.fa-cc-discover{--fa:"\f1f2"}.fa-cc-amex{--fa:"\f1f3"}.fa-cc-paypal{--fa:"\f1f4"}.fa-cc-stripe{--fa:"\f1f5"}.fa-lastfm{--fa:"\f202"}.fa-lastfm-square,.fa-square-lastfm{--fa:"\f203"}.fa-ioxhost{--fa:"\f208"}.fa-angellist{--fa:"\f209"}.fa-buysellads{--fa:"\f20d"}.fa-connectdevelop{--fa:"\f20e"}.fa-dashcube{--fa:"\f210"}.fa-forumbee{--fa:"\f211"}.fa-leanpub{--fa:"\f212"}.fa-sellsy{--fa:"\f213"}.fa-shirtsinbulk{--fa:"\f214"}.fa-simplybuilt{--fa:"\f215"}.fa-skyatlas{--fa:"\f216"}.fa-pinterest-p{--fa:"\f231"}.fa-whatsapp{--fa:"\f232"}.fa-viacoin{--fa:"\f237"}.fa-medium,.fa-medium-m{--fa:"\f23a"}.fa-y-combinator{--fa:"\f23b"}.fa-optin-monster{--fa:"\f23c"}.fa-opencart{--fa:"\f23d"}.fa-expeditedssl{--fa:"\f23e"}.fa-cc-jcb{--fa:"\f24b"}.fa-cc-diners-club{--fa:"\f24c"}.fa-creative-commons{--fa:"\f25e"}.fa-gg{--fa:"\f260"}.fa-gg-circle{--fa:"\f261"}.fa-odnoklassniki{--fa:"\f263"}.fa-odnoklassniki-square,.fa-square-odnoklassniki{--fa:"\f264"}.fa-get-pocket{--fa:"\f265"}.fa-wikipedia-w{--fa:"\f266"}.fa-safari{--fa:"\f267"}.fa-chrome{--fa:"\f268"}.fa-firefox{--fa:"\f269"}.fa-opera{--fa:"\f26a"}.fa-internet-explorer{--fa:"\f26b"}.fa-contao{--fa:"\f26d"}.fa-500px{--fa:"\f26e"}.fa-amazon{--fa:"\f270"}.fa-houzz{--fa:"\f27c"}.fa-vimeo-v{--fa:"\f27d"}.fa-black-tie{--fa:"\f27e"}.fa-fonticons{--fa:"\f280"}.fa-reddit-alien{--fa:"\f281"}.fa-edge{--fa:"\f282"}.fa-codiepie{--fa:"\f284"}.fa-modx{--fa:"\f285"}.fa-fort-awesome{--fa:"\f286"}.fa-usb{--fa:"\f287"}.fa-product-hunt{--fa:"\f288"}.fa-mixcloud{--fa:"\f289"}.fa-scribd{--fa:"\f28a"}.fa-bluetooth{--fa:"\f293"}.fa-bluetooth-b{--fa:"\f294"}.fa-gitlab{--fa:"\f296"}.fa-wpbeginner{--fa:"\f297"}.fa-wpforms{--fa:"\f298"}.fa-envira{--fa:"\f299"}.fa-glide{--fa:"\f2a5"}.fa-glide-g{--fa:"\f2a6"}.fa-viadeo{--fa:"\f2a9"}.fa-square-viadeo,.fa-viadeo-square{--fa:"\f2aa"}.fa-snapchat,.fa-snapchat-ghost{--fa:"\f2ab"}.fa-snapchat-square,.fa-square-snapchat{--fa:"\f2ad"}.fa-pied-piper{--fa:"\f2ae"}.fa-first-order{--fa:"\f2b0"}.fa-yoast{--fa:"\f2b1"}.fa-themeisle{--fa:"\f2b2"}.fa-google-plus{--fa:"\f2b3"}.fa-font-awesome,.fa-font-awesome-flag,.fa-font-awesome-logo-full{--fa:"\f2b4"}.fa-linode{--fa:"\f2b8"}.fa-quora{--fa:"\f2c4"}.fa-free-code-camp{--fa:"\f2c5"}.fa-telegram,.fa-telegram-plane{--fa:"\f2c6"}.fa-bandcamp{--fa:"\f2d5"}.fa-grav{--fa:"\f2d6"}.fa-etsy{--fa:"\f2d7"}.fa-imdb{--fa:"\f2d8"}.fa-ravelry{--fa:"\f2d9"}.fa-sellcast{--fa:"\f2da"}.fa-superpowers{--fa:"\f2dd"}.fa-wpexplorer{--fa:"\f2de"}.fa-meetup{--fa:"\f2e0"}.fa-font-awesome-alt,.fa-square-font-awesome-stroke{--fa:"\f35c"}.fa-accessible-icon{--fa:"\f368"}.fa-accusoft{--fa:"\f369"}.fa-adversal{--fa:"\f36a"}.fa-affiliatetheme{--fa:"\f36b"}.fa-algolia{--fa:"\f36c"}.fa-amilia{--fa:"\f36d"}.fa-angrycreative{--fa:"\f36e"}.fa-app-store{--fa:"\f36f"}.fa-app-store-ios{--fa:"\f370"}.fa-apper{--fa:"\f371"}.fa-asymmetrik{--fa:"\f372"}.fa-audible{--fa:"\f373"}.fa-avianex{--fa:"\f374"}.fa-aws{--fa:"\f375"}.fa-bimobject{--fa:"\f378"}.fa-bitcoin{--fa:"\f379"}.fa-bity{--fa:"\f37a"}.fa-blackberry{--fa:"\f37b"}.fa-blogger{--fa:"\f37c"}.fa-blogger-b{--fa:"\f37d"}.fa-buromobelexperte{--fa:"\f37f"}.fa-centercode{--fa:"\f380"}.fa-cloudscale{--fa:"\f383"}.fa-cloudsmith{--fa:"\f384"}.fa-cloudversify{--fa:"\f385"}.fa-cpanel{--fa:"\f388"}.fa-css3-alt{--fa:"\f38b"}.fa-cuttlefish{--fa:"\f38c"}.fa-d-and-d{--fa:"\f38d"}.fa-deploydog{--fa:"\f38e"}.fa-deskpro{--fa:"\f38f"}.fa-digital-ocean{--fa:"\f391"}.fa-discord{--fa:"\f392"}.fa-discourse{--fa:"\f393"}.fa-dochub{--fa:"\f394"}.fa-docker{--fa:"\f395"}.fa-draft2digital{--fa:"\f396"}.fa-dribbble-square,.fa-square-dribbble{--fa:"\f397"}.fa-dyalog{--fa:"\f399"}.fa-earlybirds{--fa:"\f39a"}.fa-erlang{--fa:"\f39d"}.fa-facebook-f{--fa:"\f39e"}.fa-facebook-messenger{--fa:"\f39f"}.fa-firstdraft{--fa:"\f3a1"}.fa-fonticons-fi{--fa:"\f3a2"}.fa-fort-awesome-alt{--fa:"\f3a3"}.fa-freebsd{--fa:"\f3a4"}.fa-gitkraken{--fa:"\f3a6"}.fa-gofore{--fa:"\f3a7"}.fa-goodreads{--fa:"\f3a8"}.fa-goodreads-g{--fa:"\f3a9"}.fa-google-drive{--fa:"\f3aa"}.fa-google-play{--fa:"\f3ab"}.fa-gripfire{--fa:"\f3ac"}.fa-grunt{--fa:"\f3ad"}.fa-gulp{--fa:"\f3ae"}.fa-hacker-news-square,.fa-square-hacker-news{--fa:"\f3af"}.fa-hire-a-helper{--fa:"\f3b0"}.fa-hotjar{--fa:"\f3b1"}.fa-hubspot{--fa:"\f3b2"}.fa-itunes{--fa:"\f3b4"}.fa-itunes-note{--fa:"\f3b5"}.fa-jenkins{--fa:"\f3b6"}.fa-joget{--fa:"\f3b7"}.fa-js{--fa:"\f3b8"}.fa-js-square,.fa-square-js{--fa:"\f3b9"}.fa-keycdn{--fa:"\f3ba"}.fa-kickstarter,.fa-square-kickstarter{--fa:"\f3bb"}.fa-kickstarter-k{--fa:"\f3bc"}.fa-laravel{--fa:"\f3bd"}.fa-line{--fa:"\f3c0"}.fa-lyft{--fa:"\f3c3"}.fa-magento{--fa:"\f3c4"}.fa-medapps{--fa:"\f3c6"}.fa-medrt{--fa:"\f3c8"}.fa-microsoft{--fa:"\f3ca"}.fa-mix{--fa:"\f3cb"}.fa-mizuni{--fa:"\f3cc"}.fa-monero{--fa:"\f3d0"}.fa-napster{--fa:"\f3d2"}.fa-node-js{--fa:"\f3d3"}.fa-npm{--fa:"\f3d4"}.fa-ns8{--fa:"\f3d5"}.fa-nutritionix{--fa:"\f3d6"}.fa-page4{--fa:"\f3d7"}.fa-palfed{--fa:"\f3d8"}.fa-patreon{--fa:"\f3d9"}.fa-periscope{--fa:"\f3da"}.fa-phabricator{--fa:"\f3db"}.fa-phoenix-framework{--fa:"\f3dc"}.fa-playstation{--fa:"\f3df"}.fa-pushed{--fa:"\f3e1"}.fa-python{--fa:"\f3e2"}.fa-red-river{--fa:"\f3e3"}.fa-rendact,.fa-wpressr{--fa:"\f3e4"}.fa-replyd{--fa:"\f3e6"}.fa-resolving{--fa:"\f3e7"}.fa-rocketchat{--fa:"\f3e8"}.fa-rockrms{--fa:"\f3e9"}.fa-schlix{--fa:"\f3ea"}.fa-searchengin{--fa:"\f3eb"}.fa-servicestack{--fa:"\f3ec"}.fa-sistrix{--fa:"\f3ee"}.fa-speakap{--fa:"\f3f3"}.fa-staylinked{--fa:"\f3f5"}.fa-steam-symbol{--fa:"\f3f6"}.fa-sticker-mule{--fa:"\f3f7"}.fa-studiovinari{--fa:"\f3f8"}.fa-supple{--fa:"\f3f9"}.fa-uber{--fa:"\f402"}.fa-uikit{--fa:"\f403"}.fa-uniregistry{--fa:"\f404"}.fa-untappd{--fa:"\f405"}.fa-ussunnah{--fa:"\f407"}.fa-vaadin{--fa:"\f408"}.fa-viber{--fa:"\f409"}.fa-vimeo{--fa:"\f40a"}.fa-vnv{--fa:"\f40b"}.fa-square-whatsapp,.fa-whatsapp-square{--fa:"\f40c"}.fa-whmcs{--fa:"\f40d"}.fa-wordpress-simple{--fa:"\f411"}.fa-xbox{--fa:"\f412"}.fa-yandex{--fa:"\f413"}.fa-yandex-international{--fa:"\f414"}.fa-apple-pay{--fa:"\f415"}.fa-cc-apple-pay{--fa:"\f416"}.fa-fly{--fa:"\f417"}.fa-node{--fa:"\f419"}.fa-osi{--fa:"\f41a"}.fa-react{--fa:"\f41b"}.fa-autoprefixer{--fa:"\f41c"}.fa-less{--fa:"\f41d"}.fa-sass{--fa:"\f41e"}.fa-vuejs{--fa:"\f41f"}.fa-angular{--fa:"\f420"}.fa-aviato{--fa:"\f421"}.fa-ember{--fa:"\f423"}.fa-gitter{--fa:"\f426"}.fa-hooli{--fa:"\f427"}.fa-strava{--fa:"\f428"}.fa-stripe{--fa:"\f429"}.fa-stripe-s{--fa:"\f42a"}.fa-typo3{--fa:"\f42b"}.fa-amazon-pay{--fa:"\f42c"}.fa-cc-amazon-pay{--fa:"\f42d"}.fa-ethereum{--fa:"\f42e"}.fa-korvue{--fa:"\f42f"}.fa-elementor{--fa:"\f430"}.fa-square-youtube,.fa-youtube-square{--fa:"\f431"}.fa-flipboard{--fa:"\f44d"}.fa-hips{--fa:"\f452"}.fa-php{--fa:"\f457"}.fa-quinscape{--fa:"\f459"}.fa-readme{--fa:"\f4d5"}.fa-java{--fa:"\f4e4"}.fa-pied-piper-hat{--fa:"\f4e5"}.fa-creative-commons-by{--fa:"\f4e7"}.fa-creative-commons-nc{--fa:"\f4e8"}.fa-creative-commons-nc-eu{--fa:"\f4e9"}.fa-creative-commons-nc-jp{--fa:"\f4ea"}.fa-creative-commons-nd{--fa:"\f4eb"}.fa-creative-commons-pd{--fa:"\f4ec"}.fa-creative-commons-pd-alt{--fa:"\f4ed"}.fa-creative-commons-remix{--fa:"\f4ee"}.fa-creative-commons-sa{--fa:"\f4ef"}.fa-creative-commons-sampling{--fa:"\f4f0"}.fa-creative-commons-sampling-plus{--fa:"\f4f1"}.fa-creative-commons-share{--fa:"\f4f2"}.fa-creative-commons-zero{--fa:"\f4f3"}.fa-ebay{--fa:"\f4f4"}.fa-keybase{--fa:"\f4f5"}.fa-mastodon{--fa:"\f4f6"}.fa-r-project{--fa:"\f4f7"}.fa-researchgate{--fa:"\f4f8"}.fa-teamspeak{--fa:"\f4f9"}.fa-first-order-alt{--fa:"\f50a"}.fa-fulcrum{--fa:"\f50b"}.fa-galactic-republic{--fa:"\f50c"}.fa-galactic-senate{--fa:"\f50d"}.fa-jedi-order{--fa:"\f50e"}.fa-mandalorian{--fa:"\f50f"}.fa-old-republic{--fa:"\f510"}.fa-phoenix-squadron{--fa:"\f511"}.fa-sith{--fa:"\f512"}.fa-trade-federation{--fa:"\f513"}.fa-wolf-pack-battalion{--fa:"\f514"}.fa-hornbill{--fa:"\f592"}.fa-mailchimp{--fa:"\f59e"}.fa-megaport{--fa:"\f5a3"}.fa-nimblr{--fa:"\f5a8"}.fa-rev{--fa:"\f5b2"}.fa-shopware{--fa:"\f5b5"}.fa-squarespace{--fa:"\f5be"}.fa-themeco{--fa:"\f5c6"}.fa-weebly{--fa:"\f5cc"}.fa-wix{--fa:"\f5cf"}.fa-ello{--fa:"\f5f1"}.fa-hackerrank{--fa:"\f5f7"}.fa-kaggle{--fa:"\f5fa"}.fa-markdown{--fa:"\f60f"}.fa-neos{--fa:"\f612"}.fa-zhihu{--fa:"\f63f"}.fa-alipay{--fa:"\f642"}.fa-the-red-yeti{--fa:"\f69d"}.fa-critical-role{--fa:"\f6c9"}.fa-d-and-d-beyond{--fa:"\f6ca"}.fa-dev{--fa:"\f6cc"}.fa-fantasy-flight-games{--fa:"\f6dc"}.fa-wizards-of-the-coast{--fa:"\f730"}.fa-think-peaks{--fa:"\f731"}.fa-reacteurope{--fa:"\f75d"}.fa-artstation{--fa:"\f77a"}.fa-atlassian{--fa:"\f77b"}.fa-canadian-maple-leaf{--fa:"\f785"}.fa-centos{--fa:"\f789"}.fa-confluence{--fa:"\f78d"}.fa-dhl{--fa:"\f790"}.fa-diaspora{--fa:"\f791"}.fa-fedex{--fa:"\f797"}.fa-fedora{--fa:"\f798"}.fa-figma{--fa:"\f799"}.fa-intercom{--fa:"\f7af"}.fa-invision{--fa:"\f7b0"}.fa-jira{--fa:"\f7b1"}.fa-mendeley{--fa:"\f7b3"}.fa-raspberry-pi{--fa:"\f7bb"}.fa-redhat{--fa:"\f7bc"}.fa-sketch{--fa:"\f7c6"}.fa-sourcetree{--fa:"\f7d3"}.fa-suse{--fa:"\f7d6"}.fa-ubuntu{--fa:"\f7df"}.fa-ups{--fa:"\f7e0"}.fa-usps{--fa:"\f7e1"}.fa-yarn{--fa:"\f7e3"}.fa-airbnb{--fa:"\f834"}.fa-battle-net{--fa:"\f835"}.fa-bootstrap{--fa:"\f836"}.fa-buffer{--fa:"\f837"}.fa-chromecast{--fa:"\f838"}.fa-evernote{--fa:"\f839"}.fa-itch-io{--fa:"\f83a"}.fa-salesforce{--fa:"\f83b"}.fa-speaker-deck{--fa:"\f83c"}.fa-symfony{--fa:"\f83d"}.fa-waze{--fa:"\f83f"}.fa-yammer{--fa:"\f840"}.fa-git-alt{--fa:"\f841"}.fa-stackpath{--fa:"\f842"}.fa-cotton-bureau{--fa:"\f89e"}.fa-buy-n-large{--fa:"\f8a6"}.fa-mdb{--fa:"\f8ca"}.fa-orcid{--fa:"\f8d2"}.fa-swift{--fa:"\f8e1"}.fa-umbraco{--fa:"\f8e8"}:host,:root{--fa-font-regular:normal 400 1em/1 var(--fa-family-classic)}@font-face{font-family:"Font Awesome 7 Free";font-style:normal;font-weight:400;font-display:block;src:url(../webfonts/fa-regular-400.woff2)}.far{--fa-family:var(--fa-family-classic)}.fa-regular,.far{--fa-style:400}:host,:root{--fa-family-classic:"Font Awesome 7 Free";--fa-font-solid:normal 900 1em/1 var(--fa-family-classic);--fa-style-family-classic:var(--fa-family-classic)}@font-face{font-family:"Font Awesome 7 Free";font-style:normal;font-weight:900;font-display:block;src:url(../webfonts/fa-solid-900.woff2)}.fas{--fa-style:900}.fa-classic,.fas{--fa-family:var(--fa-family-classic)}.fa-solid{--fa-style:900}@font-face{font-family:"Font Awesome 5 Brands";font-display:block;font-weight:400;src:url(../webfonts/fa-brands-400.woff2) format("woff2")}@font-face{font-family:"Font Awesome 5 Free";font-display:block;font-weight:900;src:url(../webfonts/fa-solid-900.woff2) format("woff2")}@font-face{font-family:"Font Awesome 5 Free";font-display:block;font-weight:400;src:url(../webfonts/fa-regular-400.woff2) format("woff2")}@font-face{font-family:"FontAwesome";font-display:block;src:url(../webfonts/fa-solid-900.woff2) format("woff2")}@font-face{font-family:"FontAwesome";font-display:block;src:url(../webfonts/fa-brands-400.woff2) format("woff2")}@font-face{font-family:"FontAwesome";font-display:block;src:url(../webfonts/fa-regular-400.woff2) format("woff2");unicode-range:u+f003,u+f006,u+f014,u+f016-f017,u+f01a-f01b,u+f01d,u+f022,u+f03e,u+f044,u+f046,u+f05c-f05d,u+f06e,u+f070,u+f087-f088,u+f08a,u+f094,u+f096-f097,u+f09d,u+f0a0,u+f0a2,u+f0a4-f0a7,u+f0c5,u+f0c7,u+f0e5-f0e6,u+f0eb,u+f0f6-f0f8,u+f10c,u+f114-f115,u+f118-f11a,u+f11c-f11d,u+f133,u+f147,u+f14e,u+f150-f152,u+f185-f186,u+f18e,u+f190-f192,u+f196,u+f1c1-f1c9,u+f1d9,u+f1db,u+f1e3,u+f1ea,u+f1f7,u+f1f9,u+f20a,u+f247-f248,u+f24a,u+f24d,u+f255-f25b,u+f25d,u+f271-f274,u+f278,u+f27b,u+f28c,u+f28e,u+f29c,u+f2b5,u+f2b7,u+f2ba,u+f2bc,u+f2be,u+f2c0-f2c1,u+f2c3,u+f2d0,u+f2d2,u+f2d4,u+f2dc}@font-face{font-family:"FontAwesome";font-display:block;src:url(../webfonts/fa-v4compatibility.woff2) format("woff2");unicode-range:u+f041,u+f047,u+f065-f066,u+f07d-f07e,u+f080,u+f08b,u+f08e,u+f090,u+f09a,u+f0ac,u+f0ae,u+f0b2,u+f0d0,u+f0d6,u+f0e4,u+f0ec,u+f10a-f10b,u+f123,u+f13e,u+f148-f149,u+f14c,u+f156,u+f15e,u+f160-f161,u+f163,u+f175-f178,u+f195,u+f1f8,u+f219,u+f27a}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219/*! * Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) * Copyright 2025 Fonticons, Inc. */:root, :host { --fa-family-brands: "Font Awesome 7 Brands"; --fa-font-brands: normal 400 1em/1 var(--fa-family-brands);}
@font-face { font-family: "Font Awesome 7 Brands"; font-style: normal; font-weight: 400; font-display: block; src: url("../webfonts/fa-brands-400.woff2");}.fab,.fa-brands,.fa-classic.fa-brands { --fa-family: var(--fa-family-brands); --fa-style: 400;}
.fa-firefox-browser { --fa: "\e007";}
.fa-ideal { --fa: "\e013";}
.fa-microblog { --fa: "\e01a";}
.fa-square-pied-piper { --fa: "\e01e";}
.fa-pied-piper-square { --fa: "\e01e";}
.fa-unity { --fa: "\e049";}
.fa-dailymotion { --fa: "\e052";}
.fa-square-instagram { --fa: "\e055";}
.fa-instagram-square { --fa: "\e055";}
.fa-mixer { --fa: "\e056";}
.fa-shopify { --fa: "\e057";}
.fa-deezer { --fa: "\e077";}
.fa-edge-legacy { --fa: "\e078";}
.fa-google-pay { --fa: "\e079";}
.fa-rust { --fa: "\e07a";}
.fa-tiktok { --fa: "\e07b";}
.fa-unsplash { --fa: "\e07c";}
.fa-cloudflare { --fa: "\e07d";}
.fa-guilded { --fa: "\e07e";}
.fa-hive { --fa: "\e07f";}
.fa-42-group { --fa: "\e080";}
.fa-innosoft { --fa: "\e080";}
.fa-instalod { --fa: "\e081";}
.fa-octopus-deploy { --fa: "\e082";}
.fa-perbyte { --fa: "\e083";}
.fa-uncharted { --fa: "\e084";}
.fa-watchman-monitoring { --fa: "\e087";}
.fa-wodu { --fa: "\e088";}
.fa-wirsindhandwerk { --fa: "\e2d0";}
.fa-wsh { --fa: "\e2d0";}
.fa-bots { --fa: "\e340";}
.fa-cmplid { --fa: "\e360";}
.fa-bilibili { --fa: "\e3d9";}
.fa-golang { --fa: "\e40f";}
.fa-pix { --fa: "\e43a";}
.fa-sitrox { --fa: "\e44a";}
.fa-hashnode { --fa: "\e499";}
.fa-meta { --fa: "\e49b";}
.fa-padlet { --fa: "\e4a0";}
.fa-nfc-directional { --fa: "\e530";}
.fa-nfc-symbol { --fa: "\e531";}
.fa-screenpal { --fa: "\e570";}
.fa-space-awesome { --fa: "\e5ac";}
.fa-square-font-awesome { --fa: "\e5ad";}
.fa-square-gitlab { --fa: "\e5ae";}
.fa-gitlab-square { --fa: "\e5ae";}
.fa-odysee { --fa: "\e5c6";}
.fa-stubber { --fa: "\e5c7";}
.fa-debian { --fa: "\e60b";}
.fa-shoelace { --fa: "\e60c";}
.fa-threads { --fa: "\e618";}
.fa-square-threads { --fa: "\e619";}
.fa-square-x-twitter { --fa: "\e61a";}
.fa-x-twitter { --fa: "\e61b";}
.fa-opensuse { --fa: "\e62b";}
.fa-letterboxd { --fa: "\e62d";}
.fa-square-letterboxd { --fa: "\e62e";}
.fa-mintbit { --fa: "\e62f";}
.fa-google-scholar { --fa: "\e63b";}
.fa-brave { --fa: "\e63c";}
.fa-brave-reverse { --fa: "\e63d";}
.fa-pixiv { --fa: "\e640";}
.fa-upwork { --fa: "\e641";}
.fa-webflow { --fa: "\e65c";}
.fa-signal-messenger { --fa: "\e663";}
.fa-bluesky { --fa: "\e671";}
.fa-jxl { --fa: "\e67b";}
.fa-square-upwork { --fa: "\e67c";}
.fa-web-awesome { --fa: "\e682";}
.fa-square-web-awesome { --fa: "\e683";}
.fa-square-web-awesome-stroke { --fa: "\e684";}
.fa-dart-lang { --fa: "\e693";}
.fa-flutter { --fa: "\e694";}
.fa-files-pinwheel { --fa: "\e69f";}
.fa-css { --fa: "\e6a2";}
.fa-square-bluesky { --fa: "\e6a3";}
.fa-openai { --fa: "\e7cf";}
.fa-square-linkedin { --fa: "\e7d0";}
.fa-cash-app { --fa: "\e7d4";}
.fa-disqus { --fa: "\e7d5";}
.fa-eleventy { --fa: "\e7d6";}
.fa-11ty { --fa: "\e7d6";}
.fa-kakao-talk { --fa: "\e7d7";}
.fa-linktree { --fa: "\e7d8";}
.fa-notion { --fa: "\e7d9";}
.fa-pandora { --fa: "\e7da";}
.fa-pixelfed { --fa: "\e7db";}
.fa-tidal { --fa: "\e7dc";}
.fa-vsco { --fa: "\e7dd";}
.fa-w3c { --fa: "\e7de";}
.fa-lumon { --fa: "\e7e2";}
.fa-lumon-drop { --fa: "\e7e3";}
.fa-square-figma { --fa: "\e7e4";}
.fa-tex { --fa: "\e7ff";}
.fa-duolingo { --fa: "\e812";}
.fa-square-twitter { --fa: "\f081";}
.fa-twitter-square { --fa: "\f081";}
.fa-square-facebook { --fa: "\f082";}
.fa-facebook-square { --fa: "\f082";}
.fa-linkedin { --fa: "\f08c";}
.fa-square-github { --fa: "\f092";}
.fa-github-square { --fa: "\f092";}
.fa-twitter { --fa: "\f099";}
.fa-facebook { --fa: "\f09a";}
.fa-github { --fa: "\f09b";}
.fa-pinterest { --fa: "\f0d2";}
.fa-square-pinterest { --fa: "\f0d3";}
.fa-pinterest-square { --fa: "\f0d3";}
.fa-square-google-plus { --fa: "\f0d4";}
.fa-google-plus-square { --fa: "\f0d4";}
.fa-google-plus-g { --fa: "\f0d5";}
.fa-linkedin-in { --fa: "\f0e1";}
.fa-github-alt { --fa: "\f113";}
.fa-maxcdn { --fa: "\f136";}
.fa-html5 { --fa: "\f13b";}
.fa-css3 { --fa: "\f13c";}
.fa-btc { --fa: "\f15a";}
.fa-youtube { --fa: "\f167";}
.fa-xing { --fa: "\f168";}
.fa-square-xing { --fa: "\f169";}
.fa-xing-square { --fa: "\f169";}
.fa-dropbox { --fa: "\f16b";}
.fa-stack-overflow { --fa: "\f16c";}
.fa-instagram { --fa: "\f16d";}
.fa-flickr { --fa: "\f16e";}
.fa-adn { --fa: "\f170";}
.fa-bitbucket { --fa: "\f171";}
.fa-tumblr { --fa: "\f173";}
.fa-square-tumblr { --fa: "\f174";}
.fa-tumblr-square { --fa: "\f174";}
.fa-apple { --fa: "\f179";}
.fa-windows { --fa: "\f17a";}
.fa-android { --fa: "\f17b";}
.fa-linux { --fa: "\f17c";}
.fa-dribbble { --fa: "\f17d";}
.fa-skype { --fa: "\f17e";}
.fa-foursquare { --fa: "\f180";}
.fa-trello { --fa: "\f181";}
.fa-gratipay { --fa: "\f184";}
.fa-vk { --fa: "\f189";}
.fa-weibo { --fa: "\f18a";}
.fa-renren { --fa: "\f18b";}
.fa-pagelines { --fa: "\f18c";}
.fa-stack-exchange { --fa: "\f18d";}
.fa-square-vimeo { --fa: "\f194";}
.fa-vimeo-square { --fa: "\f194";}
.fa-slack { --fa: "\f198";}
.fa-slack-hash { --fa: "\f198";}
.fa-wordpress { --fa: "\f19a";}
.fa-openid { --fa: "\f19b";}
.fa-yahoo { --fa: "\f19e";}
.fa-google { --fa: "\f1a0";}
.fa-reddit { --fa: "\f1a1";}
.fa-square-reddit { --fa: "\f1a2";}
.fa-reddit-square { --fa: "\f1a2";}
.fa-stumbleupon-circle { --fa: "\f1a3";}
.fa-stumbleupon { --fa: "\f1a4";}
.fa-delicious { --fa: "\f1a5";}
.fa-digg { --fa: "\f1a6";}
.fa-pied-piper-pp { --fa: "\f1a7";}
.fa-pied-piper-alt { --fa: "\f1a8";}
.fa-drupal { --fa: "\f1a9";}
.fa-joomla { --fa: "\f1aa";}
.fa-behance { --fa: "\f1b4";}
.fa-square-behance { --fa: "\f1b5";}
.fa-behance-square { --fa: "\f1b5";}
.fa-steam { --fa: "\f1b6";}
.fa-square-steam { --fa: "\f1b7";}
.fa-steam-square { --fa: "\f1b7";}
.fa-spotify { --fa: "\f1bc";}
.fa-deviantart { --fa: "\f1bd";}
.fa-soundcloud { --fa: "\f1be";}
.fa-vine { --fa: "\f1ca";}
.fa-codepen { --fa: "\f1cb";}
.fa-jsfiddle { --fa: "\f1cc";}
.fa-rebel { --fa: "\f1d0";}
.fa-empire { --fa: "\f1d1";}
.fa-square-git { --fa: "\f1d2";}
.fa-git-square { --fa: "\f1d2";}
.fa-git { --fa: "\f1d3";}
.fa-hacker-news { --fa: "\f1d4";}
.fa-tencent-weibo { --fa: "\f1d5";}
.fa-qq { --fa: "\f1d6";}
.fa-weixin { --fa: "\f1d7";}
.fa-slideshare { --fa: "\f1e7";}
.fa-twitch { --fa: "\f1e8";}
.fa-yelp { --fa: "\f1e9";}
.fa-paypal { --fa: "\f1ed";}
.fa-google-wallet { --fa: "\f1ee";}
.fa-cc-visa { --fa: "\f1f0";}
.fa-cc-mastercard { --fa: "\f1f1";}
.fa-cc-discover { --fa: "\f1f2";}
.fa-cc-amex { --fa: "\f1f3";}
.fa-cc-paypal { --fa: "\f1f4";}
.fa-cc-stripe { --fa: "\f1f5";}
.fa-lastfm { --fa: "\f202";}
.fa-square-lastfm { --fa: "\f203";}
.fa-lastfm-square { --fa: "\f203";}
.fa-ioxhost { --fa: "\f208";}
.fa-angellist { --fa: "\f209";}
.fa-buysellads { --fa: "\f20d";}
.fa-connectdevelop { --fa: "\f20e";}
.fa-dashcube { --fa: "\f210";}
.fa-forumbee { --fa: "\f211";}
.fa-leanpub { --fa: "\f212";}
.fa-sellsy { --fa: "\f213";}
.fa-shirtsinbulk { --fa: "\f214";}
.fa-simplybuilt { --fa: "\f215";}
.fa-skyatlas { --fa: "\f216";}
.fa-pinterest-p { --fa: "\f231";}
.fa-whatsapp { --fa: "\f232";}
.fa-viacoin { --fa: "\f237";}
.fa-medium { --fa: "\f23a";}
.fa-medium-m { --fa: "\f23a";}
.fa-y-combinator { --fa: "\f23b";}
.fa-optin-monster { --fa: "\f23c";}
.fa-opencart { --fa: "\f23d";}
.fa-expeditedssl { --fa: "\f23e";}
.fa-cc-jcb { --fa: "\f24b";}
.fa-cc-diners-club { --fa: "\f24c";}
.fa-creative-commons { --fa: "\f25e";}
.fa-gg { --fa: "\f260";}
.fa-gg-circle { --fa: "\f261";}
.fa-odnoklassniki { --fa: "\f263";}
.fa-square-odnoklassniki { --fa: "\f264";}
.fa-odnoklassniki-square { --fa: "\f264";}
.fa-get-pocket { --fa: "\f265";}
.fa-wikipedia-w { --fa: "\f266";}
.fa-safari { --fa: "\f267";}
.fa-chrome { --fa: "\f268";}
.fa-firefox { --fa: "\f269";}
.fa-opera { --fa: "\f26a";}
.fa-internet-explorer { --fa: "\f26b";}
.fa-contao { --fa: "\f26d";}
.fa-500px { --fa: "\f26e";}
.fa-amazon { --fa: "\f270";}
.fa-houzz { --fa: "\f27c";}
.fa-vimeo-v { --fa: "\f27d";}
.fa-black-tie { --fa: "\f27e";}
.fa-fonticons { --fa: "\f280";}
.fa-reddit-alien { --fa: "\f281";}
.fa-edge { --fa: "\f282";}
.fa-codiepie { --fa: "\f284";}
.fa-modx { --fa: "\f285";}
.fa-fort-awesome { --fa: "\f286";}
.fa-usb { --fa: "\f287";}
.fa-product-hunt { --fa: "\f288";}
.fa-mixcloud { --fa: "\f289";}
.fa-scribd { --fa: "\f28a";}
.fa-bluetooth { --fa: "\f293";}
.fa-bluetooth-b { --fa: "\f294";}
.fa-gitlab { --fa: "\f296";}
.fa-wpbeginner { --fa: "\f297";}
.fa-wpforms { --fa: "\f298";}
.fa-envira { --fa: "\f299";}
.fa-glide { --fa: "\f2a5";}
.fa-glide-g { --fa: "\f2a6";}
.fa-viadeo { --fa: "\f2a9";}
.fa-square-viadeo { --fa: "\f2aa";}
.fa-viadeo-square { --fa: "\f2aa";}
.fa-snapchat { --fa: "\f2ab";}
.fa-snapchat-ghost { --fa: "\f2ab";}
.fa-square-snapchat { --fa: "\f2ad";}
.fa-snapchat-square { --fa: "\f2ad";}
.fa-pied-piper { --fa: "\f2ae";}
.fa-first-order { --fa: "\f2b0";}
.fa-yoast { --fa: "\f2b1";}
.fa-themeisle { --fa: "\f2b2";}
.fa-google-plus { --fa: "\f2b3";}
.fa-font-awesome { --fa: "\f2b4";}
.fa-font-awesome-flag { --fa: "\f2b4";}
.fa-font-awesome-logo-full { --fa: "\f2b4";}
.fa-linode { --fa: "\f2b8";}
.fa-quora { --fa: "\f2c4";}
.fa-free-code-camp { --fa: "\f2c5";}
.fa-telegram { --fa: "\f2c6";}
.fa-telegram-plane { --fa: "\f2c6";}
.fa-bandcamp { --fa: "\f2d5";}
.fa-grav { --fa: "\f2d6";}
.fa-etsy { --fa: "\f2d7";}
.fa-imdb { --fa: "\f2d8";}
.fa-ravelry { --fa: "\f2d9";}
.fa-sellcast { --fa: "\f2da";}
.fa-superpowers { --fa: "\f2dd";}
.fa-wpexplorer { --fa: "\f2de";}
.fa-meetup { --fa: "\f2e0";}
.fa-square-font-awesome-stroke { --fa: "\f35c";}
.fa-font-awesome-alt { --fa: "\f35c";}
.fa-accessible-icon { --fa: "\f368";}
.fa-accusoft { --fa: "\f369";}
.fa-adversal { --fa: "\f36a";}
.fa-affiliatetheme { --fa: "\f36b";}
.fa-algolia { --fa: "\f36c";}
.fa-amilia { --fa: "\f36d";}
.fa-angrycreative { --fa: "\f36e";}
.fa-app-store { --fa: "\f36f";}
.fa-app-store-ios { --fa: "\f370";}
.fa-apper { --fa: "\f371";}
.fa-asymmetrik { --fa: "\f372";}
.fa-audible { --fa: "\f373";}
.fa-avianex { --fa: "\f374";}
.fa-aws { --fa: "\f375";}
.fa-bimobject { --fa: "\f378";}
.fa-bitcoin { --fa: "\f379";}
.fa-bity { --fa: "\f37a";}
.fa-blackberry { --fa: "\f37b";}
.fa-blogger { --fa: "\f37c";}
.fa-blogger-b { --fa: "\f37d";}
.fa-buromobelexperte { --fa: "\f37f";}
.fa-centercode { --fa: "\f380";}
.fa-cloudscale { --fa: "\f383";}
.fa-cloudsmith { --fa: "\f384";}
.fa-cloudversify { --fa: "\f385";}
.fa-cpanel { --fa: "\f388";}
.fa-css3-alt { --fa: "\f38b";}
.fa-cuttlefish { --fa: "\f38c";}
.fa-d-and-d { --fa: "\f38d";}
.fa-deploydog { --fa: "\f38e";}
.fa-deskpro { --fa: "\f38f";}
.fa-digital-ocean { --fa: "\f391";}
.fa-discord { --fa: "\f392";}
.fa-discourse { --fa: "\f393";}
.fa-dochub { --fa: "\f394";}
.fa-docker { --fa: "\f395";}
.fa-draft2digital { --fa: "\f396";}
.fa-square-dribbble { --fa: "\f397";}
.fa-dribbble-square { --fa: "\f397";}
.fa-dyalog { --fa: "\f399";}
.fa-earlybirds { --fa: "\f39a";}
.fa-erlang { --fa: "\f39d";}
.fa-facebook-f { --fa: "\f39e";}
.fa-facebook-messenger { --fa: "\f39f";}
.fa-firstdraft { --fa: "\f3a1";}
.fa-fonticons-fi { --fa: "\f3a2";}
.fa-fort-awesome-alt { --fa: "\f3a3";}
.fa-freebsd { --fa: "\f3a4";}
.fa-gitkraken { --fa: "\f3a6";}
.fa-gofore { --fa: "\f3a7";}
.fa-goodreads { --fa: "\f3a8";}
.fa-goodreads-g { --fa: "\f3a9";}
.fa-google-drive { --fa: "\f3aa";}
.fa-google-play { --fa: "\f3ab";}
.fa-gripfire { --fa: "\f3ac";}
.fa-grunt { --fa: "\f3ad";}
.fa-gulp { --fa: "\f3ae";}
.fa-square-hacker-news { --fa: "\f3af";}
.fa-hacker-news-square { --fa: "\f3af";}
.fa-hire-a-helper { --fa: "\f3b0";}
.fa-hotjar { --fa: "\f3b1";}
.fa-hubspot { --fa: "\f3b2";}
.fa-itunes { --fa: "\f3b4";}
.fa-itunes-note { --fa: "\f3b5";}
.fa-jenkins { --fa: "\f3b6";}
.fa-joget { --fa: "\f3b7";}
.fa-js { --fa: "\f3b8";}
.fa-square-js { --fa: "\f3b9";}
.fa-js-square { --fa: "\f3b9";}
.fa-keycdn { --fa: "\f3ba";}
.fa-kickstarter { --fa: "\f3bb";}
.fa-square-kickstarter { --fa: "\f3bb";}
.fa-kickstarter-k { --fa: "\f3bc";}
.fa-laravel { --fa: "\f3bd";}
.fa-line { --fa: "\f3c0";}
.fa-lyft { --fa: "\f3c3";}
.fa-magento { --fa: "\f3c4";}
.fa-medapps { --fa: "\f3c6";}
.fa-medrt { --fa: "\f3c8";}
.fa-microsoft { --fa: "\f3ca";}
.fa-mix { --fa: "\f3cb";}
.fa-mizuni { --fa: "\f3cc";}
.fa-monero { --fa: "\f3d0";}
.fa-napster { --fa: "\f3d2";}
.fa-node-js { --fa: "\f3d3";}
.fa-npm { --fa: "\f3d4";}
.fa-ns8 { --fa: "\f3d5";}
.fa-nutritionix { --fa: "\f3d6";}
.fa-page4 { --fa: "\f3d7";}
.fa-palfed { --fa: "\f3d8";}
.fa-patreon { --fa: "\f3d9";}
.fa-periscope { --fa: "\f3da";}
.fa-phabricator { --fa: "\f3db";}
.fa-phoenix-framework { --fa: "\f3dc";}
.fa-playstation { --fa: "\f3df";}
.fa-pushed { --fa: "\f3e1";}
.fa-python { --fa: "\f3e2";}
.fa-red-river { --fa: "\f3e3";}
.fa-wpressr { --fa: "\f3e4";}
.fa-rendact { --fa: "\f3e4";}
.fa-replyd { --fa: "\f3e6";}
.fa-resolving { --fa: "\f3e7";}
.fa-rocketchat { --fa: "\f3e8";}
.fa-rockrms { --fa: "\f3e9";}
.fa-schlix { --fa: "\f3ea";}
.fa-searchengin { --fa: "\f3eb";}
.fa-servicestack { --fa: "\f3ec";}
.fa-sistrix { --fa: "\f3ee";}
.fa-speakap { --fa: "\f3f3";}
.fa-staylinked { --fa: "\f3f5";}
.fa-steam-symbol { --fa: "\f3f6";}
.fa-sticker-mule { --fa: "\f3f7";}
.fa-studiovinari { --fa: "\f3f8";}
.fa-supple { --fa: "\f3f9";}
.fa-uber { --fa: "\f402";}
.fa-uikit { --fa: "\f403";}
.fa-uniregistry { --fa: "\f404";}
.fa-untappd { --fa: "\f405";}
.fa-ussunnah { --fa: "\f407";}
.fa-vaadin { --fa: "\f408";}
.fa-viber { --fa: "\f409";}
.fa-vimeo { --fa: "\f40a";}
.fa-vnv { --fa: "\f40b";}
.fa-square-whatsapp { --fa: "\f40c";}
.fa-whatsapp-square { --fa: "\f40c";}
.fa-whmcs { --fa: "\f40d";}
.fa-wordpress-simple { --fa: "\f411";}
.fa-xbox { --fa: "\f412";}
.fa-yandex { --fa: "\f413";}
.fa-yandex-international { --fa: "\f414";}
.fa-apple-pay { --fa: "\f415";}
.fa-cc-apple-pay { --fa: "\f416";}
.fa-fly { --fa: "\f417";}
.fa-node { --fa: "\f419";}
.fa-osi { --fa: "\f41a";}
.fa-react { --fa: "\f41b";}
.fa-autoprefixer { --fa: "\f41c";}
.fa-less { --fa: "\f41d";}
.fa-sass { --fa: "\f41e";}
.fa-vuejs { --fa: "\f41f";}
.fa-angular { --fa: "\f420";}
.fa-aviato { --fa: "\f421";}
.fa-ember { --fa: "\f423";}
.fa-gitter { --fa: "\f426";}
.fa-hooli { --fa: "\f427";}
.fa-strava { --fa: "\f428";}
.fa-stripe { --fa: "\f429";}
.fa-stripe-s { --fa: "\f42a";}
.fa-typo3 { --fa: "\f42b";}
.fa-amazon-pay { --fa: "\f42c";}
.fa-cc-amazon-pay { --fa: "\f42d";}
.fa-ethereum { --fa: "\f42e";}
.fa-korvue { --fa: "\f42f";}
.fa-elementor { --fa: "\f430";}
.fa-square-youtube { --fa: "\f431";}
.fa-youtube-square { --fa: "\f431";}
.fa-flipboard { --fa: "\f44d";}
.fa-hips { --fa: "\f452";}
.fa-php { --fa: "\f457";}
.fa-quinscape { --fa: "\f459";}
.fa-readme { --fa: "\f4d5";}
.fa-java { --fa: "\f4e4";}
.fa-pied-piper-hat { --fa: "\f4e5";}
.fa-creative-commons-by { --fa: "\f4e7";}
.fa-creative-commons-nc { --fa: "\f4e8";}
.fa-creative-commons-nc-eu { --fa: "\f4e9";}
.fa-creative-commons-nc-jp { --fa: "\f4ea";}
.fa-creative-commons-nd { --fa: "\f4eb";}
.fa-creative-commons-pd { --fa: "\f4ec";}
.fa-creative-commons-pd-alt { --fa: "\f4ed";}
.fa-creative-commons-remix { --fa: "\f4ee";}
.fa-creative-commons-sa { --fa: "\f4ef";}
.fa-creative-commons-sampling { --fa: "\f4f0";}
.fa-creative-commons-sampling-plus { --fa: "\f4f1";}
.fa-creative-commons-share { --fa: "\f4f2";}
.fa-creative-commons-zero { --fa: "\f4f3";}
.fa-ebay { --fa: "\f4f4";}
.fa-keybase { --fa: "\f4f5";}
.fa-mastodon { --fa: "\f4f6";}
.fa-r-project { --fa: "\f4f7";}
.fa-researchgate { --fa: "\f4f8";}
.fa-teamspeak { --fa: "\f4f9";}
.fa-first-order-alt { --fa: "\f50a";}
.fa-fulcrum { --fa: "\f50b";}
.fa-galactic-republic { --fa: "\f50c";}
.fa-galactic-senate { --fa: "\f50d";}
.fa-jedi-order { --fa: "\f50e";}
.fa-mandalorian { --fa: "\f50f";}
.fa-old-republic { --fa: "\f510";}
.fa-phoenix-squadron { --fa: "\f511";}
.fa-sith { --fa: "\f512";}
.fa-trade-federation { --fa: "\f513";}
.fa-wolf-pack-battalion { --fa: "\f514";}
.fa-hornbill { --fa: "\f592";}
.fa-mailchimp { --fa: "\f59e";}
.fa-megaport { --fa: "\f5a3";}
.fa-nimblr { --fa: "\f5a8";}
.fa-rev { --fa: "\f5b2";}
.fa-shopware { --fa: "\f5b5";}
.fa-squarespace { --fa: "\f5be";}
.fa-themeco { --fa: "\f5c6";}
.fa-weebly { --fa: "\f5cc";}
.fa-wix { --fa: "\f5cf";}
.fa-ello { --fa: "\f5f1";}
.fa-hackerrank { --fa: "\f5f7";}
.fa-kaggle { --fa: "\f5fa";}
.fa-markdown { --fa: "\f60f";}
.fa-neos { --fa: "\f612";}
.fa-zhihu { --fa: "\f63f";}
.fa-alipay { --fa: "\f642";}
.fa-the-red-yeti { --fa: "\f69d";}
.fa-critical-role { --fa: "\f6c9";}
.fa-d-and-d-beyond { --fa: "\f6ca";}
.fa-dev { --fa: "\f6cc";}
.fa-fantasy-flight-games { --fa: "\f6dc";}
.fa-wizards-of-the-coast { --fa: "\f730";}
.fa-think-peaks { --fa: "\f731";}
.fa-reacteurope { --fa: "\f75d";}
.fa-artstation { --fa: "\f77a";}
.fa-atlassian { --fa: "\f77b";}
.fa-canadian-maple-leaf { --fa: "\f785";}
.fa-centos { --fa: "\f789";}
.fa-confluence { --fa: "\f78d";}
.fa-dhl { --fa: "\f790";}
.fa-diaspora { --fa: "\f791";}
.fa-fedex { --fa: "\f797";}
.fa-fedora { --fa: "\f798";}
.fa-figma { --fa: "\f799";}
.fa-intercom { --fa: "\f7af";}
.fa-invision { --fa: "\f7b0";}
.fa-jira { --fa: "\f7b1";}
.fa-mendeley { --fa: "\f7b3";}
.fa-raspberry-pi { --fa: "\f7bb";}
.fa-redhat { --fa: "\f7bc";}
.fa-sketch { --fa: "\f7c6";}
.fa-sourcetree { --fa: "\f7d3";}
.fa-suse { --fa: "\f7d6";}
.fa-ubuntu { --fa: "\f7df";}
.fa-ups { --fa: "\f7e0";}
.fa-usps { --fa: "\f7e1";}
.fa-yarn { --fa: "\f7e3";}
.fa-airbnb { --fa: "\f834";}
.fa-battle-net { --fa: "\f835";}
.fa-bootstrap { --fa: "\f836";}
.fa-buffer { --fa: "\f837";}
.fa-chromecast { --fa: "\f838";}
.fa-evernote { --fa: "\f839";}
.fa-itch-io { --fa: "\f83a";}
.fa-salesforce { --fa: "\f83b";}
.fa-speaker-deck { --fa: "\f83c";}
.fa-symfony { --fa: "\f83d";}
.fa-waze { --fa: "\f83f";}
.fa-yammer { --fa: "\f840";}
.fa-git-alt { --fa: "\f841";}
.fa-stackpath { --fa: "\f842";}
.fa-cotton-bureau { --fa: "\f89e";}
.fa-buy-n-large { --fa: "\f8a6";}
.fa-mdb { --fa: "\f8ca";}
.fa-orcid { --fa: "\f8d2";}
.fa-swift { --fa: "\f8e1";}
.fa-umbraco { --fa: "\f8e8";}123456/*! * Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) * Copyright 2025 Fonticons, Inc. */:host,:root{--fa-family-brands:"Font Awesome 7 Brands";--fa-font-brands:normal 400 1em/1 var(--fa-family-brands)}@font-face{font-family:"Font Awesome 7 Brands";font-style:normal;font-weight:400;font-display:block;src:url(../webfonts/fa-brands-400.woff2)}.fa-brands,.fa-classic.fa-brands,.fab{--fa-family:var(--fa-family-brands);--fa-style:400}.fa-firefox-browser{--fa:"\e007"}.fa-ideal{--fa:"\e013"}.fa-microblog{--fa:"\e01a"}.fa-pied-piper-square,.fa-square-pied-piper{--fa:"\e01e"}.fa-unity{--fa:"\e049"}.fa-dailymotion{--fa:"\e052"}.fa-instagram-square,.fa-square-instagram{--fa:"\e055"}.fa-mixer{--fa:"\e056"}.fa-shopify{--fa:"\e057"}.fa-deezer{--fa:"\e077"}.fa-edge-legacy{--fa:"\e078"}.fa-google-pay{--fa:"\e079"}.fa-rust{--fa:"\e07a"}.fa-tiktok{--fa:"\e07b"}.fa-unsplash{--fa:"\e07c"}.fa-cloudflare{--fa:"\e07d"}.fa-guilded{--fa:"\e07e"}.fa-hive{--fa:"\e07f"}.fa-42-group,.fa-innosoft{--fa:"\e080"}.fa-instalod{--fa:"\e081"}.fa-octopus-deploy{--fa:"\e082"}.fa-perbyte{--fa:"\e083"}.fa-uncharted{--fa:"\e084"}.fa-watchman-monitoring{--fa:"\e087"}.fa-wodu{--fa:"\e088"}.fa-wirsindhandwerk,.fa-wsh{--fa:"\e2d0"}.fa-bots{--fa:"\e340"}.fa-cmplid{--fa:"\e360"}.fa-bilibili{--fa:"\e3d9"}.fa-golang{--fa:"\e40f"}.fa-pix{--fa:"\e43a"}.fa-sitrox{--fa:"\e44a"}.fa-hashnode{--fa:"\e499"}.fa-meta{--fa:"\e49b"}.fa-padlet{--fa:"\e4a0"}.fa-nfc-directional{--fa:"\e530"}.fa-nfc-symbol{--fa:"\e531"}.fa-screenpal{--fa:"\e570"}.fa-space-awesome{--fa:"\e5ac"}.fa-square-font-awesome{--fa:"\e5ad"}.fa-gitlab-square,.fa-square-gitlab{--fa:"\e5ae"}.fa-odysee{--fa:"\e5c6"}.fa-stubber{--fa:"\e5c7"}.fa-debian{--fa:"\e60b"}.fa-shoelace{--fa:"\e60c"}.fa-threads{--fa:"\e618"}.fa-square-threads{--fa:"\e619"}.fa-square-x-twitter{--fa:"\e61a"}.fa-x-twitter{--fa:"\e61b"}.fa-opensuse{--fa:"\e62b"}.fa-letterboxd{--fa:"\e62d"}.fa-square-letterboxd{--fa:"\e62e"}.fa-mintbit{--fa:"\e62f"}.fa-google-scholar{--fa:"\e63b"}.fa-brave{--fa:"\e63c"}.fa-brave-reverse{--fa:"\e63d"}.fa-pixiv{--fa:"\e640"}.fa-upwork{--fa:"\e641"}.fa-webflow{--fa:"\e65c"}.fa-signal-messenger{--fa:"\e663"}.fa-bluesky{--fa:"\e671"}.fa-jxl{--fa:"\e67b"}.fa-square-upwork{--fa:"\e67c"}.fa-web-awesome{--fa:"\e682"}.fa-square-web-awesome{--fa:"\e683"}.fa-square-web-awesome-stroke{--fa:"\e684"}.fa-dart-lang{--fa:"\e693"}.fa-flutter{--fa:"\e694"}.fa-files-pinwheel{--fa:"\e69f"}.fa-css{--fa:"\e6a2"}.fa-square-bluesky{--fa:"\e6a3"}.fa-openai{--fa:"\e7cf"}.fa-square-linkedin{--fa:"\e7d0"}.fa-cash-app{--fa:"\e7d4"}.fa-disqus{--fa:"\e7d5"}.fa-11ty,.fa-eleventy{--fa:"\e7d6"}.fa-kakao-talk{--fa:"\e7d7"}.fa-linktree{--fa:"\e7d8"}.fa-notion{--fa:"\e7d9"}.fa-pandora{--fa:"\e7da"}.fa-pixelfed{--fa:"\e7db"}.fa-tidal{--fa:"\e7dc"}.fa-vsco{--fa:"\e7dd"}.fa-w3c{--fa:"\e7de"}.fa-lumon{--fa:"\e7e2"}.fa-lumon-drop{--fa:"\e7e3"}.fa-square-figma{--fa:"\e7e4"}.fa-tex{--fa:"\e7ff"}.fa-duolingo{--fa:"\e812"}.fa-square-twitter,.fa-twitter-square{--fa:"\f081"}.fa-facebook-square,.fa-square-facebook{--fa:"\f082"}.fa-linkedin{--fa:"\f08c"}.fa-github-square,.fa-square-github{--fa:"\f092"}.fa-twitter{--fa:"\f099"}.fa-facebook{--fa:"\f09a"}.fa-github{--fa:"\f09b"}.fa-pinterest{--fa:"\f0d2"}.fa-pinterest-square,.fa-square-pinterest{--fa:"\f0d3"}.fa-google-plus-square,.fa-square-google-plus{--fa:"\f0d4"}.fa-google-plus-g{--fa:"\f0d5"}.fa-linkedin-in{--fa:"\f0e1"}.fa-github-alt{--fa:"\f113"}.fa-maxcdn{--fa:"\f136"}.fa-html5{--fa:"\f13b"}.fa-css3{--fa:"\f13c"}.fa-btc{--fa:"\f15a"}.fa-youtube{--fa:"\f167"}.fa-xing{--fa:"\f168"}.fa-square-xing,.fa-xing-square{--fa:"\f169"}.fa-dropbox{--fa:"\f16b"}.fa-stack-overflow{--fa:"\f16c"}.fa-instagram{--fa:"\f16d"}.fa-flickr{--fa:"\f16e"}.fa-adn{--fa:"\f170"}.fa-bitbucket{--fa:"\f171"}.fa-tumblr{--fa:"\f173"}.fa-square-tumblr,.fa-tumblr-square{--fa:"\f174"}.fa-apple{--fa:"\f179"}.fa-windows{--fa:"\f17a"}.fa-android{--fa:"\f17b"}.fa-linux{--fa:"\f17c"}.fa-dribbble{--fa:"\f17d"}.fa-skype{--fa:"\f17e"}.fa-foursquare{--fa:"\f180"}.fa-trello{--fa:"\f181"}.fa-gratipay{--fa:"\f184"}.fa-vk{--fa:"\f189"}.fa-weibo{--fa:"\f18a"}.fa-renren{--fa:"\f18b"}.fa-pagelines{--fa:"\f18c"}.fa-stack-exchange{--fa:"\f18d"}.fa-square-vimeo,.fa-vimeo-square{--fa:"\f194"}.fa-slack,.fa-slack-hash{--fa:"\f198"}.fa-wordpress{--fa:"\f19a"}.fa-openid{--fa:"\f19b"}.fa-yahoo{--fa:"\f19e"}.fa-google{--fa:"\f1a0"}.fa-reddit{--fa:"\f1a1"}.fa-reddit-square,.fa-square-reddit{--fa:"\f1a2"}.fa-stumbleupon-circle{--fa:"\f1a3"}.fa-stumbleupon{--fa:"\f1a4"}.fa-delicious{--fa:"\f1a5"}.fa-digg{--fa:"\f1a6"}.fa-pied-piper-pp{--fa:"\f1a7"}.fa-pied-piper-alt{--fa:"\f1a8"}.fa-drupal{--fa:"\f1a9"}.fa-joomla{--fa:"\f1aa"}.fa-behance{--fa:"\f1b4"}.fa-behance-square,.fa-square-behance{--fa:"\f1b5"}.fa-steam{--fa:"\f1b6"}.fa-square-steam,.fa-steam-square{--fa:"\f1b7"}.fa-spotify{--fa:"\f1bc"}.fa-deviantart{--fa:"\f1bd"}.fa-soundcloud{--fa:"\f1be"}.fa-vine{--fa:"\f1ca"}.fa-codepen{--fa:"\f1cb"}.fa-jsfiddle{--fa:"\f1cc"}.fa-rebel{--fa:"\f1d0"}.fa-empire{--fa:"\f1d1"}.fa-git-square,.fa-square-git{--fa:"\f1d2"}.fa-git{--fa:"\f1d3"}.fa-hacker-news{--fa:"\f1d4"}.fa-tencent-weibo{--fa:"\f1d5"}.fa-qq{--fa:"\f1d6"}.fa-weixin{--fa:"\f1d7"}.fa-slideshare{--fa:"\f1e7"}.fa-twitch{--fa:"\f1e8"}.fa-yelp{--fa:"\f1e9"}.fa-paypal{--fa:"\f1ed"}.fa-google-wallet{--fa:"\f1ee"}.fa-cc-visa{--fa:"\f1f0"}.fa-cc-mastercard{--fa:"\f1f1"}.fa-cc-discover{--fa:"\f1f2"}.fa-cc-amex{--fa:"\f1f3"}.fa-cc-paypal{--fa:"\f1f4"}.fa-cc-stripe{--fa:"\f1f5"}.fa-lastfm{--fa:"\f202"}.fa-lastfm-square,.fa-square-lastfm{--fa:"\f203"}.fa-ioxhost{--fa:"\f208"}.fa-angellist{--fa:"\f209"}.fa-buysellads{--fa:"\f20d"}.fa-connectdevelop{--fa:"\f20e"}.fa-dashcube{--fa:"\f210"}.fa-forumbee{--fa:"\f211"}.fa-leanpub{--fa:"\f212"}.fa-sellsy{--fa:"\f213"}.fa-shirtsinbulk{--fa:"\f214"}.fa-simplybuilt{--fa:"\f215"}.fa-skyatlas{--fa:"\f216"}.fa-pinterest-p{--fa:"\f231"}.fa-whatsapp{--fa:"\f232"}.fa-viacoin{--fa:"\f237"}.fa-medium,.fa-medium-m{--fa:"\f23a"}.fa-y-combinator{--fa:"\f23b"}.fa-optin-monster{--fa:"\f23c"}.fa-opencart{--fa:"\f23d"}.fa-expeditedssl{--fa:"\f23e"}.fa-cc-jcb{--fa:"\f24b"}.fa-cc-diners-club{--fa:"\f24c"}.fa-creative-commons{--fa:"\f25e"}.fa-gg{--fa:"\f260"}.fa-gg-circle{--fa:"\f261"}.fa-odnoklassniki{--fa:"\f263"}.fa-odnoklassniki-square,.fa-square-odnoklassniki{--fa:"\f264"}.fa-get-pocket{--fa:"\f265"}.fa-wikipedia-w{--fa:"\f266"}.fa-safari{--fa:"\f267"}.fa-chrome{--fa:"\f268"}.fa-firefox{--fa:"\f269"}.fa-opera{--fa:"\f26a"}.fa-internet-explorer{--fa:"\f26b"}.fa-contao{--fa:"\f26d"}.fa-500px{--fa:"\f26e"}.fa-amazon{--fa:"\f270"}.fa-houzz{--fa:"\f27c"}.fa-vimeo-v{--fa:"\f27d"}.fa-black-tie{--fa:"\f27e"}.fa-fonticons{--fa:"\f280"}.fa-reddit-alien{--fa:"\f281"}.fa-edge{--fa:"\f282"}.fa-codiepie{--fa:"\f284"}.fa-modx{--fa:"\f285"}.fa-fort-awesome{--fa:"\f286"}.fa-usb{--fa:"\f287"}.fa-product-hunt{--fa:"\f288"}.fa-mixcloud{--fa:"\f289"}.fa-scribd{--fa:"\f28a"}.fa-bluetooth{--fa:"\f293"}.fa-bluetooth-b{--fa:"\f294"}.fa-gitlab{--fa:"\f296"}.fa-wpbeginner{--fa:"\f297"}.fa-wpforms{--fa:"\f298"}.fa-envira{--fa:"\f299"}.fa-glide{--fa:"\f2a5"}.fa-glide-g{--fa:"\f2a6"}.fa-viadeo{--fa:"\f2a9"}.fa-square-viadeo,.fa-viadeo-square{--fa:"\f2aa"}.fa-snapchat,.fa-snapchat-ghost{--fa:"\f2ab"}.fa-snapchat-square,.fa-square-snapchat{--fa:"\f2ad"}.fa-pied-piper{--fa:"\f2ae"}.fa-first-order{--fa:"\f2b0"}.fa-yoast{--fa:"\f2b1"}.fa-themeisle{--fa:"\f2b2"}.fa-google-plus{--fa:"\f2b3"}.fa-font-awesome,.fa-font-awesome-flag,.fa-font-awesome-logo-full{--fa:"\f2b4"}.fa-linode{--fa:"\f2b8"}.fa-quora{--fa:"\f2c4"}.fa-free-code-camp{--fa:"\f2c5"}.fa-telegram,.fa-telegram-plane{--fa:"\f2c6"}.fa-bandcamp{--fa:"\f2d5"}.fa-grav{--fa:"\f2d6"}.fa-etsy{--fa:"\f2d7"}.fa-imdb{--fa:"\f2d8"}.fa-ravelry{--fa:"\f2d9"}.fa-sellcast{--fa:"\f2da"}.fa-superpowers{--fa:"\f2dd"}.fa-wpexplorer{--fa:"\f2de"}.fa-meetup{--fa:"\f2e0"}.fa-font-awesome-alt,.fa-square-font-awesome-stroke{--fa:"\f35c"}.fa-accessible-icon{--fa:"\f368"}.fa-accusoft{--fa:"\f369"}.fa-adversal{--fa:"\f36a"}.fa-affiliatetheme{--fa:"\f36b"}.fa-algolia{--fa:"\f36c"}.fa-amilia{--fa:"\f36d"}.fa-angrycreative{--fa:"\f36e"}.fa-app-store{--fa:"\f36f"}.fa-app-store-ios{--fa:"\f370"}.fa-apper{--fa:"\f371"}.fa-asymmetrik{--fa:"\f372"}.fa-audible{--fa:"\f373"}.fa-avianex{--fa:"\f374"}.fa-aws{--fa:"\f375"}.fa-bimobject{--fa:"\f378"}.fa-bitcoin{--fa:"\f379"}.fa-bity{--fa:"\f37a"}.fa-blackberry{--fa:"\f37b"}.fa-blogger{--fa:"\f37c"}.fa-blogger-b{--fa:"\f37d"}.fa-buromobelexperte{--fa:"\f37f"}.fa-centercode{--fa:"\f380"}.fa-cloudscale{--fa:"\f383"}.fa-cloudsmith{--fa:"\f384"}.fa-cloudversify{--fa:"\f385"}.fa-cpanel{--fa:"\f388"}.fa-css3-alt{--fa:"\f38b"}.fa-cuttlefish{--fa:"\f38c"}.fa-d-and-d{--fa:"\f38d"}.fa-deploydog{--fa:"\f38e"}.fa-deskpro{--fa:"\f38f"}.fa-digital-ocean{--fa:"\f391"}.fa-discord{--fa:"\f392"}.fa-discourse{--fa:"\f393"}.fa-dochub{--fa:"\f394"}.fa-docker{--fa:"\f395"}.fa-draft2digital{--fa:"\f396"}.fa-dribbble-square,.fa-square-dribbble{--fa:"\f397"}.fa-dyalog{--fa:"\f399"}.fa-earlybirds{--fa:"\f39a"}.fa-erlang{--fa:"\f39d"}.fa-facebook-f{--fa:"\f39e"}.fa-facebook-messenger{--fa:"\f39f"}.fa-firstdraft{--fa:"\f3a1"}.fa-fonticons-fi{--fa:"\f3a2"}.fa-fort-awesome-alt{--fa:"\f3a3"}.fa-freebsd{--fa:"\f3a4"}.fa-gitkraken{--fa:"\f3a6"}.fa-gofore{--fa:"\f3a7"}.fa-goodreads{--fa:"\f3a8"}.fa-goodreads-g{--fa:"\f3a9"}.fa-google-drive{--fa:"\f3aa"}.fa-google-play{--fa:"\f3ab"}.fa-gripfire{--fa:"\f3ac"}.fa-grunt{--fa:"\f3ad"}.fa-gulp{--fa:"\f3ae"}.fa-hacker-news-square,.fa-square-hacker-news{--fa:"\f3af"}.fa-hire-a-helper{--fa:"\f3b0"}.fa-hotjar{--fa:"\f3b1"}.fa-hubspot{--fa:"\f3b2"}.fa-itunes{--fa:"\f3b4"}.fa-itunes-note{--fa:"\f3b5"}.fa-jenkins{--fa:"\f3b6"}.fa-joget{--fa:"\f3b7"}.fa-js{--fa:"\f3b8"}.fa-js-square,.fa-square-js{--fa:"\f3b9"}.fa-keycdn{--fa:"\f3ba"}.fa-kickstarter,.fa-square-kickstarter{--fa:"\f3bb"}.fa-kickstarter-k{--fa:"\f3bc"}.fa-laravel{--fa:"\f3bd"}.fa-line{--fa:"\f3c0"}.fa-lyft{--fa:"\f3c3"}.fa-magento{--fa:"\f3c4"}.fa-medapps{--fa:"\f3c6"}.fa-medrt{--fa:"\f3c8"}.fa-microsoft{--fa:"\f3ca"}.fa-mix{--fa:"\f3cb"}.fa-mizuni{--fa:"\f3cc"}.fa-monero{--fa:"\f3d0"}.fa-napster{--fa:"\f3d2"}.fa-node-js{--fa:"\f3d3"}.fa-npm{--fa:"\f3d4"}.fa-ns8{--fa:"\f3d5"}.fa-nutritionix{--fa:"\f3d6"}.fa-page4{--fa:"\f3d7"}.fa-palfed{--fa:"\f3d8"}.fa-patreon{--fa:"\f3d9"}.fa-periscope{--fa:"\f3da"}.fa-phabricator{--fa:"\f3db"}.fa-phoenix-framework{--fa:"\f3dc"}.fa-playstation{--fa:"\f3df"}.fa-pushed{--fa:"\f3e1"}.fa-python{--fa:"\f3e2"}.fa-red-river{--fa:"\f3e3"}.fa-rendact,.fa-wpressr{--fa:"\f3e4"}.fa-replyd{--fa:"\f3e6"}.fa-resolving{--fa:"\f3e7"}.fa-rocketchat{--fa:"\f3e8"}.fa-rockrms{--fa:"\f3e9"}.fa-schlix{--fa:"\f3ea"}.fa-searchengin{--fa:"\f3eb"}.fa-servicestack{--fa:"\f3ec"}.fa-sistrix{--fa:"\f3ee"}.fa-speakap{--fa:"\f3f3"}.fa-staylinked{--fa:"\f3f5"}.fa-steam-symbol{--fa:"\f3f6"}.fa-sticker-mule{--fa:"\f3f7"}.fa-studiovinari{--fa:"\f3f8"}.fa-supple{--fa:"\f3f9"}.fa-uber{--fa:"\f402"}.fa-uikit{--fa:"\f403"}.fa-uniregistry{--fa:"\f404"}.fa-untappd{--fa:"\f405"}.fa-ussunnah{--fa:"\f407"}.fa-vaadin{--fa:"\f408"}.fa-viber{--fa:"\f409"}.fa-vimeo{--fa:"\f40a"}.fa-vnv{--fa:"\f40b"}.fa-square-whatsapp,.fa-whatsapp-square{--fa:"\f40c"}.fa-whmcs{--fa:"\f40d"}.fa-wordpress-simple{--fa:"\f411"}.fa-xbox{--fa:"\f412"}.fa-yandex{--fa:"\f413"}.fa-yandex-international{--fa:"\f414"}.fa-apple-pay{--fa:"\f415"}.fa-cc-apple-pay{--fa:"\f416"}.fa-fly{--fa:"\f417"}.fa-node{--fa:"\f419"}.fa-osi{--fa:"\f41a"}.fa-react{--fa:"\f41b"}.fa-autoprefixer{--fa:"\f41c"}.fa-less{--fa:"\f41d"}.fa-sass{--fa:"\f41e"}.fa-vuejs{--fa:"\f41f"}.fa-angular{--fa:"\f420"}.fa-aviato{--fa:"\f421"}.fa-ember{--fa:"\f423"}.fa-gitter{--fa:"\f426"}.fa-hooli{--fa:"\f427"}.fa-strava{--fa:"\f428"}.fa-stripe{--fa:"\f429"}.fa-stripe-s{--fa:"\f42a"}.fa-typo3{--fa:"\f42b"}.fa-amazon-pay{--fa:"\f42c"}.fa-cc-amazon-pay{--fa:"\f42d"}.fa-ethereum{--fa:"\f42e"}.fa-korvue{--fa:"\f42f"}.fa-elementor{--fa:"\f430"}.fa-square-youtube,.fa-youtube-square{--fa:"\f431"}.fa-flipboard{--fa:"\f44d"}.fa-hips{--fa:"\f452"}.fa-php{--fa:"\f457"}.fa-quinscape{--fa:"\f459"}.fa-readme{--fa:"\f4d5"}.fa-java{--fa:"\f4e4"}.fa-pied-piper-hat{--fa:"\f4e5"}.fa-creative-commons-by{--fa:"\f4e7"}.fa-creative-commons-nc{--fa:"\f4e8"}.fa-creative-commons-nc-eu{--fa:"\f4e9"}.fa-creative-commons-nc-jp{--fa:"\f4ea"}.fa-creative-commons-nd{--fa:"\f4eb"}.fa-creative-commons-pd{--fa:"\f4ec"}.fa-creative-commons-pd-alt{--fa:"\f4ed"}.fa-creative-commons-remix{--fa:"\f4ee"}.fa-creative-commons-sa{--fa:"\f4ef"}.fa-creative-commons-sampling{--fa:"\f4f0"}.fa-creative-commons-sampling-plus{--fa:"\f4f1"}.fa-creative-commons-share{--fa:"\f4f2"}.fa-creative-commons-zero{--fa:"\f4f3"}.fa-ebay{--fa:"\f4f4"}.fa-keybase{--fa:"\f4f5"}.fa-mastodon{--fa:"\f4f6"}.fa-r-project{--fa:"\f4f7"}.fa-researchgate{--fa:"\f4f8"}.fa-teamspeak{--fa:"\f4f9"}.fa-first-order-alt{--fa:"\f50a"}.fa-fulcrum{--fa:"\f50b"}.fa-galactic-republic{--fa:"\f50c"}.fa-galactic-senate{--fa:"\f50d"}.fa-jedi-order{--fa:"\f50e"}.fa-mandalorian{--fa:"\f50f"}.fa-old-republic{--fa:"\f510"}.fa-phoenix-squadron{--fa:"\f511"}.fa-sith{--fa:"\f512"}.fa-trade-federation{--fa:"\f513"}.fa-wolf-pack-battalion{--fa:"\f514"}.fa-hornbill{--fa:"\f592"}.fa-mailchimp{--fa:"\f59e"}.fa-megaport{--fa:"\f5a3"}.fa-nimblr{--fa:"\f5a8"}.fa-rev{--fa:"\f5b2"}.fa-shopware{--fa:"\f5b5"}.fa-squarespace{--fa:"\f5be"}.fa-themeco{--fa:"\f5c6"}.fa-weebly{--fa:"\f5cc"}.fa-wix{--fa:"\f5cf"}.fa-ello{--fa:"\f5f1"}.fa-hackerrank{--fa:"\f5f7"}.fa-kaggle{--fa:"\f5fa"}.fa-markdown{--fa:"\f60f"}.fa-neos{--fa:"\f612"}.fa-zhihu{--fa:"\f63f"}.fa-alipay{--fa:"\f642"}.fa-the-red-yeti{--fa:"\f69d"}.fa-critical-role{--fa:"\f6c9"}.fa-d-and-d-beyond{--fa:"\f6ca"}.fa-dev{--fa:"\f6cc"}.fa-fantasy-flight-games{--fa:"\f6dc"}.fa-wizards-of-the-coast{--fa:"\f730"}.fa-think-peaks{--fa:"\f731"}.fa-reacteurope{--fa:"\f75d"}.fa-artstation{--fa:"\f77a"}.fa-atlassian{--fa:"\f77b"}.fa-canadian-maple-leaf{--fa:"\f785"}.fa-centos{--fa:"\f789"}.fa-confluence{--fa:"\f78d"}.fa-dhl{--fa:"\f790"}.fa-diaspora{--fa:"\f791"}.fa-fedex{--fa:"\f797"}.fa-fedora{--fa:"\f798"}.fa-figma{--fa:"\f799"}.fa-intercom{--fa:"\f7af"}.fa-invision{--fa:"\f7b0"}.fa-jira{--fa:"\f7b1"}.fa-mendeley{--fa:"\f7b3"}.fa-raspberry-pi{--fa:"\f7bb"}.fa-redhat{--fa:"\f7bc"}.fa-sketch{--fa:"\f7c6"}.fa-sourcetree{--fa:"\f7d3"}.fa-suse{--fa:"\f7d6"}.fa-ubuntu{--fa:"\f7df"}.fa-ups{--fa:"\f7e0"}.fa-usps{--fa:"\f7e1"}.fa-yarn{--fa:"\f7e3"}.fa-airbnb{--fa:"\f834"}.fa-battle-net{--fa:"\f835"}.fa-bootstrap{--fa:"\f836"}.fa-buffer{--fa:"\f837"}.fa-chromecast{--fa:"\f838"}.fa-evernote{--fa:"\f839"}.fa-itch-io{--fa:"\f83a"}.fa-salesforce{--fa:"\f83b"}.fa-speaker-deck{--fa:"\f83c"}.fa-symfony{--fa:"\f83d"}.fa-waze{--fa:"\f83f"}.fa-yammer{--fa:"\f840"}.fa-git-alt{--fa:"\f841"}.fa-stackpath{--fa:"\f842"}.fa-cotton-bureau{--fa:"\f89e"}.fa-buy-n-large{--fa:"\f8a6"}.fa-mdb{--fa:"\f8ca"}.fa-orcid{--fa:"\f8d2"}.fa-swift{--fa:"\f8e1"}.fa-umbraco{--fa:"\f8e8"}src/app/api.service.ts+24-24
src/app/app-routing.module.ts+47-53
src/app/app.component.css+1710-331
src/app/app.component.html+347-71
src/app/app.component.spec.ts+27-27
src/app/app.component.ts+1226-128
src/app/auth/sign-in/sign-in.component.css+204-135
src/app/auth/sign-in/sign-in.component.html+61-52
src/app/auth/sign-in/sign-in.component.spec.ts+21-21
src/app/auth/sign-in/sign-in.component.ts+139-63
src/app/auth/sign-up/sign-up.component.css+865-148
src/app/auth/sign-up/sign-up.component.html+161-76
src/app/auth/sign-up/sign-up.component.spec.ts+21-21
src/app/auth/sign-up/sign-up.component.ts+317-111
src/app/auth/sign-up/sign-up.service.ts+111-62
src/app/intro-page/intro-page.component.css+1944-1103
src/app/intro-page/intro-page.component.html+775-292
src/app/intro-page/intro-page.component.spec.ts+21-21
src/app/intro-page/intro-page.component.ts+822-236
src/app/llm-quiz/llm-quiz.component.css+1853-732
src/app/llm-quiz/llm-quiz.component.html+293-138
src/app/llm-quiz/llm-quiz.component.spec.ts+21-21
src/app/llm-quiz/llm-quiz.component.ts+563-207
src/app/matching-list/matching-list.component.css+2464-714
src/app/matching-list/matching-list.component.html+1331-228
src/app/matching-list/matching-list.component.spec.ts+21-21
src/app/matching-list/matching-list.component.ts
src/app/matching.service.spec.ts+59-59
src/app/matching.service.ts+115-82
src/app/question-answer/question-answer-service.service.ts+52-42
src/app/question-answer/question-answer.component.css+1716-693
src/app/question-answer/question-answer.component.html+516-175
src/app/question-answer/question-answer.component.spec.ts+21-21
src/app/question-answer/question-answer.component.ts+876-521
src/app/services/auth.guard.spec.tsAdded+17
src/app/services/auth.guard.tsAdded+20
src/app/services/auth.service.spec.ts+16-16
src/app/services/auth.service.ts+185-23
src/app/services/llm-qa.service.ts+95-85
src/app/user-preferences/user-preferences.component.css+2044-438
src/app/user-preferences/user-preferences.component.html+469-135
src/app/user-preferences/user-preferences.component.ts+1020-280
src/app/user-preferences/user-preferences.service.ts+151-63
src/assets/fontawesome/LICENSE.txtAdded+165
src/assets/fontawesome/README.mdAdded+38
src/assets/fontawesome/css/all.cssAdded
src/assets/fontawesome/css/all.min.cssAdded+9
src/assets/fontawesome/css/brands.cssAdded+2219
src/assets/fontawesome/css/brands.min.cssAdded+6
src/assets/fontawesome/css/fontawesome.cssAdded