/* The homepage dashboard demo.
   Kept apart from site.css because it is one self-contained widget: a replica
   of the app's dashboard on sample data, not part of the marketing page's own
   vocabulary of sections and cards.

   Sized to the mockup's panel: the full content column wide, 946px tall at
   1920, 42px corners, a 232px sidebar, 60px search and install controls. */

/* Lives inside the hero, so it brings no background of its own — the sky runs
   behind it and the panel floats on the clouds. */
.demo { position: relative; z-index: 2; }
.ico-defs { position: absolute; width: 0; height: 0; }

.dash {
  /* minmax(0, …) everywhere a track holds a table or a nowrap row: a bare 1fr
     keeps its min-content minimum and the panel grows past its own container. */
  display: grid; grid-template-columns: 232px minmax(0, 1fr);
  border-radius: 42px; overflow: hidden;
  background: #fff; color: var(--ink);
  font-family: "Nunito", "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;
  box-shadow: 0 34px 80px rgba(4, 16, 44, .32);
  min-height: 946px;
}

/* — sidebar — */
.dash-side { border-right: 1px solid var(--line); padding: 28px 24px 30px; display: flex; flex-direction: column; min-width: 0; }
.dash-logo { margin-bottom: 30px; }
.dash-logo img { height: 40px; }
.dash-logo .wordmark { font-size: 20px; }
.dash-hello { margin: 0 0 18px; font-size: 16px; font-weight: 800; color: var(--navy); }
.dash-nav { display: flex; flex-direction: column; gap: 4px; }
.dash-nav button {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 9px 8px; border: 0; border-radius: 10px; background: none;
  font: inherit; font-size: 16px; color: #6b7a93; text-align: left; cursor: pointer;
}
.dash-nav button svg { width: 22px; height: 22px; flex: none; color: var(--navy); }
.dash-nav button:hover { color: var(--navy); }
.dash-nav button.on { color: var(--navy); font-weight: 700; }
.dash-side-foot { margin-top: auto; padding-top: 26px; font-size: 16px; color: #6b7a93; }
.dash-streak { margin: 0 0 14px; color: var(--orange); font-weight: 800; }
.dash-streak b { color: var(--orange); }
.dash-profile { margin: 0 0 18px; display: flex; align-items: center; gap: 12px; }
.dash-profile .av { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #ffb45c, #f6821f); }
.dash-side-foot hr { border: 0; border-top: 1px solid var(--line); margin: 0 0 18px; }
.dash-sideitem { margin: 0 0 14px; display: flex; align-items: center; gap: 12px; }
.dash-sideitem svg { width: 22px; height: 22px; color: #c6ceda; }

/* — main column — */
.dash-main { padding: 34px 40px 34px; min-width: 0; }
.dash-top { display: flex; gap: 20px; align-items: center; margin-bottom: 18px; }
.dash-search {
  flex: 1; display: flex; align-items: center; gap: 14px; min-width: 0;
  background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: 0 22px; height: 60px;
}
.dash-search:focus-within { border-color: var(--orange); }
.dash-search svg { width: 22px; height: 22px; color: var(--navy); flex: none; }
.dash-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; color: var(--ink); background: none; }
.dash-search input::placeholder { color: #8a97ad; }
.dash-install {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  height: 60px; padding: 0 26px; border-radius: 999px; background: var(--orange); color: #fff;
  font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.dash-install:hover { background: var(--orange-deep); }
.dash-install svg { width: 20px; height: 20px; }

.dash-filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 0 0 28px 20px; }
.chip {
  appearance: none; -webkit-appearance: none;
  border: 1px solid var(--orange); border-radius: 999px; background: #fff;
  height: 40px; padding: 0 44px 0 24px; font: inherit; font-size: 16px; color: #4f5d75; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5L6 8.5l4-4' fill='none' stroke='%234f5d75' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; background-size: 14px;
}
.chip:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.chip-clear { border: 0; background: none; font: inherit; font-size: 16px; color: #4f5d75; cursor: pointer; padding: 8px 4px 8px 16px; }
.chip-clear:hover { color: var(--orange); }

.dash-h { font-size: 20px; font-weight: 700; color: var(--ink); margin: 0 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dash-h-lg { font-size: 24px; font-weight: 600; }
.dash-viewall { border: 0; background: none; font: inherit; font-size: 14px; color: #4f5d75; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 4px 0; }
.dash-viewall svg { width: 11px; height: 11px; }
.dash-viewall:hover { color: var(--orange); }

/* — job board cards — */
.dash-boards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin-bottom: 26px; }
.board { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: flex; align-items: center; gap: 16px; min-height: 90px; }
.board.on { border-color: var(--orange); }
.board b { display: block; font-size: 16px; font-weight: 500; color: var(--ink); }
.board small { display: block; font-size: 13px; color: #8a97ad; margin-top: 2px; }
/* Wordmarks are set in type rather than shipped as third-party logo files. */
.board-n { display: block; flex: none; width: 66px; font-size: 14px; font-weight: 800; letter-spacing: -.02em; }
.board-n.glassdoor { color: #0caa41; font-family: Impact, "Arial Narrow Bold", sans-serif; font-weight: 400; font-size: 13px; letter-spacing: .02em; }
.board-n.linkedin { color: #0a66c2; }
.board-n.linkedin i { font-style: normal; background: #0a66c2; color: #fff; border-radius: 3px; padding: 0 3px; margin-left: 1px; }
.board-n.indeed { color: #2164f3; font-size: 17px; }
.board-n.jobstreet { color: #0b1f6b; font-size: 12px; }

.dash-meta {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; align-items: center;
  border-top: 1px solid var(--line); padding-top: 20px; margin-bottom: 20px;
  font-size: 13px; color: var(--ink);
}
.dash-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.dash-meta svg { width: 16px; height: 16px; color: var(--ink); }

/* — stat cards — */
.dash-stats { display: grid; gap: 16px 12px; grid-template-columns: 1fr 1fr; margin-bottom: 26px; }
.stat-c { border: 1px solid var(--line); border-radius: 12px; padding: 16px 32px; font-size: 20px; color: var(--ink); min-height: 78px; }
.stat-c b { font-size: 20px; font-weight: 400; color: var(--ink); margin-right: 6px; }
.stat-c small { display: block; font-size: 15px; color: #8a97ad; margin-top: 2px; }

/* — panes other than the dashboard — */
.dash-queue, .dash-alerts { list-style: none; margin: 0 0 26px; padding: 0; }
.dash-queue li, .dash-alerts li {
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 20px; margin-bottom: 10px;
  font-size: 15px; display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
.dash-queue span, .dash-alerts span { color: #8a97ad; font-size: 13px; }
.dash-note, .dash-resume small { font-size: 13px; color: #8a97ad; }
.dash-resume { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 26px; }
.dash-resume p { margin: 0 0 12px; }
.dash-resume b { color: var(--navy); display: block; }
.dash-resume ul { margin: 0; padding-left: 20px; font-size: 14px; color: #4f5d75; }
.dash-funnel { margin-bottom: 26px; }
.funnel-row { margin-bottom: 12px; font-size: 13px; color: #4f5d75; }
.funnel-row b { color: var(--navy); }
.funnel-row i { display: block; height: 9px; border-radius: 999px; background: var(--wash); margin-top: 6px; overflow: hidden; }
.funnel-row i span { display: block; height: 100%; border-radius: 999px; background: var(--orange); }

/* — recent applications + activity — */
.dash-lower { display: grid; grid-template-columns: minmax(0, 1fr) 286px; gap: 40px; align-items: stretch; }
.dash-recent { padding: 12px 34px 0; }
.dash-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.dash-table th {
  text-align: left; font-weight: 500; color: var(--ink); font-size: 16px;
  padding: 0 10px 12px 0; border-bottom: 1px solid var(--line);
}
.dash-table td { padding: 10px 10px 10px 0; border-bottom: 1px solid #eef2f7; color: #6b7a93; }
.dash-table tr.new td { animation: rowIn .45s ease both; }
@keyframes rowIn { from { opacity: 0; transform: translateY(-6px); } }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.dot.ok { background: #17b34a; }
.dot.no { background: #e03131; }
.dot.go { background: var(--blue); }
.dash-empty { font-size: 13px; color: #8a97ad; padding: 16px 0 0; }

.dash-activity { border: 1px solid var(--line); border-radius: 12px; padding: 20px 18px; min-height: 340px; }
.dash-activity .dash-h { font-size: 20px; font-weight: 500; margin-bottom: 26px; }
.act-ends { display: flex; justify-content: space-between; margin: 0; font-size: 12px; color: var(--ink); }
.act-bar { height: 4px; border-radius: 999px; background: var(--blue); margin: 4px 0 6px; overflow: hidden; }
.act-bar i { display: block; height: 100%; width: 1%; border-radius: 999px; background: var(--orange); transition: width .4s ease; }
.act-log { font-size: 13px; color: #6b7a93; margin: 24px 0 0; min-height: 3em; line-height: 1.4; }
.act-log b { color: var(--navy); }

/* — narrower — */
@media (max-width: 1400px) {
  .dash { min-height: 0; }
  .dash-main { padding: 26px 26px 28px; }
  .dash-recent { padding: 0; }
  .dash-lower { grid-template-columns: minmax(0, 1fr) 240px; gap: 24px; }
  .dash-filters { margin-left: 0; }
  .stat-c { padding: 14px 20px; }
}
@media (max-width: 1000px) {
  .dash-lower { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .dash { grid-template-columns: minmax(0, 1fr); border-radius: 26px; }
  /* The sidebar becomes a scrolling strip of tabs rather than a column. */
  .dash-side { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 16px; }
  .dash-hello { display: none; }
  .dash-nav { flex-direction: row; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .dash-nav::-webkit-scrollbar { display: none; }
  .dash-nav button { width: auto; white-space: nowrap; font-size: 14px; }
  .dash-side-foot { display: none; }
  .dash-main { padding: 20px 16px 24px; }
  .dash-top { flex-wrap: wrap; }
  .dash-search, .dash-install { height: 48px; }
  .chip { height: 36px; font-size: 14px; padding: 0 36px 0 16px; }
  .dash-stats { grid-template-columns: 1fr; }
  .dash-table { font-size: 14px; }
}
@media (max-width: 560px) {
  /* Source and date are the first things to go; company and status carry it. */
  .dash-table th:nth-child(3), .dash-table td:nth-child(3),
  .dash-table th:nth-child(5), .dash-table td:nth-child(5) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dash-table tr.new td { animation: none; }
  .act-bar i { transition: none; }
}
