/* 파일명: st003_toolbox.css */

/* 파일명: st003_toolbox.css - Windows Classic Dark High-Density Theme (Footer Fixed & Compact) */
/* 파일명: st003_toolbox.css - Windows Classic Dark High-Density Theme */

#st003-toolbox-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1e1e1e;
    border-top: 2px solid #555555;
    padding: 4px 8px;
    box-sizing: border-box;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Gulim', 'Dotum', Tahoma, sans-serif;
    font-size: 11px;
    color: #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
}

.st003-toolbox-group {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

/* 초소형 윈도우 레트로 버튼 */
.st003-toolbox-btn {
    background-color: #2b2b2b;
    border-top: 1px solid #555555;
    border-left: 1px solid #555555;
    border-right: 1px solid #111111;
    border-bottom: 1px solid #111111;
    padding: 3px 6px;
    font-size: 11px;
    color: #e0e0e0;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.2;
    box-sizing: border-box;
    user-select: none;
}

.st003-toolbox-btn:active {
    border-top: 1px solid #111111;
    border-left: 1px solid #111111;
    border-right: 1px solid #555555;
    border-bottom: 1px solid #555555;
    padding: 4px 5px 2px 7px;
}

.st003-toolbox-label {
    font-size: 11px;
    font-weight: bold;
    color: #66b0ff;
    padding: 0 4px;
}

/* 툴박스 모달 팝업 컨테이너 (모바일 반응형 대응) */
#st003_toolbox_modal {
    display: none;
    position: fixed;
    bottom: 34px;
    left: 8px;
    z-index: 9999;
    width: calc(100vw - 16px);
    max-width: 400px;
    max-height: calc(100vh - 60px);
    background: #1e1e1e;
    border: 2px solid #555555;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.7);
    box-sizing: border-box;
    overflow-y: auto;
}

/* 모달 헤더 */
.st003-toolbox-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2d2d2d;
    padding: 4px 8px;
    border-bottom: 1px solid #444444;
    position: sticky;
    top: 0;
    z-index: 10;
}

.st003-toolbox-modal-title {
    font-size: 11px;
    font-weight: bold;
    color: #66b0ff;
    font-family: 'Gulim', 'Dotum', Tahoma, sans-serif;
}

/* 파이어폭스/크롬 공통 고대비 닫기 버튼 */
.st003-toolbox-close-btn {
    background: #3a1c1c;
    border: 1px solid #773333;
    color: #ff9999;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
    padding: 2px 6px;
    box-sizing: border-box;
}

.st003-toolbox-close-btn:hover {
    background: #ff4444;
    color: #ffffff;
    border-color: #ffffff;
}

#st003_toolbox_body {
    padding: 6px;
    box-sizing: border-box;
}

/* 은닉 상태 공통 */
.st003-is-hidden {
    display: none !important;
}

/* 모바일 화면 최적화 */
@media screen and (max-width: 480px) {
    #st003_toolbox_modal {
        left: 4px;
        width: calc(100vw - 8px);
        bottom: 36px;
    }
}