/* =========================================================================
   Adroit AI ATS - Executive Navy & Crisp White Enterprise Design System
   Inspired by LinkedIn Recruiter, Greenhouse & Stripe Enterprise
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    /* Main Canvas: Crisp Bright White & Slate */
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --border-color: #e2e8f0;
    --border-subtle: #f1f5f9;
    --border-focus: #2563eb;

    /* Executive Navy Sidebar */
    --bg-sidebar: #0f172a;
    --bg-sidebar-hover: rgba(255, 255, 255, 0.08);
    --bg-sidebar-active: #1e293b;
    --sidebar-text: #f8fafc;
    --sidebar-text-muted: #94a3b8;
    --sidebar-border: rgba(255, 255, 255, 0.1);

    /* Brand Accents */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --primary-glow: rgba(37, 99, 235, 0.2);

    --success: #059669;
    --success-hover: #047857;
    --success-light: #ecfdf5;

    --warning: #d97706;
    --warning-light: #fffbeb;

    --danger: #dc2626;
    --danger-hover: #b91c1c;
    --danger-light: #fef2f2;

    --accent-purple: #7c3aed;
    --accent-purple-light: #f5f3ff;

    /* High-Contrast Typography */
    --text-main: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-dim: #94a3b8;

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Outfit', var(--font-main);
    --font-mono: 'JetBrains Mono', monospace;

    /* Elevation & Shapes */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-modal: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* App Container */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* =========================================================================
   1. Sidebar (Executive Navy)
   ========================================================================= */
.sidebar {
    width: 280px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    padding: 22px 16px;
    flex-shrink: 0;
    z-index: 30;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px 18px;
    border-bottom: 1px solid var(--sidebar-border);
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: white;
    font-weight: 800;
    font-size: 1.25rem;
    font-family: var(--font-heading);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.brand-text h2 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.brand-text span {
    font-size: 0.725rem;
    color: var(--sidebar-text-muted);
}

/* Active Consultant Sidebar Card */
.active-consultant-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 12px;
    margin: 16px 0;
}

.active-label {
    font-size: 0.675rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #38bdf8;
    margin-bottom: 6px;
}

.consultant-dropdown {
    width: 100%;
    background: #0b0f19;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.825rem;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    outline: none;
    cursor: pointer;
}

.consultant-sub-badges {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.mini-badge {
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    color: var(--sidebar-text-muted);
}

.mini-badge.rate-tag {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    font-weight: 600;
}

.mini-badge.badge-connected {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.mini-badge.badge-disconnected {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.nav-section-title {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.08em;
    padding: 14px 10px 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    color: var(--sidebar-text-muted);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.nav-item:hover {
    background: var(--bg-sidebar-hover);
    color: #ffffff;
}

.nav-item.active {
    background: #1e293b;
    color: #ffffff;
    font-weight: 600;
    border-left: 3px solid #38bdf8;
}

.nav-badge {
    margin-left: auto;
    font-size: 0.675rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-full);
}

.live-badge { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.count-badge { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }
.draft-badge { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.docx-badge { background: linear-gradient(135deg, #3b82f6, #8b5cf6); color: #ffffff; }

/* Sidebar Footer */
.sidebar-footer {
    padding-top: 16px;
    border-top: 1px solid var(--sidebar-border);
}

.user-profile-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid #38bdf8;
}

.user-info .name { font-size: 0.825rem; font-weight: 600; color: #ffffff; }
.user-info .role { font-size: 0.7rem; color: var(--sidebar-text-muted); }

.logout-btn {
    margin-left: auto;
    color: #64748b;
    transition: color 0.2s;
}
.logout-btn:hover { color: #f87171; }

/* =========================================================================
   2. Main Layout & Top Header (Crisp Light Mode)
   ========================================================================= */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #f8fafc;
}

.top-header {
    height: 64px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    width: 440px;
}

.header-search svg { width: 16px; height: 16px; color: #94a3b8; }
.header-search input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 0.85rem;
    width: 100%;
}
.header-search input::placeholder { color: #94a3b8; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    outline: none;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-sm { padding: 6px 12px; font-size: 0.775rem; border-radius: var(--radius-sm); }
.btn-xs { padding: 4px 8px; font-size: 0.725rem; border-radius: var(--radius-sm); }
.btn-block { width: 100%; }

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-secondary);
    border: 1px solid #cbd5e1;
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: var(--text-main);
}

.btn-success {
    background: var(--success);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}
.btn-success:hover { background: var(--success-hover); }

.btn-danger {
    background: var(--danger);
    color: #ffffff;
}
.btn-danger:hover { background: var(--danger-hover); }

.btn-outline-primary {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}
.btn-outline-primary:hover {
    background: #2563eb;
    color: #ffffff;
}

/* Content Area */
.content-area {
    padding: 32px;
    flex: 1;
}

.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn 0.2s ease; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section Header */
.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 4px;
    max-width: 800px;
}

.stats-pills {
    display: flex;
    gap: 10px;
}

.pill {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: #ffffff;
    border: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-muted);
    box-shadow: var(--shadow-sm);
}
.pill strong { color: var(--text-main); margin-right: 4px; }
.pill-green { background: #ecfdf5; border-color: #a7f3d0; }
.pill-green strong { color: #059669; }
.pill-purple { background: #f5f3ff; border-color: #ddd6fe; }
.pill-purple strong { color: #7c3aed; }

/* Filter Card */
.filter-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px 22px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
}

.filter-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr auto;
    gap: 16px;
    align-items: flex-end;
}

.filter-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.filter-group input,
.filter-group select,
.form-control {
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--text-main);
    padding: 9px 12px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    outline: none;
    font-family: inherit;
    transition: all 0.2s;
}

.filter-group input:focus,
.filter-group select:focus,
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.filter-actions {
    display: flex;
    gap: 8px;
}

/* =========================================================================
   3. Data Tables (Crisp High-Contrast White)
   ========================================================================= */
.jobs-table-wrap {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.table-header-info {
    padding: 14px 20px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.table-tip { color: #d97706; font-weight: 600; font-size: 0.775rem; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th {
    padding: 12px 18px;
    font-size: 0.725rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
    background: #f8fafc;
}

.data-table td {
    padding: 15px 18px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.85rem;
    vertical-align: middle;
    color: var(--text-secondary);
}

.data-table tr:hover td {
    background: #f8fafc;
}

.job-main-cell .job-title {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.925rem;
    margin-bottom: 3px;
}

.job-main-cell .job-sub {
    font-size: 0.775rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.source-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.725rem;
    font-weight: 600;
}

.tag-linkedin { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.tag-dice { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.tag-indeed { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.tag-ziprecruiter { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.tag-careerbuilder { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.tag-generic { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }

.rate-cell {
    font-family: var(--font-mono);
    font-weight: 700;
    color: #059669;
    font-size: 0.85rem;
}

/* In-Table Email Input */
.email-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.table-email-input {
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--text-main);
    padding: 7px 10px;
    padding-right: 28px;
    border-radius: var(--radius-sm);
    font-size: 0.825rem;
    outline: none;
    transition: all 0.2s;
}

.table-email-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.table-email-input.has-email {
    border-color: #a7f3d0;
    background: #f0fdf4;
}

.email-saved-indicator {
    position: absolute;
    right: 8px;
    color: #059669;
    display: none;
    font-size: 0.8rem;
}

.row-consultant-select {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--text-main);
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.775rem;
    width: 100%;
    outline: none;
}

.row-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.loading-cell {
    text-align: center;
    padding: 48px !important;
    color: var(--text-muted);
}

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

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

/* =========================================================================
   4. Consultants Grid & Cards
   ========================================================================= */
.consultants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}

.consultant-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.consultant-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
    border-color: #cbd5e1;
}

.cand-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cand-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    font-weight: 700;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.cand-details h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
}

.cand-details .cand-title {
    font-size: 0.825rem;
    color: #475569;
    font-weight: 500;
}

.cand-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.775rem;
}

.meta-chip {
    padding: 3px 9px;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}

.meta-chip.green {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #059669;
    font-weight: 600;
}

.cand-skills-box {
    font-size: 0.775rem;
    color: var(--text-secondary);
    background: #f8fafc;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    line-height: 1.4;
}

.cand-integrations {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.integration-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.775rem;
    color: var(--text-secondary);
}

.cand-card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
}

/* =========================================================================
   5. Pipeline Kanban
   ========================================================================= */
.pipeline-kanban {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.pipeline-column {
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    min-height: 400px;
}

.column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #cbd5e1;
    margin-bottom: 14px;
}

.col-title { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; color: var(--text-main); }
.col-count {
    background: #e2e8f0;
    color: var(--text-secondary);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.725rem;
    font-weight: 700;
}

.app-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.app-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
    border-color: #cbd5e1;
}

.app-card-title { font-weight: 600; color: var(--text-main); margin-bottom: 4px; }
.app-card-sub { color: var(--text-muted); font-size: 0.725rem; }
.app-card-recruiter { color: #059669; font-size: 0.725rem; margin-top: 6px; font-weight: 600; }

/* =========================================================================
   6. Resume Bot Studio
   ========================================================================= */
.resume-studio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.studio-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text-main);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.775rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-hint {
    display: block;
    font-size: 0.725rem;
    color: var(--text-muted);
    margin-top: 4px;
}

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

/* Match Score Bar */
.results-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.badge-domain {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.match-score-bar-wrap {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.score-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.progress-track {
    height: 10px;
    background: #e2e8f0;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #059669);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.skills-matched-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.skill-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 14px;
    border-radius: var(--radius-md);
}

.skill-box h4 {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-item {
    background: #e2e8f0;
    color: #334155;
    font-size: 0.725rem;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.tag-item.added {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

/* =========================================================================
   7. Modals (Clean Pure White Dialogs)
   ========================================================================= */
.modal-backdrop, .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    animation: fadeIn 0.2s ease;
}

.modal-dialog {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 640px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-modal);
}

.modal-dialog.modal-sm { width: 440px; }

.modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
}

.modal-header h3 { font-size: 1.15rem; font-weight: 700; color: var(--text-main); }
.modal-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}
.modal-close:hover { color: var(--text-main); }

.modal-body {
    padding: 24px;
    background: #ffffff;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #f8fafc;
}

/* Toast Container */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1300;   /* above the Sourcing tracker card (1201) */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 320px;
    animation: slideUp 0.25s ease;
}

.toast.toast-success { border-left: 4px solid var(--success); }
.toast.toast-error { border-left: 4px solid var(--danger); }
.toast.toast-info { border-left: 4px solid var(--primary); }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* AI Outreach Copilot & Prompt Chips */
.btn-prompt-chip {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-prompt-chip:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
}

/* Candidate Pipeline Status Pills */
.status-active { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.status-offer { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.status-sourcing { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.status-rejected { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
