/* 기본 스타일 및 폰트 설정 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&display=swap');

:root {
    --bg-color: #1a1c23;
    --column-bg: #22252e;
    --header-bg: #2c303a;
    --text-color: #e0e0e0;
    --text-light-color: #b0b0b0;
    --border-color: #3a3f4b;
    --status-on: #28a745;
    --status-off: #dc3545;
    --link-color: #8ab4f8;
}

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

.overview-body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 14px;
    padding: 1.5rem;
}

/* 상단 헤더 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 500;
}

.header-right {
    text-align: right;
}

.last-updated {
    font-size: 0.8rem;
    color: var(--text-light-color);
    margin-bottom: 0.25rem;
}

.detail-link {
    color: var(--link-color);
    text-decoration: none;
    font-size: 0.9rem;
}
.detail-link:hover {
    text-decoration: underline;
}

/* 3단 레이아웃 컨테이너 */
.overview-container {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

/* 각 컬럼 스타일 */
.overview-column {
    flex: 1;
    background-color: var(--column-bg);
    border-radius: 8px;
    padding: 1rem;
    min-width: 0;
}

.overview-column h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    color: #fff;
}

/* 컴팩트 테이블 스타일 */
.compact-table {
    width: 100%;
    border-collapse: collapse;
}

.compact-table td {
    padding: 6px 4px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.compact-table tr:last-child td {
    border-bottom: none;
}

.switch-name {
    width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.switch-name a,
.switch-name a:link,
.switch-name a:visited {
    color: var(--text-light-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.switch-name a:hover {
    color: var(--text-color);
    text-decoration: underline;
}

.status-cell {
    width: 20%;
    text-align: right;
}

.status-on, .status-off {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 10px;
    color: #fff;
    text-align: center;
}

.status-on { background-color: var(--status-on); }
.status-off { background-color: var(--status-off); }


/* ---------------------------------------------- */
/* --- 반응형 디자인: 모바일 환경 스타일 (추가) --- */
/* ---------------------------------------------- */
@media (max-width: 768px) {
    .overview-body {
        padding: 1rem; /* 모바일에서 전체 여백 축소 */
    }

    /* 헤더 레이아웃을 수직으로 변경 */
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .header h1 {
        font-size: 1.5rem; /* 모바일용 타이틀 크기 조절 */
    }

    .header-right {
        text-align: left;
    }

    /* ★★★ 핵심 ★★★ */
    /* 컨테이너의 정렬 방향을 수직(column)으로 변경 */
    .overview-container {
        flex-direction: column;
        gap: 1rem; /* 컬럼 사이의 수직 간격 조절 */
    }
}