@charset "UTF-8";
@import url(reset.css);
@import url(fonts.css);

/* ========================================
   기본 변수 (폰트, 고정 색상)
   ======================================== */
:root{
    --Mice:"MiceGothic";
    --nexon:"Nexon-Lv2-Gothic";
    --preten:"Pretendard";
    --paper:"Paperlogy";
    --fontweight-light:100;
    --fontweight-regular:400;
    --fontweight-medium:500;
    --fontweight-semibold:600;
    --fontweight-bold:700;
    --fontweight-exbold:800;
    --color-primary:#059376;
    --color-accent:#07B594;
    --color-blue:#4584FF;
    --color-light-blue:#75e1ff;
    --color-red:#ff5050;
    --color-light-red:#ff9a9a;
    --color-pink:#fc6e88;
    --color-green:rgba(5, 147, 118, 0.6);
    --color-yellow:#f6cd60;
}

/* ========================================
   테마 색상 변수
   ======================================== */

/* 라이트 모드 (기본) */
:root,
[data-theme="light"] {
    /* 배경색 */
    --bg-primary: #FFFFFF;
    --bg-secondary: #EBF8F8;
    --bg-tertiary: #F1F5F9;
    --bg-gradient: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);

    /* 카드 배경 */
    --card-bg: #FFFFFF;
    --card-bg-secondary: rgba(226, 232, 240, 0.4);
    --card-bg-hover: #E2E8F0;
    --card-border: rgba(0, 0, 0, 0.08);
    --card-backdrop: blur(10px);

    /* 텍스트 색상 */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-tertiary: #6E7687;
    --text-muted: #CBD5E1;

    /* GNB 배경 */
    --gnb-bg: linear-gradient(to right, #046B56, var(--color-primary));
    --gnb-text: #FFFFFF;

    /* 아이콘 배경 */
    --icon-bg-light: rgba(15, 23, 42, 0.05);
    --icon-bg-hover: rgba(15, 23, 42, 0.1);

    /* 통계 아이템 배경 */
    --stat-item-bg: rgba(15, 23, 42, 0.04);
    --stat-item-hover: rgba(15, 23, 42, 0.08);

    /* 프로그레스 바 배경 */
    --progress-bg: rgba(15, 23, 42, 0.1);

    /* 강조 색상 (테마 무관) */
    --color-primary-hover: #047A63;
    --color-accent-hover: #047A63;
    --color-success: #10B981;
    --color-success-hover: #059669;
    --color-warning: #F59E0B;
    --color-warning-hover: #D97706;
    --color-danger: #EF4444;
    --color-danger-hover: #DC2626;

    /* 그림자 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);

    /* 버튼 */
    --btn-secondary-bg: rgba(15, 23, 42, 0.06);
    --btn-secondary-border: rgba(0, 0, 0, 0.08);
    --btn-secondary-hover-bg: rgba(5, 147, 118, 0.1);
    --btn-secondary-hover-border: rgba(5, 147, 118, 0.3);

    /* 대시보드 전용 */
    --dashboard-bg: #ebf2fe;
    --dashboard-header-bg: #FFFFFF;
    --dashboard-card-content-bg: #FFFFFF;
    --dashboard-card-bg: #E0F5EF;
    --dashboard-border: rgba(0, 0, 0, 0.08);
    --indicator-number-bg: linear-gradient(90deg, #059376 0%, #046B56 100%);
    --indicator-icon-bg: rgba(5, 147, 118, 0.5);
    --population-icon-bg: #D6E7FF;
    --dashboard-text-primary: #384150;
    --dashboard-text-white: #384150;
    --update-time-color: #5F646E;
    --promise-bar-bg: #D6E7FF;
    --dashboard-header-text: #444444;
    --scrollbar-thumb: #EAECEF;
}

/* 다크 모드 */
[data-theme="dark"] {
    /* 배경색 */
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --bg-tertiary: #334155;
    --bg-gradient: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);

    /* 카드 배경 */
    --card-bg: rgba(30, 41, 59, 0.6);
    --card-bg-secondary: rgba(30, 41, 59, 0.8);
    --card-bg-hover: rgba(30, 41, 59, 0.8);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-backdrop: blur(10px);

    /* 텍스트 색상 */
    --text-primary: #FFFFFF;
    --text-secondary: #E2E8F0;
    --text-tertiary: #94A3B8;
    --text-muted: #64748B;

    /* GNB 배경 */
    --gnb-bg: linear-gradient(to right, #046B56, var(--color-primary));
    --gnb-text: #FFFFFF;

    /* 아이콘 배경 */
    --icon-bg-light: rgba(15, 23, 42, 0.4);
    --icon-bg-hover: rgba(15, 23, 42, 0.6);

    /* 통계 아이템 배경 */
    --stat-item-bg: rgba(15, 23, 42, 0.4);
    --stat-item-hover: rgba(15, 23, 42, 0.6);

    /* 프로그레스 바 배경 */
    --progress-bg: rgba(15, 23, 42, 0.6);

    /* 강조 색상 (동일) */
    --color-primary-hover: #047A63;
    --color-accent-hover: #047A63;
    --color-success: #10B981;
    --color-success-hover: #059669;
    --color-warning: #F59E0B;
    --color-warning-hover: #D97706;
    --color-danger: #EF4444;
    --color-danger-hover: #DC2626;

    /* 그림자 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);

    /* 버튼 */
    --btn-secondary-bg: rgba(30, 41, 59, 0.6);
    --btn-secondary-border: rgba(255, 255, 255, 0.1);
    --btn-secondary-hover-bg: rgba(59, 130, 246, 0.2);
    --btn-secondary-hover-border: rgba(59, 130, 246, 0.4);

    /* 대시보드 전용 */
    --dashboard-bg: #303846;
    --dashboard-header-bg: #141D2C;
    --dashboard-card-content-bg: #141D2C;
    --dashboard-card-bg: #364358;
    --dashboard-border: rgba(255, 255, 255, 0.1);
    --indicator-number-bg: linear-gradient(135deg, #1B7355 0%, #16604A 100%);
    --indicator-icon-bg: rgba(255, 255, 255, 0.1);
    --population-icon-bg: rgba(255, 255, 255, 0.10);
    --dashboard-text-primary: #FFFFFF;
    --dashboard-text-white: #FFFFFF;
    --update-time-color: #ADC4D7;
    --promise-bar-bg: #303846;
    --dashboard-header-text: #FFFFFF;
}

html{font-family:var(--nexon);font-weight:var(--fontweight-light);line-height:normal;font-size:15px;}
body {
    box-sizing: border-box;
    min-width: 1280px;
    font-size: 15px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background 0.3s ease, color 0.3s ease;
}
body.prevent{height:100vh; height:100dvh; overflow:hidden}
button,input,select,textarea{font-family:var(--nexon)}
::-webkit-scrollbar { width: 3px; height: 6px;}
::-webkit-scrollbar-thumb { background:#EAECEF transparent; border-radius: 3px;}
::-webkit-scrollbar-track { background: transparent;}
* { scrollbar-width: thin; scrollbar-color: #EAECEF transparent;}

.wrap {
    background: var(--bg-primary);
    min-height: 100vh;
    width: 100%;
    transition: background 0.3s ease;
}

/* ========================================
   GNB (일반 페이지용)
   ======================================== */
#gnb {
    width: 100%;
    height: 100px;
    background: var(--gnb-bg);
    display: flex;
    align-items: center;
    position: relative;
    transition: transform 0.3s ease;
}
#gnb.fixed {position: fixed; top: 0; left: 0; z-index: 1000; transform: translateY(0);}
#gnb.hidden {transform: translateY(-100%);}
.gnb-wrap {
    width: 1600px;
    margin: 0 auto;
    font-family: var(--paper);
    color: var(--gnb-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-box {width: 300px; height: auto;}
#logo {
    width: 100%;
    display: flex;
    align-items: center;
    color: var(--gnb-text);
    text-decoration: none;
}
#logo img {width: 50px;}
#logo h1 {
    font-size: 24px;
    font-weight: var(--fontweight-bold);
    margin-left: 10px;
    color: var(--gnb-text);
}

/* ========================================
   대시보드 헤더 (GNB - 대시보드용)
   ======================================== */
.dashboard-header {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    background: var(--dashboard-header-bg);
    border-bottom: 1px solid var(--dashboard-border);
    width: 100%;
}

.header-inner {
    width: 100%;
    max-width: 1800px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    position: relative;
}

/* 좌측: 로고 + 날씨 */
.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-left .logo-slogan {
    height: 40px;
    width: auto;
}

/* 날씨 정보 */
.weather-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.weather-icon {
    width: 36px;
    height: 36px;
}

.weather-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.weather-detail .temp {
    font-size: 20px;
    font-weight: 700;
    color: var(--dashboard-header-text);
}

.weather-detail .temp-range {
    font-size: 11px;
    color: var(--update-time-color);
}

/* 중앙: 타이틀 */
.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 헤더 로고 링크 (클릭 가능) */
.header-logo-link {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.header-logo-link:hover {
    opacity: 0.8;
}

.header-center img {
    width: 50px;
    transition: transform 0.3s ease;
}

.header-center span {
    font-size: 28px;
    font-weight: 700;
    font-family: var(--paper);
    color: var(--dashboard-text-primary);
}

/* 우측: 날짜와 시간 */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 50px;
}

.header-right .clock-icon {
    width: 20px;
    height: 20px;
}

.current-time {
    display: flex;
    align-items: center;
    gap: 12px;
}

.current-time .date {
    font-size: 18px;
    color: var(--dashboard-header-text);
    font-weight:400;
}

.current-time .time {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-accent);
}

/* 라이트 모드 아이콘 변경 */
[data-theme="light"] .header-left .logo-slogan {
    content: url(/images/main/slogan_b.png);
}

[data-theme="light"] .header-right .clock-icon {
    content: url(/images/main/icon-clock-lt.png);
}

/* 라이트모드 하단 네비 */
[data-theme="light"] .bottom-nav::before {
    background: #FFFFFF;
}

[data-theme="light"] .nav-btn {
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .nav-btn span {
    color: #475569;
}

[data-theme="light"] .nav-btn img {
    filter: brightness(0) invert(0.3);
}

[data-theme="light"] .nav-btn.nav-arrow::before {
    border-left-color: #475569;
    border-bottom-color: #475569;
}

[data-theme="light"] .nav-btn:hover,
[data-theme="light"] .nav-btn.active {
    background: transparent;
}

[data-theme="light"] .nav-btn:hover span,
[data-theme="light"] .nav-btn.active span {
    color: #FFFFFF;
}

[data-theme="light"] .nav-btn:hover img,
[data-theme="light"] .nav-btn.active img {
    filter: brightness(0) invert(1);
}

[data-theme="light"] .nav-btn:hover.nav-arrow::before,
[data-theme="light"] .nav-btn.active.nav-arrow::before {
    border-left-color: #FFFFFF;
    border-bottom-color: #FFFFFF;
}

/* ========================================
   하단 네비게이션 (공통)
   ======================================== */
.bottom-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 15px 0;
    background: transparent;
    flex-shrink: 0;
    height: auto;
    position: relative;
    width: 100%;
}

.bottom-nav::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1800px;
    height: 70px;
    background: #000000;
    border-radius: 16px;
    z-index: 0;
}

.bottom-nav-inner {
    display: flex;
    width: 100%;
    max-width: 1800px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.nav-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 24px;
    margin: 0;
    background: transparent;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    height: 70px;
    flex: 1;
    max-width: 240px;
    position: relative;
    z-index: 1;
}

.nav-btn:first-child {
    border-left: none;
}

.nav-btn:last-child {
    border-right: none;
}

.nav-btn.nav-home {
    max-width: 80px;
    min-width: 80px;
    padding: 0;
}

.nav-btn.nav-arrow {
    max-width: 80px;
    min-width: 80px;
    padding: 0;
}

.nav-btn.nav-arrow img {
    display: none;
}

.nav-btn.nav-arrow::before {
    content: '';
    width: 10px;
    height: 10px;
    border-left: 1.5px solid #FFFFFF;
    border-bottom: 1.5px solid #FFFFFF;
}

.nav-btn.nav-arrow-left::before {
    transform: rotate(45deg);
}

.nav-btn.nav-arrow-right::before {
    transform: rotate(-135deg);
}

.nav-btn.nav-settings {
    max-width: 100px;
    padding: 0 24px;
}

.nav-btn.nav-settings img {
    width: 32px;
    height: 32px;
    transition: transform 0.4s ease;
}

.nav-btn.nav-settings:hover img {
    transform: rotate(90deg);
}

.nav-btn::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    background: transparent;
    border-radius: 8px;
    z-index: -1;
    transition: background 0.2s ease;
}

.nav-btn:hover::after,
.nav-btn.active::after {
    background: var(--color-primary);
}

.nav-btn img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    transition: transform 0.25s ease;
}

.nav-btn:hover img {
    transform: translateY(-2px);
}

.nav-btn span {
    font-size: 18px;
    font-weight: 500;
    font-family: var(--paper);
    color: #FFFFFF;
    white-space: nowrap;
}

/* ========================================
   공통 카드 스타일
   ======================================== */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 4px;
    margin-bottom: 15px;
}

.card-header h3 {
    font-size: 20px;
    font-weight: 500;
    font-family: var(--paper);
    color: var(--dashboard-text-white);
    margin: 0;
}

.update-time {
    font-size: 11px;
    color: var(--update-time-color);
}

.card-content {
    width: 100%;
}

/* ========================================
   공통 아이콘 원형 스타일
   ======================================== */
.stat-icon-circle,
.card-icon-circle,
.legend-icon {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-circle {
    width: 48px;
    height: 48px;
}

.stat-icon-circle.green,
.card-icon-circle.green,
.legend-icon.green {
    background: rgba(16, 185, 129, 0.2);
    border: 2px solid #10B981;
}

.stat-icon-circle.blue,
.card-icon-circle.blue,
.legend-icon.blue {
    background: rgba(59, 130, 246, 0.2);
    border: 2px solid var(--color-accent);
}

.stat-icon-circle.pink,
.card-icon-circle.pink,
.legend-icon.pink {
    background: rgba(236, 72, 153, 0.2);
    border: 2px solid #EC4899;
}

.stat-icon-circle.red,
.card-icon-circle.red,
.legend-icon.red {
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid #EF4444;
}

.stat-icon-circle img,
.card-icon-circle img {
    width: 24px;
    height: 24px;
}

/* ========================================
   공통 통계 데이터 스타일
   ======================================== */
.stat-data {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number,
.card-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-number small,
.card-number small {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-tertiary);
    margin-left: 2px;
}

.stat-label,
.card-label {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* ========================================
   공통 버튼 스타일
   ======================================== */
.btn-primary {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    padding: 8px 16px;
    background: var(--btn-secondary-bg);
    border: 1px solid var(--btn-secondary-border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--btn-secondary-hover-bg);
    border-color: var(--btn-secondary-hover-border);
}

/* ========================================
   공통 배지 스타일
   ======================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    color: #FFFFFF;
}

.badge-success {
    background: linear-gradient(135deg, var(--color-success) 0%, var(--color-success-hover) 100%);
    color: #FFFFFF;
}

.badge-warning {
    background: linear-gradient(135deg, var(--color-warning) 0%, var(--color-warning-hover) 100%);
    color: #FFFFFF;
}

.badge-danger {
    background: linear-gradient(135deg, var(--color-danger) 0%, var(--color-danger-hover) 100%);
    color: #FFFFFF;
}

/* ========================================
   공통 그리드 레이아웃
   ======================================== */
.stat-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-grid-3x2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* ========================================
   공통 통계 아이템
   ======================================== */
.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--stat-item-bg);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: var(--stat-item-hover);
    transform: translateY(-2px);
}

/* ========================================
   공통 프로그레스 바
   ======================================== */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--progress-bg);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-fill.green {
    background: linear-gradient(90deg, var(--color-success) 0%, var(--color-success-hover) 100%);
}

.progress-fill.blue {
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
}

.progress-fill.yellow {
    background: linear-gradient(90deg, var(--color-warning) 0%, var(--color-warning-hover) 100%);
}

.progress-fill.red {
    background: linear-gradient(90deg, var(--color-danger) 0%, var(--color-danger-hover) 100%);
}

/* ========================================
   공통 텍스트 스타일
   ======================================== */
.text-primary {
    color: var(--color-accent);
}

.text-success {
    color: var(--color-success);
}

.text-warning {
    color: var(--color-warning);
}

.text-danger {
    color: var(--color-danger);
}

.text-white {
    color: #FFFFFF;
}

.text-gray {
    color: var(--text-tertiary);
}

.text-dark-gray {
    color: var(--text-muted);
}

/* ========================================
   공통 배경 스타일
   ======================================== */
.bg-dark {
    background: var(--bg-gradient);
}

.bg-card {
    background: var(--card-bg);
}

.bg-card-light {
    background: var(--stat-item-bg);
}

/* ========================================
   공통 그림자
   ======================================== */
.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

/* ========================================
   공통 애니메이션
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-up {
    animation: slideUp 0.4s ease;
}

/* ========================================
   공통 유틸리티 클래스
   ======================================== */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.gap-8 {
    gap: 8px;
}

.gap-12 {
    gap: 12px;
}

.gap-16 {
    gap: 16px;
}

.gap-20 {
    gap: 20px;
}

.gap-24 {
    gap: 24px;
}

/* ========================================
   테마 토글 버튼
   ======================================== */
.theme-toggle {
    position: relative;
    width: 64px;
    height: 32px;
    border-radius: 50px;
    background: #344054;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 20px;
    transition: background 0.3s ease;
}

.theme-toggle:hover {
    opacity: 0.9;
}

.toggle-track {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.toggle-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #FFFFFF;
    transition: left 0.3s ease;
    z-index: 2;
}

.toggle-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.toggle-icon.moon {
    right: 8px;
    opacity: 1;
}

.toggle-icon.sun {
    left: 8px;
    opacity: 0;
}

/* 라이트 모드 */
[data-theme="light"] .theme-toggle {
    background: #CBD5E1;
}

[data-theme="light"] .toggle-thumb {
    left: 35px;
}

[data-theme="light"] .toggle-icon.moon {
    opacity: 0;
}

[data-theme="light"] .toggle-icon.sun {
    opacity: 1;
}

/* ========================================
   반응형 유틸리티
   ======================================== */
@media (max-width: 1600px) {
    .container {
        max-width: 1400px;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
        margin-left: 15px;
    }

    .theme-toggle-icon {
        font-size: 20px;
    }
}

/* ========================================
   페이지 전체 래퍼 (대시보드, 서브페이지 공통)
   ======================================== */
.dashboard-wrap {
    background: var(--dashboard-bg);
    height: min(100vh, 1400px);
    padding: 0;
    margin: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 1600px;
    width: 100%;
}

/* ========================================
   메인 영역 (대시보드, 서브페이지 공통)
   ======================================== */
.dashboard-main {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 980px;
    max-height: calc(min(100vh, 1400px) - 140px);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 450px 1fr 450px;
    grid-template-rows: 1fr;
    gap: 60px;
    width: 100%;
    max-width: 1860px;
    padding: 24px 40px;
    margin: 0 auto;
    box-sizing: border-box;
    height: 100%;
}

