:root {
    --primary: #6366f1;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --accent: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.75rem;
    background: rgba(255,255,255,0.95);
    border-radius: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 0;
    border-bottom: 1px solid var(--border);
}

/* Shared navbar link styles */
.ats-nav-link {
    font-size: 0.8rem;
    padding: 0.38rem 0.85rem;
    border-radius: 0.6rem;
    font-weight: 700;
    transition: all 0.18s ease;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    letter-spacing: 0.01em;
}
.ats-nav-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.ats-nav-active {
    box-shadow: 0 4px 14px rgba(99,102,241,0.3) !important;
}
.ats-nav-link svg {
    flex-shrink: 0;
}

/* Page body starts below sticky nav */
body > .container,
body > div.container {
    padding-top: 1.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

/* Common Layouts */
.dashboard-grid {
    display: grid;
    grid-template-columns: 320px 1fr 400px;
    gap: 1.5rem;
    height: calc(100vh - 120px);
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.scroll-y {
    overflow-y: auto;
}

/* Buttons */
.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

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

/* Job Cards */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.job-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 1.25rem;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
}

.job-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

/* Modal */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card-bg);
    width: 90%;
    max-width: 600px;
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    overflow-y: auto;
}

/* Analysis UI */
.score-circle-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 2rem auto;
}

.score-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: 800;
}

.candidate-item {
    padding: 1rem;
    border-radius: 1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    background: #f8fafc;
}

.candidate-item:hover {
    background: #f1f5f9;
}

.candidate-item.active {
    border-color: var(--primary);
    background: var(--primary-gradient);
    color: white;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    background: #eef2ff;
    color: var(--primary);
}

/* PDF Previewer */
#pdf-canvas {
    /* Removed max-width to allow zooming */
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    background: white;
}
