@charset "UTF-8";

/* 세션 남은 시간 표시 상단 바 */
#sessionTimer {
    display: flex;
    font-size: 13px;
    align-items: center;
    position: absolute;
    top: 20px;
    left: 10px;
    column-gap: 5px;
}
#sessionTimer .clock {
    background: url('../../../images/clock.png') no-repeat; /* CSS 파일 위치 기준 상대 경로 조정 필요 */
    background-size: 14px;
    width: 14px;
    height: 14px;
    margin-top: 2px;
}
#sessionTimer .timer {
    color: #005bac;
    font-weight: bold;
}

/* 팝업 오버레이 전체 영역 제한 */
#popup-session-warning.popup-overlay,
#popup-session-expired.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
    z-index: 10002;
    display: none;
}

/* 활성화 상태 */
#popup-session-warning.popup-overlay.active,
#popup-session-expired.popup-overlay.active {
    display: flex !important;
}

/* 내부 요소 폰트 및 박스 스코프 격리 */
#popup-session-warning.popup-overlay *,
#popup-session-warning.popup-overlay *::before,
#popup-session-warning.popup-overlay *::after,
#popup-session-expired.popup-overlay *,
#popup-session-expired.popup-overlay *::before,
#popup-session-expired.popup-overlay *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans KR', sans-serif;
    letter-spacing: -0.5px;
}

/* 팝업 컨테이너 */
#popup-session-warning .popup-container,
#popup-session-expired .popup-container {
    background-color: #ffffff;
    width: 100%;
    max-width: 460px;
    border-radius: 12px;
    padding: 32px 28px 24px 28px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 닫기 버튼 */
#popup-session-warning .popup-container .btn-close,
#popup-session-expired .popup-container .btn-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #1a1a1a;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
}

/* 콘텐츠 영역 */
#popup-session-warning .popup-content,
#popup-session-expired .popup-content {
    margin-bottom: 35px;
    text-align: left;
}

/* 팝업 타이틀 */
#popup-session-warning .popup-title,
#popup-session-expired .popup-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 16px;
    float: none;
}

/* 팝업 설명 */
#popup-session-warning .popup-desc,
#popup-session-expired .popup-desc {
    font-size: 16px;
    font-weight: 400;
    color: #333333;
    line-height: 1.5;
}

/* 하단 버튼 배치 구역 */
#popup-session-warning .popup-actions,
#popup-session-expired .popup-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    height: 40px;
}

/* 공통 버튼 서식 기본값 */
#popup-session-warning .popup-actions button,
#popup-session-expired .popup-actions button {
    font-size: 15px;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

/* 서브 버튼 (로그아웃, 홈으로) */
#popup-session-warning .popup-actions .btn-secondary,
#popup-session-expired .popup-actions .btn-secondary {
    background-color: #ffffff;
    border: 1px solid #a3a3a3;
    color: #4b5563;
    line-height: 0;
}

/* 메인 기능 버튼 (연장하기, 다시 로그인) */
#popup-session-warning .popup-actions .btn-primary,
#popup-session-expired .popup-actions .btn-primary {
    background-color: #3b82f6;
    border: 1px solid #3b82f6;
    color: #ffffff;
    line-height: 0;
}