/**
 * Enterprise ATS - Custom Corporate Stylesheet
 * Brand Theme: #2E6FA0 Blue
 * Designed for High-DPI Corporate HR Dashboards
 */

:root {
    --primary-color: #2E6FA0;
    --primary-hover: #245880;
    --primary-light: #eaf2f8;
    --secondary-color: #4A5568;
    --dark-sidebar: #1a2530;
    --dark-sidebar-active: #243342;
    --bg-main: #f4f7fb;
    --card-border: #e2e8f0;
    --text-dark: #2d3748;
    --text-muted: #718096;
    --success: #28a745;
    --warning: #f39c12;
    --danger: #e74c3c;
    --info: #17a2b8;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
}

/* Sidebar Styling */
.chart-container {
    position: relative;
    height: 250px;
    width: 100%;
    max-height: 250px;
    overflow: hidden;
}

.ats-wrapper {
    display: flex;
    min-height: 100vh;
}

.ats-sidebar {
    width: 260px;
    background-color: var(--dark-sidebar);
    color: #cbd5e1;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    z-index: 1000;
}

.ats-sidebar .brand-header {
    padding: 18px 20px;
    background-color: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.ats-sidebar .brand-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.15rem;
    margin: 0;
    letter-spacing: 0.5px;
}

.ats-sidebar .nav-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    padding: 16px 20px 6px;
    font-weight: 600;
}

.ats-sidebar .nav-link {
    color: #94a3b8;
    padding: 10px 20px;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.ats-sidebar .nav-link i {
    font-size: 1.1rem;
    width: 22px;
}

.ats-sidebar .nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.06);
}

.ats-sidebar .nav-link.active {
    color: #ffffff;
    background-color: var(--dark-sidebar-active);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

/* Main Content Area */
.ats-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ats-navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--card-border);
    padding: 12px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.ats-content {
    padding: 28px;
    flex-grow: 1;
}

/* Primary buttons with #2E6FA0 */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.badge-primary, .bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Cards & Widgets */
.card {
    border: 1px solid var(--card-border);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    background: #ffffff;
    margin-bottom: 24px;
}

.card-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--card-border);
    padding: 16px 20px;
    font-weight: 600;
}

/* Stat Cards */
.stat-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 16px;
    flex-shrink: 0;
}

.stat-icon.blue { background: #eaf2f8; color: #2E6FA0; }
.stat-icon.green { background: #e8f8f0; color: #28a745; }
.stat-icon.orange { background: #fdf3e8; color: #f39c12; }
.stat-icon.purple { background: #f3ebf9; color: #8e44ad; }
.stat-icon.red { background: #fdeeee; color: #e74c3c; }

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

/* Pipeline Kanban */
.pipeline-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
}

.pipeline-col {
    flex: 0 0 280px;
    background: #edf2f7;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

.pipeline-header {
    padding: 12px 16px;
    font-weight: 700;
    font-size: 0.9rem;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #e2e8f0;
}

.pipeline-body {
    padding: 12px;
    overflow-y: auto;
    flex-grow: 1;
    min-height: 120px;
}

.candidate-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.candidate-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

/* ATS Score Pill */
.ats-score-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ats-score-high { background: #d4edda; color: #155724; }
.ats-score-med { background: #fff3cd; color: #856404; }
.ats-score-low { background: #f8d7da; color: #721c24; }

/* Responsive adjustments */
@media (max-width: 991px) {
    .ats-sidebar {
        position: fixed;
        left: -260px;
        height: 100vh;
    }
    .ats-sidebar.show {
        left: 0;
    }
}
