/* NoxHire Premium Design System */
:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --primary-muted: #c7d2fe;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --success-text: #047857;
    --warning-text: #92400e;
    --danger-text: #b91c1c;
    --danger-light: #fef2f2;
    --focus-ring: 0 0 0 4px rgba(79, 70, 229, 0.18);
    --radius: 0.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--slate-900);
    line-height: 1.5;
}

a,
button,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    box-shadow: var(--focus-ring);
}

input:focus,
textarea:focus,
input:focus-visible,
textarea:focus-visible {
    outline: none !important;
}

button:disabled,
[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.72;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 100;
    transform: translateY(-140%);
    border-radius: var(--radius);
    background: var(--slate-900);
    color: #ffffff;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.page-wrapper {
    min-height: calc(100vh - 4rem);
}

.font-outfit {
    font-family: 'Outfit', sans-serif;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--slate-200);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.nav-link {
    position: relative;
    padding-block: 0.25rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link[aria-current="page"] {
    color: var(--primary);
}

.nav-link[aria-current="page"]::after {
    width: 100%;
}

.nav-menu-button {
    min-width: 2.75rem;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    color: var(--slate-700);
    background: #ffffff;
}

.mobile-nav-panel {
    border-top: 1px solid var(--slate-200);
    border-bottom: 1px solid var(--slate-200);
    background: #ffffff;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    border-radius: var(--radius);
    padding: 0.625rem 0.75rem;
    color: var(--slate-700);
    font-size: 0.9375rem;
    font-weight: 700;
}

.mobile-nav-link:hover,
.mobile-nav-link[aria-current="page"] {
    background: var(--primary-light);
    color: var(--primary-hover);
}

/* Hero Section */
.hero-gradient {
    background: radial-gradient(circle at top right, #e0e7ff, transparent),
                radial-gradient(circle at bottom left, #f5f3ff, transparent);
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.card {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.card:hover {
    border-color: var(--slate-300);
}

/* Job Cards */
.job-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--slate-100);
}

.job-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-light);
}

/* Buttons */
.btn {
    min-height: 2.75rem;
    border-radius: var(--radius);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
}

.btn.is-loading,
.is-loading {
    position: relative;
    pointer-events: none;
}

.btn-secondary,
.btn-outline {
    background: #ffffff;
    color: var(--slate-700);
    border: 1px solid var(--slate-200);
    padding: 0.75rem 1rem;
}

.btn-secondary:hover,
.btn-outline:hover {
    background: var(--slate-50);
    border-color: var(--slate-300);
    color: var(--slate-900);
}

.btn-outline {
    box-shadow: none;
}

/* Inputs */
.form-input {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1px solid var(--slate-300);
    border-radius: var(--radius);
    color: var(--slate-900);
    outline: none;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.form-input::placeholder,
.input-style::placeholder {
    color: var(--slate-500);
}

.form-input[aria-invalid="true"],
.input-style[aria-invalid="true"],
.field-invalid {
    border-color: #ef4444;
    background: #fff7f7;
}

.form-input[aria-invalid="true"]:focus,
.input-style[aria-invalid="true"]:focus,
.field-invalid:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.14);
}

.form-label,
.label-style {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--slate-700);
    font-size: 0.875rem;
    font-weight: 700;
}

.form-group {
    min-width: 0;
}

.form-hint {
    margin-top: 0.5rem;
    color: var(--slate-600);
    font-size: 0.8125rem;
    line-height: 1.4;
}

.input-style {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    color: var(--slate-900);
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.input-style:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: var(--focus-ring);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
}

.badge-primary {
    color: var(--primary-hover);
    background: var(--primary-light);
    border-color: #c7d2fe;
}

.badge-success {
    color: var(--success-text);
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.badge-slate {
    color: var(--slate-700);
    background: var(--slate-100);
    border-color: var(--slate-200);
}

.badge-orange,
.badge-warning {
    color: var(--warning-text);
    background: #fffbeb;
    border-color: #fde68a;
}

.badge-danger {
    color: var(--danger-text);
    background: #fef2f2;
    border-color: #fecaca;
}

.choice-card-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.choice-card {
    display: block;
    height: 100%;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    background: #ffffff;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.choice-card-input:focus-visible + .choice-card {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    box-shadow: var(--focus-ring);
}

.choice-card-input:checked + .choice-card {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: inset 0 0 0 1px var(--primary);
}

.choice-card-input:checked + .choice-card .choice-card-icon {
    background: #ffffff;
}

.field-error {
    color: var(--danger-text);
    font-size: 0.8125rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.live-region {
    min-height: 1.25rem;
}

.validation-summary {
    border: 1px solid #fecaca;
    border-radius: var(--radius);
    background: var(--danger-light);
    color: var(--danger-text);
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
}

.status-text {
    color: var(--slate-600);
    font-size: 0.8125rem;
    font-weight: 700;
}

.conversation-item[aria-selected="true"] {
    background: var(--primary-light);
    box-shadow: inset 3px 0 0 var(--primary);
}

.message-bubble {
    overflow-wrap: anywhere;
}

.chat-error {
    border: 1px solid #fecaca;
    background: var(--danger-light);
    color: var(--danger-text);
}

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

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Responsive Utilities */
.container {
    width: 100%;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 640px) {
    .container { max-width: 640px; }
}
@media (min-width: 768px) {
    .container { max-width: 768px; }
}
@media (min-width: 1024px) {
    .container { max-width: 1024px; }
}
@media (min-width: 1280px) {
    .container { max-width: 1280px; }
}

/* Tailwind-like utility classes that I used in base.html */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.hidden { display: none; }
@media (min-width: 768px) { .md\:flex { display: flex; } }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.font-bold { font-weight: 700; }
.text-2xl { font-size: 1.5rem; }
.text-indigo-600 { color: var(--primary); }
.bg-indigo-600 { background-color: var(--primary); }
.rounded-xl { border-radius: 0.75rem; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-50 { z-index: 50; }
.bg-white { background-color: white; }
.border-b { border-bottom: 1px solid var(--slate-100); }
.min-h-screen { min-height: 100vh; }
.bg-slate-900 { background-color: var(--slate-900); }
.text-slate-400 { color: var(--slate-400); }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 768px) { .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gap-12 { gap: 3rem; }
.mb-6 { margin-bottom: 1.5rem; }
.w-full { width: 100%; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.rounded-lg { border-radius: 0.5rem; }
.mt-20 { margin-top: 5rem; }
.pt-8 { padding-top: 2rem; }
.text-center { text-align: center; }
.leading-relaxed { line-height: 1.625; }
.text-white { color: white; }
.font-semibold { font-weight: 600; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.shadow-indigo-600\/20 { box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.2); }
.active\:scale-95:active { transform: scale(0.95); }
.uppercase { text-transform: uppercase; }
.tracking-tight,
.tracking-wider,
.tracking-widest { letter-spacing: 0; }
.text-indigo-500 { color: #6366f1; }
.font-extrabold { font-weight: 800; }
.text-5xl { font-size: 3rem; }
.mb-8 { margin-bottom: 2rem; }
.text-slate-600 { color: var(--slate-600); }
.text-xl { font-size: 1.25rem; }
.max-w-2xl { max-width: 42rem; }
.rounded-2xl { border-radius: 1rem; }
.p-2 { padding: 0.5rem; }
.h-14 { height: 3.5rem; }
.bg-transparent { background-color: transparent; }
.pl-12 { padding-left: 3rem; }
.pr-4 { padding-right: 1rem; }
.relative { position: relative; }
.absolute { position: absolute; }
.left-4 { left: 1rem; }
.top-1\/2 { top: 50%; }
.-translate-y-1\/2 { transform: translateY(-50%); }
.text-slate-400 { color: var(--slate-400); }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.md\:h-auto { height: auto; }
.bg-indigo-700 { background-color: var(--primary-hover); }
.mt-12 { margin-top: 3rem; }
.gap-6 { gap: 1.5rem; }
.bg-gray-50 { background-color: #f9fafb; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.mb-16 { margin-bottom: 4rem; }
.text-3xl { font-size: 1.875rem; }
.bg-white { background-color: white; }
.p-8 { padding: 2rem; }
.border { border: 1px solid var(--slate-200); }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.flex-wrap { flex-wrap: wrap; }
.mt-6 { margin-top: 1.5rem; }
.pt-6 { padding-top: 1.5rem; }
.border-t { border-top: 1px solid var(--slate-100); }
.justify-end { justify-content: flex-end; }
.text-indigo-600 { color: var(--primary); }
.hover\:underline:hover { text-decoration: underline; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }

/* Custom Grid for Hero */
.hero-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 4rem;
}

@media (max-width: 1024px) {
    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-layout .flex {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .btn {
        white-space: normal;
    }

    .container {
        padding-right: 1rem;
        padding-left: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
