body {
    margin: 0;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
    background-color: #ffffff;
}

.canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* UI Panel - Text Overlay */
.control-panel {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    max-height: calc(100vh - 40px); /* 화면 전체 높이 활용 (상하 여백 20px) */
    overflow-y: auto; /* 스크롤 가능하게 변경 */
    width: 280px;
    transition: all 0.3s ease;

    /* 스크롤 하단 페이드 효과 */
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

/* 스크롤바 숨기기 (Chrome, Safari, Opera) */
.control-panel::-webkit-scrollbar {
    display: none;
}

/* 스크롤바 숨기기 (IE, Edge, Firefox) */
.control-panel {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.control-panel.collapsed {
    width: auto;
    max-height: 60px;
    overflow: hidden;
}

.panel-header {
    cursor: pointer;
    margin-bottom: 30px; /* 간격 증가 */
    user-select: none;
}

.control-panel.collapsed .panel-header {
    margin-bottom: 0;
}

.panel-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.panel-subtitle {
    font-size: 12px;
    color: #666;
}

.panel-content {
    display: block;
}

.control-panel.collapsed .panel-content {
    display: none;
}

.panel-section {
    margin-bottom: 15px;
}

.section-title {
    font-size: 12px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    border-bottom: none; /* 구분선 제거 */
    padding-bottom: 0;
}

.control-item {
    font-size: 12px;
    color: #555;
    margin-bottom: 3px;
    padding: 2px 5px;
    border-radius: 0;
    width: fit-content;
    transition: background 0.2s, color 0.2s;
}

.control-item.clickable {
    cursor: pointer;
}

.control-item.clickable:hover {
    text-decoration: underline;
    color: #000;
}

.control-item.text-only {
    cursor: default;
    text-decoration: none !important;
}

.control-item.active {
    background: #000 !important;
    color: #fff !important;
    font-weight: bold;
    text-decoration: none !important;
}

/* Multi-view Overlay */
.multiview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* 클릭 통과 */
    z-index: 900;
}

.multiview-line {
    position: absolute;
    background-color: #000;
}

.multiview-line-vertical {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
}

.multiview-line-horizontal {
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
}

.multiview-label {
    position: absolute;
    background: rgba(255, 255, 255, 0.7);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    color: #333;
    pointer-events: none;
}

.multiview-label-front { top: 10px; right: 10px; } /* 1 */
.multiview-label-side { top: 10px; left: 10px; } /* 2 */
.multiview-label-top { bottom: 10px; left: 10px; } /* 3 */
.multiview-label-bottom { bottom: 10px; right: 10px; } /* 4 */

/* Scrollbar styling - Hidden */
.control-panel::-webkit-scrollbar {
    display: none;
}
/* 
.control-panel::-webkit-scrollbar {
    width: 6px;
}
.control-panel::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
.control-panel::-webkit-scrollbar-thumb {
    background: #ccc; 
    border-radius: 3px;
}
.control-panel::-webkit-scrollbar-thumb:hover {
    background: #aaa; 
}
*/
