/* ============================================================
   JobPortalWP — Sidebar Dashboard CSS
   Used by both Student and Employer dashboards
   ============================================================ */

/* ── Wrapper ─────────────────────────────────────────────── */
.gjwp-panel-wrap {
  display: flex;
  gap: 0;
  min-height: 600px;
  border: 0.5px solid #E5E4DF;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  max-width: 1100px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.gjwp-panel-wrap * { box-sizing: border-box; }

/* ── Sidebar ─────────────────────────────────────────────── */
.gjwp-panel-sidebar {
  width: 210px;
  flex-shrink: 0;
  background: #F9F8F5;
  border-right: 0.5px solid #E5E4DF;
  display: flex;
  flex-direction: column;
}
.gjwp-panel-brand {
  padding: 16px;
  border-bottom: 0.5px solid #E5E4DF;
}
.gjwp-panel-brand-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #E1F5EE;
  color: #085041;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
  margin-bottom: 8px;
}
.gjwp-panel-brand p { font-size: 13px; font-weight: 600; color: #111; margin: 0 0 2px; }
.gjwp-panel-brand span { font-size: 11px; color: #888; }

.gjwp-panel-nav { padding: 8px 0; flex: 1; }
.gjwp-panel-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  font-size: 13px;
  cursor: pointer;
  color: #666;
  border-left: 2px solid transparent;
  transition: all .12s;
  text-decoration: none;
  position: relative;
}
.gjwp-panel-nav-item:hover { background: #F0EEE8; color: #222; text-decoration: none; }
.gjwp-panel-nav-item.active {
  color: #085041;
  border-left-color: #1D9E75;
  background: #E1F5EE;
  font-weight: 500;
}
.gjwp-panel-nav-item i { font-size: 16px; flex-shrink: 0; }
.gjwp-panel-nav-badge {
  margin-left: auto;
  background: #E24B4A;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 20px;
  min-width: 18px;
  text-align: center;
}
.gjwp-panel-nav-section {
  font-size: 10px;
  font-weight: 600;
  color: #AAA;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 12px 16px 4px;
}
.gjwp-panel-sidebar-footer {
  padding: 12px 16px;
  border-top: 0.5px solid #E5E4DF;
}
.gjwp-panel-sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #888;
  text-decoration: none;
}
.gjwp-panel-sidebar-footer a:hover { color: #E24B4A; }

/* ── Main Content ────────────────────────────────────────── */
.gjwp-panel-main {
  flex: 1;
  padding: 22px;
  overflow: auto;
  background: #FAFAF7;
  min-width: 0;
}
.gjwp-panel-screen { display: none; }
.gjwp-panel-screen.active { display: block; }

.gjwp-panel-page-title {
  font-size: 17px;
  font-weight: 600;
  color: #111;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* ── Stat Cards ──────────────────────────────────────────── */
.gjwp-dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.gjwp-dash-stat {
  background: #fff;
  border: 0.5px solid #E5E4DF;
  border-radius: 10px;
  padding: 14px 16px;
}
.gjwp-dash-stat-label { font-size: 11px; color: #888; margin-bottom: 4px; }
.gjwp-dash-stat-num { font-size: 26px; font-weight: 600; color: #111; line-height: 1; }
.gjwp-dash-stat-sub { font-size: 11px; color: #AAA; margin-top: 3px; }

/* ── Panel Card ──────────────────────────────────────────── */
.gjwp-panel-card {
  background: #fff;
  border: 0.5px solid #E5E4DF;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
}
.gjwp-panel-card-head {
  padding: 12px 16px;
  border-bottom: 0.5px solid #EFEFED;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FAFAF7;
}
.gjwp-panel-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #222;
  display: flex;
  align-items: center;
  gap: 7px;
}
.gjwp-panel-card-title i { font-size: 15px; color: #1D9E75; }

/* ── Row ─────────────────────────────────────────────────── */
.gjwp-panel-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 0.5px solid #EFEFED;
  transition: background .1s;
}
.gjwp-panel-row:last-child { border-bottom: none; }
.gjwp-panel-row:hover { background: #FAFAF7; }
.gjwp-panel-row-title { font-size: 13px; font-weight: 500; color: #111; margin: 0 0 3px; }
.gjwp-panel-row-meta { font-size: 12px; color: #777; margin: 0; }

/* ── Avatar ──────────────────────────────────────────────── */
.gjwp-panel-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #E1F5EE;
  color: #085041;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
  flex-shrink: 0;
}

/* ── Badges ──────────────────────────────────────────────── */
.gjwp-p-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.gjwp-p-green  { background: #EAF3DE; color: #27500A; }
.gjwp-p-blue   { background: #E6F1FB; color: #0C447C; }
.gjwp-p-amber  { background: #FAEEDA; color: #633806; }
.gjwp-p-red    { background: #FCEBEB; color: #791F1F; }
.gjwp-p-purple { background: #EEEDFE; color: #3C3489; }
.gjwp-p-gray   { background: #F1EFE8; color: #555; }
.gjwp-p-teal   { background: #E1F5EE; color: #085041; }

/* ── Buttons ─────────────────────────────────────────────── */
.gjwp-p-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: 0.5px solid #D8D6CF;
  background: #fff;
  color: #333;
  text-decoration: none;
  transition: all .12s;
  white-space: nowrap;
}
.gjwp-p-btn:hover { background: #F4F3EF; text-decoration: none; color: #111; }
.gjwp-p-btn-primary { background: #1D9E75; color: #fff; border-color: #1D9E75; }
.gjwp-p-btn-primary:hover { background: #0F6E56; color: #fff; }
.gjwp-p-btn-sm { padding: 5px 10px; font-size: 11px; }
.gjwp-p-btn-danger { background: #FCEBEB; color: #791F1F; border-color: #F5C4C4; }
.gjwp-p-btn-full { width: 100%; justify-content: center; }

/* ── Form Fields ─────────────────────────────────────────── */
.gjwp-p-field { margin-bottom: 13px; }
.gjwp-p-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #555;
  margin-bottom: 4px;
}
.gjwp-p-field input,
.gjwp-p-field select,
.gjwp-p-field textarea {
  width: 100%;
  padding: 9px 11px;
  border: 0.5px solid #D8D6CF;
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
  color: #222;
  font-family: inherit;
}
.gjwp-p-field input:focus,
.gjwp-p-field select:focus,
.gjwp-p-field textarea:focus {
  outline: none;
  border-color: #1D9E75;
  box-shadow: 0 0 0 3px rgba(29,158,117,.1);
}
.gjwp-p-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── Tabs ────────────────────────────────────────────────── */
.gjwp-p-tabs { display: flex; border-bottom: 1px solid #E5E4DF; margin-bottom: 14px; }
.gjwp-p-tab {
  padding: 9px 14px;
  font-size: 12px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: #777;
  transition: all .12s;
  white-space: nowrap;
}
.gjwp-p-tab:hover { color: #222; }
.gjwp-p-tab.active { color: #085041; border-bottom-color: #1D9E75; font-weight: 600; }
.gjwp-p-tab-count {
  background: #E5E4DF;
  padding: 1px 6px;
  border-radius: 20px;
  font-size: 10px;
  margin-left: 4px;
  color: #555;
}

/* ── Filter Pills ────────────────────────────────────────── */
.gjwp-p-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.gjwp-p-pill {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  border: 0.5px solid #D8D6CF;
  color: #666;
  background: #fff;
  transition: all .1s;
}
.gjwp-p-pill:hover { border-color: #1D9E75; color: #1D9E75; }
.gjwp-p-pill.active { background: #1D9E75; color: #fff; border-color: #1D9E75; }

/* ── Tracker stages ──────────────────────────────────────── */
.gjwp-tracker-stages {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.gjwp-tracker-stage {
  flex: 1;
  min-width: 60px;
  padding: 6px 4px;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  border: 0.5px solid #D8D6CF;
  background: #F4F3EF;
  color: #888;
  transition: all .12s;
}
.gjwp-tracker-stage.done   { background: #D4EDD8; color: #27500A; border-color: #9FD38F; }
.gjwp-tracker-stage.active { background: #1D9E75; color: #fff; border-color: #1D9E75; }
.gjwp-tracker-stage-arrow  { color: #CCC; font-size: 14px; }

/* ── Timeline ────────────────────────────────────────────── */
.gjwp-tl-wrap { padding: 4px 0; }
.gjwp-tl-item { display: flex; gap: 14px; padding-bottom: 14px; }
.gjwp-tl-dot-col { display: flex; flex-direction: column; align-items: center; width: 14px; }
.gjwp-tl-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.gjwp-tl-line { width: 1px; background: #E5E4DF; flex: 1; min-height: 16px; }
.gjwp-tl-body { flex: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.gjwp-tl-label { font-size: 13px; font-weight: 500; color: #111; }
.gjwp-tl-job { font-size: 11px; color: #888; display: block; margin-top: 2px; }
.gjwp-tl-date { font-size: 11px; padding: 2px 8px; border-radius: 20px; white-space: nowrap; font-weight: 500; }

/* ── Match bar ───────────────────────────────────────────── */
.gjwp-match-bar { height: 4px; background: #EBEBEB; border-radius: 2px; overflow: hidden; width: 70px; }
.gjwp-match-fill { height: 100%; background: #1D9E75; border-radius: 2px; }

/* ── Empty state ─────────────────────────────────────────── */
.gjwp-p-empty { text-align: center; padding: 40px 20px; color: #888; }
.gjwp-p-empty i { font-size: 32px; display: block; margin-bottom: 10px; color: #CCC; }
.gjwp-p-empty p { font-size: 14px; margin-bottom: 12px; }

/* ── Loading ─────────────────────────────────────────────── */
.gjwp-p-loading { text-align: center; padding: 30px; color: #888; font-size: 13px; }

/* ── Alert ───────────────────────────────────────────────── */
.gjwp-p-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gjwp-p-alert-success { background: #EAF3DE; color: #27500A; border: 0.5px solid #9FD38F; }
.gjwp-p-alert-error   { background: #FCEBEB; color: #791F1F; border: 0.5px solid #F5C4C4; }
.gjwp-p-alert-info    { background: #E6F1FB; color: #0C447C; border: 0.5px solid #B5D4F4; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 700px) {
  .gjwp-panel-wrap { flex-direction: column; border-radius: 10px; }
  .gjwp-panel-sidebar { width: 100%; border-right: none; border-bottom: 0.5px solid #E5E4DF; }
  .gjwp-panel-nav { display: flex; overflow-x: auto; padding: 0; }
  .gjwp-panel-nav-item { flex-direction: column; gap: 3px; padding: 10px 12px; font-size: 10px; border-left: none; border-bottom: 2px solid transparent; min-width: 60px; justify-content: center; }
  .gjwp-panel-nav-item.active { border-left: none; border-bottom-color: #1D9E75; }
  .gjwp-panel-nav-section { display: none; }
  .gjwp-panel-brand { display: none; }
  .gjwp-panel-sidebar-footer { display: none; }
  .gjwp-dash-stats { grid-template-columns: 1fr 1fr; }
  .gjwp-p-grid2 { grid-template-columns: 1fr; }
  .gjwp-panel-main { padding: 14px; }
}
