/* =========================================================
   Kirinyaga County Jobs Portal — Unified Stylesheet
   kirinyaga-portal.css
   Import via: <link rel="stylesheet" href="/css/kirinyaga-portal.css">
   ========================================================= */

/* ── Google Font Import ── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,400&display=swap');

/* ── Design Tokens ── */
:root {
  --green-900: #003d00;
  --green-800: #005200;
  --green-700: #006400;
  --green-600: #007a00;
  --green-500: #009900;
  --green-100: #e8f5e9;
  --green-50:  #f1faf1;

  --gold-500: #FFD700;
  --gold-400: #ffe033;
  --gold-300: #fff0a0;
  --gold-100: #fffde7;

  --neutral-900: #1a1a1a;
  --neutral-700: #374151;
  --neutral-500: #6b7280;
  --neutral-300: #d1d5db;
  --neutral-100: #f3f4f6;
  --neutral-50:  #f9fafb;

  --danger:  #dc2626;
  --warning: #d97706;
  --info:    #0891b2;
  --success: #16a34a;

  --sidebar-w: 270px;
  --topbar-h: 72px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-sidebar: 4px 0 24px rgba(0,0,0,.15);

  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--neutral-100);
  color: var(--neutral-900);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ================================================================
   LAYOUT SHELL
   ================================================================ */

.kc-layout {
  display: flex;
  min-height: 100vh;
}

/* ── Overlay (mobile) ── */
.kc-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 199;
  backdrop-filter: blur(2px);
  animation: fadeIn .2s ease;
}
.kc-overlay.active { display: block; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ================================================================
   SIDEBAR
   ================================================================ */

.kc-sidebar {
  width: var(--sidebar-w);
  background: var(--green-900);
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 200;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sidebar);
  transition: transform var(--transition);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.15) transparent;
}

.kc-sidebar::-webkit-scrollbar { width: 4px; }
.kc-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 2px; }

/* Logo / Brand */
.kc-sidebar__brand {
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.kc-sidebar__coat {
  width: 42px;
  height: 42px;
  background: var(--gold-500);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--green-900);
  flex-shrink: 0;
  letter-spacing: -.5px;
}

.kc-sidebar__brand-text { flex: 1; min-width: 0; }
.kc-sidebar__brand-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kc-sidebar__brand-text span {
  font-size: .7rem;
  color: rgba(255,255,255,.6);
}

/* Close button (mobile only) */
.kc-sidebar__close {
  display: none;
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,.12);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 1;
}
.kc-sidebar__close:hover { background: rgba(255,255,255,.22); }

/* User card */
.kc-sidebar__user {
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: 12px;
}

.kc-avatar {
  width: 46px; height: 46px;
  background: var(--gold-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--green-900);
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.25);
}

.kc-sidebar__user-info { flex: 1; min-width: 0; }
.kc-sidebar__user-info strong {
  display: block;
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kc-sidebar__user-info span {
  font-size: .72rem;
  color: rgba(255,255,255,.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

/* Nav */
.kc-sidebar__nav {
  flex: 1;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kc-nav-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  padding: 12px 12px 6px;
}

.kc-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  font-size: .88rem;
  font-weight: 500;
  position: relative;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.kc-nav-item:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}

.kc-nav-item.active {
  background: var(--gold-500);
  color: var(--green-900);
  font-weight: 700;
}

.kc-nav-item.active i { color: var(--green-900); }

.kc-nav-item i {
  width: 20px;
  font-size: 1.1rem;
  flex-shrink: 0;
  text-align: center;
}

.kc-nav-item .kc-badge {
  margin-left: auto;
  background: var(--gold-500);
  color: var(--green-900);
  font-size: .65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  font-family: var(--font-display);
}

.kc-nav-item.active .kc-badge {
  background: var(--green-700);
  color: var(--gold-500);
}

.kc-nav-item--danger:hover { background: rgba(220,38,38,.15); color: #fca5a5; }

/* Sidebar footer */
.kc-sidebar__footer {
  padding: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .7rem;
  color: rgba(255,255,255,.3);
  text-align: center;
}

/* ================================================================
   MAIN CONTENT
   ================================================================ */

.kc-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition: margin-left var(--transition);
}

/* ================================================================
   SIDEBAR COLLAPSED STATE (desktop only)
   ================================================================ */

:root { --sidebar-collapsed-w: 68px; }

body.kc-sidebar-collapsed .kc-sidebar {
  width: var(--sidebar-collapsed-w);
}

body.kc-sidebar-collapsed .kc-main {
  margin-left: var(--sidebar-collapsed-w);
}

/* Hide text elements */
body.kc-sidebar-collapsed .kc-sidebar__brand-text,
body.kc-sidebar-collapsed .kc-sidebar__user-info,
body.kc-sidebar-collapsed .kc-nav-label,
body.kc-sidebar-collapsed .kc-nav-item span,
body.kc-sidebar-collapsed .kc-nav-item .kc-badge,
body.kc-sidebar-collapsed .kc-sidebar__footer {
  display: none;
}

/* Center the icons */
body.kc-sidebar-collapsed .kc-sidebar__brand {
  justify-content: center;
  padding: 22px 12px 18px;
}

body.kc-sidebar-collapsed .kc-sidebar__user {
  justify-content: center;
  padding: 16px 12px;
}

body.kc-sidebar-collapsed .kc-sidebar__nav {
  padding: 14px 8px;
}

body.kc-sidebar-collapsed .kc-nav-item {
  justify-content: center;
  padding: 12px 0;
  gap: 0;
}

body.kc-sidebar-collapsed .kc-nav-item i {
  width: auto;
  font-size: 1.25rem;
}

/* Tooltip on hover when collapsed */
body.kc-sidebar-collapsed .kc-nav-item {
  position: relative;
}

body.kc-sidebar-collapsed .kc-nav-item::after {
  content: attr(data-label);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--neutral-900);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 9999;
}

body.kc-sidebar-collapsed .kc-nav-item:hover::after {
  opacity: 1;
}

/* ── Top Bar ── */
.kc-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  height: var(--topbar-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--neutral-300);
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}

.kc-topbar__left { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }

/* Hamburger */
.kc-hamburger {
  width: 40px; height: 40px;
  background: var(--neutral-100);
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--neutral-700);
  font-size: 1.2rem;
  transition: all var(--transition);
  flex-shrink: 0;
}
.kc-hamburger:hover { background: var(--green-100); border-color: var(--green-700); color: var(--green-700); }

.kc-topbar__titles { min-width: 0; }
.kc-topbar__titles h1 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--neutral-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kc-topbar__titles p {
  font-size: .78rem;
  color: var(--neutral-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kc-topbar__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.kc-topbar__right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.kc-topbar__avatar {
  width: 38px; height: 38px;
  background: var(--green-700);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  border: 2px solid var(--green-100);
  transition: border-color var(--transition);
}
.kc-topbar__avatar:hover { border-color: var(--gold-500); }

/* ── Page Body ── */
.kc-page {
  flex: 1;
  padding: 28px 24px;
}

/* ================================================================
   CARDS & CONTENT SECTIONS
   ================================================================ */

.kc-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px;
  margin-bottom: 24px;
}

.kc-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-700);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold-500);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ================================================================
   STAT CARDS GRID
   ================================================================ */

.kc-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.kc-stat {
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.kc-stat::after {
  content: '';
  position: absolute;
  bottom: -20px; right: -20px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
}

.kc-stat__icon { font-size: 1.8rem; }
.kc-stat__num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}
.kc-stat__label { font-size: .8rem; font-weight: 500; opacity: .85; }

/* Colour variants */
.kc-stat--green  { background: var(--green-800); color: #fff; }
.kc-stat--gold   { background: #d4a900; color: var(--green-900); }
.kc-stat--blue   { background: #0c6b8e; color: #fff; }
.kc-stat--red    { background: #991b1b; color: #fff; }

/* ================================================================
   ALERTS
   ================================================================ */

.kc-alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .88rem;
  font-weight: 500;
  animation: slideDown .3s ease;
}
@keyframes slideDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:none; } }

.kc-alert--success { background: #dcfce7; color: #14532d; border: 4px dashed var(--success); }
.kc-alert--danger  { background: #fee2e2; color: #7f1d1d; border: 4px dashed var(--danger); }
.kc-alert--info    { background: #e0f2fe; color: #0c4a6e; border: 4px dashed var(--info); }
.kc-alert--warning { background: #fef3c7; color: #78350f; border: 4px dashed var(--warning); }

/* ================================================================
   TABLES
   ================================================================ */

.kc-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.kc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}

.kc-table thead tr { background: var(--neutral-50); }
.kc-table th {
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--neutral-500);
  white-space: nowrap;
  border-bottom: 2px solid var(--neutral-300);
}

.kc-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--neutral-100);
  vertical-align: middle;
}

.kc-table tbody tr:hover { background: var(--green-50); }
.kc-table tbody tr:last-child td { border-bottom: none; }

/* ================================================================
   STATUS BADGES
   ================================================================ */

.kc-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: .03em;
  white-space: nowrap;
}
.kc-badge-status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .7;
}

.kc-badge-status--pending    { background: #fef3c7; color: #92400e; }
.kc-badge-status--reviewed   { background: #e0f2fe; color: #0c4a6e; }
.kc-badge-status--shortlisted{ background: #dcfce7; color: #14532d; }
.kc-badge-status--rejected   { background: #fee2e2; color: #7f1d1d; }
.kc-badge-status--hired      { background: #ede9fe; color: #4c1d95; }

/* ================================================================
   BUTTONS
   ================================================================ */

.kc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
}

.kc-btn--primary {
  background: var(--green-700);
  color: #fff;
  border-color: var(--green-700);
}
.kc-btn--primary:hover { background: var(--green-800); border-color: var(--green-800); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,100,0,.3); }

.kc-btn--outline {
  background: transparent;
  color: var(--green-700);
  border-color: var(--green-700);
}
.kc-btn--outline:hover { background: var(--green-100); }

.kc-btn--ghost {
  background: transparent;
  color: var(--neutral-500);
  border-color: var(--neutral-300);
}
.kc-btn--ghost:hover { background: var(--neutral-100); color: var(--neutral-700); }

.kc-btn--danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}
.kc-btn--danger:hover { background: #b91c1c; }

.kc-btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

.kc-btn--sm { padding: 7px 14px; font-size: .8rem; }
.kc-btn--lg { padding: 14px 32px; font-size: 1rem; }
.kc-btn--full { width: 100%; }

/* Icon-only action button */
.kc-icon-btn {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-size: .95rem;
  text-decoration: none;
}
.kc-icon-btn--view  { background: var(--green-100); color: var(--green-700); }
.kc-icon-btn--view:hover  { background: var(--green-700); color: #fff; }
.kc-icon-btn--del   { background: #fee2e2; color: var(--danger); }
.kc-icon-btn--del:hover   { background: var(--danger); color: #fff; }

/* ================================================================
   FORMS
   ================================================================ */

.kc-form-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.kc-form-grid-1 { display: grid; grid-template-columns: 1fr; gap: 20px; }

.kc-field { display: flex; flex-direction: column; gap: 6px; }

.kc-label {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  color: var(--neutral-700);
}
.kc-label .req { color: var(--danger); }

.kc-input,
.kc-textarea,
.kc-select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--neutral-300);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--neutral-900);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.kc-input:focus, .kc-textarea:focus, .kc-select:focus {
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(0,100,0,.1);
}
.kc-input.error, .kc-textarea.error { border-color: var(--danger); }
.kc-textarea { resize: vertical; min-height: 130px; }

.kc-field-error { font-size: .78rem; color: var(--danger); display: flex; align-items: center; gap: 4px; }
.kc-field-hint  { font-size: .78rem; color: var(--neutral-500); }

/* Upload zone */
.kc-upload {
  border: 2px dashed var(--neutral-300);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--neutral-50);
}
.kc-upload:hover, .kc-upload.dragover {
  border-color: var(--green-600);
  background: var(--green-50);
}
.kc-upload i { font-size: 2.2rem; color: var(--green-600); }
.kc-upload p { font-size: .88rem; color: var(--neutral-500); margin: 8px 0 4px; }
.kc-upload small { font-size: .75rem; color: var(--neutral-400, #9ca3af); }

.kc-file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--radius-sm);
  margin-top: 8px;
  font-size: .84rem;
}
.kc-file-item i { color: var(--green-700); }
.kc-file-item .name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc-file-item .remove { color: var(--danger); cursor: pointer; background: none; border: none; font-size: 1rem; line-height: 1; }

/* Checkbox/Radio */
.kc-check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: .88rem;
  color: var(--neutral-700);
  line-height: 1.55;
}
.kc-check-label input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--green-700);
  flex-shrink: 0;
}

/* ================================================================
   APPLICATION STATUS BANNER
   ================================================================ */

.kc-status-banner {
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.kc-status-banner i { font-size: 1.8rem; flex-shrink: 0; }
.kc-status-banner h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 3px; }
.kc-status-banner p  { font-size: .82rem; opacity: .85; }

.kc-status-banner--pending    { background: #fef3c7; color: #78350f; }
.kc-status-banner--reviewed   { background: #e0f2fe; color: #0c4a6e; }
.kc-status-banner--shortlisted{ background: #dcfce7; color: #14532d; }
.kc-status-banner--rejected   { background: #fee2e2; color: #7f1d1d; }
.kc-status-banner--hired      { background: #ede9fe; color: #4c1d95; }

/* ================================================================
   DETAIL GRID (2-col on desktop)
   ================================================================ */

.kc-detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

/* ================================================================
   TIMELINE
   ================================================================ */

.kc-timeline { padding-left: 0; list-style: none; }
.kc-timeline__item {
  display: flex;
  gap: 14px;
  padding-bottom: 20px;
  position: relative;
}
.kc-timeline__item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 10px; top: 24px;
  width: 2px;
  bottom: 0;
  background: var(--neutral-200, #e5e7eb);
}
.kc-timeline__dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}
.kc-timeline__text strong { font-size: .88rem; font-weight: 600; font-family: var(--font-display); display: block; }
.kc-timeline__text span   { font-size: .78rem; color: var(--neutral-500); }

/* ================================================================
   JOB CARD (browse/dashboard)
   ================================================================ */

.kc-jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.kc-job-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--neutral-200, #e5e7eb);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kc-job-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,.1); border-color: var(--green-700); }

.kc-job-card__title {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--neutral-900);
  line-height: 1.3;
}
.kc-job-card__meta { font-size: .8rem; color: var(--neutral-500); display: flex; align-items: center; gap: 6px; }
.kc-job-card__meta i { color: var(--green-600); }
.kc-job-card__footer { margin-top: auto; }

/* ================================================================
   EMPTY STATE
   ================================================================ */

.kc-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--neutral-400, #9ca3af);
}
.kc-empty i { font-size: 3.5rem; margin-bottom: 16px; display: block; }
.kc-empty h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--neutral-500); margin-bottom: 8px; }
.kc-empty p  { font-size: .88rem; margin-bottom: 20px; }

/* ================================================================
   PAGINATION
   ================================================================ */

.kc-pagination { display: flex; gap: 4px; flex-wrap: wrap; padding: 0; list-style: none; }
.kc-pagination li a,
.kc-pagination li span {
  display: flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px;
  padding: 0 8px;
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-sm);
  color: var(--neutral-700);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 500;
  transition: all var(--transition);
}
.kc-pagination li a:hover        { background: var(--green-100); border-color: var(--green-700); color: var(--green-700); }
.kc-pagination li.active span    { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.kc-pagination li.disabled span  { opacity: .4; cursor: not-allowed; }

/* ================================================================
   SECTION HEADINGS
   ================================================================ */

.kc-section-heading {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-700);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ================================================================
   JOB SUMMARY HEADER (apply page)
   ================================================================ */

.kc-job-header {
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.kc-job-header__meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.kc-job-header__meta span { font-size: .83rem; color: var(--neutral-600, #4b5563); display: flex; align-items: center; gap: 5px; }
.kc-job-header__meta i { color: var(--green-700); }

.kc-job-header__badge {
  background: var(--green-700);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  text-align: center;
}
.kc-job-header__badge strong { display: block; font-size: 1.4rem; }

/* ================================================================
   RESPONSIVE BREAKPOINTS
   ================================================================ */

/* ---- Large tablets / small laptops ---- */
@media (max-width: 1100px) {
  .kc-stats { grid-template-columns: repeat(2, 1fr); }
  .kc-detail-grid { grid-template-columns: 1fr; }
}

/* ---- Tablets ---- */
@media (max-width: 900px) {
  :root { --sidebar-w: 270px; }

  /* Sidebar becomes an off-canvas drawer */
  .kc-sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }
  .kc-sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-sidebar);
  }
  .kc-sidebar__close { display: flex; }

  /* Main takes full width */
  .kc-main { margin-left: 0 !important; }

  .kc-form-grid-2 { grid-template-columns: 1fr; }
}

/* ---- Mobile ---- */
@media (max-width: 600px) {
  .kc-page { padding: 16px; }
  .kc-topbar { padding: 0 16px; }
  .kc-topbar__titles h1 { font-size: .95rem; }

  .kc-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kc-stat__num { font-size: 1.5rem; }
  .kc-stat { padding: 16px; }

  .kc-card { padding: 16px; }

  /* Table: hide less-critical columns */
  .kc-table .hide-mobile { display: none; }

  .kc-job-header { flex-direction: column; }
  .kc-job-header__badge { width: 100%; }

  .kc-detail-grid { grid-template-columns: 1fr; }

  .kc-jobs-grid { grid-template-columns: 1fr; }

  .kc-status-banner { flex-direction: column; text-align: center; }
}

/* ---- Very small phones ---- */
@media (max-width: 380px) {
  .kc-stats { grid-template-columns: 1fr; }
}

/* ================================================================
   UTILITY HELPERS
   ================================================================ */

.kc-text-green  { color: var(--green-700); }
.kc-text-gold   { color: var(--gold-500); }
.kc-text-muted  { color: var(--neutral-500); }
.kc-text-danger { color: var(--danger); }
.kc-text-success{ color: var(--success); }

.kc-mt-0  { margin-top: 0; }
.kc-mt-1  { margin-top: 8px; }
.kc-mt-2  { margin-top: 16px; }
.kc-mt-3  { margin-top: 24px; }
.kc-mt-4  { margin-top: 32px; }
.kc-mb-0  { margin-bottom: 0; }
.kc-mb-1  { margin-bottom: 8px; }
.kc-mb-2  { margin-bottom: 16px; }
.kc-mb-3  { margin-bottom: 24px; }

.kc-flex        { display: flex; }
.kc-flex-center { display: flex; align-items: center; }
.kc-gap-1       { gap: 8px; }
.kc-gap-2       { gap: 16px; }
.kc-justify-end { justify-content: flex-end; }
.kc-justify-between { justify-content: space-between; }

.kc-w-full { width: 100%; }

.kc-divider {
  border: none;
  border-top: 1px solid var(--neutral-200, #e5e7eb);
  margin: 20px 0;
}

/* Link style */
a.kc-link { color: var(--green-700); text-decoration: none; font-weight: 500; }
a.kc-link:hover { text-decoration: underline; }


/* Tab Styles */
.tab-btn {
    padding: 15px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
    white-space: nowrap;
}

.tab-btn:hover {
    color: #006400;
}

.tab-btn.active {
    color: #006400;
    border-bottom-color: #FFD700;
}

.profile-tab {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Styles */
.form-control:focus {
    outline: none;
    border-color: #006400 !important;
    box-shadow: 0 0 0 3px rgba(0,100,0,0.1);
}

.form-control.is-invalid {
    border-color: #dc3545 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-photo-section {
        width: 100%;
    }

    .photo-container {
        width: 120px !important;
        height: 120px !important;
    }

    .photo-container img {
        width: 120px !important;
        height: 120px !important;
    }

    .tab-btn {
        padding: 12px 15px;
        font-size: 14px;
    }

    .profile-tab {
        padding: 20px 15px !important;
    }

    .profile-tab > div {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .tab-btn {
        font-size: 13px;
        padding: 10px 12px;
    }
}
