/* AUVI Recruitment — custom styles
   Pure CSS, no @apply, no Tailwind dependency at runtime.
   Tailwind CDN still provides utility classes used directly in HTML.
   This file provides our component classes (.card, .btn, .input, .pill, etc.)
   using plain CSS so they work even if Tailwind CDN is blocked or unconfigured. */

* { box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-display { font-family: 'Space Grotesk', 'Inter', sans-serif; }

/* ---------- Status pills ---------- */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid transparent;
    line-height: 1.2;
    white-space: nowrap;
}
.pill-new            { background: #f0f9ff; color: #0369a1; border-color: #bae6fd; }
.pill-screening      { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.pill-shortlisted    { background: #f5f3ff; color: #6d28d9; border-color: #ddd6fe; }
.pill-interview      { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.pill-selected       { background: #eef2ff; color: #4338ca; border-color: #c7d2fe; }
.pill-offer          { background: #fdf4ff; color: #a21caf; border-color: #f5d0fe; }
.pill-offer_accepted { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.pill-hired          { background: #d1fae5; color: #065f46; border-color: #6ee7b7; }
.pill-on_hold        { background: #f3f4f6; color: #4b5563; border-color: #d1d5db; }
.pill-rejected       { background: #fff1f2; color: #be123c; border-color: #fecdd3; }
.pill-future_talent  { background: #ecfeff; color: #0e7490; border-color: #a5f3fc; }
.pill-withdrawn      { background: #f3f4f6; color: #6b7280; border-color: #e5e7eb; }
.pill-published      { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.pill-draft          { background: #f3f4f6; color: #4b5563; border-color: #d1d5db; }
.pill-paused         { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.pill-closing_soon   { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.pill-closed         { background: #fff1f2; color: #be123c; border-color: #fecdd3; }
.pill-archived       { background: #f3f4f6; color: #6b7280; border-color: #e5e7eb; }

/* ---------- Cards ---------- */
.card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.card-hover {
    transition: box-shadow 0.2s ease;
}
.card-hover:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.card-pad { padding: 20px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: #6d28d9;
    color: #ffffff;
    border-color: #6d28d9;
}
.btn-primary:hover { background: #5b21b6; border-color: #5b21b6; }
.btn-ghost {
    background: #ffffff;
    color: #0f172a;
    border-color: #d1d5db;
}
.btn-ghost:hover { background: #f9fafb; }
.btn-danger {
    background: #fff1f2;
    color: #be123c;
    border-color: #fecdd3;
}
.btn-danger:hover { background: #ffe4e6; }
.btn-subtle {
    background: #f3f4f6;
    color: #1f2937;
    border-color: transparent;
}
.btn-subtle:hover { background: #e5e7eb; }

/* ---------- Form fields ---------- */
.input, .textarea, .select {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 0.625rem 0.875rem;
    font-size: 14px;
    background: #ffffff;
    font-family: inherit;
    color: #0f172a;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .textarea:focus, .select:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.25);
}
.textarea { resize: vertical; min-height: 80px; }
.label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}
.help  { font-size: 12px; color: #6b7280; margin-top: 4px; }
.error { font-size: 12px; color: #dc2626; margin-top: 4px; }

/* ---------- Kanban ---------- */
.kanban-col {
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 12px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.kanban-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s;
    cursor: pointer;
}
.kanban-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

/* ---------- Confidence badges ---------- */
.conf-high { background: #d1fae5; color: #065f46; }
.conf-med  { background: #fef3c7; color: #92400e; }
.conf-low  { background: #fee2e2; color: #991b1b; }
.conf-high, .conf-med, .conf-low {
    padding: 2px 6px; border-radius: 4px; font-size: 10px; font-weight: 600;
}

/* ---------- Timeline ---------- */
.timeline-item { display: flex; gap: 12px; padding: 8px 0; }
.timeline-dot {
    width: 8px;
    height: 8px;
    margin-top: 6px;
    border-radius: 9999px;
    background: #7c3aed;
    flex-shrink: 0;
}

/* ---------- Avatar ---------- */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.avatar-lg { width: 64px; height: 64px; font-size: 20px; }

/* ---------- Star rating ---------- */
.stars { display: inline-flex; align-items: center; }
.stars .star { color: #f59e0b; }
.stars .star-empty { color: #d1d5db; }

/* ---------- Hero gradient ---------- */
.hero-grad { background: linear-gradient(135deg, #2e1065 0%, #6d28d9 50%, #ec4899 100%); }
.hero-text-grad {
    background: linear-gradient(135deg, #a78bfa 0%, #f0abfc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Funnel bars ---------- */
.funnel-bar {
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(90deg, #7c3aed, #ec4899);
    transition: width 0.3s ease;
    color: white;
    font-weight: 600;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 8px;
}

/* ---------- Misc ---------- */
@media (max-width: 640px) {
    .hide-mobile { display: none; }
}

/* Tailwind utility classes that I use in views but might not be available
   if Tailwind CDN is blocked. These are safe fallbacks — they only get applied
   if Tailwind doesn't define them first (browser uses the last-defined rule,
   and Tailwind injects classes at runtime, so our fallbacks work as backups). */
.bg-ink-50   { background: #f8fafc; }
.bg-ink-900  { background: #0f172a; }
.bg-ink-950  { background: #020617; }
.text-ink-900 { color: #0f172a; }
.text-ink-950 { color: #020617; }
.bg-auvi-50  { background: #f5f3ff; }
.bg-auvi-100 { background: #ede9fe; }
.bg-auvi-600 { background: #6d28d9; }
.bg-auvi-700 { background: #5b21b6; }
.text-auvi-700 { color: #5b21b6; }
.text-auvi-300 { color: #c4b5fd; }
.text-auvi-100 { color: #ede9fe; }
.border-auvi-100 { border-color: #ddd6fe; }
.border-auvi-300 { border-color: #c4b5fd; }
.text-amber-400 { color: #f59e0b; }
.text-gray-300 { color: #d1d5db; }

/* ---------- Critical layout utility fallbacks ----------
   These mirror Tailwind's most-used layout classes so the page renders
   acceptably even if Tailwind CDN is blocked or fails to load.
   Tailwind CDN, when it works, will override these with its own JIT output. */

.max-w-6xl { max-width: 72rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-md  { max-width: 28rem; }
.max-w-sm  { max-width: 24rem; }
.max-w-lg  { max-width: 32rem; }
.max-w-full { max-width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }

.p-2  { padding: 0.5rem; }
.p-3  { padding: 0.75rem; }
.p-4  { padding: 1rem; }
.p-5  { padding: 1.25rem; }
.p-6  { padding: 1.5rem; }
.p-8  { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pt-4 { padding-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-20 { margin-top: 5rem; }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sm\:grid-cols-2 { }
.sm\:grid-cols-3 { }
.sm\:grid-cols-4 { }
.lg\:grid-cols-3 { }
.lg\:grid-cols-4 { }
.lg\:grid-cols-6 { }
.lg\:grid-cols-12 { }
@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .sm\:col-span-2 { grid-column: span 2 / span 2; }
    .sm\:col-span-3 { grid-column: span 3 / span 3; }
    .sm\:col-span-4 { grid-column: span 4 / span 4; }
}
@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .lg\:col-span-2 { grid-column: span 2 / span 2; }
}

.w-full { width: 100%; }
.w-auto { width: auto; }
.w-32 { width: 8rem; }
.w-64 { width: 16rem; }
.min-w-0 { min-width: 0; }
.min-h-screen { min-height: 100vh; }

.text-xs   { font-size: 12px; line-height: 1.4; }
.text-sm   { font-size: 14px; line-height: 1.4; }
.text-base { font-size: 16px; line-height: 1.5; }
.text-lg   { font-size: 18px; line-height: 1.5; }
.text-xl   { font-size: 20px; line-height: 1.4; }
.text-2xl  { font-size: 24px; line-height: 1.3; }
.text-3xl  { font-size: 30px; line-height: 1.2; }
.text-4xl  { font-size: 36px; line-height: 1.1; }
.text-5xl  { font-size: 48px; line-height: 1.0; }
.text-6xl  { font-size: 60px; line-height: 1.0; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-white { color: #ffffff; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-rose-500 { color: #f43f5e; }
.text-rose-600 { color: #e11d48; }
.text-rose-700 { color: #be123c; }
.text-emerald-500 { color: #10b981; }
.text-emerald-600 { color: #059669; }
.text-emerald-700 { color: #047857; }
.text-sky-700 { color: #0369a1; }
.text-amber-500 { color: #f59e0b; }
.text-amber-700 { color: #b45309; }

.bg-white { background: #ffffff; }
.bg-gray-50 { background: #f9fafb; }
.bg-gray-100 { background: #f3f4f6; }
.bg-emerald-50 { background: #ecfdf5; }
.bg-rose-50 { background: #fff1f2; }
.bg-sky-50 { background: #f0f9ff; }
.bg-amber-50 { background: #fffbeb; }
.bg-fuchsia-50 { background: #fdf4ff; }
.bg-violet-50 { background: #f5f3ff; }
.bg-indigo-50 { background: #eef2ff; }
.bg-blue-50 { background: #eff6ff; }

.border { border: 1px solid #e5e7eb; }
.border-t { border-top: 1px solid #e5e7eb; }
.border-b { border-bottom: 1px solid #e5e7eb; }
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: #e5e7eb; }
.border-emerald-200 { border-color: #a7f3d0; }
.border-rose-200 { border-color: #fecdd3; }
.border-amber-200 { border-color: #fde68a; }
.border-sky-200 { border-color: #bae6fd; }
.border-violet-200 { border-color: #ddd6fe; }

.rounded { border-radius: 4px; }
.rounded-lg { border-radius: 8px; }
.rounded-xl { border-radius: 12px; }
.rounded-2xl { border-radius: 16px; }
.rounded-full { border-radius: 9999px; }

.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.shadow-lg { box-shadow: 0 10px 25px rgba(0,0,0,0.15); }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-pre-line { white-space: pre-line; }
.break-all { word-break: break-all; }

.sticky { position: sticky; }
.relative { position: relative; }
.absolute { position: absolute; }
.z-10 { z-index: 10; }
.z-30 { z-index: 30; }
.z-50 { z-index: 50; }

.underline { text-decoration: underline; }
.hover\:underline:hover { text-decoration: underline; }

.divide-y > * + * { border-top: 1px solid #f3f4f6; }

a { color: #6d28d9; text-decoration: none; }
a:hover { text-decoration: underline; }

input, textarea, select { font-family: inherit; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* Brand gradient (used in buttons, headers) */
.grad { background: linear-gradient(135deg, #6d28d9, #ec4899); }
