/* ── Base ─────────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
    background: #f4f6fb;
    color: #17202e;
}

/* ── Layout ───────────────────────────────────────────────── */
.app-wrapper { display: flex; min-height: 100vh; }

.sidebar {
    width: 240px;
    min-height: 100vh;
    background: #fff;
    border-right: 1px solid #e8eaf0;
    padding: 24px 18px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
}
.sidebar-sub  { color: #8b95a1; font-size: 0.78rem; margin: 2px 0 14px; }
.sidebar-hr   { border: none; border-top: 1px solid #f0f2f7; margin: 14px 0; }
.sidebar-caption { color: #adb5bd; font-size: 0.72rem; margin-top: 4px; }

.filter-label { font-size: 0.75rem; font-weight: 600; color: #8b95a1;
                text-transform: uppercase; letter-spacing: 0.06em;
                margin-bottom: 8px; display: block; }

.sidebar-metric  { margin-bottom: 12px; }
.sidebar-metric .s-label { font-size: 0.75rem; color: #8b95a1; }
.sidebar-metric .s-value { font-size: 1.05rem; font-weight: 700; color: #17202e; }
.sidebar-metric .s-delta { font-size: 0.72rem; color: #0abf7a; }

.main { flex: 1; padding: 24px; overflow-y: auto; min-width: 0; }

/* ── Pill Checklist ───────────────────────────────────────── */
.pill-checklist { display: flex; flex-wrap: wrap; gap: 6px; }

.pill-checklist input[type="checkbox"] {
    display: none;
}

.pill-checklist label {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border: 1.5px solid #e1e5ec;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    color: #6b7684;
    background: #fff;
    transition: all 0.15s ease;
    user-select: none;
}
.pill-checklist label:hover {
    border-color: #1352f1;
    color: #1352f1;
}
/* input이 label 안에 있는 Dash 구조 대응 */
.pill-checklist label:has(input:checked) {
    background: #1352f1;
    color: #fff;
    border-color: #1352f1;
    font-weight: 600;
}

/* ── Header Banner ────────────────────────────────────────── */
.header-banner {
    background: linear-gradient(135deg, #1352f1 0%, #4f7ef7 100%);
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 20px;
    color: #fff;
}
.header-banner h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 4px; letter-spacing: -0.02em; }
.header-banner p  { font-size: 0.88rem; opacity: 0.82; }

/* ── KPI Row ──────────────────────────────────────────────── */
.kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.kpi-card {
    background: #fff;
    border: 1px solid #e8eaf0;
    border-radius: 10px;
    padding: 16px 18px;
}
.kpi-label { font-size: 0.74rem; color: #8b95a1; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.kpi-value { font-size: 1.45rem; font-weight: 700; color: #17202e; margin-top: 6px; }
.kpi-delta { font-size: 0.72rem; color: #0abf7a; margin-top: 2px; }

/* ── Tabs ─────────────────────────────────────────────────── */
.tabs-container { margin-bottom: 0; }

.tab-inner {
    background: #fff;
    border: 1px solid #e8eaf0;
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 24px;
}

/* ── Section ──────────────────────────────────────────────── */
.chart-section {
    background: #fff;
    border: 1px solid #e8eaf0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
}
.section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #17202e;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f4ff;
}

/* ── Board ────────────────────────────────────────────────── */
.board-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    align-items: center;
}
.search-input {
    flex: 2;
    padding: 9px 14px;
    border: 1.5px solid #e1e5ec;
    border-radius: 8px;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s;
    color: #17202e;
}
.search-input:focus { border-color: #1352f1; box-shadow: 0 0 0 3px #eef2ff; }
.search-input::placeholder { color: #adb5bd; }
.filter-dropdown { flex: 1; }
.board-count { font-size: 0.8rem; color: #8b95a1; margin-bottom: 12px; font-weight: 500; }

/* ── Job Card ─────────────────────────────────────────────── */
.job-card {
    background: #fff;
    border: 1px solid #e8eaf0;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 8px;
    transition: box-shadow 0.18s, border-color 0.18s;
}
.job-card:hover { box-shadow: 0 4px 18px rgba(19,82,241,0.08); border-color: #c5d3fc; }
.job-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #17202e;
    text-decoration: none;
}
.job-title:hover { color: #1352f1; }
.job-company { font-size: 0.84rem; font-weight: 600; color: #1352f1; margin-top: 3px; }
.job-meta    { font-size: 0.78rem; color: #8b95a1; margin-top: 6px; }
.job-skills  { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px; }

/* ── Skill Badge ──────────────────────────────────────────── */
.skill-badge {
    display: inline-block;
    background: #f0f4ff;
    color: #1352f1;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

/* ── Pagination ───────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-top: 18px;
    font-size: 0.82rem;
    color: #8b95a1;
}
.page-btn {
    background: #fff;
    border: 1.5px solid #e1e5ec;
    border-radius: 8px;
    padding: 6px 16px;
    cursor: pointer;
    font-size: 0.82rem;
    color: #6b7684;
    transition: all 0.15s;
}
.page-btn:hover { background: #f0f4ff; border-color: #1352f1; color: #1352f1; }

/* ── Misc ─────────────────────────────────────────────────── */
.no-data { color: #adb5bd; font-size: 0.88rem; padding: 28px 0; text-align: center; }

/* Dash DataTable */
.dash-table-container { border-radius: 8px; overflow: hidden; border: 1px solid #e8eaf0; }
