/**
 * NaijaRemoteJobs User Center - Main Stylesheet
 * Version: 2.0.0
 * Enqueued, cacheable, CDN-friendly.
 */

/* Base container */
.nrj-uc-wrap {
    max-width: 1120px;
    margin: 32px auto;
    padding: 24px;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #0f172a;
}

/* Two‑column shell */
.nrj-uc-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
}

/* Cards */
.nrj-uc-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

/* Sidebar */
.nrj-uc-aside {
    padding: 28px;
    background: linear-gradient(160deg, #0d1526 0%, #1a2b4a 100%);
    color: #fff;
}
.nrj-uc-aside h2 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.15;
}
.nrj-uc-aside p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
}
.nrj-uc-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* Main content */
.nrj-uc-main {
    padding: 28px;
}
.nrj-uc-main h1 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.2;
}

/* Grid for forms */
.nrj-uc-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
}
.nrj-uc-field {
    grid-column: span 12;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.nrj-uc-field.half {
    grid-column: span 6;
}
.nrj-uc-field label {
    font-weight: 600;
    font-size: 14px;
}
.nrj-uc-field input,
.nrj-uc-field select,
.nrj-uc-field textarea {
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.4;
    width: 100%;
    background: #fff;
    transition: border-color 0.2s;
}
.nrj-uc-field input:focus,
.nrj-uc-field select:focus,
.nrj-uc-field textarea:focus {
    border-color: #f97316;
    outline: none;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}
.nrj-uc-field textarea {
    min-height: 120px;
    resize: vertical;
}

/* Buttons */
.nrj-uc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 12px;
    padding: 12px 18px;
    background: #1a2b4a;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.nrj-uc-btn:hover {
    background: #0f1a2e;
    transform: translateY(-1px);
}
.nrj-uc-btn.alt {
    background: #f97316;
}
.nrj-uc-btn.alt:hover {
    background: #ea580c;
}
.nrj-uc-btn.ghost {
    background: #eef2ff;
    color: #1e293b;
}
.nrj-uc-btn.ghost:hover {
    background: #e0e7ff;
}

/* Alerts & notes */
.nrj-uc-note {
    padding: 14px 16px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    line-height: 1.6;
}
.nrj-uc-alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 16px;
}
.nrj-uc-alert.ok {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}
.nrj-uc-alert.err {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Stats grid (KPI) */
.nrj-uc-kv {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 18px 0;
}
.nrj-uc-kv div {
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    text-align: center;
}
.nrj-uc-kv strong {
    display: block;
    font-size: 22px;
    margin-bottom: 4px;
}
.nrj-uc-help {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}

/* Actions row */
.nrj-uc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

/* Tables (applications) */
.nrj-uc-table {
    width: 100%;
    border-collapse: collapse;
}
.nrj-uc-table th,
.nrj-uc-table td {
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 10px;
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}
.nrj-uc-table th {
    background: #f8fafc;
    font-weight: 600;
}

/* Avatar */
.nrj-uc-avatar {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

/* Progress bar */
.nrj-uc-progress {
    height: 12px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    margin: 10px 0 8px;
}
.nrj-uc-progress > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #1a2b4a, #f97316);
}

/* Resume preview (paper style) */
.nrj-uc-resume-paper {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    max-width: 760px;
    margin: 20px auto 0;
}
.nrj-uc-resume-header h2 {
    margin: 0;
    font-size: 28px;
}
.nrj-uc-resume-subtitle {
    margin-top: 6px;
    font-size: 15px;
    color: #475569;
    font-weight: 600;
}
.nrj-uc-resume-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    color: #334155;
    font-size: 13px;
}
.nrj-uc-resume-contact span {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 5px 10px;
}
.nrj-uc-resume-section {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}
.nrj-uc-resume-section h3 {
    margin: 0 0 10px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0f172a;
}
.nrj-uc-resume-entry {
    margin-bottom: 14px;
}
.nrj-uc-resume-meta {
    font-size: 13px;
    color: #64748b;
    margin: 2px 0 6px;
}
.nrj-uc-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.nrj-uc-pills span {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #1e293b;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 13px;
}
.nrj-uc-resume-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 900px) {
    .nrj-uc-shell {
        grid-template-columns: 1fr;
    }
    .nrj-uc-kv {
        grid-template-columns: 1fr 1fr;
    }
    .nrj-uc-field.half {
        grid-column: span 12;
    }
}
@media (max-width: 640px) {
    .nrj-uc-wrap {
        padding: 14px;
    }
    .nrj-uc-main, .nrj-uc-aside {
        padding: 20px;
    }
    .nrj-uc-kv {
        grid-template-columns: 1fr;
    }
}

/* Print styles for PDF export */
@media print {
    .nrj-uc-wrap {
        max-width: none;
        margin: 0;
        padding: 0;
    }
    .nrj-uc-shell {
        display: block;
    }
    .nrj-uc-aside,
    .nrj-uc-actions,
    .nrj-uc-alert,
    .nrj-uc-note,
    .nrj-uc-badge,
    form,
    hr,
    .nrj-uc-help {
        display: none !important;
    }
    .nrj-uc-card {
        border: 0;
        box-shadow: none;
    }
    .nrj-uc-resume-paper {
        border: 0;
        box-shadow: none;
        padding: 0;
        max-width: none;
    }
}