Files
Tunnel3D/style.css
T

850 lines
14 KiB
CSS

/**
* ============================================================================
* 프로젝트: 터널 단면 3D 파라메트릭 모델러 (Tunnel Modeler 3D)
* 개발자: m12205.tdc.hanmacgroup@gmail.com
* 저작권: Copyright (c) 2026 m12205.tdc.hanmacgroup@gmail.com. All rights reserved.
* ============================================================================
*/
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+KR:wght@400;500;600;700&display=swap');
:root {
font-family: 'DM Sans', 'Noto Sans KR', sans-serif;
color: #e8edf5;
background: #0b0f15;
font-synthesis: none;
font-optical-sizing: auto;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-height: 100vh;
background: #0b0f15;
overflow: hidden;
}
/* 상단 바 */
.topbar {
height: 64px;
display: flex;
align-items: center;
gap: 12px;
padding: 0 24px;
border-bottom: 1px solid #202734;
background: #10151d;
}
.brand-mark {
width: 34px;
height: 34px;
border-radius: 10px;
background: linear-gradient(145deg, #50d6c5, #219b99);
display: grid;
place-items: center;
color: #061514;
font-weight: 800;
font-size: 19px;
}
.topbar strong {
display: block;
font-size: 14px;
letter-spacing: -0.2px;
}
.topbar small {
display: block;
margin-top: 2px;
color: #8490a2;
font-size: 11px;
}
.top-status {
margin-left: auto;
font-size: 11px;
color: #909bac;
display: flex;
align-items: center;
gap: 8px;
}
.status-dot {
width: 7px;
height: 7px;
border-radius: 50%;
background: #57c9a9;
box-shadow: 0 0 10px #57c9a955;
}
/* 메인 레이아웃 */
.layout {
height: calc(100vh - 64px);
min-height: 600px;
display: grid;
grid-template-columns: 340px 1fr;
}
/* 좌측 사이드바 */
.sidebar {
background: #111720;
border-right: 1px solid #202734;
overflow-y: auto;
padding: 20px 18px 16px;
}
.panel {
padding: 0 4px 18px;
margin-bottom: 18px;
border-bottom: 1px solid #252d39;
}
.section-kicker {
font-size: 9px;
font-weight: 700;
letter-spacing: 1.4px;
color: #5dc6bb;
text-transform: uppercase;
margin-bottom: 10px;
}
.panel h1 {
font-size: 17px;
margin: 0 0 14px;
letter-spacing: -0.5px;
}
.panel h2 {
font-size: 14px;
margin: 0;
}
.detection-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 12px;
}
.dropzone {
height: 136px;
border: 1px dashed #394554;
border-radius: 9px;
background: #151d27;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
cursor: pointer;
transition: 0.2s;
}
.dropzone:hover,
.dropzone.dragging {
border-color: #55c8bc;
background: #16242a;
}
.dropzone input {
display: none;
}
.upload-icon {
width: 28px;
height: 28px;
border: 1px solid #415465;
border-radius: 8px;
display: grid;
place-items: center;
color: #66d4c6;
font-size: 18px;
margin-bottom: 10px;
}
.dropzone b {
font-size: 12px;
font-weight: 600;
}
.dropzone small {
font-size: 10px;
color: #8994a3;
margin-top: 5px;
}
.sample-actions {
display: flex;
gap: 12px;
align-items: center;
}
.quiet-button {
background: none;
border: 0;
color: #8794a4;
font: inherit;
font-size: 11px;
padding: 10px 0 0;
cursor: pointer;
}
.quiet-button:hover {
color: #5dc6bb;
}
.file-meta {
font-size: 10px;
color: #aeb9c8;
margin: 10px 0 0;
word-break: break-all;
padding: 6px 8px;
background: #151d27;
border-radius: 5px;
border-left: 3px solid #57c6ba;
}
.hidden {
display: none !important;
}
/* 모델 길이 입력 및 프리셋 */
.length-label {
display: flex;
justify-content: space-between;
color: #b9c3d0;
font-size: 11px;
margin-bottom: 7px;
}
.length-label span,
.length-input > span {
color: #8390a1;
}
.length-input {
display: flex;
align-items: center;
gap: 10px;
}
.length-input input {
width: 100%;
height: 36px;
background: #0d131b;
border: 1px solid #303b49;
border-radius: 6px;
padding: 0 10px;
color: #eef4f8;
font: inherit;
font-size: 14px;
}
.length-input input:focus {
outline: 1px solid #53bcb2;
}
.length-presets {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 6px;
margin-top: 8px;
}
.preset-len-btn {
padding: 5px 0;
border-radius: 5px;
border: 1px solid #2b3645;
background: #151d27;
color: #9ba8b8;
font: inherit;
font-size: 11px;
font-weight: 600;
cursor: pointer;
transition: 0.15s;
}
.preset-len-btn:hover {
border-color: #53bcb2;
color: #eef4f8;
}
.preset-len-btn.active {
background: #234946;
border-color: #57c6ba;
color: #6ee7b7;
}
.help {
color: #7f8b9b;
font-size: 10px;
margin: 8px 0 12px;
}
.primary-button,
.export-button {
border: 0;
border-radius: 6px;
background: #57c6ba;
color: #071714;
font: inherit;
font-size: 11px;
font-weight: 700;
padding: 11px 14px;
cursor: pointer;
transition: 0.15s;
}
.primary-button {
width: 100%;
}
.primary-button:disabled,
.export-button:disabled {
opacity: 0.35;
cursor: not-allowed;
}
.primary-button:not(:disabled):hover,
.export-button:not(:disabled):hover {
background: #73ded2;
}
.secondary-button {
width: 100%;
margin-top: 8px;
padding: 8px 12px;
border-radius: 6px;
border: 1px solid #3c7e77;
background: #193332;
color: #8ce4d9;
font: inherit;
font-size: 11px;
font-weight: 600;
cursor: pointer;
}
.secondary-button:hover {
background: #214543;
}
/* 구조물 인식 리스트 */
.detection-list {
display: flex;
flex-direction: column;
gap: 7px;
}
.empty-state {
color: #758191;
font-size: 10px;
padding: 12px;
border: 1px dashed #303946;
border-radius: 6px;
}
.detection-item {
border: 1px solid #28323e;
border-radius: 6px;
background: #151c25;
padding: 9px 10px;
display: grid;
grid-template-columns: 8px 1fr auto;
gap: 8px;
align-items: center;
}
.detection-swatch {
width: 7px;
height: 26px;
border-radius: 4px;
}
.detection-item strong {
font-size: 11px;
display: block;
color: #e2e8f0;
}
.detection-item small {
display: block;
color: #818d9d;
font-size: 10px;
margin-top: 3px;
line-height: 1.35;
}
.confidence {
font-size: 10px;
font-weight: 700;
color: #6ee7b7;
}
/* 상세 제원 편집기 */
.param-editor {
margin-top: 12px;
padding: 10px;
background: #0d131b;
border: 1px solid #28323e;
border-radius: 7px;
}
.param-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 6px 8px;
}
.param-grid label {
display: flex;
flex-direction: column;
gap: 3px;
font-size: 10px;
color: #94a3b8;
}
.param-grid input {
height: 26px;
padding: 0 6px;
background: #151d27;
border: 1px solid #303b49;
border-radius: 4px;
color: #f1f5f9;
font: inherit;
font-size: 11px;
}
.note {
font-size: 10px;
line-height: 1.55;
color: #798696;
margin: 12px 0 0;
}
.sidebar-foot {
font-size: 10px;
line-height: 1.5;
color: #677383;
}
/* 우측 워크스페이스 영역 */
.workspace {
min-width: 0;
display: flex;
flex-direction: column;
}
.view-tabs {
height: 52px;
display: flex;
align-items: center;
gap: 16px;
padding: 0 20px;
border-bottom: 1px solid #202734;
background: #10151d;
}
.view-tab {
height: 100%;
border: 0;
border-bottom: 2px solid transparent;
background: none;
color: #818d9b;
font: inherit;
font-size: 12px;
font-weight: 600;
padding: 0 4px;
cursor: pointer;
}
.view-tab.active {
color: #e9f4f4;
border-bottom-color: #54c5b8;
}
.view-spacer {
flex: 1;
}
.viewer-toolbar {
display: flex;
align-items: center;
gap: 8px;
}
.tool-button {
height: 30px;
padding: 0 10px;
border-radius: 5px;
border: 1px solid #2b3542;
background: #171e28;
color: #cbd5e1;
font: inherit;
font-size: 11px;
font-weight: 600;
cursor: pointer;
transition: 0.15s;
}
.tool-button:hover {
border-color: #54c5b8;
color: #ffffff;
}
.opacity-slider-box {
display: inline-flex;
align-items: center;
gap: 7px;
height: 30px;
padding: 0 10px;
border-radius: 5px;
border: 1px solid #2b3542;
background: #171e28;
color: #cbd5e1;
font-size: 11px;
font-weight: 600;
user-select: none;
transition: border-color 0.15s;
}
.opacity-slider-box:hover {
border-color: #54c5b8;
}
.opacity-slider-box .slider-label {
color: #94a3b8;
font-size: 11px;
white-space: nowrap;
}
.opacity-slider-box .slider-range {
-webkit-appearance: none;
appearance: none;
width: 75px;
height: 5px;
border-radius: 3px;
background: #334155;
outline: none;
cursor: pointer;
accent-color: #57c6ba;
}
.opacity-slider-box .slider-range::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 13px;
height: 13px;
border-radius: 50%;
background: #57c6ba;
cursor: pointer;
box-shadow: 0 0 6px rgba(87, 198, 186, 0.5);
transition: transform 0.1s;
}
.opacity-slider-box .slider-range::-webkit-slider-thumb:hover {
transform: scale(1.2);
}
.opacity-slider-box .slider-val {
min-width: 32px;
text-align: right;
color: #57c6ba;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
font-weight: 700;
font-size: 11px;
}
.theme-switch {
display: inline-flex;
border: 1px solid #2b3542;
border-radius: 5px;
overflow: hidden;
background: #0d131b;
}
.theme-btn {
height: 28px;
padding: 0 9px;
border: none;
background: transparent;
color: #94a3b8;
font: inherit;
font-size: 11px;
font-weight: 600;
cursor: pointer;
}
.theme-btn.active {
background: #57c6ba;
color: #061514;
}
.icon-button {
border: 1px solid #2b3542;
border-radius: 5px;
background: #171e28;
color: #9aa5b2;
width: 30px;
height: 30px;
font-size: 16px;
cursor: pointer;
}
.icon-button:hover {
border-color: #54c5b8;
color: #ffffff;
}
.export-button {
padding: 7px 12px;
font-size: 11px;
}
/* 뷰포트 및 캔버스 */
.viewport {
position: relative;
flex: 1;
min-height: 0;
overflow: hidden;
background-color: #111827;
background-image:
linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
background-size: 36px 36px;
}
.plot-3d {
width: 100%;
height: 100%;
background: transparent;
}
/* Plotly 내부 WebGL 캔버스 배경 강제 투명 처리 (다크/라이트 배경 정상 작동 보장) */
#placement_3d_plot canvas {
background: transparent !important;
box-shadow: none !important;
border-radius: 0 !important;
}
.canvas-2d {
width: 100%;
height: 100%;
display: block;
background: #0c1118;
}
.welcome {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
pointer-events: none;
z-index: 10;
}
.welcome-glyph {
font-size: 32px;
color: #56c5ba;
margin-bottom: 8px;
}
.welcome h2 {
font-size: 15px;
margin: 0 0 7px;
color: #f1f5f9;
}
.welcome p {
font-size: 11px;
color: #8390a0;
margin: 0;
}
/* 우측 상단 전구 표시 세로 레이어 리스트 패널 */
.layer-panel {
position: absolute;
top: 14px;
right: 14px;
z-index: 50;
width: 208px;
background: rgba(15, 23, 42, 0.88);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border: 1px solid rgba(255, 255, 255, 0.18);
border-radius: 8px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
color: #f3f4f6;
font-size: 12px;
user-select: none;
padding: 6px 7px;
}
.layer-master-row {
display: flex;
align-items: center;
justify-content: space-between;
padding: 5px 7px;
border-radius: 5px;
background: rgba(255, 255, 255, 0.08);
border: 1px solid rgba(255, 255, 255, 0.15);
}
.layer-master-left {
display: flex;
align-items: center;
gap: 7px;
cursor: pointer;
flex-grow: 1;
}
.layer-master-right {
display: flex;
align-items: center;
gap: 5px;
}
.master-bulb {
font-size: 15px;
filter: drop-shadow(0 0 5px #f59e0b);
transition: all 0.2s;
}
.master-label {
font-weight: 700;
color: #ffffff;
font-size: 12px;
}
.minimize-btn {
background: transparent;
border: none;
color: #9ca3af;
cursor: pointer;
font-size: 14px;
padding: 0 2px;
line-height: 1;
font-weight: bold;
}
.minimize-btn:hover {
color: #ffffff;
}
.layer-items-wrapper {
display: flex;
flex-direction: column;
gap: 3px;
}
.layer-divider {
height: 1px;
background: rgba(255, 255, 255, 0.1);
margin: 4px 0 2px 0;
}
.layer-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 4px 7px;
border-radius: 5px;
cursor: pointer;
transition: all 0.15s;
}
.layer-item:hover {
background: rgba(255, 255, 255, 0.14) !important;
}
.layer-item-left {
display: flex;
align-items: center;
gap: 7px;
}
.bulb-icon {
font-size: 13px;
transition: all 0.2s;
}
.color-dot {
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
border: 1px solid rgba(255, 255, 255, 0.4);
}
.layer-label {
color: #e5e7eb;
font-size: 12px;
}
.status-badge {
font-size: 9px;
font-weight: 700;
padding: 1px 6px;
border-radius: 8px;
background: #10b981;
color: #ffffff;
}
.view-hint {
position: absolute;
right: 15px;
bottom: 14px;
background: rgba(21, 28, 37, 0.85);
color: #aab5c3;
border: 1px solid #2a3541;
border-radius: 5px;
font-size: 10px;
padding: 6px 10px;
pointer-events: none;
z-index: 20;
}
.bottom-bar {
height: 30px;
border-top: 1px solid #202734;
background: #10151d;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 16px;
color: #758191;
font-size: 10px;
}
.developer-credit {
color: #94a3b8;
font-weight: 500;
letter-spacing: 0.2px;
}
.canvas-credit {
position: absolute;
bottom: 10px;
right: 14px;
font-size: 11px;
font-family: inherit;
color: rgba(255, 255, 255, 0.45);
background: rgba(15, 23, 42, 0.7);
backdrop-filter: blur(4px);
padding: 4px 10px;
border-radius: 4px;
border: 1px solid rgba(255, 255, 255, 0.08);
pointer-events: none;
z-index: 15;
user-select: none;
letter-spacing: 0.2px;
}
@media (max-width: 900px) {
.layout {
grid-template-columns: 290px 1fr;
}
}