resume-forge / static /style.css
aka38's picture
Upload 9 files
55c41bd verified
/* ═══════════════════════════════════════════════════════════
ResumeForge V2 β€” Premium Dark Mode + PDF Preview
═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--bg-primary: #06090f;
--bg-secondary: #0d1117;
--bg-surface: #161b22;
--bg-elevated: #1c2333;
--bg-hover: #21283b;
--border-default: rgba(99, 102, 241, 0.12);
--border-subtle: rgba(255, 255, 255, 0.06);
--border-accent: rgba(99, 102, 241, 0.3);
--text-primary: #e6edf3;
--text-secondary: #8b949e;
--text-muted: #545d68;
--text-accent: #93a3f8;
--accent: #6366f1;
--accent-hover: #818cf8;
--accent-glow: rgba(99, 102, 241, 0.15);
--green: #22c55e;
--green-bg: rgba(34, 197, 94, 0.08);
--red: #ef4444;
--red-bg: rgba(239, 68, 68, 0.08);
--amber: #f59e0b;
--amber-bg: rgba(245, 158, 11, 0.08);
--radius-sm: 6px;
--radius-md: 10px;
--radius-lg: 16px;
--radius-xl: 20px;
--ease: cubic-bezier(0.4, 0, 0.2, 1);
}
html { font-size: 15px; -webkit-font-smoothing: antialiased; }
body { font-family: 'Inter', -apple-system, sans-serif; background: var(--bg-primary); color: var(--text-primary); min-height: 100vh; overflow-x: hidden; }
/* ── Nav ── */
#navbar { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; padding: 0 24px; height: 56px; background: rgba(6,9,15,0.88); backdrop-filter: blur(20px) saturate(180%); border-bottom: 1px solid var(--border-subtle); }
.nav-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo { width: 28px; height: 28px; }
.nav-title { font-size: 1.05rem; font-weight: 700; background: linear-gradient(135deg,#e6edf3,#93a3f8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-badge { font-size: 0.55rem; font-weight: 700; padding: 2px 5px; border-radius: 4px; background: linear-gradient(135deg,#6366f1,#3b82f6); color: white; letter-spacing: 0.08em; text-transform: uppercase; }
.nav-steps { display: flex; align-items: center; margin: 0 auto; }
.step { display: flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 100px; cursor: default; transition: all 0.3s var(--ease); }
.step.active { background: var(--accent-glow); }
.step.completed .step-number { background: var(--green); color: white; }
.step-number { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 0.65rem; font-weight: 700; background: var(--bg-elevated); color: var(--text-muted); border: 1px solid var(--border-default); transition: all 0.3s var(--ease); }
.step.active .step-number { background: var(--accent); color: white; border-color: var(--accent); }
.step-label { font-size: 0.75rem; font-weight: 500; color: var(--text-muted); }
.step.active .step-label { color: var(--text-primary); }
.step.completed .step-label { color: var(--text-secondary); }
.step-connector { width: 36px; height: 2px; background: var(--border-default); }
.step-connector.completed { background: var(--green); }
.nav-spacer { width: 180px; flex-shrink: 0; }
/* ── Stages ── */
.stage { display: none; padding: 20px 24px 90px; max-width: 1500px; margin: 0 auto; }
.stage.active { display: block; animation: fadeIn 0.35s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: scale(1); } }
@keyframes spin { 100% { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }
/* ── Stage 1: Input Layout ── */
.input-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; min-height: calc(100vh - 170px); }
.input-left { display: flex; flex-direction: column; gap: 16px; }
.input-right { display: flex; flex-direction: column; }
.input-panel { background: var(--bg-secondary); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.panel-header { display: flex; align-items: center; gap: 12px; }
.panel-icon { width: 38px; height: 38px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.panel-icon svg { width: 20px; height: 20px; }
.resume-icon { background: rgba(99,102,241,0.12); color: #818cf8; }
.jd-icon { background: rgba(34,197,94,0.12); color: #4ade80; }
.panel-title { font-size: 0.95rem; font-weight: 700; }
.panel-subtitle { font-size: 0.75rem; color: var(--text-secondary); margin-top: 1px; }
/* ── Drop Zone ── */
.drop-zone { border: 2px dashed var(--border-default); border-radius: var(--radius-md); padding: 24px; text-align: center; transition: all 0.3s var(--ease); cursor: pointer; }
.drop-zone:hover, .drop-zone.dragover { border-color: var(--accent); background: var(--accent-glow); }
.drop-icon { width: 40px; height: 40px; color: var(--text-muted); margin: 0 auto 10px; }
.drop-text { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 4px; }
.drop-text strong { color: var(--text-accent); }
.drop-subtext { color: var(--text-muted); font-size: 0.7rem; margin-bottom: 8px; }
.file-info { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: rgba(99,102,241,0.08); border: 1px solid var(--border-accent); border-radius: var(--radius-sm); font-size: 0.8rem; color: var(--text-accent); }
.file-info svg { width: 16px; height: 16px; flex-shrink: 0; }
.file-info span { flex: 1; }
/* ── Textarea ── */
.textarea-wrapper { flex: 1; display: flex; flex-direction: column; }
.jd-textarea { width: 100%; flex: 1; min-height: 180px; padding: 14px; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); color: var(--text-primary); font-family: 'Inter', sans-serif; font-size: 0.82rem; line-height: 1.6; resize: vertical; outline: none; transition: border-color 0.2s var(--ease); }
.jd-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
/* ── PDF Panel ── */
.pdf-panel { background: var(--bg-secondary); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.pdf-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--border-subtle); flex-shrink: 0; }
.pdf-panel-title { font-size: 0.85rem; font-weight: 700; }
.compile-status { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; color: var(--text-accent); }
.mini-spinner { width: 14px; height: 14px; border: 2px solid var(--border-subtle); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pdf-container { flex: 1; overflow: auto; display: flex; align-items: flex-start; justify-content: center; padding: 16px; background: #1a1a2e; min-height: 400px; }
.pdf-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--text-muted); height: 100%; min-height: 300px; }
.pdf-placeholder svg { width: 56px; height: 56px; }
.pdf-placeholder p { font-size: 0.8rem; }
.pdf-canvas { max-width: 100%; box-shadow: 0 4px 24px rgba(0,0,0,0.4); border-radius: 2px; }
/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: var(--radius-sm); font-family: 'Inter', sans-serif; font-size: 0.82rem; font-weight: 600; border: none; cursor: pointer; transition: all 0.2s var(--ease); white-space: nowrap; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg,#6366f1,#4f46e5); color: white; box-shadow: 0 2px 12px rgba(99,102,241,0.3); }
.btn-primary:hover:not(:disabled) { background: linear-gradient(135deg,#818cf8,#6366f1); box-shadow: 0 4px 20px rgba(99,102,241,0.4); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text-secondary); border: 1px solid var(--border-default); }
.btn-outline:hover { border-color: var(--accent); color: var(--text-accent); background: var(--accent-glow); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-hover); }
.btn-small { padding: 5px 10px; font-size: 0.75rem; }
.btn-large { padding: 10px 24px; font-size: 0.9rem; }
.btn-icon { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: none; background: transparent; color: var(--text-muted); cursor: pointer; transition: all 0.2s; }
.btn-icon:hover { color: var(--text-primary); background: var(--bg-hover); }
.btn-icon svg { width: 14px; height: 14px; }
.action-bar { position: fixed; bottom: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; background: rgba(6,9,15,0.92); backdrop-filter: blur(20px); border-top: 1px solid var(--border-subtle); z-index: 50; }
/* ── Loading ── */
.loading-overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: rgba(6,9,15,0.88); backdrop-filter: blur(12px); }
.loading-card { text-align: center; padding: 40px; }
.loading-spinner { position: relative; width: 72px; height: 72px; margin: 0 auto 20px; }
.spinner-ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--border-subtle); border-top-color: var(--accent); animation: spin 1s linear infinite; }
.loading-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.loading-subtitle { color: var(--text-secondary); font-size: 0.85rem; max-width: 380px; margin: 0 auto; }
.loading-dots { display: flex; gap: 5px; justify-content: center; margin-top: 16px; }
.loading-dots span { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: pulse 1.4s ease-in-out infinite; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes pulse { 0%,100% { opacity: 0.3; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.2); } }
/* ── Stage 2: Review Layout ── */
.review-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; min-height: calc(100vh - 170px); }
.review-pdf-pane { position: sticky; top: 76px; height: calc(100vh - 170px); }
.review-pdf-pane .pdf-panel { height: 100%; }
.review-pdf-container { min-height: unset; }
.review-edits-pane { display: flex; flex-direction: column; gap: 12px; }
.review-summary-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; background: var(--bg-secondary); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }
.score-mini { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.score-num { font-size: 1.3rem; color: var(--text-secondary); }
.score-green { color: var(--green); }
.score-unit { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
.keyword-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.keyword-pill { padding: 3px 9px; background: var(--amber-bg); border: 1px solid rgba(245,158,11,0.2); border-radius: 100px; font-size: 0.7rem; font-weight: 500; color: var(--amber); }
.analysis-summary-text { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.6; padding: 0 2px; }
.edit-controls { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border-subtle); }
.edits-title { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 700; }
.edit-count { padding: 2px 7px; background: var(--accent-glow); border-radius: 100px; font-size: 0.7rem; color: var(--text-accent); }
.edit-controls-right { display: flex; gap: 6px; }
/* ── Edit Cards ── */
.edits-container { display: flex; flex-direction: column; gap: 10px; padding-bottom: 12px; }
.edit-card { background: var(--bg-secondary); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); overflow: hidden; transition: all 0.2s var(--ease); }
.edit-card:hover { border-color: var(--border-accent); }
.edit-card.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.edit-card-header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; }
.edit-checkbox { width: 18px; height: 18px; border-radius: 4px; border: 2px solid var(--border-default); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.2s; cursor: pointer; }
.edit-card.selected .edit-checkbox { background: var(--accent); border-color: var(--accent); }
.edit-checkbox svg { width: 11px; height: 11px; color: white; opacity: 0; transition: opacity 0.2s; }
.edit-card.selected .edit-checkbox svg { opacity: 1; }
.edit-section { flex: 1; font-size: 0.8rem; font-weight: 600; }
.edit-priority { padding: 2px 7px; border-radius: 4px; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.priority-high { background: var(--red-bg); color: var(--red); border: 1px solid rgba(239,68,68,0.2); }
.priority-medium { background: var(--amber-bg); color: var(--amber); border: 1px solid rgba(245,158,11,0.2); }
.priority-low { background: var(--green-bg); color: var(--green); border: 1px solid rgba(34,197,94,0.2); }
.edit-toggle-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; transition: transform 0.2s; padding: 3px; }
.edit-toggle-btn svg { width: 14px; height: 14px; }
.edit-card.expanded .edit-toggle-btn { transform: rotate(180deg); }
.edit-body { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.edit-card.expanded .edit-body { max-height: 600px; }
.edit-reasoning { padding: 0 16px 10px; font-size: 0.75rem; color: var(--text-muted); line-height: 1.5; font-style: italic; }
.edit-visual-diff { margin: 0 16px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.diff-col { border-radius: var(--radius-sm); padding: 12px; font-size: 0.8rem; line-height: 1.55; }
.diff-col-original { background: var(--red-bg); border: 1px solid rgba(239,68,68,0.15); color: #fca5a5; }
.diff-col-modified { background: var(--green-bg); border: 1px solid rgba(34,197,94,0.15); }
.diff-col-label { display: block; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; opacity: 0.5; }
.diff-col-text { white-space: pre-wrap; word-break: break-word; }
/* Editable suggestion textarea */
.edit-suggestion-textarea { width: 100%; min-height: 60px; padding: 10px; background: rgba(34,197,94,0.05); border: 1px solid rgba(34,197,94,0.2); border-radius: var(--radius-sm); color: #86efac; font-family: 'Inter', sans-serif; font-size: 0.8rem; line-height: 1.55; resize: vertical; outline: none; transition: border-color 0.2s; }
.edit-suggestion-textarea:focus { border-color: var(--green); box-shadow: 0 0 0 2px rgba(34,197,94,0.1); }
/* ── Stage 3: Export ── */
.export-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; min-height: calc(100vh - 170px); }
.export-pdf-pane .pdf-panel { height: 100%; }
.export-pdf-container { min-height: unset; }
.export-actions-pane { display: flex; align-items: center; justify-content: center; }
.export-card { text-align: center; padding: 40px; max-width: 400px; }
.export-card-icon { width: 56px; height: 56px; margin: 0 auto 14px; color: var(--green); animation: scaleIn 0.5s var(--ease); }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: scale(1); } }
.export-card-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.export-card-sub { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 28px; }
.export-buttons {
display: flex;
flex-direction: column;
gap: 1rem;
margin-bottom: 1rem;
}
.export-actions-secondary {
display: flex;
gap: 1rem;
margin-bottom: 2rem;
}
.export-actions-secondary .export-btn {
flex: 1;
}
.export-btn { width: 100%; justify-content: center; }
.export-success-badge { display: flex; align-items: center; gap: 4px; font-size: 0.7rem; font-weight: 600; color: var(--green); background: var(--green-bg); padding: 3px 8px; border-radius: 100px; }
.start-over-btn { margin-top: 20px; width: 100%; justify-content: center; }
/* ── Toast ── */
.toast { position: fixed; bottom: 76px; left: 50%; transform: translateX(-50%) translateY(20px); display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--bg-elevated); border: 1px solid var(--red); border-radius: var(--radius-md); box-shadow: 0 8px 32px rgba(0,0,0,0.4); z-index: 300; animation: slideUp 0.3s var(--ease) forwards; max-width: 480px; }
@keyframes slideUp { to { transform: translateX(-50%) translateY(0); } }
.toast-icon { color: var(--red); flex-shrink: 0; }
.toast-icon svg { width: 18px; height: 18px; }
.toast-message { font-size: 0.8rem; color: var(--text-primary); flex: 1; }
.toast-close { flex-shrink: 0; }
/* ── Modal ── */
.modal-overlay { position: fixed; inset: 0; z-index: 250; display: flex; align-items: center; justify-content: center; background: rgba(6,9,15,0.88); backdrop-filter: blur(16px); animation: fadeIn 0.3s var(--ease); }
.modal-card { background: var(--bg-secondary); border: 1px solid var(--border-accent); border-radius: var(--radius-xl); padding: 36px 32px; max-width: 420px; width: 90%; text-align: center; box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 40px var(--accent-glow); }
.modal-icon { width: 50px; height: 50px; margin: 0 auto 14px; color: var(--accent); }
.modal-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.modal-subtitle { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 18px; }
.modal-subtitle a { color: var(--text-accent); text-decoration: none; font-weight: 600; }
.modal-subtitle a:hover { text-decoration: underline; }
.modal-input-wrapper { margin-bottom: 14px; }
.modal-input { width: 100%; padding: 10px 14px; background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: var(--radius-md); color: var(--text-primary); font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; outline: none; transition: border-color 0.2s; }
.modal-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.modal-actions { margin-bottom: 10px; }
.modal-note { font-size: 0.68rem; color: var(--text-muted); font-style: italic; }
/* ── Utility ── */
.hidden { display: none !important; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
/* Textarea Resizer Handle */
textarea::-webkit-resizer {
background-color: var(--bg-hover);
border-radius: 3px;
box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}
@media (max-width: 960px) {
.input-layout, .review-layout, .export-layout { grid-template-columns: 1fr; }
.review-pdf-pane { position: static; height: 50vh; }
.nav-spacer { display: none; }
}