Initial commit: LinkedIn Analyzer with Gemini 2.5 Flash and PHP Backend
This commit is contained in:
610
overlay.css
Normal file
610
overlay.css
Normal file
@@ -0,0 +1,610 @@
|
||||
/* overlay.css — LinkedIn Job Analyzer floating panel */
|
||||
|
||||
/* ─── Variables ─────────────────────────────────────────────────────────── */
|
||||
#lja-root {
|
||||
--lja-bg: #0a0a0f;
|
||||
--lja-bg2: #12121a;
|
||||
--lja-card: #1a1a26;
|
||||
--lja-card2: #1e1e2e;
|
||||
--lja-accent: #6c63ff;
|
||||
--lja-accent2: #9b5de5;
|
||||
--lja-glow: rgba(108, 99, 255, 0.25);
|
||||
--lja-border: rgba(108, 99, 255, 0.18);
|
||||
--lja-border2: rgba(108, 99, 255, 0.4);
|
||||
--lja-text: #ffffff;
|
||||
--lja-text2: #a0a0b8;
|
||||
--lja-text3: #606078;
|
||||
--lja-green: #00d67e;
|
||||
--lja-red: #ff4d6d;
|
||||
--lja-yellow: #ffb347;
|
||||
--lja-radius: 16px;
|
||||
--lja-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 40px var(--lja-glow);
|
||||
}
|
||||
|
||||
/* ─── Toggle Button ─────────────────────────────────────────────────────── */
|
||||
#lja-toggle {
|
||||
position: fixed;
|
||||
bottom: 24px;
|
||||
right: 24px;
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
background: linear-gradient(135deg, var(--lja-accent), var(--lja-accent2));
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 22px;
|
||||
cursor: pointer;
|
||||
z-index: 2147483646;
|
||||
box-shadow: 0 6px 24px var(--lja-glow), 0 2px 8px rgba(0,0,0,0.4);
|
||||
transition: transform 0.2s, box-shadow 0.2s;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
#lja-toggle:hover {
|
||||
transform: scale(1.1);
|
||||
box-shadow: 0 10px 32px var(--lja-glow), 0 2px 10px rgba(0,0,0,0.5);
|
||||
}
|
||||
|
||||
#lja-toggle:active { transform: scale(0.96); }
|
||||
|
||||
/* ─── Panel ─────────────────────────────────────────────────────────────── */
|
||||
#lja-panel {
|
||||
position: fixed;
|
||||
bottom: 24px;
|
||||
right: 24px;
|
||||
width: 420px;
|
||||
max-height: 88vh;
|
||||
background: var(--lja-bg);
|
||||
border: 1px solid var(--lja-border);
|
||||
border-radius: var(--lja-radius);
|
||||
box-shadow: var(--lja-shadow);
|
||||
display: none;
|
||||
flex-direction: column;
|
||||
z-index: 2147483647;
|
||||
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
|
||||
overflow: hidden;
|
||||
animation: ljaSlideUp 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
|
||||
backdrop-filter: blur(2px);
|
||||
}
|
||||
|
||||
@keyframes ljaSlideUp {
|
||||
from { opacity: 0; transform: translateY(20px) scale(0.97); }
|
||||
to { opacity: 1; transform: translateY(0) scale(1); }
|
||||
}
|
||||
|
||||
/* ─── Header ─────────────────────────────────────────────────────────────── */
|
||||
#lja-header {
|
||||
background: linear-gradient(135deg, #0e0e18 0%, #12101e 100%);
|
||||
border-bottom: 1px solid var(--lja-border);
|
||||
padding: 14px 16px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
cursor: move;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
#lja-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
#lja-title > span {
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
background: linear-gradient(135deg, var(--lja-accent), var(--lja-accent2));
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 17px;
|
||||
box-shadow: 0 0 14px var(--lja-glow);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
#lja-panel-name {
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
color: var(--lja-text);
|
||||
letter-spacing: 0.3px;
|
||||
}
|
||||
|
||||
#lja-status-bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
#lja-status-dot {
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
border-radius: 50%;
|
||||
background: var(--lja-green);
|
||||
animation: ljaPulse 2s infinite;
|
||||
}
|
||||
|
||||
@keyframes ljaPulse {
|
||||
0%, 100% { opacity: 1; }
|
||||
50% { opacity: 0.45; }
|
||||
}
|
||||
|
||||
#lja-status-text {
|
||||
font-size: 10.5px;
|
||||
color: var(--lja-text2);
|
||||
}
|
||||
|
||||
#lja-header-actions {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
pointer-events: all;
|
||||
}
|
||||
|
||||
#lja-minimize {
|
||||
background: rgba(255,255,255,0.06);
|
||||
border: 1px solid rgba(255,255,255,0.1);
|
||||
color: var(--lja-text2);
|
||||
border-radius: 7px;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
cursor: pointer;
|
||||
font-size: 16px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: all 0.2s;
|
||||
line-height: 1;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#lja-minimize:hover {
|
||||
background: rgba(255,255,255,0.12);
|
||||
color: var(--lja-text);
|
||||
}
|
||||
|
||||
/* ─── Job Preview ────────────────────────────────────────────────────────── */
|
||||
#lja-job-preview {
|
||||
padding: 12px 16px 10px;
|
||||
border-bottom: 1px solid var(--lja-border);
|
||||
flex-shrink: 0;
|
||||
background: var(--lja-bg2);
|
||||
}
|
||||
|
||||
#lja-job-title {
|
||||
font-size: 13.5px;
|
||||
font-weight: 700;
|
||||
color: var(--lja-text);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
#lja-job-company {
|
||||
font-size: 11.5px;
|
||||
color: var(--lja-text2);
|
||||
margin-top: 2px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
#lja-skills {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 5px;
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.lja-skill-tag {
|
||||
background: rgba(108, 99, 255, 0.12);
|
||||
border: 1px solid rgba(108, 99, 255, 0.25);
|
||||
color: #9e97ff;
|
||||
font-size: 10px;
|
||||
font-weight: 500;
|
||||
padding: 2px 8px;
|
||||
border-radius: 20px;
|
||||
}
|
||||
|
||||
/* ─── Manual Section ─────────────────────────────────────────────────────── */
|
||||
#lja-manual-section {
|
||||
padding: 0 16px;
|
||||
border-bottom: 1px solid var(--lja-border);
|
||||
flex-shrink: 0;
|
||||
background: var(--lja-bg2);
|
||||
}
|
||||
|
||||
#lja-manual-toggle {
|
||||
font-size: 11px;
|
||||
color: var(--lja-accent);
|
||||
cursor: pointer;
|
||||
padding: 8px 0;
|
||||
user-select: none;
|
||||
transition: opacity 0.2s;
|
||||
}
|
||||
|
||||
#lja-manual-toggle:hover { opacity: 0.75; }
|
||||
|
||||
#lja-manual-input {
|
||||
display: none;
|
||||
width: 100%;
|
||||
background: var(--lja-card);
|
||||
border: 1px solid var(--lja-border);
|
||||
border-radius: 8px;
|
||||
color: var(--lja-text);
|
||||
font-family: inherit;
|
||||
font-size: 11.5px;
|
||||
line-height: 1.5;
|
||||
padding: 8px 10px;
|
||||
resize: vertical;
|
||||
min-height: 80px;
|
||||
max-height: 140px;
|
||||
outline: none;
|
||||
box-sizing: border-box;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
#lja-manual-input:focus {
|
||||
border-color: var(--lja-accent);
|
||||
box-shadow: 0 0 0 3px var(--lja-glow);
|
||||
}
|
||||
|
||||
#lja-use-manual {
|
||||
display: none;
|
||||
margin-bottom: 10px;
|
||||
background: transparent;
|
||||
border: 1px solid var(--lja-border2);
|
||||
color: var(--lja-accent);
|
||||
border-radius: 7px;
|
||||
padding: 6px 14px;
|
||||
font-size: 11.5px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
#lja-use-manual:hover {
|
||||
background: rgba(108, 99, 255, 0.1);
|
||||
}
|
||||
|
||||
/* ─── Tabs ───────────────────────────────────────────────────────────────── */
|
||||
#lja-tabs {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 10px 16px 0;
|
||||
gap: 4px;
|
||||
flex-shrink: 0;
|
||||
background: var(--lja-bg);
|
||||
}
|
||||
|
||||
.lja-tab {
|
||||
flex: 1;
|
||||
background: transparent;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 10px;
|
||||
color: var(--lja-text3);
|
||||
font-size: 18px;
|
||||
padding: 7px 4px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
.lja-tab:hover {
|
||||
background: rgba(108,99,255,0.08);
|
||||
color: var(--lja-text2);
|
||||
border-color: var(--lja-border);
|
||||
}
|
||||
|
||||
.lja-tab.active {
|
||||
background: rgba(108, 99, 255, 0.15);
|
||||
border-color: var(--lja-border2);
|
||||
color: var(--lja-accent);
|
||||
box-shadow: 0 0 12px var(--lja-glow);
|
||||
}
|
||||
|
||||
#lja-tab-labels {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 4px 16px 8px;
|
||||
gap: 4px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.lja-tab-label {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
font-size: 9px;
|
||||
font-weight: 600;
|
||||
color: var(--lja-text3);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.4px;
|
||||
transition: color 0.2s;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.lja-tab-label.active { color: var(--lja-accent); }
|
||||
|
||||
/* ─── Content Panes ──────────────────────────────────────────────────────── */
|
||||
#lja-content {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: var(--lja-accent) transparent;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
#lja-content::-webkit-scrollbar { width: 3px; }
|
||||
#lja-content::-webkit-scrollbar-thumb {
|
||||
background: var(--lja-accent);
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.lja-pane {
|
||||
padding: 14px 16px;
|
||||
min-height: 180px;
|
||||
}
|
||||
|
||||
/* Empty state */
|
||||
.lja-pane-empty {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 40px 20px;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.lja-empty-icon { font-size: 32px; opacity: 0.4; }
|
||||
|
||||
.lja-empty-text {
|
||||
font-size: 12px;
|
||||
color: var(--lja-text3);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.lja-empty-text strong { color: var(--lja-accent); }
|
||||
|
||||
/* Result content */
|
||||
.lja-result {
|
||||
font-size: 12.5px;
|
||||
line-height: 1.7;
|
||||
color: #e0e0ec;
|
||||
}
|
||||
|
||||
.lja-result h3 {
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
color: #ffffff;
|
||||
margin: 16px 0 8px;
|
||||
padding: 6px 10px;
|
||||
background: rgba(108, 99, 255, 0.12);
|
||||
border-left: 3px solid var(--lja-accent);
|
||||
border-radius: 0 6px 6px 0;
|
||||
}
|
||||
|
||||
.lja-result h3:first-child { margin-top: 0; }
|
||||
|
||||
.lja-result h4 {
|
||||
font-size: 12.5px;
|
||||
font-weight: 600;
|
||||
color: #b8b0ff;
|
||||
margin: 12px 0 5px;
|
||||
}
|
||||
|
||||
.lja-result p {
|
||||
margin: 5px 0;
|
||||
color: #d0d0e0;
|
||||
}
|
||||
|
||||
.lja-result ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 6px 0;
|
||||
}
|
||||
|
||||
.lja-result ul li {
|
||||
padding: 4px 0 4px 16px;
|
||||
position: relative;
|
||||
color: #d0d0e0;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.lja-result ul li::before {
|
||||
content: '▸';
|
||||
position: absolute;
|
||||
left: 2px;
|
||||
color: var(--lja-accent);
|
||||
font-weight: 700;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.lja-result strong { color: #ffffff; font-weight: 700; }
|
||||
.lja-result em { color: #ffcc66; font-style: normal; font-weight: 500; }
|
||||
|
||||
/* Cache badge */
|
||||
.lja-cache-badge {
|
||||
font-size: 10px;
|
||||
color: var(--lja-accent);
|
||||
background: rgba(108,99,255,0.1);
|
||||
border: 1px solid var(--lja-border);
|
||||
border-radius: 20px;
|
||||
padding: 2px 10px;
|
||||
display: inline-block;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
/* Error */
|
||||
.lja-error {
|
||||
background: rgba(255, 77, 109, 0.08);
|
||||
border: 1px solid rgba(255, 77, 109, 0.25);
|
||||
border-radius: 10px;
|
||||
padding: 14px;
|
||||
font-size: 12px;
|
||||
color: var(--lja-red);
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
/* Auto-fill button */
|
||||
.lja-fill-btn {
|
||||
width: 100%;
|
||||
margin-top: 12px;
|
||||
background: rgba(0, 214, 126, 0.1);
|
||||
border: 1px solid rgba(0, 214, 126, 0.3);
|
||||
color: var(--lja-green);
|
||||
border-radius: 8px;
|
||||
padding: 8px;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
font-family: inherit;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.lja-fill-btn:hover {
|
||||
background: rgba(0, 214, 126, 0.18);
|
||||
}
|
||||
|
||||
/* ─── Actions Bar ────────────────────────────────────────────────────────── */
|
||||
#lja-actions {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
padding: 10px 16px 14px;
|
||||
border-top: 1px solid var(--lja-border);
|
||||
flex-shrink: 0;
|
||||
background: var(--lja-bg);
|
||||
}
|
||||
|
||||
#lja-analyze-btn {
|
||||
flex: 1;
|
||||
background: linear-gradient(135deg, var(--lja-accent), var(--lja-accent2));
|
||||
border: none;
|
||||
border-radius: 10px;
|
||||
color: white;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
padding: 11px 16px;
|
||||
cursor: pointer;
|
||||
font-family: inherit;
|
||||
letter-spacing: 0.3px;
|
||||
transition: all 0.2s;
|
||||
box-shadow: 0 4px 16px var(--lja-glow);
|
||||
}
|
||||
|
||||
#lja-analyze-btn:hover {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 8px 24px var(--lja-glow);
|
||||
}
|
||||
|
||||
#lja-analyze-btn:active { transform: translateY(0); }
|
||||
|
||||
#lja-analyze-btn:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
#lja-copy-btn {
|
||||
background: rgba(255,255,255,0.05);
|
||||
border: 1px solid var(--lja-border);
|
||||
border-radius: 10px;
|
||||
color: var(--lja-text2);
|
||||
font-size: 16px;
|
||||
padding: 10px 14px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
#lja-copy-btn:hover {
|
||||
background: rgba(108,99,255,0.1);
|
||||
border-color: var(--lja-border2);
|
||||
color: var(--lja-accent);
|
||||
}
|
||||
|
||||
/* ─── Loading ─────────────────────────────────────────────────────────────── */
|
||||
#lja-loading {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: rgba(10, 10, 15, 0.88);
|
||||
backdrop-filter: blur(4px);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 14px;
|
||||
border-radius: var(--lja-radius);
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.lja-spinner {
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
border: 3px solid rgba(108, 99, 255, 0.2);
|
||||
border-top-color: var(--lja-accent);
|
||||
border-radius: 50%;
|
||||
animation: ljaSpin 0.8s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes ljaSpin {
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
#lja-loading-text {
|
||||
font-size: 13px;
|
||||
color: var(--lja-text2);
|
||||
font-weight: 500;
|
||||
animation: ljaFade 1.5s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes ljaFade {
|
||||
0%, 100% { opacity: 1; }
|
||||
50% { opacity: 0.5; }
|
||||
}
|
||||
|
||||
/* ─── Panel Toast ────────────────────────────────────────────────────────── */
|
||||
#lja-panel-toast {
|
||||
position: absolute;
|
||||
bottom: 70px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%) translateY(8px);
|
||||
background: var(--lja-card);
|
||||
border: 1px solid var(--lja-border);
|
||||
color: var(--lja-text);
|
||||
padding: 7px 16px;
|
||||
border-radius: 20px;
|
||||
font-size: 11.5px;
|
||||
font-weight: 500;
|
||||
opacity: 0;
|
||||
transition: all 0.3s;
|
||||
pointer-events: none;
|
||||
white-space: nowrap;
|
||||
z-index: 20;
|
||||
}
|
||||
|
||||
#lja-panel-toast.show {
|
||||
opacity: 1;
|
||||
transform: translateX(-50%) translateY(0);
|
||||
}
|
||||
|
||||
/* ─── Scrollbar for secondary elements ───────────────────────────────────── */
|
||||
.lja-secondary-btn {
|
||||
background: transparent;
|
||||
border: 1px solid var(--lja-border);
|
||||
color: var(--lja-text2);
|
||||
border-radius: 8px;
|
||||
padding: 5px 12px;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
.lja-secondary-btn:hover {
|
||||
border-color: var(--lja-accent);
|
||||
color: var(--lja-accent);
|
||||
}
|
||||
Reference in New Issue
Block a user