/* ================================================================
   AI MBMS Jobline — Company Dashboard Styles
================================================================ */

.jbp-co-wrap { max-width: 100%; font-family: 'Work Sans', sans-serif; }

/* ── Header ── */
.jbp-co-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  background: #ffffff; border: 1.5px solid #E2E8F0;
  border-radius: 16px; padding: 24px 28px; margin-bottom: 20px;
}
.jbp-co-header-left { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.jbp-co-logo {
  width: 64px; height: 64px; object-fit: contain;
  border-radius: 10px; border: 1.5px solid #E2E8F0;
  background: #F8FAFC; padding: 4px; flex-shrink: 0;
}
.jbp-co-logo-placeholder {
  width: 64px; height: 64px; border-radius: 10px;
  background: linear-gradient(135deg, #056CF2, #0B0940);
  color: #ffffff; font-family: 'DM Serif Text', serif;
  font-size: 28px; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.jbp-co-company-name {
  font-family: 'DM Serif Text', serif;
  font-size: 22px; font-weight: 400; color: #0B0940; margin: 0 0 4px;
}
.jbp-co-hr-name { font-size: 13px; color: #64748B; margin: 0; }
.jbp-co-header-actions { display: flex; gap: 10px; }

/* ── Stats ── */
.jbp-co-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-bottom: 24px;
}
.jbp-co-stat-card {
  background: #ffffff; border: 1.5px solid #E2E8F0;
  border-radius: 12px; padding: 20px 16px;
  text-align: center; display: flex; flex-direction: column; gap: 6px;
  transition: box-shadow .2s;
}
.jbp-co-stat-card:hover { box-shadow: 0 4px 16px rgba(5,108,242,.10); }
.jbp-co-stat-green  { border-top: 3px solid #10b981; }
.jbp-co-stat-blue   { border-top: 3px solid #056CF2; }
.jbp-co-stat-accent { border-top: 3px solid #F27405; }
.jbp-co-stat-num {
  font-family: 'DM Serif Text', serif;
  font-size: 32px; font-weight: 400; color: #0B0940; line-height: 1;
}
.jbp-co-stat-label { font-size: 12px; color: #64748B; font-weight: 500; }

/* ── Tabs ── */
.jbp-co-tabs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-bottom: 2px solid #E2E8F0; margin-bottom: 24px;
}
.jbp-co-tab {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 10px; background: none; border: none;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  font-size: 14px; font-weight: 600; font-family: 'Work Sans', sans-serif;
  color: #94A3B8; cursor: pointer; transition: color .2s, border-color .2s;
}
.jbp-co-tab.active, .jbp-co-tab:hover { color: #056CF2; border-bottom-color: #056CF2; }
.jbp-co-tab svg { flex-shrink: 0; }
.jbp-co-tab-badge {
  background: #F27405; color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 1px 7px; border-radius: 999px; line-height: 1.6;
}

/* ── Panels ── */
.jbp-co-panel { display: none; }
.jbp-co-panel.active { display: block; }

/* ── Cards ── */
.jbp-co-card {
  background: #ffffff; border: 1.5px solid #E2E8F0;
  border-radius: 14px; overflow: hidden; margin-bottom: 20px;
}
.jbp-co-card:last-child { margin-bottom: 0; }
.jbp-co-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1.5px solid #E2E8F0;
  background: #F8FAFC;
}
.jbp-co-card-header h3 {
  font-family: 'DM Serif Text', serif;
  font-size: 18px; font-weight: 400; color: #0B0940; margin: 0;
}

/* ── Form fields inside cards ── */
.jbp-co-form-body { padding: 24px; }
.jbp-co-form-row { display: grid; gap: 16px; margin-bottom: 16px; }
.jbp-co-col-2 { grid-template-columns: 1fr 1fr; }
.jbp-co-col-3 { grid-template-columns: 1fr 1fr 1fr; }
.jbp-co-form-row:last-child { margin-bottom: 0; }
.jbp-co-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.jbp-co-field:last-child { margin-bottom: 0; }
.jbp-co-field label {
  font-size: 13px; font-weight: 600; color: #334155;
  font-family: 'Work Sans', sans-serif;
}
.jbp-co-field-checkbox { justify-content: flex-end; padding-bottom: 2px; }
.jbp-co-checkbox-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: #334155;
  cursor: pointer; font-family: 'Work Sans', sans-serif;
}
.jbp-co-hint { font-size: 12px; color: #94A3B8; font-family: 'Work Sans', sans-serif; font-weight: 400; }
.jbp-co-notice-small { font-size: 12px; color: #475569; margin: 6px 0 0; }
.jbp-co-notice-small strong { color: #0B0940; }
.jbp-co-private-badge {
  font-size: 12px; color: #475569; font-weight: 500;
  font-family: 'Work Sans', sans-serif; margin-left: 10px;
}

.jbp-co-field input,
.jbp-co-field select,
.jbp-co-field textarea {
  padding: 11px 14px; border: 1.5px solid #E2E8F0; border-radius: 8px;
  font-size: 15px; color: #020203; background: #ffffff;
  font-family: 'Work Sans', sans-serif;
  transition: border-color .2s, box-shadow .2s; box-sizing: border-box;
}
.jbp-co-field input:focus,
.jbp-co-field select:focus,
.jbp-co-field textarea:focus {
  outline: none; border-color: #056CF2;
  box-shadow: 0 0 0 3px rgba(5,108,242,.12);
}
.jbp-co-field textarea { resize: vertical; }
.jbp-co-form-footer {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 10px; padding-top: 16px; margin-top: 16px;
  border-top: 1px solid #E2E8F0; flex-wrap: wrap;
}
.jbp-co-save-msg { font-size: 13px; font-weight: 600; flex: 1; }
.jbp-co-save-msg.success { color: #10b981; }
.jbp-co-save-msg.error   { color: #ef4444; }

/* ── Job rows ── */
.jbp-co-job-row {
  display: flex; align-items: center; gap: 20px;
  padding: 18px 24px; border-bottom: 1px solid #E2E8F0;
  flex-wrap: wrap; transition: background .15s;
}
.jbp-co-job-row:last-of-type { border-bottom: none; }
.jbp-co-job-row:hover { background: #F8FAFC; }
.jbp-co-job-info { flex: 1; min-width: 200px; }
.jbp-co-job-title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.jbp-co-job-title { font-size: 16px; font-weight: 700; color: #0B0940; margin: 0; }
.jbp-co-job-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #64748B; }
.jbp-co-job-apps { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 80px; }
.jbp-co-app-count {
  font-family: 'DM Serif Text', serif;
  font-size: 28px; color: #056CF2; line-height: 1;
}
.jbp-co-app-label { font-size: 12px; color: #64748B; font-weight: 500; }
.jbp-co-job-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Status pills */
.jbp-co-status-pill {
  display: inline-block; padding: 3px 10px;
  border-radius: 999px; font-size: 12px; font-weight: 600;
}
.jbp-co-status-active { background: #d1fae5; color: #065f46; }
.jbp-co-status-draft  { background: #F1F5F9; color: #64748B; }

/* Tags */
.jbp-co-tag {
  display: inline-block; background: #EFF6FF; color: #056CF2;
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
}
.jbp-co-tag-accent { background: #FFF7ED; color: #F27405; }

/* ── Applicant panels ── */
.jbp-co-apps-panel,
.jbp-co-edit-panel {
  background: #F8FAFC; border-bottom: 1px solid #E2E8F0; padding: 20px 24px;
}
.jbp-co-apps-loading { font-size: 14px; color: #64748B; }

/* Applicant cards (inside job row panel) */
.jbp-co-applicant-card {
  background: #ffffff; border: 1.5px solid #E2E8F0;
  border-radius: 12px; padding: 18px 20px; margin-bottom: 12px;
}
.jbp-co-applicant-card:last-child { margin-bottom: 0; }
.jbp-co-applicant-top {
  display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap;
}
.jbp-co-applicant-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: #EFF6FF; color: #056CF2;
  font-family: 'DM Serif Text', serif; font-size: 20px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.jbp-co-applicant-info { flex: 1; min-width: 140px; display: flex; flex-direction: column; gap: 3px; }
.jbp-co-applicant-name  { font-size: 15px; font-weight: 700; color: #0B0940; }
.jbp-co-applicant-email { font-size: 13px; color: #056CF2; text-decoration: none; }
.jbp-co-applicant-email:hover { text-decoration: underline; }
.jbp-co-applicant-date  { font-size: 12px; color: #94A3B8; }
.jbp-co-applicant-actions-right {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; margin-left: auto;
}
.jbp-co-applicant-cover { margin-top: 14px; padding-top: 14px; border-top: 1px solid #E2E8F0; }
.jbp-co-cover-label {
  display: block; font-size: 11px; font-weight: 700;
  color: #94A3B8; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px;
}
.jbp-co-applicant-cover p { font-size: 14px; color: #334155; margin: 0; line-height: 1.6; }

/* Applicant rows (all applicants panel) */
.jbp-co-applicant-row {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 24px; border-bottom: 1px solid #E2E8F0; flex-wrap: wrap;
}
.jbp-co-applicant-row:last-child { border-bottom: none; }
.jbp-co-app-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: #EFF6FF; color: #056CF2;
  font-family: 'DM Serif Text', serif; font-size: 18px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.jbp-co-app-main { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 3px; }
.jbp-co-app-main strong { font-size: 15px; font-weight: 700; color: #0B0940; }
.jbp-co-app-main a { font-size: 13px; color: #056CF2; text-decoration: none; }
.jbp-co-app-main a:hover { text-decoration: underline; }
.jbp-co-app-job { font-size: 12px; color: #64748B; }
.jbp-co-app-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.jbp-co-app-date { font-size: 12px; color: #94A3B8; white-space: nowrap; }

/* Status select */
.jbp-co-status-select {
  padding: 8px 12px; border: 1.5px solid #E2E8F0;
  border-radius: 8px; font-size: 13px; background: #ffffff;
  color: #020203; font-family: 'Work Sans', sans-serif; cursor: pointer;
  transition: border-color .2s;
}
.jbp-co-status-select:focus { outline: none; border-color: #056CF2; }

/* ── Filter row ── */
.jbp-co-filter-row { display: flex; gap: 10px; flex-wrap: wrap; }
.jbp-co-select {
  padding: 8px 12px; border: 1.5px solid #E2E8F0;
  border-radius: 8px; font-size: 14px; background: #ffffff;
  color: #020203; font-family: 'Work Sans', sans-serif; cursor: pointer;
}
.jbp-co-select:focus { outline: none; border-color: #056CF2; }

/* ── Logo upload ── */
.jbp-co-logo-upload-row {
  display: flex; align-items: center; gap: 24px;
  margin-bottom: 20px; padding-bottom: 20px;
  border-bottom: 1px solid #E2E8F0; flex-wrap: wrap;
}
.jbp-co-logo-preview { flex-shrink: 0; }
.jbp-co-logo-preview img {
  width: 80px; height: 80px; object-fit: contain;
  border-radius: 10px; border: 1.5px solid #E2E8F0; padding: 4px;
}
.jbp-co-logo-placeholder-lg {
  width: 80px; height: 80px; border-radius: 10px;
  background: linear-gradient(135deg, #056CF2, #0B0940);
  color: #ffffff; font-family: 'DM Serif Text', serif; font-size: 34px;
  display: flex; align-items: center; justify-content: center;
}
.jbp-co-upload-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; background: #EFF6FF; color: #056CF2;
  border: 1.5px solid #056CF2; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  font-family: 'Work Sans', sans-serif; cursor: pointer;
  transition: background .2s, color .2s;
}
.jbp-co-upload-btn:hover { background: #056CF2; color: #ffffff; }

/* ── Empty states ── */
.jbp-co-empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 48px 20px; text-align: center;
}
.jbp-co-empty-state svg { display: block; margin: 0 0 16px; }
.jbp-co-empty-state p { font-size: 15px; color: #64748B; margin: 0; }
.jbp-co-empty { font-size: 14px; color: #94A3B8; font-style: italic; padding: 20px 24px; }

/* ── New job card ── */
.jbp-co-new-job-card .jbp-co-card-header { cursor: default; }

/* ── Profile form ── */
.jbp-co-profile-form .jbp-co-field { margin-bottom: 16px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .jbp-co-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .jbp-co-stats { grid-template-columns: 1fr 1fr; }
  .jbp-co-tabs { grid-template-columns: 1fr; }
  .jbp-co-col-2, .jbp-co-col-3 { grid-template-columns: 1fr; }
  .jbp-co-job-row { flex-direction: column; align-items: flex-start; }
  .jbp-co-header { flex-direction: column; align-items: flex-start; }
  .jbp-co-logo-upload-row { flex-direction: column; }
}
