/* SmartJobPK CV Maker Styles */
#sjcv-wrap * { box-sizing: border-box; }
#sjcv-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 860px;
    margin: 0 auto;
    padding: 24px 16px;
    color: #1a1a1a;
}

/* Steps */
.sjcv-steps {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.sjcv-step {
    padding: 7px 16px;
    border-radius: 20px;
    border: 1px solid #ddd;
    font-size: 13px;
    cursor: pointer;
    background: #fff;
    color: #666;
    transition: all 0.15s;
    user-select: none;
}
.sjcv-step:hover { background: #f5f5f5; }
.sjcv-step.active {
    background: #f0faf6;
    color: #0f6e56;
    border-color: #5dcaa5;
    font-weight: 600;
}
.sjcv-step.done {
    background: #e1f5ee;
    color: #0f6e56;
    border-color: #5dcaa5;
}

/* Cards */
.sjcv-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
}
.sjcv-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    margin-bottom: 16px;
}

/* Grid */
.sjcv-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 600px) {
    .sjcv-row { grid-template-columns: 1fr; }
}

/* Fields */
.sjcv-field { margin-bottom: 14px; }
.sjcv-field label {
    font-size: 12px;
    color: #666;
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}
.sjcv-field input,
.sjcv-field select,
.sjcv-field textarea {
    width: 100%;
    font-size: 14px;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fafafa;
    color: #111;
    outline: none;
    transition: border 0.15s;
}
.sjcv-field input:focus,
.sjcv-field select:focus,
.sjcv-field textarea:focus {
    border-color: #1d9e75;
    background: #fff;
}
.sjcv-field textarea { min-height: 75px; resize: vertical; }

/* Buttons */
.sjcv-btn {
    padding: 9px 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    color: #111;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.15s;
}
.sjcv-btn:hover { background: #f5f5f5; }
.sjcv-btn-primary {
    background: #1d9e75;
    color: #fff;
    border-color: #1d9e75;
}
.sjcv-btn-primary:hover { background: #0f6e56; }
.sjcv-btn-row {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.sjcv-add-more {
    font-size: 13px;
    color: #1d9e75;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    border: none;
    background: none;
    padding: 0;
    font-weight: 500;
}
.sjcv-add-more:hover { text-decoration: underline; }

/* AI box */
.sjcv-ai-box {
    background: #f0faf6;
    border: 1px solid #9fe1cb;
    border-radius: 8px;
    padding: 14px;
    font-size: 14px;
    color: #111;
    line-height: 1.7;
    margin-top: 12px;
    display: none;
    white-space: pre-wrap;
}
.sjcv-loading {
    font-size: 13px;
    color: #888;
    margin-top: 8px;
    display: none;
}

/* Panels */
.sjcv-panel { display: none; }
.sjcv-panel.active { display: block; }

/* Entry dividers */
.sjcv-entry + .sjcv-entry {
    border-top: 1px solid #eee;
    margin-top: 14px;
    padding-top: 14px;
}

/* ── CV PREVIEW ── */
.sjcv-preview-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 28px 32px;
    font-family: Georgia, 'Times New Roman', serif;
}
.sjcv-cv-header {
    border-bottom: 2.5px solid #1d9e75;
    padding-bottom: 14px;
    margin-bottom: 18px;
}
.sjcv-cv-name {
    font-size: 26px;
    font-weight: 700;
    color: #111;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.sjcv-cv-jobtitle {
    font-size: 15px;
    color: #1d9e75;
    margin-top: 3px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.sjcv-cv-contact {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 10px;
    font-size: 12px;
    color: #555;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.sjcv-cv-section { margin-bottom: 18px; }
.sjcv-cv-section h3 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1d9e75;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 5px;
    margin-bottom: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.sjcv-cv-section p {
    font-size: 13px;
    color: #222;
    line-height: 1.7;
    margin: 0;
}
.sjcv-exp-item { margin-bottom: 12px; }
.sjcv-exp-item .exp-title {
    font-weight: 700;
    font-size: 14px;
    color: #111;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.sjcv-exp-item .exp-meta {
    font-size: 12px;
    color: #666;
    margin-top: 1px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.sjcv-exp-item .exp-desc {
    font-size: 13px;
    color: #333;
    margin-top: 5px;
    line-height: 1.6;
}
.sjcv-skill-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.sjcv-skill-tag {
    background: #e1f5ee;
    color: #0f6e56;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Print */
@media print {
    #sjcv-wrap .sjcv-steps,
    #sjcv-wrap .sjcv-card:not(.sjcv-preview-wrapper),
    #sjcv-wrap .sjcv-btn-row { display: none !important; }
    .sjcv-preview-card { border: none; padding: 0; }
    body { background: #fff; }
}
