/* ───────── Base layout / typography ───────── */

.body {
  font-family: Tahoma, Vazir, "Segoe UI", sans-serif;
}

.rtl {
  direction: rtl;
  text-align: right;
}

/* ───────── Generic form controls ───────── */

.form-input {
  width: 100%;
  max-width: 500px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.form-textarea {
  width: 100%;
  max-width: 600px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* shared dashboard inputs */

.input,
.textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px;
  resize: vertical;
}

.textarea {
  min-height: 65px;
}

.small {
  font-size: 12px;
}

/* layout helpers */

.grid1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.g2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mt5 {
  margin-top: 5px;
}

/* ───────── Buttons ───────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  background: #ffffff;
  color: #111827;
}

.btn-primary {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #ffffff;
}

.btn-primary:hover {
  background: #4338ca;
}

.btn-secondary {
  background: #6b7280;
  border-color: #6b7280;
  color: #ffffff;
}

.btn-secondary:hover {
  background: #4b5563;
}

.btn-danger {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-success {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.btn-success:hover {
  background: #059669;
}

.btn-warning {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #ffffff;
}

.btn-warning:hover {
  background: #d97706;
}

.btn-outline {
  border: 1px solid #4f46e5;
  background: transparent;
  color: #4f46e5;
}

.btn-outline:hover {
  background: #eef2ff;
}

/* ───────── Generic cards / tags / rows ───────── */

.card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.muted {
  color: #6b7280;
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  font-size: 12px;
  margin: 2px 4px 0 0;
}

/* section boxes */

.box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
}

.section-content {
  padding-top: 0;
  padding-bottom: 0;
}

/* collapsible header button */

.collapse-toggle {
  appearance: none;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 8px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: #6b7280;
}

.collapse-toggle:hover {
  background: #f3f4f6;
}

.caret {
  transition: transform 0.15s ease;
}

.box.collapsed .caret {
  transform: rotate(-90deg);
}

.box.collapsed .section-content {
  display: none;
}

/* ───────── Rowbox (repeated items) ───────── */

.rowbox {
  position: relative;
  border: 1px dashed #d1d5db;
  border-radius: 10px;
  padding: 16px;
  margin-top: 10px;
  background: #ffffff;
}

.rowbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f1e1e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
}

.rowbox-close:hover {
  background: #fee2e2;
  border-color: #ef4444;
  color: #ef4444;
}

/* ───────── Spinners ───────── */

@keyframes ivSpin {
  to {
    transform: rotate(360deg);
  }
}

.iv-mini-spin {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  display: inline-block;
  margin-inline-start: 8px;
  vertical-align: -2px;
  animation: ivSpin 0.8s linear infinite;
}

/* generic mini spinner used in text / buttons */
.mini-spin {
  display: inline-block;
  width: 1em;
  height: 1em;
  border-radius: 999px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  animation: mini-spin-rotate 0.6s linear infinite;
  margin-left: 4px;
  vertical-align: -0.15em;
}

@keyframes mini-spin-rotate {
  to {
    transform: rotate(360deg);
  }
}

/* ───────── Resume card ───────── */

.resume-card {
  position: relative;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transition:
    box-shadow 0.18s ease,
    transform 0.08s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

/* vertical strip on the RIGHT side of the card */
.resume-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;     /* always visual right */
  bottom: 0;
  width: 4px;
  background: #e5e7eb; /* default / no special status */
}

/* only processing & failed get colored strip */
.resume-card[data-status="processing"]::before {
  background: #2563eb; /* blue */
}

.resume-card[data-status="failed"]::before {
  background: #dc2626; /* red */
}
.resume-card[data-status="ready"]::before {
  background: #166b2c; /* green */
}
/* hover / open states */

.resume-card:hover {
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.14);
  transform: translateY(-1px);
  border-color: #cbd5f5;
}

.resume-card.open {
  border-color: #4f46e5;
  box-shadow: 0 14px 34px rgba(79, 70, 229, 0.25);
  background: linear-gradient(180deg, #eef2ff 0, #ffffff 26%);
}

/* ───────── Header layout ───────── */

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  gap: 12px;
}

.card-title {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.card-title strong {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-date {
  color: #6b7280;
  font-size: 12px;
}

/* right side of header (download + status + chevron) */

.card-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.card-chip {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #374151;
  text-decoration: none;
  white-space: nowrap;
}

.card-chip:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
}

/* ───────── Status bubble + text ───────── */

/* base: hide status chip and remove chip styling */
.card-chip.js-resume-status {
  display: none;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

/* only show for processing & failed */
.resume-card[data-status="processing"] .card-chip.js-resume-status,
.resume-card[data-status="failed"] .card-chip.js-resume-status {
  display: inline-flex;
  flex-direction: column;          /* bubble on top, text under */
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 600;
  color: #4b5563;
}

/* small circular bubble above the text */
.resume-card[data-status="processing"] .card-chip.js-resume-status::before,
.resume-card[data-status="failed"] .card-chip.js-resume-status::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: block;
}



/* red bubble for failed */
.resume-card[data-status="failed"] .card-chip.js-resume-status::before {
  background: #dc2626;
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
  animation: chip-pulse 1.4s ease-out infinite;
}

/* pulsing animation */
@keyframes chip-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

/* animated dots after processing text if you use .processing-text class */

.processing-text::after {
  display: inline-block;
  content: "";
  width: 1.5ch;
  text-align: left;
  animation: dots 1s steps(3, end) infinite;
}

@keyframes dots {
  0%   { content: ""; }
  33%  { content: "."; }
  66%  { content: ".."; }
  100% { content: "..."; }
}

/* ───────── Chevron + details ───────── */

.chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font-size: 14px;
  color: #4b5563;
  user-select: none;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.resume-card.open .chev {
  transform: rotate(180deg);
  background: #eef2ff;
  box-shadow: 0 0 0 1px #c7d2fe;
}

.card-header:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 3px;
}

/* Retry button for failed resumes */

.retry-btn {
  padding: 4px 10px;
  margin-right: 6px;            /* adjust position next to status */
  font-size: 10px;
  border-radius: 15px;
  border: 1px solid #bbbbbb;
  background: #fbf3f3;
  color: #8f8f8f;
  cursor: pointer;
  font-weight: 600;
  transition: background .15s ease, border-color .15s ease;
}

.retry-btn:hover {
  background: #fee2e2;
  border-color: #ef4444;
}

/* body */

.details {
  border-top: 1px dashed #e5e7eb;
  padding: 14px 16px 16px;
  background: #f9fafb;
}


/* ───────── IV (invoice / credit?) forms ───────── */

.iv-form {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  display: grid;
  gap: 16px;
  direction: rtl;
  text-align: right;
}

.iv-fieldset {
  margin: 0;
  padding: 0;
  border: none;
}

.iv-legend {
  font-weight: 800;
  margin-bottom: 8px;
}

/* credit radio cards */

.iv-credit ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.iv-credit li {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  background: #f9fafb;
}

.iv-credit input[type="radio"] {
  accent-color: #4f46e5;
}

.iv-credit label {
  cursor: pointer;
  font-weight: 700;
}

.iv-help {
  color: #6b7280;
  font-size: 12px;
  margin-top: 6px;
}

/* grid */

.iv-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.iv-field {
  margin-top: 30px;
}

.iv-field--full {
  grid-column: 1 / -1;
}

/* inputs */

.iv-input,
.iv-textarea {
  width: 100%;
  height: 44px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  background: #ffffff;
}

.iv-textarea {
  min-height: 110px;
  resize: vertical;
}

.iv-input:focus,
.iv-textarea:focus {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

.iv-hint {
  color: #595f6c;
  font-size: 12px;
  margin-top: 6px;
  min-height: 1em;
}

.iv-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 4px;
}

@media (max-width: 700px) {
  .iv-grid {
    grid-template-columns: 1fr;
  }
}

/* IV v2 cards */

.iv2-title {
  margin: 0 0 24px;
  font-weight: 800;
  font-size: 20px;
}

.iv2-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
  direction: rtl;
  text-align: right;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
  cursor: pointer;
}

.iv2-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.iv2-head__left {
  min-width: 0;
}

.iv2-head__title {
  font-weight: 800;
  font-size: 16px;
  color: #0f172a;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.iv2-head__sub {
  color: #6b7280;
  font-size: 12px;
  margin-top: 2px;
}

.iv2-head__right {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.iv2-inline {
  display: inline;
}

/* chips */

.iv2-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.iv2-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  font-size: 12px;
  color: #374151;
  background: #f9fafb;
}

.iv2-chip--ok {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #065f46;
}

.iv2-chip--muted {
  color: #6b7280;
}

/* body */

.iv2-body {
  margin-top: 12px;
  border-top: 1px dashed #e5e7eb;
  padding-top: 12px;
}

.iv2-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.iv2-field--full {
  grid-column: 1 / -1;
}

.iv2-label {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}

.iv2-value {
  font-size: 14px;
  color: #111827;
  white-space: pre-wrap;
}

.iv2-value--mono {
  line-height: 1.6;
}

/* caret */

.iv2-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.iv2-caret {
  transition: transform 0.15s ease;
}

.iv2-toggle[aria-expanded="true"] .iv2-caret {
  transform: rotate(180deg);
}

/* footer actions */

.iv2-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.iv2-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #f9fafb;
  color: #374151;
  font-size: 13px;
}

.iv2-create {
  margin-top: 24px;
}

@media (max-width: 900px) {
  .iv2-grid {
    grid-template-columns: 1fr;
  }
}

/* ───────── PE (profile / onboarding) section ───────── */

.pe * {
  box-sizing: border-box;
}

.pe-title {
  margin: 0 0 20px;
  font-weight: 800;
  font-size: 22px;
}

.pe-banner {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fafafa;
  margin-bottom: 16px;
}

.pe-banner__hint {
  color: #6b7280;
  font-size: 13px;
  margin-inline-start: 4px;
}

.pe-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid transparent;
}

.pe-badge--success {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.pe-badge--warn {
  background: #fff7ed;
  color: #92400e;
  border-color: #fed7aa;
}

.pe-form {
  display: grid;
  gap: 16px;
  max-width: 980px;
}

.pe-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .pe-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.pe-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
}

.pe-card__title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.pe-field {
  display: block;
  margin-bottom: 12px;
}

.pe-field--file {
  margin-top: 8px;
}

.pe-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.pe-input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  background: #ffffff;
}

.pe-input:focus {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

.pe-help {
  color: #6b7280;
  font-size: 12px;
  margin-top: 6px;
}

.pe-error {
  color: #b91c1c;
  font-size: 12px;
  margin-top: 6px;
}

.pe-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .pe-row {
    grid-template-columns: 1fr 1fr;
  }
}

.pe-alert {
  padding: 12px;
  border-radius: 10px;
}

.pe-alert--error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.pe-inline {
  padding: 10px;
  border-radius: 10px;
}

.pe-inline--error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.pe-inline--success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* OTP */

.pe-otp {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.pe-otp__code {
  max-width: 140px;
  text-align: center;
  letter-spacing: 2px;
}

.pe-otp--verify {
  margin-top: 8px;
}

.pe-note {
  color: #b91c1c;
  font-size: 13px;
  margin-top: 6px;
}

.pe-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
  color: #065f46;
}

/* PE buttons */

.pe-btn {
  appearance: none;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.pe-btn:hover {
  background: #f3f4f6;
}

.pe-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pe-btn[aria-busy="true"] {
  opacity: 0.6;
  cursor: progress;
}

.pe-btn--brand {
  background: #4f46e5;
  color: #ffffff;
  border-color: #4f46e5;
}

.pe-btn--brand:hover {
  background: #4338ca;
}

.pe-btn--primary {
  background: #eef2ff;
  color: #3730a3;
  border-color: #c7d2fe;
}

.pe-btn--secondary {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #e2e8f0;
}

/* Input with icons */

.pe-input-icon {
  position: relative;
}

.pe-input-adorn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  inset-inline-start: 10px;
  pointer-events: none;
  z-index: 3;
  white-space: nowrap;
}

/* only add padding when adorn is visible via class */

.pe-input--with-adorn {
  padding-inline-start: 110px;
}

.pe-input-icon .pe-input {
  padding-inline-end: 88px;
  direction: rtl;
}

.pe-icon-btn {
  position: absolute;
  top: 50.2%;
  transform: translateY(-50%);
  inset-inline-end: 1px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
}

.pe-icon-btn + .pe-icon-btn {
  inset-inline-end: 52px;
}

/* Avatar */

.pe-avatar {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: start;
}

.pe-avatar__preview {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  overflow: hidden;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pe-avatar__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pe-avatar__ph {
  font-size: 40px;
  opacity: 0.7;
}

.pe-file {
  display: block;
}

.pe-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 4px;
}

/* Force hide for [hidden] */

.pe [hidden] {
  display: none !important;
}

/* ───────── Dashboard aside nav ───────── */

.dash-aside {
  width: 350px;
  padding: 2rem 1.25rem;
  background: linear-gradient(180deg, #37769b 0%, #c7c2fb 100%);
  border-radius: 16px;
  margin: 40px 0;
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.18);
}

/* Mobile toggle */

.dash-aside__toggle {
  display: none;
  width: 100%;
  appearance: none;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
  font-weight: 800;
  padding: 12px 14px;
  margin-bottom: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.dash-aside__toggle .caret {
  transition: transform 0.15s ease;
}

.dash-aside__toggle[aria-expanded="false"] .caret {
  transform: rotate(180deg);
}

/* Nav list */

.dash-aside__nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 8px;
}

/* Item */

.dash-aside__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #111827;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  transition:
    transform 0.06s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
  outline-offset: 3px;
  margin-bottom: 15px;
}

.dash-aside__item:hover {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.08);
  transform: translateY(-1px);
}

.dash-aside__item:active {
  transform: translateY(0);
}

.dash-aside__item:focus-visible {
  outline: 2px solid #3730a3;
}

/* Icon */

.dash-aside__icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  font-size: 18px;
  flex-shrink: 0;
}

/* Active item */

.dash-aside__item.is-active {
  background: #ffffff;
  border: 1px solid #dbeafe;
  box-shadow:
    inset 0 0 0 2px #e0e7ff,
    0 6px 18px rgba(59, 130, 246, 0.15);
}

.dash-aside__item.is-active .dash-aside__icon {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

/* Small screens */

@media (max-width: 992px) {
  .dash-aside {
    position: static;
    max-height: none;
  }

  .dash-aside__toggle {
    display: flex;
  }

  .dash-aside__nav[hidden] {
    display: none !important;
  }
}




/* ───────── Analyse card status strip (match resume style) ───────── */
/* analyse cards are also .resume-card, but they use running/done */

.resume-card[data-status="running"]::before {
  background: #2563eb; /* blue like processing */
}

.resume-card[data-status="done"]::before {
  background: #166b2c; /* green like ready */
}

/* (optional) if you keep "pending" on analyse */
.resume-card[data-status="pending"]::before {
  background: #e5e7eb; /* neutral */
}
/* Analyse status chip: hidden by default like resume */
.card-chip.js-analysis-status {
  display: none;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

/* show only for running & failed (like resume processing/failed) */
.resume-card[data-status="running"] .card-chip.js-analysis-status,
.resume-card[data-status="failed"]  .card-chip.js-analysis-status {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 600;
  color: #4b5563;
}

/* bubble */
.resume-card[data-status="running"] .card-chip.js-analysis-status::before,
.resume-card[data-status="failed"]  .card-chip.js-analysis-status::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: block;
}


/* red bubble + pulse for failed (reuse your animation) */
.resume-card[data-status="failed"] .card-chip.js-analysis-status::before {
  background: #dc2626;
  animation: chip-pulse 1.4s ease-out infinite;
}
