/* 모바일 전용 스타일 */
.mobile-layout {
    /* 기본 모바일 레이아웃 설정 */
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    height: 100vh;
    width: 100vw;
}

/* HTML과 Body 기본 설정 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.mobile-layout html,
.mobile-layout body {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    /* 방향 전환 시 부드러운 높이 변화를 위한 트랜지션 */
    transition: height 0.3s ease-out;
}

/* 방향별 추가 스타일 */
.mobile-layout.portrait-mode html,
.mobile-layout.portrait-mode body {
    /* 세로 모드에서 확실한 높이 확보 */
    min-height: 100vh;
    height: 100vh;
}

.mobile-layout.landscape-mode html,
.mobile-layout.landscape-mode body {
    /* 가로 모드에서도 확실한 높이 확보 */
    min-height: 100vh;
    height: 100vh;
}

/* 헤더 스타일 */
.mobile-layout #header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    padding: 8px 8px;
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.1); */
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    /* border-bottom: 1px solid #E5E7EB; */
    /* 부드러운 슬라이드 애니메이션을 위한 트랜지션 */
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0);
    opacity: 1;
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.mobile-layout #search-component {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    transform: translateY(-100%);
    opacity: 0;
    /* 헤더와 동일한 애니메이션 속도와 이징으로 통일 */
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    padding: 0 16px;
    height: 64px;
    border-bottom: 1px solid #E5E7EB;
}

.mobile-layout #search-component.show {
    transform: translateY(0);
    opacity: 1;
}

.mobile-layout #header.hidden,
.mobile-layout #search-component.hidden {
    /* display: none 대신 transform과 opacity 사용 */
    transform: translateY(-100%);
    opacity: 0;
    /* 포인터 이벤트 비활성화 */
    pointer-events: none;
}

.mobile-layout #start,
.mobile-layout #search-component-start {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-layout #start .title-wrapper {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    left: 50px; /* title과 동일한 left 위치로 조정 */
    top: 21px; /* 살짝 위로 조정 */
    max-width: calc(100vw - 8px - 8px - 35px - 50px);
    height: 20px; /* title의 높이와 맞춤 */
}

.mobile-layout #title button {
    flex-shrink: 0;
}

.mobile-layout #start .title-wrapper #title-tooltip {
    border: 2px solid #E5E7EB;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0; /* 축소되지 않도록 */
    position: relative;
    top: 2px;
}

.title-wrapper #title-tooltip svg {
    width: 32px;
    height: 32px;
}

.mobile-layout #search-component-start #search-close-button {
    width: 50px;
    height: 50px;
    border: none;
    background-color: #ffffff;
    outline: none;
    font-size: 16px;
    font-weight: 500;
    color: #111827;
    line-height: 24px;
    margin-right: 10px;
    position: relative;
    left: -6px;
}

.mobile-layout .title-tooltip-section {
    display: flex;
    position: fixed;
    top: 82px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    color: #111827;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #E5E7EB;
    font-size: 16px;
    max-width: 650px;
    word-wrap: break-word;
    z-index: 10000;
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 26px;
    flex: 1 0 0;
    align-self: stretch;
    width: 65%;
    overflow-wrap: anywhere;
}

.mobile-layout #center {
    display: none;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.mobile-layout #search-component-center {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    margin-right: 10px;
}

.mobile-layout #search-component-center #search-input-container {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.mobile-layout #search-component-center #search-input-container #search-input-icon {
    position: absolute;
    left: 16px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.mobile-layout #search-component-center #search-input-container #search-input-icon svg {
    width: 20px;
    height: 20px;
}

.mobile-layout #search-component-center #search-input-container #search-input-clear-icon {
    position: absolute;
    right: 16px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.mobile-layout #search-component-center #search-input-container #search-input-clear-icon:hover {
    background-color: #F3F4F6;
}

.mobile-layout #search-component-center #search-input-container #search-input-clear-icon svg {
    width: 14px;
    height: 14px;
}

.mobile-layout #search-component-center #search-input-container #search-input {
    border-radius: 12px;
    border: 2px solid #E5E7EB;
    width: 100%;
    height: 35px;
    padding: 0 50px;
    font-size: 16px;
    font-weight: 400;
    color: #111827;
    line-height: 24px;
    outline: none;
}



.mobile-layout #end,
.mobile-layout #search-component-end {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 0px;
}

.mobile-layout #end #util {
    margin-left: 0;
    padding-right: 0;
    gap: 0;
    position: absolute;
    left: 9999px;
    top: 9999px;
}

.mobile-layout #search-component-end #search-prev-button,
.mobile-layout #search-component-end #search-next-button {
    width: 30px;
    height: 30px;
    border: none;
    background-color: #ffffff;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-layout #search-component-end #search-prev-button svg,
.mobile-layout #search-component-end #search-next-button svg {
    width: 24px;
    height: 24px;
}

.mobile-layout #footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0px 0px;
    /* border-top: 1px solid #E5E7EB; */
    background: #FFF;
    box-shadow: 0px 4px 28px 0px rgba(0, 0, 0, 0.10);
    height: 64px;
    z-index: 1000;
    /* 슬라이드 애니메이션을 위한 트랜지션 추가 */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    opacity: 1;
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.mobile-layout #footer.hidden {
    /* display: none 대신 transform과 opacity 사용 */
    transform: translateY(100%);
    opacity: 0;
    /* 포인터 이벤트 비활성화 */
    pointer-events: none;
}

.mobile-layout #footer #footer-start,
.mobile-layout #footer #footer-center,
.mobile-layout #footer #footer-end {
  display: flex;
  align-items: center;
}

.mobile-layout #footer #footer-start {
  justify-content: flex-start;
  padding: 0px 16px;
}

.mobile-layout #footer #footer-start #thumbnails-icon {
    width : 32px;
    height: 32px;
    border: none;
    background-color: #ffffff;
    outline: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-layout #footer #footer-start #close-thumbnails-icon {
    width : 32px;
    height: 32px;
    border: none;
    background-color: #ffffff;
    outline: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-layout #footer #footer-start #thumbnails-icon svg {
    width : 20px;
    height: 20px;
}

.mobile-layout #footer #footer-start #close-thumbnails-icon svg {
    width : 20px;
    height: 20px;
}

.mobile-layout #footer #footer-center {
  flex: 1;
  justify-content: center;
}

/* 바텀 시트 애니메이션 */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

.mobile-layout #thumbnail-bottom-sheet {
    display: flex;
    position: fixed;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    border-radius: 24px 24px 0px 0px;
    border-top: 1px solid #E5E7EB;
    background-color: #FFF;
    box-shadow: 0px 4px 28px 0px rgba(0, 0, 0, 0.10);
    animation: slideUp 0.3s ease-out forwards;
    min-width: 0; /* flexbox에서 자식 요소 축소 허용 */
    z-index: 9999;
}

.mobile-layout #thumbnail-bottom-sheet.landscape-bottom-sheet {
    height: 60%;
}

.mobile-layout #thumbnail-bottom-sheet.hidden {
    animation: slideDown 0.3s ease-out forwards !important;
    pointer-events: none;
}

/* .mobile-layout #thumbnail-bottom-sheet.closing {
    animation: slideDown 0.3s ease-out forwards !important;
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
} */

.mobile-layout #thumbnail-bottom-sheet-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: auto;
    margin: 24px;
    overflow-y: auto;
    min-width: 0; /* flexbox에서 자식 요소 축소 허용 */
}

.mobile-layout #thumbnail-bottom-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 16px;
    width: calc(100% - 65px);
    margin: 24px 24px 0;
    position: sticky;
    top: 0;
}

.mobile-layout #thumbnail-bottom-sheet-header-title {
    font-size: 20px;
    font-weight: 700;
    color: #252525;
}

.mobile-layout #thumbnail-bottom-sheet-header-close {
    cursor: pointer;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    padding: 6px;
    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.04);
}

.mobile-layout #thumbnail-bottom-sheet-header-close svg {
    width: 16px;
    height: 16px;
}
.mobile-layout #thumbnail-bottom-sheet-list{
    height: 100%;
    overflow-y: auto;
    min-width: 0; /* flexbox에서 자식 요소 축소 허용 */
}

/* 바텀시트 리스트 영역만 스크롤바 표시 */
.mobile-layout #thumbnail-bottom-sheet-list::-webkit-scrollbar {
    width: 16px;
}

.mobile-layout #thumbnail-bottom-sheet-list::-webkit-scrollbar-track {
    background: #ffffff; /* 트랙(배경) 색상 */
    border-radius: 20px;
}

.mobile-layout #thumbnail-bottom-sheet-list::-webkit-scrollbar-thumb {
    background: #D1D5DB; /* 썸(드래그 부분) 기본 색상 */
    border-radius: 20px;
    transition: background-color 0.2s ease; /* 부드러운 색상 전환 */
}

.mobile-layout #thumbnail-bottom-sheet-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8; /* 호버 시 색상 */
}

.mobile-layout #thumbnail-bottom-sheet-list::-webkit-scrollbar-thumb:active {
    background: #888888; /* 클릭 시 색상 */
}

.mobile-layout #thumbnail-bottom-sheet-list .thumbnail-bottom-sheet-item {
    height: 32px;
    font-size: 16px;
    color: #252525;
    line-height: 25px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #F3F4F6;
    padding: 12px 0 12px 24px;
    /* 텍스트 말줄임표 처리 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 24px); /* 좌우 패딩 고려한 최대 너비 */
    min-width: 0; /* flexbox에서 축소 허용 */
    flex-shrink: 1; /* 필요시 축소 허용 */
    cursor: pointer;
    width: 100%;
}

.mobile-layout #thumbnail-bottom-sheet-list .thumbnail-bottom-sheet-item-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(100% - 24px);
    min-width: 0;
    flex-shrink: 1;
}

/* 선택된 시트 아이템 스타일 */
.mobile-layout #thumbnail-bottom-sheet-list .thumbnail-bottom-sheet-item.selected {
    background-color: #E5E7EB;
    font-weight: 600;
}

.mobile-layout #footer #footer-center #pageCount {
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid #E5E7EB;
    box-shadow: 0px 4px 28px 0px rgba(0, 0, 0, 0.10);
    color: #111827;
    border-radius: 16px;
    background-color: #6B7280;
    width: auto;
    height: 25px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    line-height: 22px;
    padding: 0 10px;
    max-width: 150px;
}

.mobile-layout #footer #footer-center #pageCount #pageCountText {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 150px;
    min-width: 0;
    flex-shrink: 1;
}


.mobile-layout #footer #footer-end {
    justify-content: flex-end;
    padding: 0px 16px;
}

.mobile-layout #footer #footer-end #fitContent-icon {
    width : 35px;
    height: 35px;
    border: none;
    background-color: #ffffff;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-layout #footer #footer-end #fitContent-icon svg {
    width : 20px;
    height: 20px;
}

/* 컨테이너 스타일 */
.mobile-layout #container {
    padding-top : 0px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background-color: #CCCCCC !important;
}

.mobile-layout #content {
    flex: 1;
    width: 100%;
    height: 100%;
    position: relative;
    background-color: #CCCCCC !important;
}

.mobile-layout #container #loadPage {
    position: fixed;
}

.mobile-layout #container #loadPage.fullscreen {
    top: 0;
    height: 100%;
}


/* 본문 영역 높이 애니메이션 */
.mobile-layout #content {
    transition: height 0.3s ease-in-out, top 0.3s ease-in-out, opacity 0.2s ease-in-out;
}

/* UI가 숨겨진 상태 - 전체 화면 */
.mobile-layout #content.fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1;
}

.mobile-layout #content.fullscreen.excel {
    top: 0px !important;
}

/* UI가 보이는 상태 - 헤더/푸터 사이 */
.mobile-layout #content.with-ui {
    position: fixed;
    top: 0 !important; /* 헤더 높이만큼 아래로 */
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important; /* 푸터 높이만큼 위로 */
    width: 100% !important;
    /* height: calc(100vh - 110px - 20px) !important; */
    z-index: 1;
}

/* 검색 컴포넌트가 활성화된 상태 */
.mobile-layout #content.with-search {
    position: absolute;
    top: 0 !important; /* 검색 컴포넌트 높이만큼 아래로 */
    left: 0 !important;
    right: 0 !important;
    bottom: 80px !important; /* 푸터 높이만큼 위로 */
    width: 100% !important;
    height: 100% !important;
    /* height: calc(100vh - 110px - 20px) !important; */
    z-index: 1;
}

/* 검색 모드에서 loadPage 동적 조절 */ 
.mobile-layout #container #loadPage.with-search {
    position: fixed;
    top: 64px !important; /* 검색 컴포넌트 높이 */
    left: 0 !important;
    right: 0 !important;
    bottom: 64px !important; /* 푸터 높이 */
    width: 100% !important;
    height: calc(100% - 128px) !important; /* 검색 컴포넌트(64px) + 푸터(64px) */
}

.mobile-layout #viewer {
    width: 100%;
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

/* 썸네일 섹션 스타일 */
.mobile-layout #thumbnails-section {
    position: fixed;
    top: 64px;
    left: -100%; /* 기본적으로 화면 밖에 위치 */
    width: 60%;
    height: calc(100vh - 64px);
    background: #D1D5DB;
    box-shadow: 2px 0 8px rgba(0,0,0,0.15);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-width: none !important;
    display: flex; /* 항상 flex로 설정 */
    justify-content: center;
    flex-direction: column-reverse;
}

.mobile-layout #thumbnails-section.show {
    left: 0; /* show 클래스가 있을 때 화면에 표시 */
}

/* 아이콘 스타일 */
.mobile-layout .icon {
    touch-action: manipulation;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.mobile-layout .icon:active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 뒤로가기 아이콘 스타일 */
.mobile-layout #back-icon {
    background: none;
    border: none;
    /* padding: 8px; */
    position: absolute;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-layout #back-icon svg {
    width: 20px;
    height: 20px;
}

.mobile-layout #back-icon svg path {
    stroke: #111827;
}

.mobile-layout #back-icon:active {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* 모바일 환경에서 에러 메시지 스타일 */
.mobile-layout .error-message {
    z-index: 10001 !important; /* 헤더(1000)보다 높게 설정 */
    position: fixed; /* absolute 대신 fixed로 변경하여 스크롤에 영향받지 않음 */
    top: 82px; /* 헤더 높이만큼 */
    left: 48%;
    transform: translateX(-50%); /* 진짜 중앙 정렬을 위해 추가 */
    width: calc(100vw - 32px); /* 화면 너비에서 좌우 여백 16px씩 제외 */
    max-width: 600px; /* 최대 너비 제한 */
    padding: 16px;
    margin: 0 16px; /* 좌우 여백 확보 */
    background-color: #111827;
    color: #FDFDFD;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    font-size: 16px;
    font-family: 600;
    line-height: 24px;
    text-align: center;
    word-wrap: break-word;
    word-break: break-word;
    box-sizing: border-box;
    /* transition: all 0.3s ease-in-out; */
    opacity: 1;
    visibility: visible;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.mobile-layout .error-message.visible {
    display: flex;
}

/* 에러 메시지 숨김 상태 */
.mobile-layout .error-message.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
}

/* 다양한 모바일 화면 크기에 대응하는 미디어 쿼리 */
@media (max-width: 375px) {
    .mobile-layout .error-message {
        width: calc(100vw - 24px);
        margin: 0 12px;
        padding: 12px;
        font-size: 16px;
    }
}

@media (min-width: 376px) and (max-width: 414px) {
    .mobile-layout .error-message {
        width: calc(100vw - 28px);
        margin: 0 14px;
        padding: 14px;
        font-size: 16px;
    }
}

@media (min-width: 415px) and (max-width: 768px) {
    .mobile-layout .error-message {
        width: calc(100vw - 32px);
        margin: 0 16px;
        padding: 16px;
        font-size: 16px;
    }
}

/* 태블릿 환경 */
@media (min-width: 769px) {
    .mobile-layout .error-message {
        width: calc(100vw - 48px);
        max-width: 500px;
        margin: 0 24px;
        padding: 18px;
        font-size: 20px;
    }
}

.mobile-layout #title {
    font-size: 16px;
    color : #111827;
    width: 100%; /* 동적 너비로 변경 */
    max-width: calc(100vw - 8px - 8px - 35px - 50px);
    height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    display: flex;
    align-items: center;
    text-align: center;
    font-weight: 500;
    margin: 0;

}

/* title이 wrapper 밖에 있을 때 (기본 상태) */
.mobile-layout #start > #title {
    position: absolute;
    left: 50px; /* 뒤로가기 버튼과 겹치지 않도록 조정 */
    top: 21px; /* wrapper와 동일한 위치로 조정 */
}

.mobile-layout #search-icon {
    border: none;
    background-color: #ffffff;
    outline: none;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-layout #search-icon svg {
    width: 20px;
    height: 20px;
}

.mobile-layout #download-icon {
    border: none;
    background-color: #ffffff;
    outline: none;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-layout #download-icon svg {
    width: 20px;
    height: 20px;
}

.mobile-layout button.active {
    background-color: #E5E7EB !important;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.mobile-layout #thumbnails-section {
    background: #D1D5DB;
    color: white;
}

.mobile-layout #container.landscape-mode #thumbnails-section {
    width: 40% !important;
}

.mobile-layout #dropZone {
    background: #cccccc;
}

.mobile-layout #container #content #dropZone #dropZoneText {
    color: #e9ecef;
}

.mobile-layout #container #content #dropZone #dropZoneSubText {
    color: #2E2E2E;
}


/* 페이지 네비게이션 */
.mobile-layout #pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.mobile-layout #currentLength {
    width: 50px;
    text-align: center;
    background: transparent;
    border: none;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.mobile-layout #currentLength:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.mobile-layout #pageLength {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

/* 줌 컨트롤 */
.mobile-layout #scale {
    width: 60px;
    text-align: center;
    background: transparent;
    border: none;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.mobile-layout #scale:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* 검색 입력 */
.mobile-layout #findText {
    width: 120px;
    padding: 8px 12px;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
}

.mobile-layout #findText::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.mobile-layout #findText:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
}

/* 드롭존 스타일 */
.mobile-layout #dropZone {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    top: 0px !important;
    left: 0px !important;
}

.mobile-layout #dropZone svg {
    margin: 0;
    transition: none !important;
    transform: none !important;
}

.mobile-layout #dropZoneSection {
    text-align: center;
}

.mobile-layout #dropZoneText {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin: 150px 0 8px 0;
}

.mobile-layout #dropZoneSubText {
    font-size: 14px;
    color: #E5E7EB;
    margin: 170px 0 24px 0;
}

.mobile-layout #supportFormat {
    display: none;
}

.mobile-layout #container #content-thumbnails-icon {
    position: absolute;
    z-index: 9999;
    left: 16px;
    top: 80px; /* 일반 모드 기본값 */
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.04);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #FDFDFD;
    /* transition: top 0.3s ease; */
}

/* 검색 모드에서 content-thumbnails-icon 위치 조정 */
.mobile-layout #container #content.with-search #content-thumbnails-icon {
    top: 16px !important;
}

.mobile-layout #container #content-thumbnails-icon.hidden {
    display: none;
}

.mobile-layout #container #content-thumbnails-icon svg{
    width: 32px;
    height: 32px;
}

.mobile-layout #container #thumbnail-section-in-icon {
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.04);
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-layout #container #thumbnail-section-in-icon svg{
    width: 32px;
    height: 32px;
}

.mobile-layout #container #thumbnail-section-in-icon.toggle-thumbnails-icon {
    float: inline-end;
    position: absolute;
    right: 0px;
    top: 0px;
    margin: 16px 16px 0 0;
    z-index: 9999;
}

.mobile-layout #container #content-thumbnails-icon.toggle-thumbnails-icon svg{
   width: 32px;
   height: 32px;
}

/* 로딩 오버레이 */
.mobile-layout #loadingOverlay {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.mobile-layout #loading {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
}

.mobile-layout #loadProcess {
    font-size: 14px;
    color: #495057;
    text-align: center;
}

/* 썸네일 스타일 */
.mobile-layout #thumbnails {
    padding: 60px 0 180px 0;
}

.mobile-layout .thumbnail-container {
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
/* 썸네일 페이지 번호 스타일 */
.mobile-layout .thumbnail-page {
    position: absolute;
    top: 8px;
    left: -4px;
    color: #495057 !important;
    font-size: 16px !important;
    font-weight: 600;
    padding: 4px;
    border-radius: 4px;
    z-index: 10;
    min-width: 20px;
    text-align: center;
    line-height: 1;
}

/* 선택된 썸네일의 페이지 번호 스타일 */
.mobile-layout .thumbnail-container .thumbnail-container-inner.highlight .thumbnail-page {
    color: #000000 !important;
}

.mobile-layout #thumbnails-section #thumbnails .thumbnail-container .thumbnail-container-inner.highlight.selected {
    opacity: 1 !important;
    transition: opacity 0.3s ease;
}

.mobile-layout #thumbnails-section #thumbnails .thumbnail-container .thumbnail-container-inner:hover {
    opacity: 0.5 !important;
}

.mobile-layout .thumbnail-container.active {
    border: 2px solid #007bff;
    transform: scale(1.02);
}

/* 터치 최적화 */
.mobile-layout * {
    -webkit-tap-highlight-color: transparent;
}

.mobile-layout input, 
.mobile-layout button, 
.mobile-layout select, 
.mobile-layout textarea {
    font-size: 16px; /* iOS에서 줌 방지 */
}

/* 스크롤바 숨김 */
.mobile-layout ::-webkit-scrollbar {
    width: 0;
    height: 0;
}