/* =====================================================
   pages/main.css — 메인(대시보드) 페이지 전용 스타일
===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&family=DM+Sans:wght@300;400;500;700&family=Syne:wght@700;800&display=swap');

body {
    font-family: 'DM Sans', 'Noto Sans KR', sans-serif;
    background: #f5f5f4;
}

/* ── 본문 ── */
.body-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.pb-bottom { padding-bottom: 80px; }

/* ── 섹션 타이틀 ── */
.section-title {
    font-size: 14px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.more-btn {
    font-size: 11px;
    color: #c8900a;
    font-weight: 600;
    cursor: pointer;
}
.more-btn:hover { text-decoration: underline; }

/* ── KPI 카드 그리드 ── */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.kpi-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kpi-label {
    font-size: 11px;
    color: #9a9a9a;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.kpi-value {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
}

.kpi-sub {
    font-size: 11px;
    color: #5a5a5a;
    font-weight: 500;
}

.kpi-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
}
.kpi-badge.up   { background: #f0fdf4; color: #16a34a; }
.kpi-badge.down { background: #fef2f2; color: #dc2626; }
.kpi-badge.new  { background: #fff7ed; color: #c8900a; }

/* ── 현황 리스트 ── */
.status-list {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.sl-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid #f5f5f4;
    cursor: pointer;
    transition: background 0.15s;
}
.sl-item:hover { background: #fafaf9; }
.sl-item:last-child { border-bottom: none; }

.sl-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #fff7ed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.sl-name { font-size: 13px; font-weight: 700; color: #1a1a1a; }
.sl-sub  { font-size: 10px; color: #9a9a9a; margin-top: 2px; }
.sl-right { margin-left: auto; text-align: right; }
.sl-value { font-size: 13px; font-weight: 700; color: #1a1a1a; }
.sl-label { font-size: 11px; color: #9a9a9a; margin-top: 2px; }

/* ── 공지 리스트 ── */
.notice-list {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.nl-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid #f5f5f4;
    cursor: pointer;
    transition: background 0.15s;
}
.nl-item:hover { background: #fafaf9; }
.nl-item:last-child { border-bottom: none; }

.nl-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    background: #fff7ed;
    color: #c8900a;
    white-space: nowrap;
    flex-shrink: 0;
}
.nl-badge.urgent { background: #fef2f2; color: #dc2626; }

.nl-title { font-size: 13px; font-weight: 600; color: #1a1a1a; }
.nl-date  { font-size: 10px; color: #9a9a9a; margin-top: 2px; }
.nl-right { margin-left: auto; }
.nl-arrow { font-size: 12px; color: #9a9a9a; }

/* ── 탭 컨텐츠 ── */
.tab-content { height: 100%; }

.tab-center {
    align-items: center;
    justify-content: center;
}

.tab-placeholder-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #9a9a9a;
}

/* =====================================================
   반응형 — 태블릿 (768px+)
===================================================== */
@media (min-width: 768px) {
    .body-content { padding: 20px; gap: 24px; }

    .kpi-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .kpi-value { font-size: 28px; }

    .section-title { font-size: 15px; }

    .sl-item { padding: 14px 20px; }
    .nl-item { padding: 14px 20px; }
}

/* =====================================================
   반응형 — 데스크탑 (1200px+)
===================================================== */
@media (min-width: 1200px) {
    .body-content { padding: 24px 28px; gap: 28px; }
    .pb-bottom    { padding-bottom: 40px; }

    .section-title { font-size: 16px; }
    .more-btn      { font-size: 12px; }

    .kpi-card  { padding: 20px; }
    .kpi-value { font-size: 32px; }

    .sl-item  { padding: 16px 20px; }
    .sl-name  { font-size: 14px; }
    .sl-value { font-size: 14px; }

    .nl-item  { padding: 16px 20px; }
    .nl-title { font-size: 14px; }

    .tab-placeholder-text { font-size: 1.4rem; }
}
