/* Pretendard 웹폰트 임포트 */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

/* === 기본 & 모바일 컨테이너 스타일 === */
body {
    margin: 0;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f8f9fa;
}

#mobile-container {
    max-width: 480px;
    min-height: 100vh;
    margin: 0 auto;
    background-color: #f8f9fa;
    box-shadow: 0 0 25px rgba(0,0,0,0.1);
}

/* === ✨ 헤더 (상단 고정) === */
header {
    background: linear-gradient(45deg, #48cae4, #0077b6);
    color: white;
    text-align: center;
    padding: 22px;
    font-size: 1.1em;
    font-weight: 600;
    
    /* 상단 고정 설정 */
    position: sticky;
    top: 0;
    z-index: 10; /* 다른 요소들 위에 오도록 설정 */
}
header h1 { margin: 0; }

/* === ✨ 탭 네비게이션 (상단 고정) === */
.tab-nav {
    display: flex;
    justify-content: flex-start;
    background-color: #ffffff;
    border-bottom: 1px solid #dee2e6;
    overflow-x: auto;
    white-space: nowrap;

    /* 상단 고정 설정 (헤더 바로 아래에 붙도록) */
    position: sticky;
    top: 73px; /* 헤더 높이만큼 아래에 위치 (padding 22*2 + font-size 1.1em*1.5(line-height) ~= 73px) */
    z-index: 10;
    
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar {
    display: none;
}

.tab-button {
    flex: 0 0 auto;
    padding: 14px 20px;
    border: none;
    background-color: transparent;
    font-size: 1.05em;
    font-weight: 500;
    color: #86909c;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease-in-out;
}
.tab-button.active {
    color: #0077b6;
    font-weight: 700;
    border-bottom: 3px solid #0077b6;
}

/* === 탭 콘텐츠 (카드 디자인) === */
.tab-content {
    padding: 16px;
    line-height: 1.7;
}

/* (이하 다른 스타일들은 기존과 동일) */

.tab-content h3 {
    color: #023047;
    border-left: 4px solid #48cae4;
    padding-left: 12px;
    font-size: 1.3em;
    margin-top: 24px;
    margin-bottom: 16px;
}
.tab-content ul { list-style: none; padding: 0; }
.tab-content > ul > li {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.tab-content ul ul { margin-top: 8px; padding-left: 10px; border-left: 2px solid #e9ecef; }
.tab-content ul ul li { padding: 4px 0; }

/* 로그인 페이지 */
.login-container { display: flex; flex-direction: column; justify-content: center; align-items: center; height: 80vh; padding: 20px; }
.login-box { background-color: #fff; padding: 40px; border-radius: 16px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); text-align: center; width: 80%; }
.login-box input { padding: 14px; font-size: 1em; border: 1px solid #ced4da; border-radius: 8px; width: 90%; margin-bottom: 15px; }
.login-box button { width: 100%; padding: 14px; border: none; background-color: #0077b6; color: white; font-size: 1.1em; border-radius: 8px; cursor: pointer; }

/* 로그아웃 탭 */
.tab-button.logout { color: #adb5bd; }

/* 지도 미리보기 */
.map-preview { display: flex; align-items: center; text-decoration: none; background-color: #ffffff; border: 1px solid #dee2e6; border-radius: 12px; padding: 16px; margin-top: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: all 0.2s ease; }
.map-preview:hover { border-color: #0077b6; box-shadow: 0 4px 12px rgba(0,0,0,0.1); transform: translateY(-2px); }
.map-icon { font-size: 2em; margin-right: 16px; }
.map-text { display: flex; flex-direction: column; }
.map-text strong { font-size: 1em; color: #343a40; }
.map-text small { font-size: 0.85em; color: #86909c; }