/* ── Career Centre shared styles ─────────────────────────────────────────── */

/* Layout ------------------------------------------------------------------ */
.career-layout {
    display: flex;
    min-height: calc(100vh - 64px);
    background: #f8fafc;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    border-left: 1px solid #e8edf3;
    border-right: 1px solid #e8edf3;
}

.career-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow: hidden;
}

.career-sidebar-header {
    padding: 20px 16px 16px;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.career-sidebar-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #6366f1;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    font-weight: 700;
    flex-shrink: 0;
}

.career-sidebar-company {
    font-size: .88rem;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.career-sidebar-email {
    font-size: .72rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.career-sidebar-status {
    display: inline-block;
    margin-top: 8px;
    font-size: .68rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.career-sidebar-status.verified  { background: #dcfce7; color: #166534; }
.career-sidebar-status.pending   { background: #fef9c3; color: #854d0e; }
.career-sidebar-status.rejected  { background: #fee2e2; color: #991b1b; }
.career-sidebar-status.suspended { background: #f1f5f9; color: #475569; }

.career-nav {
    padding: 8px 8px 32px;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 transparent;
}
.career-nav::-webkit-scrollbar { width: 4px; }
.career-nav::-webkit-scrollbar-track { background: transparent; }
.career-nav::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 4px; }
.career-nav::-webkit-scrollbar-thumb:hover { background: #cbd5e1; }

.career-nav-section {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 8px 10px 4px;
}

.career-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: background .12s, color .12s;
    margin-bottom: 2px;
}
.career-nav-link svg { flex-shrink: 0; opacity: .7; }
.career-nav-link:hover { background: #f1f5f9; color: #1e293b; }
.career-nav-link.active { background: #eff6ff; color: #2563eb; font-weight: 600; }
.career-nav-link.active svg { opacity: 1; }

.career-main {
    flex: 1;
    min-width: 0;
    padding: 32px 36px 60px;
}

/* Page header ------------------------------------------------------------- */
.career-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}
.career-page-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
}
.career-page-subtitle {
    font-size: .86rem;
    color: #64748b;
    margin-top: 4px;
}

/* Stats grid -------------------------------------------------------------- */
.career-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.career-stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
}
.career-stat-label {
    font-size: .74rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 6px;
}
.career-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}
.career-stat-hint {
    font-size: .72rem;
    color: #94a3b8;
    margin-top: 4px;
}
.career-stat-card.blue .career-stat-value { color: #2563eb; }
.career-stat-card.green .career-stat-value { color: #16a34a; }
.career-stat-card.orange .career-stat-value { color: #ea580c; }
.career-stat-card.purple .career-stat-value { color: #7c3aed; }

/* Panel ------------------------------------------------------------------- */
.career-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 26px 30px;
    margin-bottom: 20px;
}
.career-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 12px;
}
.career-panel-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
}

/* Table ------------------------------------------------------------------- */
.career-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.career-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .86rem;
}
.career-table th {
    text-align: left;
    padding: 8px 12px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #64748b;
    border-bottom: 2px solid #f1f5f9;
}
.career-table td {
    padding: 12px 12px;
    border-bottom: 1px solid #f8fafc;
    color: #334155;
    vertical-align: middle;
}
.career-table tr:last-child td { border-bottom: none; }
.career-table tr:hover td { background: #f8fafc; }
.career-table .td-muted { color: #94a3b8; font-size: .78rem; }

/* Badges ------------------------------------------------------------------ */
.career-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.career-badge.active     { background: #dcfce7; color: #166534; }
.career-badge.paused     { background: #fef9c3; color: #854d0e; }
.career-badge.closed     { background: #f1f5f9; color: #475569; }
.career-badge.new        { background: #dbeafe; color: #1d4ed8; }
.career-badge.reviewing  { background: #fef3c7; color: #92400e; }
.career-badge.shortlisted{ background: #ede9fe; color: #5b21b6; }
.career-badge.interview  { background: #dcfce7; color: #166534; }
.career-badge.accepted   { background: #d1fae5; color: #065f46; }
.career-badge.rejected   { background: #fee2e2; color: #991b1b; }
.career-badge.full_time  { background: #dbeafe; color: #1d4ed8; }
.career-badge.part_time  { background: #e0f2fe; color: #0369a1; }
.career-badge.contract   { background: #fce7f3; color: #9d174d; }
.career-badge.freelance  { background: #fef9c3; color: #854d0e; }

/* Buttons ----------------------------------------------------------------- */
.career-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    transition: all .2s ease;
    white-space: nowrap;
    line-height: 1;
}
.career-btn.primary {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}
.career-btn.primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,99,235,.3);
}
.career-btn.success {
    background: #16a34a;
    color: #fff;
    border-color: #16a34a;
}
.career-btn.success:hover {
    background: #15803d;
    border-color: #15803d;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(22,163,74,.28);
}
.career-btn.danger {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
}
.career-btn.danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    transform: translateY(-1px);
}
.career-btn.ghost {
    background: transparent;
    color: #374151;
    border-color: #d1d5db;
}
.career-btn.ghost:hover {
    border-color: #6b7280;
    background: #f9fafb;
    color: #111827;
}
.career-btn.sm { padding: 8px 16px; font-size: .85rem; border-radius: 8px; }

/* Forms ------------------------------------------------------------------- */
.career-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}
.career-form-full { grid-column: 1 / -1; }

.career-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 20px;
}
.career-field label {
    font-size: .82rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.4;
}
.career-field label .req { color: #dc2626; margin-left: 2px; }
.career-field input,
.career-field select,
.career-field textarea {
    padding: 12px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: .9rem;
    line-height: 1.5;
    color: #1e293b;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}
.career-field input:focus,
.career-field select:focus,
.career-field textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.career-field textarea { min-height: 90px; resize: vertical; }
.career-field .field-hint { font-size: .72rem; color: #94a3b8; }

/* Alert ------------------------------------------------------------------- */
.career-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: .83rem;
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.career-alert.error   { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.career-alert.success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.career-alert.info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; }

/* Register / standalone pages --------------------------------------------- */
.career-standalone {
    min-height: calc(100vh - 64px);
    background: #f8fafc;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 16px 64px;
}
.career-standalone-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 36px 40px;
    width: 100%;
    max-width: 720px;
}
.career-standalone-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.career-standalone-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 6px;
}
.career-standalone-desc {
    font-size: .87rem;
    color: #64748b;
    margin-bottom: 28px;
    line-height: 1.6;
}

/* Job create modal -------------------------------------------------------- */
.career-drawer {
    display: none;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}
.career-drawer.open { display: block; }

/* Empty state ------------------------------------------------------------- */
.career-empty {
    text-align: center;
    padding: 48px 24px;
    color: #94a3b8;
}
.career-empty svg { margin-bottom: 12px; opacity: .4; }
.career-empty p { font-size: .87rem; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 900px) {
    .career-stat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .career-layout { flex-direction: column; border: none; }
    .career-sidebar { width: 100%; height: auto; position: static; border-right: none; border-bottom: 1px solid #e2e8f0; }
    .career-sidebar-avatar { width: 32px; height: 32px; font-size: .82rem; }
    .career-main { padding: 20px 16px 40px; }
    .career-form-grid { grid-template-columns: 1fr; }
    .career-stat-grid { grid-template-columns: 1fr 1fr; }
    .career-standalone-card { padding: 24px 20px; }
}
@media (max-width: 480px) {
    .career-stat-grid { grid-template-columns: 1fr; }
    .career-main { padding: 16px 12px 32px; }
    .career-table th, .career-table td { padding: 8px 8px; font-size: .8rem; }
    .career-panel { border-radius: 8px; }
}
