/* ============================================================
   Karjeros dienos – dashboard, apply form
   ============================================================ */

/* ---------- Dashboard wrapper ---------- */
.kd-dashboard {
    padding: 8px 0 60px;
}

/* ---------- Header ---------- */
.kd-dashboard__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.kd-dashboard__title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.2;
}

.kd-dashboard__subtitle {
    font-size: 14px;
    color: var(--grey-dark, #727B80);
    margin: 0;
}

/* ---------- Stat cards ---------- */
.kd-stat-cards {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.kd-stat-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px 24px;
    display: flex;
    flex-direction: column;
    min-width: 130px;
}

.kd-stat-card__value {
    font-size: 32px;
    font-weight: 700;
    color: var(--blue, #0B4DC7);
    line-height: 1;
    margin-bottom: 4px;
}

.kd-stat-card__label {
    font-size: 12px;
    color: var(--grey-dark, #727B80);
}

/* ---------- Tabs ---------- */
.kd-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 28px;
}

.kd-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--grey-dark, #727B80);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color .15s, border-color .15s;
    white-space: nowrap;
}

.kd-tab:hover { color: var(--blue, #0B4DC7); }

.kd-tab--active {
    color: var(--blue, #0B4DC7);
    border-bottom-color: var(--blue, #0B4DC7);
    font-weight: 600;
}

.kd-tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--blue, #0B4DC7);
    color: #fff;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
}

/* ---------- Table filter banner ---------- */
.kd-table-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    margin-bottom: 16px;
}

/* ---------- Table ---------- */
.kd-table-wrap {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.kd-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.kd-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--grey-dark, #727B80);
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

.kd-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
    color: var(--black-80, rgba(0,0,0,.8));
}

.kd-table tbody tr:last-child td { border-bottom: 0; }

.kd-table tbody tr:hover td { background: #fafafa; }

.kd-table a {
    color: var(--blue, #0B4DC7);
    text-decoration: none;
}
.kd-table a:hover { text-decoration: underline; }

.kd-table-muted { color: var(--grey-dark, #727B80); font-size: 12px; }
.kd-table-actions { white-space: nowrap; }
.kd-table-action {
    font-size: 12px;
    color: var(--grey-dark, #727B80);
    text-decoration: none;
    padding: 3px 8px;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    transition: border-color .15s, color .15s;
}
.kd-table-action:hover { border-color: var(--blue, #0B4DC7); color: var(--blue, #0B4DC7); }
.kd-table-action--danger { background: none; cursor: pointer; font-family: inherit; }
.kd-table-action--danger:hover { border-color: #dc2626; color: #dc2626; }

/* ---------- Application status badge ---------- */
.kd-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.kd-status--info      { background: #eff6ff; color: var(--blue, #0B4DC7); border: 1px solid #bfdbfe; }
.kd-status--success   { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.kd-status--warning   { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.kd-status--error     { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.kd-status--default   { background: #f9fafb; color: var(--grey-dark, #727B80); border: 1px solid #e5e7eb; }
.kd-status--interview { background: #f5f3ff; color: #7c3aed; border: 1px solid #ddd6fe; }

/* ---------- Status select in table ---------- */
.kd-status-form { margin: 0; }
.kd-input--sm {
    padding: 5px 8px;
    font-size: 12px;
    height: auto;
    width: auto;
}

/* ---------- CV current file ---------- */
.kd-cv-current {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 14px;
}

.kd-cv-current svg { color: var(--blue, #0B4DC7); flex-shrink: 0; }
.kd-cv-current__name { font-size: 13px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kd-cv-current__view {
    font-size: 12px;
    color: var(--blue, #0B4DC7);
    text-decoration: none;
    white-space: nowrap;
}
.kd-cv-current__view:hover { text-decoration: underline; }

/* ---------- Cover letter toggle ---------- */
.kd-cover-toggle {
    font-size: 12px;
    margin-top: 4px;
}
.kd-cover-toggle summary {
    cursor: pointer;
    color: var(--blue, #0B4DC7);
}
.kd-cover-toggle summary:hover { text-decoration: underline; }
.kd-cover-text {
    margin: 8px 0 0;
    padding: 8px;
    background: #f9fafb;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.6;
    max-width: 360px;
    white-space: pre-wrap;
}

/* ---------- Candidate profile card (employer applications view) ---------- */
.kd-cand-profile {
    display: flex;
    gap: 12px;
    margin: 8px 0 0;
    padding: 10px;
    background: #f9fafb;
    border-radius: 6px;
    max-width: 380px;
}

.kd-cand-profile__photo {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
}

.kd-cand-profile__body {
    flex: 1;
    min-width: 0;
}

.kd-cand-profile__title {
    font-size: 12px;
    font-weight: 600;
    color: var(--black, #1a1a1a);
    margin: 0 0 4px;
    line-height: 1.3;
}

.kd-cand-profile__meta {
    list-style: none;
    margin: 0 0 6px;
    padding: 0;
    font-size: 11px;
    color: var(--grey-dark, #727B80);
    display: flex;
    flex-wrap: wrap;
    gap: 2px 12px;
}

.kd-cand-profile__meta a {
    color: var(--blue, #0B4DC7);
    text-decoration: none;
}

.kd-cand-profile__meta a:hover { text-decoration: underline; }

.kd-cand-profile__bio {
    font-size: 11px;
    line-height: 1.6;
    color: var(--grey-dark, #727B80);
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ---------- CV link in employer table ---------- */
.kd-cv-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--blue, #0B4DC7) !important;
    text-decoration: none;
}
.kd-cv-link:hover { text-decoration: underline !important; }

/* ---------- Two-column layout (profile tab) ---------- */
.kd-dashboard__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.kd-dashboard__cols--single {
    grid-template-columns: minmax(0, 520px);
}

.kd-section-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 20px;
}

.kd-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.kd-required { color: #dc2626; }

/* ---------- Apply page ---------- */
.kd-apply-wrap {
    padding: 8px 0 60px;
    max-width: 840px;
    margin: 0 auto;
}

.kd-apply-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    align-items: start;
}

.kd-apply-job-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    position: sticky;
    top: 24px;
}

.kd-apply-job-card__label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--grey-dark, #727B80);
    margin: 0 0 8px;
}

.kd-apply-job-card__title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.3;
}

.kd-apply-job-card__company {
    font-size: 13px;
    color: var(--grey-dark, #727B80);
    margin: 0 0 10px;
}

.kd-apply-job-card__meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--grey-dark, #727B80);
    margin: 0;
}

.kd-apply-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 24px;
}

.kd-file-upload { display: flex; flex-direction: column; gap: 6px; }
.kd-input--file { padding: 8px; cursor: pointer; }

/* ---------- Ghost button ---------- */
.kd-btn--ghost {
    background: transparent;
    color: var(--grey-dark, #727B80);
    border: 1px solid #e5e7eb;
}
.kd-btn--ghost:hover {
    border-color: #d1d5db;
    color: var(--black-80, rgba(0,0,0,.8));
    background: #f9fafb;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .kd-dashboard__cols { grid-template-columns: 1fr; gap: 32px; }
    .kd-field-row       { grid-template-columns: 1fr; }
    .kd-stat-cards      { gap: 10px; }
    .kd-stat-card       { min-width: 100px; padding: 14px 18px; }
    .kd-apply-layout    { grid-template-columns: 1fr; }
    .kd-apply-job-card  { position: static; }
    .kd-tabs            { overflow-x: auto; }
    .kd-tab             { padding: 10px 14px; }
}

@media (max-width: 480px) {
    .kd-dashboard__header { flex-direction: column; align-items: flex-start; }
    .kd-stat-cards        { flex-direction: column; }
}

/* ---------- Profile page layout ---------- */
.kd-profile-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    align-items: start;
}

.kd-profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.kd-profile-main { min-width: 0; }

/* ---------- Media card (photo / logo / CV) ---------- */
.kd-profile-media-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
}

.kd-profile-media-card__title {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 14px;
    color: var(--black-80, rgba(0,0,0,.8));
}

/* ---------- Avatar preview ---------- */
.kd-avatar-preview {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.kd-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue, #0B4DC7), var(--purple, #333C75));
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kd-avatar-placeholder--lg {
    width: 100px;
    height: 100px;
    font-size: 36px;
    border-radius: 12px;
}

.kd-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
}

.kd-avatar-img--logo {
    border-radius: 10px;
    width: 100px;
    height: 100px;
}

/* ---------- Compact form inside media card ---------- */
.kd-form--compact .kd-field { margin-bottom: 10px; }

/* ---------- Textarea ---------- */
.kd-textarea {
    resize: vertical;
    min-height: 90px;
}

/* ---------- Radio group ---------- */
.kd-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.kd-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.kd-radio-label input[type="radio"] { flex-shrink: 0; }

/* ---------- Social links on employer public profile ---------- */
.kd-employer-header__social {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.kd-social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--blue, #0B4DC7);
    text-decoration: none;
    padding: 5px 12px;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    background: #eff6ff;
    transition: background .15s, border-color .15s;
}

.kd-social-link:hover {
    background: #dbeafe;
    border-color: var(--blue, #0B4DC7);
}

/* ---------- Employer about section ---------- */
.kd-employer-about {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px 28px;
    margin: 28px 0;
}

.kd-employer-about__title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px;
}

.kd-employer-about__text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--black-80, rgba(0,0,0,.8));
}

/* ---------- Employer header logo ---------- */
.kd-employer-header__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* ---------- Job card logo ---------- */
.kd-job-card__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

/* ---------- Narrow form variant ---------- */
.kd-form--narrow { max-width: 540px; }

/* ---------- Settings section (password change) ---------- */
.kd-settings-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

/* ---------- Danger zone ---------- */
.kd-danger-zone {
    margin-top: 40px;
    padding: 24px 28px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fff5f5;
}

.kd-danger-zone__title {
    font-size: 15px;
    font-weight: 700;
    color: #dc2626;
    margin: 0 0 8px;
}

.kd-danger-zone__desc {
    font-size: 13px;
    color: #7f1d1d;
    margin: 0 0 16px;
    line-height: 1.6;
}

.kd-danger-details summary { list-style: none; }
.kd-danger-details summary::-webkit-details-marker { display: none; }

.kd-danger-details__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #dc2626;
    cursor: pointer;
    padding: 6px 14px;
    border: 1px solid #fecaca;
    border-radius: 6px;
    background: #fff;
    transition: background .15s;
}
.kd-danger-details__toggle:hover { background: #fef2f2; }

/* ---------- Danger button ---------- */
.kd-btn--danger {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
}
.kd-btn--danger:hover { background: #b91c1c; border-color: #b91c1c; }

/* ---------- Save-candidate button (employer applications table) ---------- */
.kd-save-candidate-btn {
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
    padding: 4px 8px;
    color: #9ca3af;
    transition: color .15s, border-color .15s, background .15s;
}
.kd-save-candidate-btn:hover {
    color: #f59e0b;
    border-color: #fde68a;
    background: #fefce8;
}
.kd-save-candidate-btn--saved {
    color: #f59e0b;
    border-color: #fde68a;
    background: #fefce8;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .kd-profile-layout { grid-template-columns: 1fr; }
    .kd-profile-sidebar { flex-direction: row; flex-wrap: wrap; }
    .kd-profile-media-card { flex: 1; min-width: 160px; }
}

/* ---------- Resume form ---------- */
.kd-resume-section {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 20px;
}

.kd-resume-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.kd-resume-section__title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.kd-resume-section__opt {
    font-size: 12px;
    font-weight: 400;
    color: var(--grey-dark, #727B80);
}

.kd-resume-entry {
    position: relative;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    padding: 16px 44px 16px 16px;
    margin-bottom: 12px;
    background: #fafafa;
}

.kd-resume-entry--inline {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: end;
    padding: 12px 16px;
}

.kd-resume-entry__delete {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #9ca3af;
    padding: 0 4px;
    transition: color .15s;
}

.kd-resume-entry--inline .kd-resume-entry__delete {
    position: static;
    align-self: flex-end;
    margin-bottom: 2px;
    padding: 6px 8px;
    font-size: 16px;
}

.kd-resume-entry__delete:hover { color: #dc2626; }

.kd-date-to-hidden { display: none !important; }

/* ---------- Skills tag input ---------- */
.kd-skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 32px;
    margin-bottom: 8px;
}

.kd-skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 13px;
    color: var(--blue, #0B4DC7);
}

.kd-skill-tag__remove {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    color: #93c5fd;
    padding: 0 0 0 2px;
    transition: color .15s;
}
.kd-skill-tag__remove:hover { color: #dc2626; }

.kd-skill-input { max-width: 360px; display: block; }

.kd-hint {
    display: block;
    font-size: 12px;
    color: var(--grey-dark, #727B80);
    margin-top: 4px;
}

.kd-resume-submit { margin-top: 8px; }

@media (max-width: 600px) {
    .kd-resume-section { padding: 16px; }
    .kd-resume-entry--inline { grid-template-columns: 1fr; }
    .kd-resume-entry--inline .kd-resume-entry__delete { justify-self: end; }
}

/* Expand the theme's page wrapper so the sidebar grid has room */
.page-content-wrap:has(.kd-dashboard) {
    max-width: 100%;
}

/* ============================================================
   Sidebar dashboard layout (candidate / employer)
   ============================================================ */

.kd-dash-wrap {
    display: grid;
    grid-template-columns: 268px 1fr;
    gap: 32px;
    align-items: start;
}

/* ---- Sidebar ---- */
.kd-dash-sidebar {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    position: sticky;
    top: 24px;
}

.kd-dash-profile-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 20px 20px;
    border-bottom: 1px solid #f3f4f6;
    text-align: center;
}

/* Completion ring */
.kd-completion-ring-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
}

.kd-completion-ring {
    position: absolute;
    inset: 0;
    transform: rotate(-90deg);
}

.kd-completion-ring__bg  { stroke: #e5e7eb; }
.kd-completion-ring__fg  { stroke: #1b2a47; stroke-linecap: round; transition: stroke-dashoffset .5s ease; }

/* Avatar inside ring */
.kd-dash-avatar {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    overflow: hidden;
    background: #1b2a47;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
}
.kd-dash-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Completion % badge */
.kd-completion-pct {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background: #1b2a47;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    padding: 2px 8px;
    white-space: nowrap;
}

.kd-completion-photo-btn {
    font-size: 12px;
    color: #6b7280;
    cursor: pointer;
    margin-bottom: 6px;
    text-decoration: underline;
    text-decoration-style: dotted;
    white-space: nowrap;
}
.kd-completion-photo-btn:hover { color: #1b2a47; }

.kd-dash-profile-name {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 2px 0 0;
}

.kd-dash-profile-pct-label {
    font-size: 22px;
    font-weight: 800;
    color: #1b2a47;
    margin: 6px 0 4px;
}

.kd-dash-profile-hint {
    font-size: 12px;
    color: #9ca3af;
    margin: 0 0 14px;
    line-height: 1.4;
}

.kd-dash-complete-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--blue, #0B4DC7);
    color: #fff !important;
    text-decoration: none;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 600;
    transition: background .15s;
}
.kd-dash-complete-btn:hover { background: #0d3fa0; color: #fff !important; }

/* ---- Nav ---- */
.kd-dash-nav {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}

.kd-dash-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: background .12s, color .12s;
    position: relative;
}
.kd-dash-nav-item:hover {
    background: #f3f4f6;
    color: #111827;
}
.kd-dash-nav-item.is-active {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
}
.kd-dash-nav-item.is-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #1b2a47;
    border-radius: 0 2px 2px 0;
}

.kd-dash-nav-icon {
    flex-shrink: 0;
    width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    opacity: .75;
}

.kd-dash-nav-badge {
    margin-left: auto;
    background: #1b2a47;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    padding: 1px 7px;
    min-width: 20px;
    text-align: center;
}

.kd-dash-nav-sep {
    height: 1px;
    background: #f3f4f6;
    margin: 6px 0;
}

/* ---- Delete button ---- */
.kd-dash-delete-wrap {
    padding: 12px 20px 16px;
    border-top: 1px solid #f3f4f6;
}
.kd-dash-delete-btn {
    font-size: 13px;
    color: #dc2626;
    text-decoration: none;
    opacity: .75;
    transition: opacity .15s;
}
.kd-dash-delete-btn:hover { opacity: 1; }

/* ---- Content panel ---- */
.kd-dash-content {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 32px 36px;
    min-height: 400px;
}

.kd-dash-panel-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f3f4f6;
    color: #111827;
}

/* ---- Stat cards ---- */
.kd-dash-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
.kd-dash-stat {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px 16px;
    text-align: center;
}
.kd-dash-stat__value {
    font-size: 28px;
    font-weight: 800;
    color: #1b2a47;
    margin-bottom: 4px;
}
.kd-dash-stat__label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

/* ---- CV dropzone (large, dashboard tab) ---- */
.kd-cv-dropzone-large {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    background: #f9fafb;
    padding: 48px 32px;
    text-align: center;
    transition: border-color .15s, background .15s;
}
.kd-cv-dropzone-large.is-over {
    border-color: #3b82f6;
    background: #eff6ff;
}
.kd-cv-dropzone-large__icon {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
    color: #9ca3af;
}
.kd-cv-dropzone-large p {
    font-size: 15px;
    color: #374151;
    margin: 0 0 6px;
}
.kd-cv-dropzone-large .kd-hint {
    margin-bottom: 20px;
}
.kd-dash-or {
    color: #9ca3af;
    font-size: 13px;
    margin: 16px 0;
}

/* ---- Current CV badge ---- */
.kd-cv-current-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    color: #1e40af;
}

/* ---- Table ---- */
.kd-table-wrap { overflow-x: auto; }
.kd-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.kd-table th {
    text-align: left;
    padding: 8px 12px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    border-bottom: 1px solid #e5e7eb;
}
.kd-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}
.kd-table tr:last-child td { border-bottom: 0; }
.kd-table a { color: #1d4ed8; text-decoration: none; }
.kd-table a:hover { text-decoration: underline; }
.kd-table-muted { color: #9ca3af; font-size: 12px; }
.kd-table-action {
    background: none;
    border: none;
    color: #dc2626;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
}
.kd-table-action:hover { text-decoration: underline; }

/* ---- Status badges ---- */
.kd-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.kd-status--success { background: #dcfce7; color: #15803d; }
.kd-status--warning { background: #fef9c3; color: #854d0e; }
.kd-status--default { background: #f3f4f6; color: #6b7280; }

/* ---- Notice banners ---- */
.kd-notice {
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 18px;
}
.kd-notice--success { background: #dcfce7; border: 1px solid #86efac; color: #15803d; }
.kd-notice--error   { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

/* ---- Buttons (global helpers used in dashboard) ---- */
.kd-btn--danger {
    background: #dc2626;
    color: #fff;
    border: 2px solid #dc2626;
}
.kd-btn--danger:hover { background: #b91c1c; border-color: #b91c1c; }

/* ---- Responsive breakpoint ---- */
@media (max-width: 900px) {
    .kd-dash-wrap {
        grid-template-columns: 1fr;
    }
    .kd-dash-sidebar {
        position: static;
    }
    .kd-completion-ring-wrap { width: 100px; height: 100px; }
    .kd-dash-stats { grid-template-columns: repeat(3, 1fr); }
    .kd-dash-content { padding: 20px; }
}

@media (max-width: 540px) {
    .kd-dash-stats { grid-template-columns: 1fr 1fr; }
    .kd-dash-stats .kd-dash-stat:last-child { grid-column: 1 / -1; }
}

/* ============================================================
   Employer sidebar logo widget
   ============================================================ */

.kd-employer-logo-wrap {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 2px solid #e5e7eb;
}

.kd-employer-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f9fafb;
}

.kd-employer-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1b2a47;
    color: #fff;
    font-size: 38px;
    font-weight: 700;
}

/* Post job CTA in sidebar */
.kd-dash-post-job-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--blue, #0B4DC7);
    color: #fff !important;
    text-decoration: none;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 600;
    transition: background .15s;
    margin-bottom: 4px;
}
.kd-dash-post-job-btn:hover { background: #0d3fa0; color: #fff !important; }
