/* ================================
   Jobarivo Premium UI Tokens
   Developed by Adnan Shahid C/o Adnan-Themes
================================== */

:root {
  --jb-bg: #ffffff;
  --jb-text: #0b1220;
  --jb-muted: rgba(11, 18, 32, 0.70);
  --jb-border: rgba(11, 18, 32, 0.10);

  --jb-blue: #3b82f6;          /* light blue */
  --jb-blue-2: #2563eb;        /* deeper hover */
  --jb-blue-soft: rgba(59, 130, 246, 0.12);

  --jb-black: #0b1220;
  --jb-card: #ffffff;

  --jb-radius: 14px;
  --jb-radius-sm: 12px;

  --jb-shadow: 0 12px 30px rgba(2, 6, 23, 0.06);
  --jb-shadow-hover: 0 18px 42px rgba(2, 6, 23, 0.09);

  --jb-focus: 0 0 0 4px rgba(59, 130, 246, 0.18);
}

/* Reduced motion safe */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}


/* Jobarivo Phase 7 premium polish */
.joblance-ui { font-size: 14px; line-height: 1.5; }
.joblance-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(2, 6, 23, 0.04);
  padding: 16px;
  margin: 12px 0;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.joblance-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.06);
  border-color: rgba(59, 130, 246, 0.22);
}

.joblance-flex { display: flex; gap: 12px; align-items: center; }
.joblance-flex-between { justify-content: space-between; }
.joblance-title { margin: 0; font-size: 18px; }
.joblance-muted { opacity: 0.72; }

.joblance-table-wrap { overflow-x: auto; }
.joblance-table { width: 100%; border-collapse: collapse; }
.joblance-table th, .joblance-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  text-align: left;
  white-space: nowrap;
}
.joblance-row { transition: background 140ms ease; }
.joblance-row:hover { background: rgba(59, 130, 246, 0.04); }

.joblance-link { color: #2563eb; text-decoration: none; }
.joblance-link:hover { text-decoration: underline; }

.joblance-badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(2, 6, 23, 0.02);
}
.joblance-badge.is-submitted { border-color: rgba(59,130,246,0.25); background: rgba(59,130,246,0.07); }
.joblance-badge.is-shortlisted { border-color: rgba(16,185,129,0.25); background: rgba(16,185,129,0.08); }
.joblance-badge.is-rejected { border-color: rgba(239,68,68,0.25); background: rgba(239,68,68,0.06); }
.joblance-badge.is-hired { border-color: rgba(245,158,11,0.28); background: rgba(245,158,11,0.08); }

.joblance-pager { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.joblance-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  text-decoration: none;
  color: inherit;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}
.joblance-page:hover { transform: translateY(-1px); border-color: rgba(59,130,246,0.28); background: rgba(59,130,246,0.05); }
.joblance-page.is-current { border-color: rgba(59,130,246,0.35); background: rgba(59,130,246,0.10); }

.joblance-notice {
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(2, 6, 23, 0.02);
}
.joblance-notice.is-error { border-color: rgba(239,68,68,0.25); background: rgba(239,68,68,0.06); }
.joblance-notice.is-warn { border-color: rgba(245,158,11,0.28); background: rgba(245,158,11,0.08); }

.joblance-empty { text-align: center; padding: 24px 10px; }
.joblance-empty-icon { font-size: 26px; margin-bottom: 6px; }
.joblance-empty-title { font-weight: 600; margin-bottom: 4px; }
.joblance-empty-text { opacity: 0.8; }

.joblance-invite-btn.is-loading { opacity: 0.7; pointer-events: none; }
.joblance-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: rgba(11, 18, 32, 0.96);
  color: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 99999;
  box-shadow: 0 18px 40px rgba(2,6,23,0.28);
  max-width: 320px;
}
.joblance-toast.is-show { opacity: 1; transform: translateY(0); }

/* Phase 7: buttons + inputs */
.joblance-kicker {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
}

.joblance-label { display:block; margin: 0 0 6px; font-weight: 600; }

.joblance-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.joblance-input:focus {
  border-color: rgba(59, 130, 246, 0.40);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.10);
}

.joblance-hint { margin-top: 6px; font-size: 12px; opacity: 0.72; }

.joblance-btn {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: inherit;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease, opacity 140ms ease;
}

.joblance-btn:hover { transform: translateY(-1px); border-color: rgba(59, 130, 246, 0.25); }

.joblance-btn-primary {
  background: rgba(37, 99, 235, 1);
  color: #fff;
  border-color: rgba(37, 99, 235, 1);
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.18);
}

.joblance-btn-primary:hover {
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.22);
}

.joblance-btn-spinner {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: rgba(255, 255, 255, 1);
  display: none;
  animation: joblanceSpin 700ms linear infinite;
}

.joblance-invite-btn.is-loading .joblance-btn-text { opacity: 0.85; }
.joblance-invite-btn.is-loading .joblance-btn-spinner { display: inline-block; }
@keyframes joblanceSpin { to { transform: rotate(360deg); } }


/* Base wrapper */
.joblance-ui {
  color: var(--jb-text);
  background: transparent;
  font-size: 14px;
  line-height: 1.55;
}

.joblance-title { letter-spacing: -0.01em; }

.joblance-muted { color: var(--jb-muted); }

/* Premium card */
.joblance-card {
  background: var(--jb-card);
  border: 1px solid var(--jb-border);
  border-radius: var(--jb-radius);
  box-shadow: var(--jb-shadow);
  padding: 16px;
  margin: 12px 0;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.joblance-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--jb-shadow-hover);
  border-color: rgba(59, 130, 246, 0.22);
}

/* Header card accent */
.joblance-card-head {
  background: linear-gradient(180deg, rgba(59,130,246,0.10), rgba(255,255,255,1));
}

/* Layout helpers */
.joblance-flex { display:flex; gap: 12px; align-items:center; }
.joblance-flex-between { justify-content: space-between; }


/* Buttons */
.joblance-btn {
  border: 1px solid var(--jb-border);
  background: #fff;
  color: var(--jb-text);
  border-radius: var(--jb-radius-sm);
  padding: 10px 14px;
  cursor: pointer;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease, opacity 140ms ease;
}

.joblance-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(59,130,246,0.28);
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.08);
}

.joblance-btn-primary {
  background: var(--jb-blue);
  border-color: var(--jb-blue);
  color: #fff;
  box-shadow: 0 14px 28px rgba(59, 130, 246, 0.22);
}

.joblance-btn-primary:hover {
  background: var(--jb-blue-2);
  border-color: var(--jb-blue-2);
  box-shadow: 0 18px 40px rgba(59, 130, 246, 0.26);
}

/* Inputs */
.joblance-label { display:block; margin: 0 0 6px; font-weight: 650; }

.joblance-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--jb-radius-sm);
  border: 1px solid var(--jb-border);
  background: #fff;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.joblance-input:focus {
  border-color: rgba(59,130,246,0.55);
  box-shadow: var(--jb-focus);
}

.joblance-table-wrap { overflow-x: auto; }

.joblance-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
}

.joblance-table thead th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(11,18,32,0.72);
  background: rgba(2,6,23,0.02);
  padding: 12px 10px;
  border-bottom: 1px solid var(--jb-border);
}

.joblance-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(11,18,32,0.08);
  white-space: nowrap;
}

.joblance-row { transition: background 140ms ease; }
.joblance-row:hover { background: rgba(59,130,246,0.05); }

.joblance-link { color: var(--jb-blue-2); text-decoration: none; }
.joblance-link:hover { text-decoration: underline; }


.joblance-badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(11,18,32,0.12);
  background: rgba(2,6,23,0.02);
}

.joblance-badge.is-submitted { border-color: rgba(59,130,246,0.25); background: rgba(59,130,246,0.10); }
.joblance-badge.is-shortlisted { border-color: rgba(16,185,129,0.25); background: rgba(16,185,129,0.10); }
.joblance-badge.is-rejected { border-color: rgba(239,68,68,0.25); background: rgba(239,68,68,0.08); }
.joblance-badge.is-hired { border-color: rgba(245,158,11,0.25); background: rgba(245,158,11,0.10); }

.joblance-empty {
  text-align: center;
  padding: 26px 12px;
}

.joblance-empty-icon { font-size: 28px; margin-bottom: 8px; }
.joblance-empty-title { font-weight: 750; margin-bottom: 6px; }
.joblance-empty-text { color: var(--jb-muted); max-width: 520px; margin: 0 auto; }


.joblance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 900px) {
  .joblance-grid { grid-template-columns: 1fr; }
}

.joblance-tile {
  display: block;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(11,18,32,0.10);
  background: rgba(255,255,255,1);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.joblance-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 200px at 20% 10%, rgba(59,130,246,0.14), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

.joblance-tile:hover {
  transform: translateY(-1px);
  border-color: rgba(59,130,246,0.25);
  box-shadow: var(--jb-shadow-hover);
}

.joblance-tile-title { font-weight: 800; margin-bottom: 6px; }
.joblance-tile-text { color: var(--jb-muted); font-size: 13px; }
.joblance-tile-note { margin-top: 10px; font-size: 12px; color: var(--jb-muted); }

.joblance-tile.is-disabled { opacity: 0.7; cursor: not-allowed; }
.joblance-tile.is-disabled:hover { transform: none; box-shadow: var(--jb-shadow); }

.jb-press { transform: translateY(0px) scale(0.98); }