/* ===========================================
   기본 설정 및 레이아웃
   =========================================== */

* {
    font-family: 'Pretendard', sans-serif !important;
}

html, body {
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* 가로 스크롤 방지 */
}

/* 전체 페이지 구조: nav + layout-container */
body {
    display: flex;
    flex-direction: column;
}

/* 네비게이션 바는 nav.css에서 이미 정의되어 있으므로 여기서는 flex 관련만 */
.header {
    flex-shrink: 0; /* 크기 고정 */
    /* height는 nav.css에서 이미 65px로 정의됨 */
}

/* 전체 레이아웃 컨테이너 (남은 공간 모두 사용) */
.layout-container {
    flex: 1; /* 남은 공간 모두 차지 */
    display: flex;
    flex-direction: column;
    min-height: 0; /* flex 아이템의 기본 min-height auto 해제 */
}

/* 메인 콘텐츠 영역 */
.main-content {
    flex: 1;
    background-color: #ffffff;
    overflow-y: auto; /* 내용이 넘칠 때만 스크롤 */
    box-sizing: border-box;
}

/* 세션 만료 모달 스타일 */
.session-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.session-modal {
    background: #ffffff;
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    max-width: 320px;
    width: 85%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.session-modal h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 16px 0;
}

.session-modal p {
    font-size: 15px;
    color: #6b7280;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.session-modal-confirm {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.session-modal-confirm:hover:not(:disabled) {
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
    transform: translateY(-1px);
}

.session-modal-confirm:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 반응형 디자인 */
@media (max-width: 480px) {
    .session-modal {
        max-width: 280px;
        padding: 24px;
    }

    .session-modal h2 {
        font-size: 18px;
    }

    .session-modal p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .session-modal-confirm {
        height: 44px;
        font-size: 14px;
    }
}