lakshmisravya123 commited on
Commit
f88c6fa
·
1 Parent(s): ac717a9

Upgrade: STAR method coaching, ideal answers, follow-up questions, detailed scoring

Browse files
.gitignore CHANGED
@@ -1,4 +1,4 @@
1
  node_modules/
2
- .env
3
  dist/
 
4
  .DS_Store
 
1
  node_modules/
 
2
  dist/
3
+ .env
4
  .DS_Store
backend/public/assets/index-33lJK7Fm.css ADDED
@@ -0,0 +1 @@
 
 
1
+ *{margin:0;padding:0;box-sizing:border-box}:root{--bg: #0a0a1a;--bg-card: #131332;--bg-card-alt: #1a1a40;--accent: #6c5ce7;--accent-light: #a29bfe;--success: #00b894;--warning: #fdcb6e;--danger: #e17055;--text: #eee;--text-dim: #999;--border: #2d2d5e}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text);min-height:100vh}.app{max-width:860px;margin:0 auto;padding:2rem 1.5rem}.header{text-align:center;margin-bottom:2rem}.header h1{font-size:2.2rem;font-weight:800;background:linear-gradient(135deg,#6c5ce7,#a29bfe,#00b894);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.header p{color:var(--text-dim);margin-top:.4rem}.setup-card{background:var(--bg-card);border-radius:16px;padding:2rem}.form-group{margin-bottom:1.2rem}.form-group label{display:block;font-size:.85rem;color:var(--text-dim);margin-bottom:.4rem}.form-group input,.form-group select{width:100%;padding:.7rem 1rem;background:var(--bg);border:1px solid var(--border);border-radius:10px;color:var(--text);font-size:1rem}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.btn-primary{width:100%;padding:1rem;margin-top:1rem;background:linear-gradient(135deg,#6c5ce7,#a29bfe);border:none;border-radius:12px;color:#fff;font-size:1.1rem;font-weight:700;cursor:pointer;transition:transform .2s}.btn-primary:hover{transform:translateY(-1px)}.btn-primary:disabled{opacity:.5;cursor:not-allowed;transform:none}.progress-bar{display:flex;align-items:center;gap:.8rem;margin-bottom:1.5rem;padding:.8rem 1rem;background:var(--bg-card);border-radius:12px}.progress-track{flex:1;height:8px;background:var(--border);border-radius:4px;overflow:hidden}.progress-fill{height:100%;background:linear-gradient(90deg,#6c5ce7,#00b894);transition:width .5s ease;border-radius:4px}.progress-text{font-size:.85rem;color:var(--text-dim);white-space:nowrap}.question-card{background:var(--bg-card);border-radius:16px;padding:1.5rem;margin-bottom:1.5rem;border-left:4px solid var(--accent)}.question-card .q-label{font-size:.8rem;color:var(--accent-light);text-transform:uppercase;letter-spacing:1px;margin-bottom:.5rem}.question-card .q-text{font-size:1.15rem;line-height:1.5}.question-card .q-hint{margin-top:.8rem;font-size:.85rem;color:var(--text-dim);font-style:italic}.answer-area textarea{width:100%;min-height:150px;padding:1rem;background:var(--bg-card);border:1px solid var(--border);border-radius:12px;color:var(--text);font-size:1rem;resize:vertical;line-height:1.5}.answer-area textarea:focus{outline:none;border-color:var(--accent)}.char-count{text-align:right;font-size:.8rem;color:var(--text-dim);margin-top:.3rem}.eval-card{background:var(--bg-card);border-radius:16px;padding:1.5rem;margin:1rem 0;animation:slideIn .4s ease}@keyframes slideIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.eval-score{font-size:2rem;font-weight:800;text-align:center;margin-bottom:.5rem}.eval-score.good{color:var(--success)}.eval-score.ok{color:var(--warning)}.eval-score.bad{color:var(--danger)}.eval-feedback{color:var(--text-dim);line-height:1.5;margin-bottom:1rem;text-align:center}.eval-tabs{display:flex;flex-wrap:wrap;gap:.4rem;margin-bottom:1.2rem;border-bottom:1px solid var(--border);padding-bottom:.8rem}.eval-tab{padding:.4rem .8rem;background:transparent;border:1px solid var(--border);border-radius:8px;color:var(--text-dim);cursor:pointer;font-size:.8rem;transition:all .2s}.eval-tab:hover{border-color:var(--accent);color:var(--text)}.eval-tab.active{background:var(--accent);border-color:var(--accent);color:#fff}.eval-tab-content{min-height:100px}.eval-section{margin-top:.8rem}.eval-section h4{font-size:.9rem;margin-bottom:.4rem}.eval-section ul{list-style:none;padding:0}.eval-section li{padding:.3rem 0 .3rem 1.2rem;position:relative;color:var(--text-dim);font-size:.9rem}.eval-section li:before{position:absolute;left:0}.eval-section.strengths li:before{content:"✓";color:var(--success);font-weight:700}.eval-section.improvements li:before{content:"→";color:var(--warning)}.sample-answer{margin-top:1rem;padding:1rem;background:#00b89414;border-radius:8px;border-left:3px solid var(--success)}.sample-answer h4{color:var(--success);margin-bottom:.4rem;font-size:.9rem}.sample-answer p{color:var(--text-dim);font-size:.9rem;line-height:1.5}.star-analysis h4{margin-bottom:.5rem;color:var(--accent-light)}.star-desc{color:var(--text-dim);font-size:.85rem;margin-bottom:1rem}.star-item{padding:.8rem 1rem;margin-bottom:.6rem;border-radius:10px;border-left:4px solid var(--border)}.star-item-present{background:#00b8940f;border-left-color:var(--success)}.star-item-missing{background:#e170550f;border-left-color:var(--danger)}.star-item-header{display:flex;align-items:center;gap:.6rem;margin-bottom:.4rem}.star-item-letter{width:28px;height:28px;display:flex;align-items:center;justify-content:center;background:var(--accent);color:#fff;border-radius:50%;font-weight:800;font-size:.85rem}.star-item-name{font-weight:600;font-size:.95rem}.star-badge{font-size:.7rem;padding:.15rem .5rem;border-radius:10px;font-weight:600;margin-left:auto}.star-present{background:#00b89433;color:var(--success)}.star-missing{background:#e1705533;color:var(--danger)}.star-item-feedback{color:var(--text-dim);font-size:.85rem;line-height:1.5}.detailed-scores h4{margin-bottom:1rem;color:var(--accent-light)}.score-bar-row{display:flex;align-items:center;gap:.8rem;margin-bottom:.7rem}.score-bar-label{width:140px;font-size:.85rem;color:var(--text-dim);flex-shrink:0}.score-bar-track{flex:1;height:8px;background:var(--border);border-radius:4px;overflow:hidden}.score-bar-fill{height:100%;border-radius:4px;transition:width .5s ease}.score-bar-fill.good{background:var(--success)}.score-bar-fill.ok{background:var(--warning)}.score-bar-fill.bad{background:var(--danger)}.score-bar-value{width:40px;text-align:right;font-size:.85rem;font-weight:700;flex-shrink:0}.score-bar-value.good{color:var(--success)}.score-bar-value.ok{color:var(--warning)}.score-bar-value.bad{color:var(--danger)}.language-check h4{color:var(--accent-light);margin-bottom:.5rem}.language-section{margin-bottom:1.2rem}.tag-list{display:flex;flex-wrap:wrap;gap:.4rem;margin:.5rem 0}.tag{padding:.25rem .7rem;border-radius:14px;font-size:.8rem;font-weight:600}.tag-warning{background:#fdcb6e26;color:var(--warning)}.language-tip{color:var(--text-dim);font-size:.82rem;font-style:italic;margin-top:.4rem}.vague-list{list-style:none;padding:0}.vague-list li{padding:.3rem 0}.vague-quote{color:var(--danger);font-style:italic;font-size:.9rem}.language-clean{text-align:center;padding:2rem;color:var(--success)}.clean-icon{font-size:2rem;display:block;margin-bottom:.5rem}.followup-section h4{color:var(--accent-light);margin-bottom:.3rem}.followup-desc{color:var(--text-dim);font-size:.85rem;margin-bottom:1rem}.followup-list{padding-left:1.2rem}.followup-list li{padding:.5rem 0;color:var(--text);font-size:.95rem;line-height:1.5;border-bottom:1px solid rgba(45,45,94,.5)}.followup-list li:last-child{border-bottom:none}.ideal-answer-section h4{color:var(--accent-light);margin-bottom:.3rem}.ideal-desc{color:var(--text-dim);font-size:.85rem;margin-bottom:1rem}.ideal-answer-box{padding:1.2rem;background:#00b8940f;border-left:4px solid var(--success);border-radius:8px}.ideal-answer-box p{color:var(--text-dim);line-height:1.6;font-size:.92rem}.rewrite-section h4{color:var(--accent-light);margin-bottom:.3rem}.rewrite-desc{color:var(--text-dim);font-size:.85rem;margin-bottom:1rem}.rewrite-box{padding:1.2rem;background:#6c5ce714;border-left:4px solid var(--accent);border-radius:8px}.rewrite-box p{color:var(--text-dim);line-height:1.6;font-size:.92rem}.delivery-section h4{color:var(--accent-light);margin-bottom:.8rem}.delivery-list{list-style:none;padding:0}.delivery-list li{padding:.6rem .8rem .6rem 2rem;position:relative;color:var(--text-dim);font-size:.9rem;line-height:1.5;margin-bottom:.4rem;background:#6c5ce70d;border-radius:8px}.delivery-list li:before{content:"▶";position:absolute;left:.8rem;color:var(--accent-light);font-size:.7rem}.report{animation:slideIn .5s ease}.report-header{text-align:center;padding:2rem;background:var(--bg-card);border-radius:16px;margin-bottom:1.5rem}.report-score{font-size:4rem;font-weight:800}.report-score.good{color:var(--success)}.report-score.ok{color:var(--warning)}.report-score.bad{color:var(--danger)}.verdict{display:inline-block;padding:.3rem 1rem;border-radius:20px;font-weight:700;font-size:.9rem;margin-top:.5rem}.verdict.STRONG_HIRE{background:#00b89433;color:var(--success)}.verdict.HIRE{background:#00b89426;color:var(--success)}.verdict.MAYBE{background:#fdcb6e33;color:var(--warning)}.verdict.NO_HIRE{background:#e1705533;color:var(--danger)}.report-tabs{display:flex;flex-wrap:wrap;gap:.4rem;margin-bottom:1.5rem}.report-tab{padding:.5rem 1rem;background:var(--bg-card);border:1px solid var(--border);border-radius:10px;color:var(--text-dim);cursor:pointer;font-size:.85rem;font-weight:500;transition:all .2s}.report-tab:hover{border-color:var(--accent);color:var(--text)}.report-tab.active{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600}.report-tab-content{min-height:150px}.report-card{background:var(--bg-card);border-radius:16px;padding:1.5rem;margin-bottom:1rem}.report-card h3{margin-bottom:.8rem}.report-card ul{list-style:none;padding:0}.report-card li{padding:.4rem 0 .4rem 1.5rem;position:relative;color:var(--text-dim)}.report-card li:before{position:absolute;left:0}.report-card.strengths li:before{content:"✓";color:var(--success);font-weight:700}.report-card.improve li:before{content:"→";color:var(--warning)}.report-summary{color:var(--text-dim);line-height:1.6;margin-top:.5rem}.readiness{text-align:center;margin-top:.8rem;font-size:1.1rem}.section-desc{color:var(--text-dim);font-size:.85rem;margin-bottom:1rem}.comm-scores{margin-top:.5rem}.pattern-trajectory{display:flex;align-items:center;gap:.8rem;margin-bottom:1.2rem;padding:.8rem 1rem;background:var(--bg);border-radius:10px}.trajectory-label{color:var(--text-dim);font-size:.9rem}.trajectory-value{font-weight:700;font-size:.95rem;padding:.2rem .8rem;border-radius:12px}.trajectory-improving{background:#00b89426;color:var(--success)}.trajectory-stable{background:#fdcb6e26;color:var(--warning)}.trajectory-declining{background:#e1705526;color:var(--danger)}.pattern-section{margin-bottom:1rem}.pattern-section h4{font-size:.9rem;margin-bottom:.4rem;color:var(--text)}.pattern-list{list-style:none;padding:0}.pattern-list li{padding:.35rem 0 .35rem 1.3rem;position:relative;color:var(--text-dim);font-size:.9rem}.pattern-list li:before{position:absolute;left:0}.pattern-strengths li:before{content:"✓";color:var(--success);font-weight:700}.pattern-weaknesses li:before{content:"✗";color:var(--danger)}.action-item{padding:1rem;margin-bottom:.8rem;background:var(--bg);border-radius:10px;border-left:4px solid var(--border)}.action-header{display:flex;align-items:center;gap:.8rem;margin-bottom:.5rem}.priority-badge{font-size:.7rem;padding:.15rem .6rem;border-radius:10px;font-weight:700;letter-spacing:.5px}.priority-high{background:#e1705533;color:var(--danger)}.priority-medium{background:#fdcb6e33;color:var(--warning)}.priority-low{background:#00b89426;color:var(--success)}.action-timeframe{color:var(--text-dim);font-size:.8rem}.action-text{color:var(--text-dim);font-size:.9rem;line-height:1.5}.qa-breakdown-item{padding:1rem 0;border-bottom:1px solid var(--border)}.qa-breakdown-item:last-child{border-bottom:none}.qa-question{font-weight:600;margin-bottom:.3rem;font-size:.95rem}.qa-answer{color:var(--text-dim);font-size:.85rem;margin-bottom:.3rem}.qa-score-line{font-size:.85rem;color:var(--text-dim)}.qa-score{font-weight:700}.qa-score.good{color:var(--success)}.qa-score.ok{color:var(--warning)}.qa-score.bad{color:var(--danger)}.tips-list{list-style:none;padding:0}.tips-list li{padding:.7rem 1rem .7rem 2rem;position:relative;color:var(--text-dim);font-size:.9rem;line-height:1.5;margin-bottom:.4rem;background:#6c5ce70d;border-radius:8px}.tips-list li:before{content:"★";position:absolute;left:.8rem;color:var(--accent-light)}.btn-secondary{display:block;margin:2rem auto 0;padding:.8rem 2rem;background:transparent;border:2px solid var(--accent);border-radius:12px;color:var(--accent);font-size:1rem;cursor:pointer}.btn-secondary:hover{background:var(--accent);color:#fff}.loading{text-align:center;padding:2rem}.spinner{width:40px;height:40px;border:4px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:spin 1s linear infinite;margin:0 auto 1rem}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:600px){.form-row{grid-template-columns:1fr}.header h1{font-size:1.6rem}.eval-tabs,.report-tabs{gap:.3rem}.eval-tab,.report-tab{font-size:.72rem;padding:.3rem .5rem}.score-bar-label{width:100px;font-size:.78rem}.star-item-header{flex-wrap:wrap}}
backend/public/assets/index-DabwDG1k.js ADDED
The diff for this file is too large to render. See raw diff
 
backend/public/index.html ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>AI Interview Coach</title>
7
+ <link rel="icon" type="image/svg+xml" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>🎤</text></svg>" />
8
+ <script type="module" crossorigin src="/assets/index-DabwDG1k.js"></script>
9
+ <link rel="stylesheet" crossorigin href="/assets/index-33lJK7Fm.css">
10
+ </head>
11
+ <body>
12
+ <div id="root"></div>
13
+ </body>
14
+ </html>
backend/routes/interview.js CHANGED
@@ -125,7 +125,9 @@ router.get('/report/:sessionId', async (req, res) => {
125
  question: a.question,
126
  answer: a.answer,
127
  score: a.score,
128
- feedback: a.evaluation.feedback
 
 
129
  })),
130
  meta: {
131
  role: session.role,
 
125
  question: a.question,
126
  answer: a.answer,
127
  score: a.score,
128
+ feedback: a.evaluation.feedback,
129
+ detailedScores: a.evaluation.detailedScores,
130
+ starAnalysis: a.evaluation.starAnalysis
131
  })),
132
  meta: {
133
  role: session.role,
backend/services/ai.js CHANGED
@@ -8,7 +8,7 @@ async function callAI(prompt) {
8
  const res = await fetch('https://api.groq.com/openai/v1/chat/completions', {
9
  method: 'POST',
10
  headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${GROQ_API_KEY}` },
11
- body: JSON.stringify({ model: GROQ_MODEL, messages: [{ role: 'user', content: prompt }], temperature: 0.7 }),
12
  });
13
  if (res.ok) { const data = await res.json(); return data.choices[0].message.content; }
14
  console.warn('Groq failed, falling back to Ollama...');
@@ -24,7 +24,14 @@ async function callAI(prompt) {
24
 
25
  function parseJSON(text) {
26
  try { return JSON.parse(text.trim()); }
27
- catch { const m = text.match(/\{[\s\S]*\}/); if (m) return JSON.parse(m[0]); throw new Error('Failed to parse AI response'); }
 
 
 
 
 
 
 
28
  }
29
 
30
  const DIFFICULTY_MAP = {
@@ -51,29 +58,100 @@ Return ONLY JSON, no markdown.`);
51
  }
52
 
53
  async function evaluateAnswer(role, question, answer, difficulty) {
54
- const text = await callAI(`You are an expert interviewer evaluating a candidate for a ${role} position.
 
 
 
55
  QUESTION: ${question}
56
  CANDIDATE'S ANSWER: ${answer}
57
- DIFFICULTY: ${difficulty}
58
 
59
- Return ONLY valid JSON:
60
- {"score":<1-10>,"feedback":"<2-3 sentences>","strengths":["<strength>"],"improvements":["<suggestion 1>","<suggestion 2>"],"sampleAnswer":"<strong example answer>"}
61
 
62
- Return ONLY JSON, no markdown.`);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
63
  return parseJSON(text);
64
  }
65
 
66
  async function generateFinalReport(role, questionsAndAnswers) {
67
- const qaPairs = questionsAndAnswers.map((qa, i) => `Q${i+1}: ${qa.question}\nAnswer: ${qa.answer}\nScore: ${qa.score}/10`).join('\n\n');
68
- const text = await callAI(`You are an expert interviewer writing a final assessment for a ${role} candidate.
 
 
 
69
 
70
  INTERVIEW TRANSCRIPT:
71
  ${qaPairs}
72
 
73
- Return ONLY valid JSON:
74
- {"overallScore":<1-100>,"verdict":"<STRONG_HIRE|HIRE|MAYBE|NO_HIRE>","summary":"<3-4 sentences>","topStrengths":["<s1>","<s2>","<s3>"],"areasToImprove":["<a1>","<a2>","<a3>"],"recommendation":"<2-3 sentences>","readinessLevel":"<Not Ready|Getting There|Almost Ready|Interview Ready>"}
75
 
76
- Return ONLY JSON, no markdown.`);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77
  return parseJSON(text);
78
  }
79
 
 
8
  const res = await fetch('https://api.groq.com/openai/v1/chat/completions', {
9
  method: 'POST',
10
  headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${GROQ_API_KEY}` },
11
+ body: JSON.stringify({ model: GROQ_MODEL, messages: [{ role: 'user', content: prompt }], temperature: 0.7, max_tokens: 4096 }),
12
  });
13
  if (res.ok) { const data = await res.json(); return data.choices[0].message.content; }
14
  console.warn('Groq failed, falling back to Ollama...');
 
24
 
25
  function parseJSON(text) {
26
  try { return JSON.parse(text.trim()); }
27
+ catch {
28
+ const m = text.match(/\{[\s\S]*\}/);
29
+ if (m) {
30
+ try { return JSON.parse(m[0]); }
31
+ catch { /* fall through */ }
32
+ }
33
+ throw new Error('Failed to parse AI response');
34
+ }
35
  }
36
 
37
  const DIFFICULTY_MAP = {
 
58
  }
59
 
60
  async function evaluateAnswer(role, question, answer, difficulty) {
61
+ const text = await callAI(`You are an elite interview coach who has served on Google's hiring committee and trained thousands of candidates. You evaluate with precision and depth.
62
+
63
+ ROLE: ${role}
64
+ DIFFICULTY: ${difficulty}
65
  QUESTION: ${question}
66
  CANDIDATE'S ANSWER: ${answer}
 
67
 
68
+ Perform a comprehensive evaluation across multiple dimensions:
 
69
 
70
+ 1. STAR METHOD: Did the candidate use Situation-Task-Action-Result? Identify which elements are present/missing.
71
+ 2. CONTENT QUALITY: Evaluate specificity (concrete examples vs vague claims), relevance, and technical depth.
72
+ 3. COMMUNICATION: Detect filler words or vague language ("stuff", "things", "basically", "kind of", "sort of", "I think", "maybe"). Evaluate clarity.
73
+ 4. CONFIDENCE: Does the answer show ownership ("I led", "I decided") or deflection ("we just", "they told me to")?
74
+ 5. SCORING: Use a Google hiring committee rubric - score each dimension independently.
75
+ 6. FOLLOW-UP QUESTIONS: What would a skilled interviewer ask next?
76
+ 7. IDEAL ANSWER: Write the answer a top candidate would give.
77
+ 8. DELIVERY TIPS: Body language, pacing, presentation improvements.
78
+ 9. REWRITTEN ANSWER: Rewrite their answer to be significantly stronger while keeping their core content.
79
+
80
+ Return ONLY valid JSON (no markdown, no code fences):
81
+ {
82
+ "score": <1-10 overall>,
83
+ "feedback": "<2-3 sentence overall assessment>",
84
+ "strengths": ["<strength 1>", "<strength 2>"],
85
+ "improvements": ["<specific improvement 1>", "<specific improvement 2>"],
86
+ "starAnalysis": {
87
+ "situation": {"present": true, "feedback": "<what they said or what is missing>"},
88
+ "task": {"present": false, "feedback": "<what they said or what is missing>"},
89
+ "action": {"present": true, "feedback": "<what they said or what is missing>"},
90
+ "result": {"present": false, "feedback": "<what they said or what is missing>"}
91
+ },
92
+ "detailedScores": {
93
+ "relevance": <1-10>,
94
+ "specificity": <1-10>,
95
+ "structure": <1-10>,
96
+ "communication": <1-10>,
97
+ "confidence": <1-10>,
98
+ "technicalDepth": <1-10>
99
+ },
100
+ "fillerWords": ["<detected filler word or phrase>"],
101
+ "vagueStatements": ["<vague statement from their answer>"],
102
+ "followUpQuestions": ["<follow-up Q1>", "<follow-up Q2>", "<follow-up Q3>"],
103
+ "idealAnswer": "<the ideal answer a top candidate would give>",
104
+ "rewrittenAnswer": "<their answer rewritten to be much stronger>",
105
+ "deliveryTips": ["<tip 1>", "<tip 2>", "<tip 3>"],
106
+ "sampleAnswer": "<brief strong example answer>"
107
+ }
108
+
109
+ Use true/false booleans for present fields. Be thorough and actionable. Return ONLY JSON.`);
110
  return parseJSON(text);
111
  }
112
 
113
  async function generateFinalReport(role, questionsAndAnswers) {
114
+ const qaPairs = questionsAndAnswers.map((qa, i) =>
115
+ `Q${i+1}: ${qa.question}\nAnswer: ${qa.answer}\nScore: ${qa.score}/10`
116
+ ).join('\n\n');
117
+
118
+ const text = await callAI(`You are an elite interview coach writing a comprehensive final assessment for a ${role} candidate. You have evaluated candidates for top tech companies.
119
 
120
  INTERVIEW TRANSCRIPT:
121
  ${qaPairs}
122
 
123
+ Provide a thorough final report. Analyze patterns across all answers.
 
124
 
125
+ Return ONLY valid JSON (no markdown, no code fences):
126
+ {
127
+ "overallScore": <1-100>,
128
+ "verdict": "<STRONG_HIRE|HIRE|MAYBE|NO_HIRE>",
129
+ "summary": "<4-5 sentence comprehensive summary>",
130
+ "topStrengths": ["<strength 1>", "<strength 2>", "<strength 3>"],
131
+ "areasToImprove": ["<area 1>", "<area 2>", "<area 3>"],
132
+ "recommendation": "<3-4 sentences of specific next steps>",
133
+ "readinessLevel": "<Not Ready|Getting There|Almost Ready|Interview Ready>",
134
+ "communicationProfile": {
135
+ "clarity": <1-10>,
136
+ "conciseness": <1-10>,
137
+ "confidence": <1-10>,
138
+ "storytelling": <1-10>,
139
+ "technicalArticulation": <1-10>
140
+ },
141
+ "interviewPatterns": {
142
+ "consistentStrengths": ["<pattern 1>", "<pattern 2>"],
143
+ "consistentWeaknesses": ["<pattern 1>", "<pattern 2>"],
144
+ "trajectory": "<improving|stable|declining>"
145
+ },
146
+ "actionPlan": [
147
+ {"priority": "high", "action": "<specific action item>", "timeframe": "<e.g., 1 week>"},
148
+ {"priority": "medium", "action": "<specific action item>", "timeframe": "<e.g., 2 weeks>"},
149
+ {"priority": "low", "action": "<specific action item>", "timeframe": "<e.g., 1 month>"}
150
+ ],
151
+ "mockInterviewTips": ["<tip 1>", "<tip 2>", "<tip 3>"]
152
+ }
153
+
154
+ Return ONLY JSON.`);
155
  return parseJSON(text);
156
  }
157
 
frontend/src/components/Interview.jsx CHANGED
@@ -6,18 +6,53 @@ function scoreClass(score) {
6
  return 'bad';
7
  }
8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  export default function Interview({ question, progress, onSubmit, evaluation, loading }) {
10
  const [answer, setAnswer] = useState('');
 
11
 
12
  const handleSubmit = () => {
13
  if (answer.trim().length >= 10) {
14
  onSubmit(answer.trim());
15
  setAnswer('');
 
16
  }
17
  };
18
 
19
  const pct = (progress.answered / progress.total) * 100;
20
 
 
 
 
 
 
 
 
 
 
 
 
21
  return (
22
  <div className="interview-panel">
23
  <div className="progress-bar">
@@ -40,26 +75,152 @@ export default function Interview({ question, progress, onSubmit, evaluation, lo
40
  </div>
41
  <p className="eval-feedback">{evaluation.feedback}</p>
42
 
43
- {evaluation.strengths?.length > 0 && (
44
- <div className="eval-section strengths">
45
- <h4>Strengths</h4>
46
- <ul>{evaluation.strengths.map((s, i) => <li key={i}>{s}</li>)}</ul>
47
- </div>
48
- )}
49
-
50
- {evaluation.improvements?.length > 0 && (
51
- <div className="eval-section improvements">
52
- <h4>How to improve</h4>
53
- <ul>{evaluation.improvements.map((s, i) => <li key={i}>{s}</li>)}</ul>
54
- </div>
55
- )}
56
-
57
- {evaluation.sampleAnswer && (
58
- <div className="sample-answer">
59
- <h4>Strong answer example</h4>
60
- <p>{evaluation.sampleAnswer}</p>
61
- </div>
62
- )}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
63
  </div>
64
  )}
65
 
 
6
  return 'bad';
7
  }
8
 
9
+ function StarBadge({ present }) {
10
+ return (
11
+ <span className={`star-badge ${present ? 'star-present' : 'star-missing'}`}>
12
+ {present ? 'Present' : 'Missing'}
13
+ </span>
14
+ );
15
+ }
16
+
17
+ function ScoreBar({ label, value, max = 10 }) {
18
+ const pct = (value / max) * 100;
19
+ const cls = value >= 7 ? 'good' : value >= 4 ? 'ok' : 'bad';
20
+ return (
21
+ <div className="score-bar-row">
22
+ <span className="score-bar-label">{label}</span>
23
+ <div className="score-bar-track">
24
+ <div className={`score-bar-fill ${cls}`} style={{ width: `${pct}%` }} />
25
+ </div>
26
+ <span className={`score-bar-value ${cls}`}>{value}/{max}</span>
27
+ </div>
28
+ );
29
+ }
30
+
31
  export default function Interview({ question, progress, onSubmit, evaluation, loading }) {
32
  const [answer, setAnswer] = useState('');
33
+ const [activeTab, setActiveTab] = useState('overview');
34
 
35
  const handleSubmit = () => {
36
  if (answer.trim().length >= 10) {
37
  onSubmit(answer.trim());
38
  setAnswer('');
39
+ setActiveTab('overview');
40
  }
41
  };
42
 
43
  const pct = (progress.answered / progress.total) * 100;
44
 
45
+ const tabs = [
46
+ { id: 'overview', label: 'Overview' },
47
+ { id: 'star', label: 'STAR Analysis' },
48
+ { id: 'scores', label: 'Detailed Scores' },
49
+ { id: 'language', label: 'Language Check' },
50
+ { id: 'followup', label: 'Follow-ups' },
51
+ { id: 'ideal', label: 'Ideal Answer' },
52
+ { id: 'rewrite', label: 'Rewritten' },
53
+ { id: 'delivery', label: 'Delivery Tips' },
54
+ ];
55
+
56
  return (
57
  <div className="interview-panel">
58
  <div className="progress-bar">
 
75
  </div>
76
  <p className="eval-feedback">{evaluation.feedback}</p>
77
 
78
+ <div className="eval-tabs">
79
+ {tabs.map(tab => (
80
+ <button
81
+ key={tab.id}
82
+ className={`eval-tab ${activeTab === tab.id ? 'active' : ''}`}
83
+ onClick={() => setActiveTab(tab.id)}
84
+ >
85
+ {tab.label}
86
+ </button>
87
+ ))}
88
+ </div>
89
+
90
+ <div className="eval-tab-content">
91
+ {activeTab === 'overview' && (
92
+ <>
93
+ {evaluation.strengths?.length > 0 && (
94
+ <div className="eval-section strengths">
95
+ <h4>Strengths</h4>
96
+ <ul>{evaluation.strengths.map((s, i) => <li key={i}>{s}</li>)}</ul>
97
+ </div>
98
+ )}
99
+ {evaluation.improvements?.length > 0 && (
100
+ <div className="eval-section improvements">
101
+ <h4>How to Improve</h4>
102
+ <ul>{evaluation.improvements.map((s, i) => <li key={i}>{s}</li>)}</ul>
103
+ </div>
104
+ )}
105
+ {evaluation.sampleAnswer && (
106
+ <div className="sample-answer">
107
+ <h4>Strong Answer Example</h4>
108
+ <p>{evaluation.sampleAnswer}</p>
109
+ </div>
110
+ )}
111
+ </>
112
+ )}
113
+
114
+ {activeTab === 'star' && evaluation.starAnalysis && (
115
+ <div className="star-analysis">
116
+ <h4>STAR Method Breakdown</h4>
117
+ <p className="star-desc">The STAR method (Situation-Task-Action-Result) is the gold standard for structuring interview answers.</p>
118
+ {['situation', 'task', 'action', 'result'].map(key => {
119
+ const item = evaluation.starAnalysis[key];
120
+ if (!item) return null;
121
+ return (
122
+ <div key={key} className={`star-item ${item.present ? 'star-item-present' : 'star-item-missing'}`}>
123
+ <div className="star-item-header">
124
+ <span className="star-item-letter">{key.charAt(0).toUpperCase()}</span>
125
+ <span className="star-item-name">{key.charAt(0).toUpperCase() + key.slice(1)}</span>
126
+ <StarBadge present={item.present} />
127
+ </div>
128
+ <p className="star-item-feedback">{item.feedback}</p>
129
+ </div>
130
+ );
131
+ })}
132
+ </div>
133
+ )}
134
+
135
+ {activeTab === 'scores' && evaluation.detailedScores && (
136
+ <div className="detailed-scores">
137
+ <h4>Google Hiring Committee Rubric</h4>
138
+ <ScoreBar label="Relevance" value={evaluation.detailedScores.relevance} />
139
+ <ScoreBar label="Specificity" value={evaluation.detailedScores.specificity} />
140
+ <ScoreBar label="Structure" value={evaluation.detailedScores.structure} />
141
+ <ScoreBar label="Communication" value={evaluation.detailedScores.communication} />
142
+ <ScoreBar label="Confidence" value={evaluation.detailedScores.confidence} />
143
+ <ScoreBar label="Technical Depth" value={evaluation.detailedScores.technicalDepth} />
144
+ </div>
145
+ )}
146
+
147
+ {activeTab === 'language' && (
148
+ <div className="language-check">
149
+ {evaluation.fillerWords?.length > 0 && (
150
+ <div className="language-section">
151
+ <h4>Filler Words Detected</h4>
152
+ <div className="tag-list">
153
+ {evaluation.fillerWords.map((w, i) => (
154
+ <span key={i} className="tag tag-warning">{w}</span>
155
+ ))}
156
+ </div>
157
+ <p className="language-tip">Eliminate these to sound more confident and polished.</p>
158
+ </div>
159
+ )}
160
+ {evaluation.vagueStatements?.length > 0 && (
161
+ <div className="language-section">
162
+ <h4>Vague Statements</h4>
163
+ <ul className="vague-list">
164
+ {evaluation.vagueStatements.map((v, i) => (
165
+ <li key={i}><span className="vague-quote">"{v}"</span></li>
166
+ ))}
167
+ </ul>
168
+ <p className="language-tip">Replace these with specific numbers, names, or concrete outcomes.</p>
169
+ </div>
170
+ )}
171
+ {(!evaluation.fillerWords || evaluation.fillerWords.length === 0) &&
172
+ (!evaluation.vagueStatements || evaluation.vagueStatements.length === 0) && (
173
+ <div className="language-clean">
174
+ <span className="clean-icon">&#10003;</span>
175
+ <p>Clean language! No filler words or vague statements detected.</p>
176
+ </div>
177
+ )}
178
+ </div>
179
+ )}
180
+
181
+ {activeTab === 'followup' && evaluation.followUpQuestions?.length > 0 && (
182
+ <div className="followup-section">
183
+ <h4>Likely Follow-up Questions</h4>
184
+ <p className="followup-desc">An interviewer would probably ask these next. Prepare answers for each.</p>
185
+ <ol className="followup-list">
186
+ {evaluation.followUpQuestions.map((q, i) => (
187
+ <li key={i}>{q}</li>
188
+ ))}
189
+ </ol>
190
+ </div>
191
+ )}
192
+
193
+ {activeTab === 'ideal' && evaluation.idealAnswer && (
194
+ <div className="ideal-answer-section">
195
+ <h4>Ideal Answer (Top Candidate)</h4>
196
+ <p className="ideal-desc">This is what a top-performing candidate would say. Compare with your answer to identify gaps.</p>
197
+ <div className="ideal-answer-box">
198
+ <p>{evaluation.idealAnswer}</p>
199
+ </div>
200
+ </div>
201
+ )}
202
+
203
+ {activeTab === 'rewrite' && evaluation.rewrittenAnswer && (
204
+ <div className="rewrite-section">
205
+ <h4>Your Answer, Upgraded</h4>
206
+ <p className="rewrite-desc">Here is your core answer rewritten to be significantly stronger while preserving your key points.</p>
207
+ <div className="rewrite-box">
208
+ <p>{evaluation.rewrittenAnswer}</p>
209
+ </div>
210
+ </div>
211
+ )}
212
+
213
+ {activeTab === 'delivery' && evaluation.deliveryTips?.length > 0 && (
214
+ <div className="delivery-section">
215
+ <h4>Body Language &amp; Delivery Tips</h4>
216
+ <ul className="delivery-list">
217
+ {evaluation.deliveryTips.map((tip, i) => (
218
+ <li key={i}>{tip}</li>
219
+ ))}
220
+ </ul>
221
+ </div>
222
+ )}
223
+ </div>
224
  </div>
225
  )}
226
 
frontend/src/components/Report.jsx CHANGED
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
 
3
  function scoreClass(score) {
4
  if (score >= 70) return 'good';
@@ -6,8 +6,36 @@ function scoreClass(score) {
6
  return 'bad';
7
  }
8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  export default function Report({ data, onReset }) {
10
  const { report, details, meta } = data;
 
 
 
 
 
 
 
 
 
 
11
 
12
  return (
13
  <div className="report">
@@ -16,46 +44,142 @@ export default function Report({ data, onReset }) {
16
  {report.overallScore}
17
  </div>
18
  <div className="score-label" style={{ color: 'var(--text-dim)' }}>Overall Score</div>
19
- <div className={`verdict ${report.verdict}`}>{report.verdict.replace('_', ' ')}</div>
20
  <div className="readiness">{report.readinessLevel}</div>
21
  </div>
22
 
23
- <div className="report-card">
24
- <h3>Summary</h3>
25
- <p className="report-summary">{report.summary}</p>
 
 
 
 
 
 
 
26
  </div>
27
 
28
- <div className="report-card strengths">
29
- <h3>Top Strengths</h3>
30
- <ul>{report.topStrengths.map((s, i) => <li key={i}>{s}</li>)}</ul>
31
- </div>
 
 
 
32
 
33
- <div className="report-card improve">
34
- <h3>Areas to Improve</h3>
35
- <ul>{report.areasToImprove.map((a, i) => <li key={i}>{a}</li>)}</ul>
36
- </div>
37
 
38
- <div className="report-card">
39
- <h3>Recommendation</h3>
40
- <p className="report-summary">{report.recommendation}</p>
41
- </div>
42
 
43
- <div className="report-card">
44
- <h3>Question-by-Question Breakdown</h3>
45
- {details.map((d, i) => (
46
- <div key={i} style={{ marginTop: '1rem', paddingTop: '1rem', borderTop: i > 0 ? '1px solid var(--border)' : 'none' }}>
47
- <p style={{ fontWeight: 600, marginBottom: '0.3rem' }}>Q{i + 1}: {d.question}</p>
48
- <p style={{ color: 'var(--text-dim)', fontSize: '0.9rem', marginBottom: '0.3rem' }}>
49
- Your answer: {d.answer.substring(0, 150)}{d.answer.length > 150 ? '...' : ''}
50
- </p>
51
- <p style={{ fontSize: '0.9rem' }}>
52
- Score: <span style={{ fontWeight: 700, color: d.score >= 7 ? 'var(--success)' : d.score >= 4 ? 'var(--warning)' : 'var(--danger)' }}>
53
- {d.score}/10
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
  </span>
55
- {' - '}{d.feedback}
56
- </p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  </div>
58
- ))}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
  </div>
60
 
61
  <button className="btn-secondary" onClick={onReset}>
 
1
+ import React, { useState } from 'react';
2
 
3
  function scoreClass(score) {
4
  if (score >= 70) return 'good';
 
6
  return 'bad';
7
  }
8
 
9
+ function ScoreBar({ label, value, max = 10 }) {
10
+ const pct = (value / max) * 100;
11
+ const cls = value >= 7 ? 'good' : value >= 4 ? 'ok' : 'bad';
12
+ return (
13
+ <div className="score-bar-row">
14
+ <span className="score-bar-label">{label}</span>
15
+ <div className="score-bar-track">
16
+ <div className={`score-bar-fill ${cls}`} style={{ width: `${pct}%` }} />
17
+ </div>
18
+ <span className={`score-bar-value ${cls}`}>{value}/{max}</span>
19
+ </div>
20
+ );
21
+ }
22
+
23
+ function PriorityBadge({ priority }) {
24
+ return <span className={`priority-badge priority-${priority}`}>{priority.toUpperCase()}</span>;
25
+ }
26
+
27
  export default function Report({ data, onReset }) {
28
  const { report, details, meta } = data;
29
+ const [activeSection, setActiveSection] = useState('overview');
30
+
31
+ const sections = [
32
+ { id: 'overview', label: 'Overview' },
33
+ { id: 'communication', label: 'Communication Profile' },
34
+ { id: 'patterns', label: 'Interview Patterns' },
35
+ { id: 'actionplan', label: 'Action Plan' },
36
+ { id: 'breakdown', label: 'Q&A Breakdown' },
37
+ { id: 'tips', label: 'Next Steps' },
38
+ ];
39
 
40
  return (
41
  <div className="report">
 
44
  {report.overallScore}
45
  </div>
46
  <div className="score-label" style={{ color: 'var(--text-dim)' }}>Overall Score</div>
47
+ <div className={`verdict ${report.verdict}`}>{report.verdict.replace(/_/g, ' ')}</div>
48
  <div className="readiness">{report.readinessLevel}</div>
49
  </div>
50
 
51
+ <div className="report-tabs">
52
+ {sections.map(sec => (
53
+ <button
54
+ key={sec.id}
55
+ className={`report-tab ${activeSection === sec.id ? 'active' : ''}`}
56
+ onClick={() => setActiveSection(sec.id)}
57
+ >
58
+ {sec.label}
59
+ </button>
60
+ ))}
61
  </div>
62
 
63
+ <div className="report-tab-content">
64
+ {activeSection === 'overview' && (
65
+ <>
66
+ <div className="report-card">
67
+ <h3>Summary</h3>
68
+ <p className="report-summary">{report.summary}</p>
69
+ </div>
70
 
71
+ <div className="report-card strengths">
72
+ <h3>Top Strengths</h3>
73
+ <ul>{report.topStrengths?.map((s, i) => <li key={i}>{s}</li>)}</ul>
74
+ </div>
75
 
76
+ <div className="report-card improve">
77
+ <h3>Areas to Improve</h3>
78
+ <ul>{report.areasToImprove?.map((a, i) => <li key={i}>{a}</li>)}</ul>
79
+ </div>
80
 
81
+ <div className="report-card">
82
+ <h3>Recommendation</h3>
83
+ <p className="report-summary">{report.recommendation}</p>
84
+ </div>
85
+ </>
86
+ )}
87
+
88
+ {activeSection === 'communication' && report.communicationProfile && (
89
+ <div className="report-card">
90
+ <h3>Communication Profile</h3>
91
+ <p className="section-desc">How you come across in an interview setting, scored across five key dimensions.</p>
92
+ <div className="comm-scores">
93
+ <ScoreBar label="Clarity" value={report.communicationProfile.clarity} />
94
+ <ScoreBar label="Conciseness" value={report.communicationProfile.conciseness} />
95
+ <ScoreBar label="Confidence" value={report.communicationProfile.confidence} />
96
+ <ScoreBar label="Storytelling" value={report.communicationProfile.storytelling} />
97
+ <ScoreBar label="Technical Articulation" value={report.communicationProfile.technicalArticulation} />
98
+ </div>
99
+ </div>
100
+ )}
101
+
102
+ {activeSection === 'patterns' && report.interviewPatterns && (
103
+ <div className="report-card">
104
+ <h3>Interview Patterns</h3>
105
+ <p className="section-desc">Patterns observed across all your answers.</p>
106
+
107
+ <div className="pattern-trajectory">
108
+ <span className="trajectory-label">Performance Trajectory:</span>
109
+ <span className={`trajectory-value trajectory-${report.interviewPatterns.trajectory}`}>
110
+ {report.interviewPatterns.trajectory === 'improving' ? 'Improving' :
111
+ report.interviewPatterns.trajectory === 'declining' ? 'Declining' : 'Stable'}
112
  </span>
113
+ </div>
114
+
115
+ {report.interviewPatterns.consistentStrengths?.length > 0 && (
116
+ <div className="pattern-section">
117
+ <h4>Consistent Strengths</h4>
118
+ <ul className="pattern-list pattern-strengths">
119
+ {report.interviewPatterns.consistentStrengths.map((p, i) => <li key={i}>{p}</li>)}
120
+ </ul>
121
+ </div>
122
+ )}
123
+
124
+ {report.interviewPatterns.consistentWeaknesses?.length > 0 && (
125
+ <div className="pattern-section">
126
+ <h4>Consistent Weaknesses</h4>
127
+ <ul className="pattern-list pattern-weaknesses">
128
+ {report.interviewPatterns.consistentWeaknesses.map((p, i) => <li key={i}>{p}</li>)}
129
+ </ul>
130
+ </div>
131
+ )}
132
  </div>
133
+ )}
134
+
135
+ {activeSection === 'actionplan' && report.actionPlan?.length > 0 && (
136
+ <div className="report-card">
137
+ <h3>Personalized Action Plan</h3>
138
+ <p className="section-desc">Your prioritized roadmap to interview readiness.</p>
139
+ <div className="action-plan">
140
+ {report.actionPlan.map((item, i) => (
141
+ <div key={i} className="action-item">
142
+ <div className="action-header">
143
+ <PriorityBadge priority={item.priority} />
144
+ <span className="action-timeframe">{item.timeframe}</span>
145
+ </div>
146
+ <p className="action-text">{item.action}</p>
147
+ </div>
148
+ ))}
149
+ </div>
150
+ </div>
151
+ )}
152
+
153
+ {activeSection === 'breakdown' && (
154
+ <div className="report-card">
155
+ <h3>Question-by-Question Breakdown</h3>
156
+ {details.map((d, i) => (
157
+ <div key={i} className="qa-breakdown-item">
158
+ <p className="qa-question">Q{i + 1}: {d.question}</p>
159
+ <p className="qa-answer">
160
+ Your answer: {d.answer.substring(0, 200)}{d.answer.length > 200 ? '...' : ''}
161
+ </p>
162
+ <p className="qa-score-line">
163
+ Score: <span className={`qa-score ${d.score >= 7 ? 'good' : d.score >= 4 ? 'ok' : 'bad'}`}>
164
+ {d.score}/10
165
+ </span>
166
+ {' '}{d.feedback}
167
+ </p>
168
+ </div>
169
+ ))}
170
+ </div>
171
+ )}
172
+
173
+ {activeSection === 'tips' && (
174
+ <div className="report-card">
175
+ <h3>Tips for Your Next Practice Session</h3>
176
+ {report.mockInterviewTips?.length > 0 && (
177
+ <ul className="tips-list">
178
+ {report.mockInterviewTips.map((tip, i) => <li key={i}>{tip}</li>)}
179
+ </ul>
180
+ )}
181
+ </div>
182
+ )}
183
  </div>
184
 
185
  <button className="btn-secondary" onClick={onReset}>
frontend/src/styles/global.css CHANGED
@@ -3,6 +3,7 @@
3
  :root {
4
  --bg: #0a0a1a;
5
  --bg-card: #131332;
 
6
  --accent: #6c5ce7;
7
  --accent-light: #a29bfe;
8
  --success: #00b894;
@@ -20,7 +21,7 @@ body {
20
  min-height: 100vh;
21
  }
22
 
23
- .app { max-width: 800px; margin: 0 auto; padding: 2rem 1.5rem; }
24
 
25
  .header { text-align: center; margin-bottom: 2rem; }
26
  .header h1 {
@@ -170,13 +171,41 @@ body {
170
 
171
  .eval-feedback { color: var(--text-dim); line-height: 1.5; margin-bottom: 1rem; text-align: center; }
172
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
173
  .eval-section { margin-top: 0.8rem; }
174
  .eval-section h4 { font-size: 0.9rem; margin-bottom: 0.4rem; }
175
  .eval-section ul { list-style: none; padding: 0; }
176
  .eval-section li { padding: 0.3rem 0; padding-left: 1.2rem; position: relative; color: var(--text-dim); font-size: 0.9rem; }
177
  .eval-section li::before { position: absolute; left: 0; }
178
- .eval-section.strengths li::before { content: ""; }
179
- .eval-section.improvements li::before { content: "💡"; }
180
 
181
  .sample-answer {
182
  margin-top: 1rem;
@@ -188,6 +217,160 @@ body {
188
  .sample-answer h4 { color: var(--success); margin-bottom: 0.4rem; font-size: 0.9rem; }
189
  .sample-answer p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.5; }
190
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
191
  /* Report */
192
  .report { animation: slideIn 0.5s ease; }
193
  .report-header {
@@ -215,6 +398,34 @@ body {
215
  .verdict.MAYBE { background: rgba(253,203,110,0.2); color: var(--warning); }
216
  .verdict.NO_HIRE { background: rgba(225,112,85,0.2); color: var(--danger); }
217
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
218
  .report-card {
219
  background: var(--bg-card);
220
  border-radius: 16px;
@@ -225,11 +436,112 @@ body {
225
  .report-card ul { list-style: none; padding: 0; }
226
  .report-card li { padding: 0.4rem 0; padding-left: 1.5rem; position: relative; color: var(--text-dim); }
227
  .report-card li::before { position: absolute; left: 0; }
228
- .report-card.strengths li::before { content: "💪"; }
229
- .report-card.improve li::before { content: "📈"; }
230
 
231
  .report-summary { color: var(--text-dim); line-height: 1.6; margin-top: 0.5rem; }
232
  .readiness { text-align: center; margin-top: 0.8rem; font-size: 1.1rem; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
233
 
234
  .btn-secondary {
235
  display: block;
@@ -259,4 +571,8 @@ body {
259
  @media (max-width: 600px) {
260
  .form-row { grid-template-columns: 1fr; }
261
  .header h1 { font-size: 1.6rem; }
 
 
 
 
262
  }
 
3
  :root {
4
  --bg: #0a0a1a;
5
  --bg-card: #131332;
6
+ --bg-card-alt: #1a1a40;
7
  --accent: #6c5ce7;
8
  --accent-light: #a29bfe;
9
  --success: #00b894;
 
21
  min-height: 100vh;
22
  }
23
 
24
+ .app { max-width: 860px; margin: 0 auto; padding: 2rem 1.5rem; }
25
 
26
  .header { text-align: center; margin-bottom: 2rem; }
27
  .header h1 {
 
171
 
172
  .eval-feedback { color: var(--text-dim); line-height: 1.5; margin-bottom: 1rem; text-align: center; }
173
 
174
+ /* Evaluation Tabs */
175
+ .eval-tabs {
176
+ display: flex;
177
+ flex-wrap: wrap;
178
+ gap: 0.4rem;
179
+ margin-bottom: 1.2rem;
180
+ border-bottom: 1px solid var(--border);
181
+ padding-bottom: 0.8rem;
182
+ }
183
+ .eval-tab {
184
+ padding: 0.4rem 0.8rem;
185
+ background: transparent;
186
+ border: 1px solid var(--border);
187
+ border-radius: 8px;
188
+ color: var(--text-dim);
189
+ cursor: pointer;
190
+ font-size: 0.8rem;
191
+ transition: all 0.2s;
192
+ }
193
+ .eval-tab:hover { border-color: var(--accent); color: var(--text); }
194
+ .eval-tab.active {
195
+ background: var(--accent);
196
+ border-color: var(--accent);
197
+ color: white;
198
+ }
199
+
200
+ .eval-tab-content { min-height: 100px; }
201
+
202
  .eval-section { margin-top: 0.8rem; }
203
  .eval-section h4 { font-size: 0.9rem; margin-bottom: 0.4rem; }
204
  .eval-section ul { list-style: none; padding: 0; }
205
  .eval-section li { padding: 0.3rem 0; padding-left: 1.2rem; position: relative; color: var(--text-dim); font-size: 0.9rem; }
206
  .eval-section li::before { position: absolute; left: 0; }
207
+ .eval-section.strengths li::before { content: "\2713"; color: var(--success); font-weight: bold; }
208
+ .eval-section.improvements li::before { content: "\2192"; color: var(--warning); }
209
 
210
  .sample-answer {
211
  margin-top: 1rem;
 
217
  .sample-answer h4 { color: var(--success); margin-bottom: 0.4rem; font-size: 0.9rem; }
218
  .sample-answer p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.5; }
219
 
220
+ /* STAR Analysis */
221
+ .star-analysis h4 { margin-bottom: 0.5rem; color: var(--accent-light); }
222
+ .star-desc { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 1rem; }
223
+ .star-item {
224
+ padding: 0.8rem 1rem;
225
+ margin-bottom: 0.6rem;
226
+ border-radius: 10px;
227
+ border-left: 4px solid var(--border);
228
+ }
229
+ .star-item-present { background: rgba(0, 184, 148, 0.06); border-left-color: var(--success); }
230
+ .star-item-missing { background: rgba(225, 112, 85, 0.06); border-left-color: var(--danger); }
231
+ .star-item-header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
232
+ .star-item-letter {
233
+ width: 28px; height: 28px;
234
+ display: flex; align-items: center; justify-content: center;
235
+ background: var(--accent);
236
+ color: white;
237
+ border-radius: 50%;
238
+ font-weight: 800;
239
+ font-size: 0.85rem;
240
+ }
241
+ .star-item-name { font-weight: 600; font-size: 0.95rem; }
242
+ .star-badge {
243
+ font-size: 0.7rem;
244
+ padding: 0.15rem 0.5rem;
245
+ border-radius: 10px;
246
+ font-weight: 600;
247
+ margin-left: auto;
248
+ }
249
+ .star-present { background: rgba(0,184,148,0.2); color: var(--success); }
250
+ .star-missing { background: rgba(225,112,85,0.2); color: var(--danger); }
251
+ .star-item-feedback { color: var(--text-dim); font-size: 0.85rem; line-height: 1.5; }
252
+
253
+ /* Score Bars */
254
+ .detailed-scores h4 { margin-bottom: 1rem; color: var(--accent-light); }
255
+ .score-bar-row {
256
+ display: flex;
257
+ align-items: center;
258
+ gap: 0.8rem;
259
+ margin-bottom: 0.7rem;
260
+ }
261
+ .score-bar-label {
262
+ width: 140px;
263
+ font-size: 0.85rem;
264
+ color: var(--text-dim);
265
+ flex-shrink: 0;
266
+ }
267
+ .score-bar-track {
268
+ flex: 1;
269
+ height: 8px;
270
+ background: var(--border);
271
+ border-radius: 4px;
272
+ overflow: hidden;
273
+ }
274
+ .score-bar-fill {
275
+ height: 100%;
276
+ border-radius: 4px;
277
+ transition: width 0.5s ease;
278
+ }
279
+ .score-bar-fill.good { background: var(--success); }
280
+ .score-bar-fill.ok { background: var(--warning); }
281
+ .score-bar-fill.bad { background: var(--danger); }
282
+ .score-bar-value {
283
+ width: 40px;
284
+ text-align: right;
285
+ font-size: 0.85rem;
286
+ font-weight: 700;
287
+ flex-shrink: 0;
288
+ }
289
+ .score-bar-value.good { color: var(--success); }
290
+ .score-bar-value.ok { color: var(--warning); }
291
+ .score-bar-value.bad { color: var(--danger); }
292
+
293
+ /* Language Check */
294
+ .language-check h4 { color: var(--accent-light); margin-bottom: 0.5rem; }
295
+ .language-section { margin-bottom: 1.2rem; }
296
+ .tag-list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0; }
297
+ .tag {
298
+ padding: 0.25rem 0.7rem;
299
+ border-radius: 14px;
300
+ font-size: 0.8rem;
301
+ font-weight: 600;
302
+ }
303
+ .tag-warning { background: rgba(253,203,110,0.15); color: var(--warning); }
304
+ .language-tip { color: var(--text-dim); font-size: 0.82rem; font-style: italic; margin-top: 0.4rem; }
305
+ .vague-list { list-style: none; padding: 0; }
306
+ .vague-list li { padding: 0.3rem 0; }
307
+ .vague-quote { color: var(--danger); font-style: italic; font-size: 0.9rem; }
308
+ .language-clean {
309
+ text-align: center;
310
+ padding: 2rem;
311
+ color: var(--success);
312
+ }
313
+ .clean-icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
314
+
315
+ /* Follow-up Questions */
316
+ .followup-section h4 { color: var(--accent-light); margin-bottom: 0.3rem; }
317
+ .followup-desc { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 1rem; }
318
+ .followup-list {
319
+ padding-left: 1.2rem;
320
+ }
321
+ .followup-list li {
322
+ padding: 0.5rem 0;
323
+ color: var(--text);
324
+ font-size: 0.95rem;
325
+ line-height: 1.5;
326
+ border-bottom: 1px solid rgba(45,45,94,0.5);
327
+ }
328
+ .followup-list li:last-child { border-bottom: none; }
329
+
330
+ /* Ideal Answer */
331
+ .ideal-answer-section h4 { color: var(--accent-light); margin-bottom: 0.3rem; }
332
+ .ideal-desc { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 1rem; }
333
+ .ideal-answer-box {
334
+ padding: 1.2rem;
335
+ background: rgba(0, 184, 148, 0.06);
336
+ border-left: 4px solid var(--success);
337
+ border-radius: 8px;
338
+ }
339
+ .ideal-answer-box p { color: var(--text-dim); line-height: 1.6; font-size: 0.92rem; }
340
+
341
+ /* Rewrite */
342
+ .rewrite-section h4 { color: var(--accent-light); margin-bottom: 0.3rem; }
343
+ .rewrite-desc { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 1rem; }
344
+ .rewrite-box {
345
+ padding: 1.2rem;
346
+ background: rgba(108, 92, 231, 0.08);
347
+ border-left: 4px solid var(--accent);
348
+ border-radius: 8px;
349
+ }
350
+ .rewrite-box p { color: var(--text-dim); line-height: 1.6; font-size: 0.92rem; }
351
+
352
+ /* Delivery Tips */
353
+ .delivery-section h4 { color: var(--accent-light); margin-bottom: 0.8rem; }
354
+ .delivery-list { list-style: none; padding: 0; }
355
+ .delivery-list li {
356
+ padding: 0.6rem 0.8rem;
357
+ padding-left: 2rem;
358
+ position: relative;
359
+ color: var(--text-dim);
360
+ font-size: 0.9rem;
361
+ line-height: 1.5;
362
+ margin-bottom: 0.4rem;
363
+ background: rgba(108, 92, 231, 0.05);
364
+ border-radius: 8px;
365
+ }
366
+ .delivery-list li::before {
367
+ content: "\25B6";
368
+ position: absolute;
369
+ left: 0.8rem;
370
+ color: var(--accent-light);
371
+ font-size: 0.7rem;
372
+ }
373
+
374
  /* Report */
375
  .report { animation: slideIn 0.5s ease; }
376
  .report-header {
 
398
  .verdict.MAYBE { background: rgba(253,203,110,0.2); color: var(--warning); }
399
  .verdict.NO_HIRE { background: rgba(225,112,85,0.2); color: var(--danger); }
400
 
401
+ /* Report Tabs */
402
+ .report-tabs {
403
+ display: flex;
404
+ flex-wrap: wrap;
405
+ gap: 0.4rem;
406
+ margin-bottom: 1.5rem;
407
+ }
408
+ .report-tab {
409
+ padding: 0.5rem 1rem;
410
+ background: var(--bg-card);
411
+ border: 1px solid var(--border);
412
+ border-radius: 10px;
413
+ color: var(--text-dim);
414
+ cursor: pointer;
415
+ font-size: 0.85rem;
416
+ font-weight: 500;
417
+ transition: all 0.2s;
418
+ }
419
+ .report-tab:hover { border-color: var(--accent); color: var(--text); }
420
+ .report-tab.active {
421
+ background: var(--accent);
422
+ border-color: var(--accent);
423
+ color: white;
424
+ font-weight: 600;
425
+ }
426
+
427
+ .report-tab-content { min-height: 150px; }
428
+
429
  .report-card {
430
  background: var(--bg-card);
431
  border-radius: 16px;
 
436
  .report-card ul { list-style: none; padding: 0; }
437
  .report-card li { padding: 0.4rem 0; padding-left: 1.5rem; position: relative; color: var(--text-dim); }
438
  .report-card li::before { position: absolute; left: 0; }
439
+ .report-card.strengths li::before { content: "\2713"; color: var(--success); font-weight: bold; }
440
+ .report-card.improve li::before { content: "\2192"; color: var(--warning); }
441
 
442
  .report-summary { color: var(--text-dim); line-height: 1.6; margin-top: 0.5rem; }
443
  .readiness { text-align: center; margin-top: 0.8rem; font-size: 1.1rem; }
444
+ .section-desc { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 1rem; }
445
+
446
+ /* Communication Profile */
447
+ .comm-scores { margin-top: 0.5rem; }
448
+
449
+ /* Patterns */
450
+ .pattern-trajectory {
451
+ display: flex;
452
+ align-items: center;
453
+ gap: 0.8rem;
454
+ margin-bottom: 1.2rem;
455
+ padding: 0.8rem 1rem;
456
+ background: var(--bg);
457
+ border-radius: 10px;
458
+ }
459
+ .trajectory-label { color: var(--text-dim); font-size: 0.9rem; }
460
+ .trajectory-value {
461
+ font-weight: 700;
462
+ font-size: 0.95rem;
463
+ padding: 0.2rem 0.8rem;
464
+ border-radius: 12px;
465
+ }
466
+ .trajectory-improving { background: rgba(0,184,148,0.15); color: var(--success); }
467
+ .trajectory-stable { background: rgba(253,203,110,0.15); color: var(--warning); }
468
+ .trajectory-declining { background: rgba(225,112,85,0.15); color: var(--danger); }
469
+
470
+ .pattern-section { margin-bottom: 1rem; }
471
+ .pattern-section h4 { font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--text); }
472
+ .pattern-list { list-style: none; padding: 0; }
473
+ .pattern-list li {
474
+ padding: 0.35rem 0;
475
+ padding-left: 1.3rem;
476
+ position: relative;
477
+ color: var(--text-dim);
478
+ font-size: 0.9rem;
479
+ }
480
+ .pattern-list li::before { position: absolute; left: 0; }
481
+ .pattern-strengths li::before { content: "\2713"; color: var(--success); font-weight: bold; }
482
+ .pattern-weaknesses li::before { content: "\2717"; color: var(--danger); }
483
+
484
+ /* Action Plan */
485
+ .action-plan { }
486
+ .action-item {
487
+ padding: 1rem;
488
+ margin-bottom: 0.8rem;
489
+ background: var(--bg);
490
+ border-radius: 10px;
491
+ border-left: 4px solid var(--border);
492
+ }
493
+ .action-header {
494
+ display: flex;
495
+ align-items: center;
496
+ gap: 0.8rem;
497
+ margin-bottom: 0.5rem;
498
+ }
499
+ .priority-badge {
500
+ font-size: 0.7rem;
501
+ padding: 0.15rem 0.6rem;
502
+ border-radius: 10px;
503
+ font-weight: 700;
504
+ letter-spacing: 0.5px;
505
+ }
506
+ .priority-high { background: rgba(225,112,85,0.2); color: var(--danger); }
507
+ .priority-medium { background: rgba(253,203,110,0.2); color: var(--warning); }
508
+ .priority-low { background: rgba(0,184,148,0.15); color: var(--success); }
509
+ .action-timeframe { color: var(--text-dim); font-size: 0.8rem; }
510
+ .action-text { color: var(--text-dim); font-size: 0.9rem; line-height: 1.5; }
511
+
512
+ /* Q&A Breakdown */
513
+ .qa-breakdown-item {
514
+ padding: 1rem 0;
515
+ border-bottom: 1px solid var(--border);
516
+ }
517
+ .qa-breakdown-item:last-child { border-bottom: none; }
518
+ .qa-question { font-weight: 600; margin-bottom: 0.3rem; font-size: 0.95rem; }
519
+ .qa-answer { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 0.3rem; }
520
+ .qa-score-line { font-size: 0.85rem; color: var(--text-dim); }
521
+ .qa-score { font-weight: 700; }
522
+ .qa-score.good { color: var(--success); }
523
+ .qa-score.ok { color: var(--warning); }
524
+ .qa-score.bad { color: var(--danger); }
525
+
526
+ /* Tips */
527
+ .tips-list { list-style: none; padding: 0; }
528
+ .tips-list li {
529
+ padding: 0.7rem 1rem;
530
+ padding-left: 2rem;
531
+ position: relative;
532
+ color: var(--text-dim);
533
+ font-size: 0.9rem;
534
+ line-height: 1.5;
535
+ margin-bottom: 0.4rem;
536
+ background: rgba(108, 92, 231, 0.05);
537
+ border-radius: 8px;
538
+ }
539
+ .tips-list li::before {
540
+ content: "\2605";
541
+ position: absolute;
542
+ left: 0.8rem;
543
+ color: var(--accent-light);
544
+ }
545
 
546
  .btn-secondary {
547
  display: block;
 
571
  @media (max-width: 600px) {
572
  .form-row { grid-template-columns: 1fr; }
573
  .header h1 { font-size: 1.6rem; }
574
+ .eval-tabs, .report-tabs { gap: 0.3rem; }
575
+ .eval-tab, .report-tab { font-size: 0.72rem; padding: 0.3rem 0.5rem; }
576
+ .score-bar-label { width: 100px; font-size: 0.78rem; }
577
+ .star-item-header { flex-wrap: wrap; }
578
  }