/* ============ LeadsnTech — portal.css (careers, candidate, admin) ============ */

/* ---------- Subpage / careers ---------- */
.subpage { background: #fff; }
.page-hero {
  background: radial-gradient(1000px 500px at 80% -10%, #1e3a8a 0%, transparent 60%), var(--navy);
  color: #fff;
  padding: 10rem 0 4.5rem;
}
.page-hero h1 { color: #fff; margin-bottom: 1rem; }
.page-hero p { color: rgba(255,255,255,.75); max-width: 620px; font-size: 1.1rem; }
.perk-row { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2rem; }
.perk-row span { color: var(--blue-sky); font-family: var(--font-head); font-weight: 500; font-size: .95rem; }

.jobs-list { display: flex; flex-direction: column; gap: 1.4rem; max-width: 900px; margin: 0 auto; }
.job-card {
  display: grid; grid-template-columns: 1fr auto; gap: 1.6rem; align-items: start;
  border: 1px solid rgba(29,78,216,.12); border-radius: var(--radius);
  padding: 2rem 2.2rem; background: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}
.job-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.job-card h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.job-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.job-meta span {
  font-size: .76rem; font-weight: 600; color: var(--blue);
  background: rgba(29,78,216,.08); border-radius: 999px; padding: .28rem .8rem;
}
.job-card p { color: var(--slate); font-size: .94rem; }
.job-reqs { margin-top: .9rem; }
.job-reqs summary { cursor: pointer; color: var(--blue); font-weight: 600; font-size: .9rem; font-family: var(--font-head); }
.job-reqs ul { margin: .7rem 0 0 1.2rem; color: var(--slate); font-size: .9rem; }
.job-reqs li { margin-bottom: .3rem; }
.job-apply { padding-top: .4rem; }

.modal-sm { max-width: 560px; }
.form-grid { display: flex; flex-direction: column; gap: .9rem; margin: 1.2rem 0; }
.form-grid input, .form-grid textarea {
  width: 100%; padding: .85rem 1.05rem; border-radius: 12px;
  border: 1px solid rgba(29,78,216,.2); font-family: var(--font-body); font-size: .95rem;
  outline: none; transition: border .2s;
}
.form-grid input:focus, .form-grid textarea:focus { border-color: var(--blue); }
.file-label {
  display: block; border: 1.5px dashed rgba(29,78,216,.4); border-radius: 12px;
  padding: .95rem 1.05rem; text-align: center; cursor: pointer;
  color: var(--blue); font-weight: 500; font-size: .9rem; transition: background .2s;
}
.file-label:hover { background: rgba(29,78,216,.05); }
.file-label input { display: none; }

/* ---------- Auth pages ---------- */
.auth-page {
  min-height: 100vh; display: grid; place-items: center;
  background: radial-gradient(900px 500px at 80% -10%, #1e3a8a 0%, transparent 60%), var(--navy);
  padding: 2rem 1rem;
}
.auth-card {
  background: #fff; border-radius: 22px; padding: 2.6rem 2.4rem;
  width: min(430px, 100%); box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.auth-logo { height: 42px; width: auto; margin: 0 auto 1.4rem; }
.auth-card h2 { text-align: center; font-size: 1.5rem; margin-bottom: .4rem; }
.auth-sub { text-align: center; color: var(--slate); font-size: .92rem; margin-bottom: 1.6rem; }
.auth-card form { display: flex; flex-direction: column; gap: .9rem; }
.auth-card input {
  padding: .85rem 1.05rem; border-radius: 12px; border: 1px solid rgba(29,78,216,.2);
  font-family: var(--font-body); font-size: .95rem; outline: none;
}
.auth-card input:focus { border-color: var(--blue); }
.auth-error {
  background: #fef2f2; color: #dc2626; border: 1px solid #fecaca;
  border-radius: 10px; padding: .7rem 1rem; font-size: .88rem; margin-bottom: 1rem;
}
.auth-switch { text-align: center; margin-top: 1.2rem; font-size: .9rem; color: var(--slate); }
.auth-switch a { color: var(--blue); font-weight: 600; }

/* ---------- Portal (candidate + admin) ---------- */
.portal-page { background: var(--mist); min-height: 100vh; }
.portal-header {
  background: #fff; border-bottom: 1px solid rgba(29,78,216,.1);
  position: sticky; top: 0; z-index: 50;
}
.portal-header .header-inner { height: 68px; }
.portal-user { display: flex; align-items: center; gap: 1rem; font-family: var(--font-head); font-weight: 500; font-size: .92rem; }
.btn-outline-dark {
  border: 1.5px solid rgba(29,78,216,.35); color: var(--blue);
  padding: .45rem 1.1rem; border-radius: 999px; font-size: .85rem;
}
.btn-outline-dark:hover { background: var(--blue); color: #fff; }
.portal-main { padding: 3rem 0 5rem; }
.portal-main h1 { font-size: 2rem; margin-bottom: .4rem; }
.portal-sub { color: var(--slate); margin-bottom: 2rem; }

.empty-state {
  background: #fff; border-radius: var(--radius); padding: 3.5rem 2rem;
  text-align: center; box-shadow: var(--shadow);
}
.empty-state h3 { margin-bottom: .6rem; }
.empty-state p { color: var(--slate); margin-bottom: 1.6rem; }

.app-list { display: flex; flex-direction: column; gap: 1.2rem; }
.app-card {
  background: #fff; border-radius: var(--radius); padding: 1.8rem 2rem;
  box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center;
}
.app-card h3 { margin-bottom: .3rem; }
.app-meta { color: var(--slate); font-size: .85rem; }
.app-progress { text-align: right; }
.steps { display: flex; gap: .4rem; margin-bottom: .7rem; justify-content: flex-end; }
.step {
  font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  padding: .25rem .6rem; border-radius: 999px; background: #eef2fb; color: #9aa7c7;
}
.step.done { background: rgba(29,78,216,.12); color: var(--blue); }

.status-badge {
  display: inline-block; font-size: .78rem; font-weight: 600;
  padding: .32rem .9rem; border-radius: 999px; font-family: var(--font-head);
}
.st-new       { background: #e0e9ff; color: #1d4ed8; }
.st-reviewing { background: #fef3c7; color: #b45309; }
.st-interview { background: #ede9fe; color: #6d28d9; }
.st-offer     { background: #dcfce7; color: #15803d; }
.st-rejected  { background: #fee2e2; color: #b91c1c; }

/* ---------- Admin ---------- */
.admin-tabs { display: flex; gap: .6rem; margin-bottom: 2.2rem; flex-wrap: wrap; }
.admin-tabs a {
  font-family: var(--font-head); font-weight: 600; font-size: .92rem;
  padding: .6rem 1.3rem; border-radius: 999px; color: var(--slate);
  background: #fff; border: 1px solid rgba(29,78,216,.12); transition: .2s;
}
.admin-tabs a.active, .admin-tabs a:hover { background: var(--blue); color: #fff; }
.admin-tabs em {
  font-style: normal; background: #ef4444; color: #fff; border-radius: 999px;
  font-size: .7rem; padding: .1rem .45rem; margin-left: .3rem;
}
.admin-tabs em:empty, .admin-tabs a em:empty { display: none; }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-bottom: 2.5rem; }
.stat-card {
  background: #fff; border-radius: var(--radius); padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow); text-align: center;
}
.stat-card.accent { background: linear-gradient(140deg, #1d4ed8, #3b82f6); }
.stat-card.accent strong, .stat-card.accent span { color: #fff; }
.stat-card strong { display: block; font-family: var(--font-head); font-size: 2.3rem; font-weight: 800; color: var(--blue); }
.stat-card span { color: var(--slate); font-size: .88rem; }
.mt { margin: 1.5rem 0 1rem; font-size: 1.25rem; }

.table-wrap { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th {
  text-align: left; font-family: var(--font-head); font-size: .78rem;
  text-transform: uppercase; letter-spacing: .08em; color: var(--slate);
  padding: 1rem 1.2rem; border-bottom: 1px solid #eef1f8;
}
td { padding: 1rem 1.2rem; border-bottom: 1px solid #f4f6fc; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td small { color: var(--slate); }
td.empty { text-align: center; color: var(--slate); padding: 2.5rem; }
.status-form select {
  padding: .45rem .7rem; border-radius: 9px; border: 1px solid rgba(29,78,216,.25);
  font-family: var(--font-body); font-size: .85rem; background: #fff; cursor: pointer;
}
.btn-mini {
  display: inline-block; font-size: .8rem; font-weight: 600; font-family: var(--font-head);
  color: var(--blue); background: rgba(29,78,216,.08); border: 0; border-radius: 8px;
  padding: .4rem .85rem; cursor: pointer;
}
.btn-mini:hover { background: rgba(29,78,216,.16); }
.btn-mini.danger { color: #dc2626; background: #fef2f2; }
.btn-mini.danger:hover { background: #fee2e2; }
.cover-text { font-size: .85rem; color: var(--slate); max-width: 320px; margin-top: .5rem; }
.actions-cell { white-space: nowrap; }
.actions-cell form { display: inline-block; margin-right: .4rem; }

.msg-list { display: flex; flex-direction: column; gap: 1rem; }
.msg-card { background: #fff; border-radius: var(--radius); padding: 1.5rem 1.8rem; box-shadow: var(--shadow); border-left: 4px solid transparent; }
.msg-card.unread { border-left-color: var(--blue); }
.msg-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; flex-wrap: wrap; }
.msg-meta { display: block; color: var(--slate); font-size: .82rem; }
.msg-date { color: var(--slate); font-size: .8rem; }
.msg-card > p { color: var(--ink); font-size: .93rem; margin-bottom: .9rem; }
.msg-actions { display: flex; gap: .5rem; }

.add-job { margin-bottom: 1.8rem; }
.add-job summary { display: inline-flex; list-style: none; cursor: pointer; margin-bottom: 1.2rem; }
.add-job summary::-webkit-details-marker { display: none; }
.job-form {
  background: #fff; border-radius: var(--radius); padding: 1.8rem;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .9rem; margin-top: 1rem;
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.job-form input, .job-form textarea {
  padding: .8rem 1rem; border-radius: 11px; border: 1px solid rgba(29,78,216,.2);
  font-family: var(--font-body); font-size: .92rem; outline: none;
}
.job-form input:focus, .job-form textarea:focus { border-color: var(--blue); }
.job-form .btn { align-self: flex-start; border: 0; }

@media (max-width: 800px) {
  .job-card { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .app-card { grid-template-columns: 1fr; }
  .app-progress { text-align: left; }
  .steps { justify-content: flex-start; }
  .form-grid-2 { grid-template-columns: 1fr; }
}
