You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

380 lines
13 KiB

/* style.css - Merged & Updated (Resizable Sidebar Added) */
7 months ago
6 months ago
/* ========================================================== */
/* 1. 기본 및 공통 스타일 (Base) */
/* ========================================================== */
7 months ago
body {
6 months ago
font-family: 'Segoe UI', Arial, sans-serif;
margin: 0; padding: 0;
background-color: #1a1a1a; /* 메인 테마: 다크 모드 */
color: #e0e0e0;
display: flex; flex-direction: column;
height: 100vh; overflow: hidden;
}
6 months ago
/* 버튼 기본 스타일 (공통 Reset) */
7 months ago
button {
cursor: pointer;
border-radius: 4px;
border: 1px solid #555;
background-color: #3a3a3a;
color: #e0e0e0;
7 months ago
padding: 5px 10px;
6 months ago
font-family: inherit;
7 months ago
}
6 months ago
/* ========================================================== */
/* 2. 로그인 페이지 스타일 */
/* ========================================================== */
7 months ago
.login-page {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background: url('drone_background.png') no-repeat center center fixed;
background-size: cover;
6 months ago
position: relative;
7 months ago
}
.page-title {
position: absolute;
6 months ago
top: 60px; left: 60px;
color: #ffffff;
font-size: 3rem;
font-weight: 600;
margin: 0;
z-index: 10;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}
7 months ago
.login-container {
6 months ago
background: rgba(255, 255, 255, 0.95);
7 months ago
padding: 2rem 3rem;
border-radius: 8px;
6 months ago
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
7 months ago
width: 400px;
box-sizing: border-box;
z-index: 20;
6 months ago
color: #333;
7 months ago
}
6 months ago
7 months ago
.login-container h1 {
7 months ago
font-size: 2.2rem;
color: #333;
margin-bottom: 0.5rem;
font-weight: bold;
6 months ago
text-align: center;
7 months ago
}
6 months ago
7 months ago
.login-subtext {
6 months ago
font-size: 1rem; color: #666; margin: 0 0 2.5rem 0; text-align: center;
7 months ago
}
6 months ago
7 months ago
.input-group {
6 months ago
margin-bottom: 1rem; position: relative; text-align: left;
7 months ago
}
.input-group input {
6 months ago
width: 100%; padding: 1rem 1rem 1rem 3rem;
border: 1px solid #ddd; border-radius: 4px;
box-sizing: border-box; background-color: #fff; color: #333; font-size: 1rem;
7 months ago
}
.input-group .icon {
6 months ago
position: absolute; left: 10px; top: 50%;
transform: translateY(-50%); font-size: 1.2rem; color: #666;
}
7 months ago
.login-button {
6 months ago
width: auto; min-width: 150px;
7 months ago
padding: 0.8rem 2.5rem;
6 months ago
background-color: #5a67d8; color: white;
border: none; font-size: 1rem; font-weight: bold;
display: block; margin: 1.5rem auto 0 auto;
7 months ago
}
7 months ago
.login-button:hover { background-color: #434190; }
6 months ago
7 months ago
.footer-bar {
position: absolute; bottom: 0; left: 0; width: 100%; height: 50px;
background-color: #ffffff; opacity: 0.7; z-index: 100;
display: flex; justify-content: center; align-items: center; gap: 20px;
6 months ago
color: #333;
7 months ago
}
6 months ago
/* ========================================================== */
/* 3. 헤더 및 네비게이션 (Header) */
/* ========================================================== */
7 months ago
header {
7 months ago
background-color: #333;
7 months ago
padding: 0 1rem;
6 months ago
height: 50px; flex-shrink: 0;
border-bottom: 1px solid #444;
7 months ago
}
6 months ago
.tabs { display: flex; justify-content: space-between; align-items: center; height: 100%; }
7 months ago
.tab-button {
7 months ago
background: none; border: none; color: #aaa;
6 months ago
padding: 0 1.5rem; height: 50px; font-size: 1rem; font-weight: bold;
cursor: pointer;
7 months ago
}
6 months ago
.tab-button.active { color: white; border-bottom: 3px solid #5a67d8; background: rgba(255,255,255,0.05); }
7 months ago
.logout-button {
7 months ago
background-color: #d9534f; color: white; border: none;
6 months ago
padding: 0.3rem 1rem; border-radius: 4px; font-weight: bold; cursor: pointer;
7 months ago
}
6 months ago
/* ========================================================== */
/* 4. 메인 컨텐츠 영역 (Main Layout) */
/* ========================================================== */
7 months ago
main {
6 months ago
flex-grow: 1; display: flex; flex-direction: column; min-height: 0; position: relative;
}
.tab-content { display: none; width: 100%; height: 100%; }
.tab-content.active { display: flex; flex-direction: column; }
/* ========================================================== */
/* 5. [신규] Mission View (3단 레이아웃) 스타일 */
/* ========================================================== */
.mission-container {
display: flex; width: 100%; height: 100%;
background-color: #2b2b2b;
}
/* 5-1. 좌측 사이드바 (모델 메뉴) */
.sidebar-nav {
width: 90px;
background-color: #e0e0e0;
display: flex; flex-direction: column;
border-right: 1px solid #999;
flex-shrink: 0; /* 좌측 메뉴 크기 고정 */
6 months ago
}
.nav-item {
display: flex; flex-direction: column; align-items: center; justify-content: center;
padding: 15px 5px; color: #555; cursor: pointer;
border-bottom: 1px solid #ccc; transition: all 0.2s;
}
.nav-item:hover { background-color: #d0d0d0; }
.nav-item.active {
background-color: #4a4a4a; color: #fff;
}
.nav-icon { width: 32px; height: 32px; margin-bottom: 5px; position: relative; }
.nav-item span { font-size: 11px; font-weight: bold; text-align: center; }
.nav-icon svg { width: 100%; height: 100%; }
/* 5-2. 중앙 영역 (필터 + 비디오 + 상태바) */
.mission-center {
flex-grow: 1; display: flex; flex-direction: column;
position: relative; background-color: #555;
min-width: 0; /* Flexbox overflow fix */
6 months ago
}
.filter-push-right {
margin-left: auto; /* Flex 컨테이너에서 우측 끝으로 밀어냄 */
margin-right: 10px;
font-weight: bold;
color: #ffd700; /* 눈에 띄게 노란색 계열 강조 (선택 사항) */
}
6 months ago
/* 상단 필터 바 */
.filter-bar {
height: 40px; background-color: #444;
display: flex; align-items: center; padding: 0 15px;
color: #fff; border-bottom: 1px solid #666;
font-size: 14px; gap: 10px;
}
.filter-check {
display: flex; align-items: center; gap: 5px; cursor: pointer; user-select: none;
}
.v-line { color: #888; margin: 0 5px; }
/* [수정] 비디오 스테이지 (전체 채우기) */
.video-stage {
7 months ago
flex-grow: 1;
6 months ago
position: relative;
width: 100%;
height: 100%;
7 months ago
display: flex;
6 months ago
justify-content: center;
align-items: center;
background-color: #000; /* 비디오 배경은 보통 검정 */
overflow: hidden;
7 months ago
}
6 months ago
.video-placeholder-text {
position: absolute; color: #555; font-size: 1.2rem; z-index: 0; pointer-events: none;
7 months ago
}
6 months ago
/* [추가/수정] 캔버스와 BBox 컨테이너를 꽉 차게 설정 */
#frame {
display: block;
width: 100%;
height: 100%;
object-fit: contain; /* 비율 유지하며 꽉 차게 */
7 months ago
}
6 months ago
#bbox-container {
position: absolute;
pointer-events: none;
z-index: 5;
top: 0 !important;
left: 0 !important;
width: 100% !important;
height: 100% !important;
7 months ago
}
6 months ago
.bbox { position: absolute; border: 2px solid red; box-sizing: border-box; }
/* 하단 상태 바 */
.mission-footer {
height: 60px;
background-color: #444;
display: flex; justify-content: space-between; align-items: center;
padding: 0 15px; font-size: 13px; color: #eee;
border-top: 1px solid #666;
flex-shrink: 0; /* 푸터 크기 고정 */
7 months ago
}
6 months ago
.status-left { display: flex; gap: 10px; }
.conn-active { font-weight: bold; color: #fff; }
#fps-display {
font-size: 3em;
color: #FFCC00;
font-weight: bold;
margin-left: 15px;
line-height: 1;
}
6 months ago
#resolution-display {
font-size: 1.5em;
color: #FFF;
font-weight: bold;
margin-left: 15px;
line-height: 1;
7 months ago
}
/* 5-2-1. [신규] 리사이저 (Drag Handle) */
.resizer {
width: 5px;
cursor: col-resize;
background-color: #333;
border-left: 1px solid #444;
border-right: 1px solid #444;
flex-shrink: 0;
z-index: 100;
transition: background-color 0.2s;
}
.resizer:hover {
background-color: #5a67d8; /* 드래그 가능함을 알리는 강조색 */
}
6 months ago
/* 5-3. 우측 사이드바 (정보 패널) */
.mission-right {
width: 300px; /* 기본 너비 */
min-width: 150px; /* 최소 너비 */
max-width: 800px; /* 최대 너비 */
background-color: #444;
/* border-left: 1px solid #666; -> Resizer에 border를 주었으므로 제거 */
6 months ago
display: flex; flex-direction: column;
flex-shrink: 0; /* 자동 수축 방지 */
6 months ago
}
.right-header {
height: 40px; display: flex; border-bottom: 1px solid #666;
flex-shrink: 0;
6 months ago
}
.right-header span {
flex: 1; display: flex; align-items: center; justify-content: center;
font-size: 13px; cursor: pointer; color: #aaa; background: #3a3a3a;
}
.right-header span.active {
color: #fff; background: #555; font-weight: bold;
}
.summary-content { padding: 10px; overflow-y: auto; flex-grow: 1; }
.summary-row {
display: flex; justify-content: space-between;
padding: 8px 5px; border-bottom: 1px solid #555; font-size: 14px;
}
.summary-row .label { color: #fff; }
.summary-row .count { color: #fff; font-weight: bold; }
6 months ago
/* [신규] Log Content 스타일 */
.log-content {
padding: 10px;
overflow-y: auto;
flex-grow: 1;
font-family: 'Consolas', 'Monaco', monospace; /* 코드 폰트 */
font-size: 12px;
background-color: #222; /* 로그 배경은 더 어둡게 */
}
.log-entry {
margin-bottom: 5px;
border-bottom: 1px solid #333;
word-break: break-all; /* 긴 JSON 줄바꿈 */
color: #ccc;
}
.log-time { color: #888; font-weight: bold; margin-right: 5px; }
.log-msg { color: #0f0; } /* 메시지는 녹색 터미널 느낌 */
7 months ago
/* ========================================================== */
6 months ago
/* 7. 설정 탭 - AI 모델 & 관심 인물 관리 (Settings) */
7 months ago
/* ========================================================== */
.toolbar {
6 months ago
display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; padding: 1rem;
7 months ago
}
6 months ago
.section-title { font-size: 1.2rem; font-weight: bold; margin-right: 10px; color: #fff; }
7 months ago
.right-actions { margin-left: auto; display: flex; gap: 10px; }
7 months ago
.model-table {
7 months ago
width: 100%; border-collapse: collapse; background: #2a2a2a;
7 months ago
}
7 months ago
.model-table th, .model-table td {
border: 1px solid #444; padding: 0.8rem 1rem; vertical-align: middle;
7 months ago
}
6 months ago
.model-table th { background-color: #333; text-align: center; color: #ddd;}
.model-table td { text-align: center; color: #ccc; }
7 months ago
7 months ago
#file-name-display {
font-size: 0.9rem; color: #ccc; background-color: #2a2a2a;
border: 1px solid #444; padding: 5px 10px; border-radius: 4px;
min-width: 300px; text-align: left; font-style: italic;
7 months ago
}
7 months ago
.hidden-file-input { display: none; }
.hidden { display: none !important; }
7 months ago
6 months ago
/* 버튼 스타일 (설정 페이지) */
7 months ago
.btn-browse {
7 months ago
cursor: pointer; border-radius: 4px; border: 1px solid #666;
padding: 5px 10px; font-size: 14px; background-color: #4f4f4f; color: #e0e0e0;
7 months ago
}
7 months ago
.btn-browse:hover { background-color: #5a5a5a; }
6 months ago
.btn-action { background-color: #4CAF50; color: white; border: none; padding:5px 10px; border-radius:4px; cursor:pointer;}
.btn-delete { background-color: #f44336; color: white; border: none; padding:5px 10px; border-radius:4px; cursor:pointer;}
.refresh-button { margin-left: auto; padding:5px 10px; cursor:pointer; }
.btn-white { background-color: #fff; color: #333; border: 1px solid #ccc; font-weight: bold; padding:5px 15px; border-radius:4px; cursor:pointer;}
.divider { height: 1px; background-color: #444; margin: 3rem 0 2rem 0; border: none; }
.empty-message { text-align: center; padding: 4rem 0; color: #888; font-size: 1.1rem; }
/* POI 미리보기 */
.preview-container { display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; }
.preview-item { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.05); padding: 4px; border-radius: 4px; }
.poi-preview { width: 50px; height: 50px; object-fit: cover; border-radius: 4px; border: 1px solid #555; display: block; cursor: pointer; transition: 0.3s; }
.poi-preview:hover { opacity: 0.7; }
.btn-delete-small { background-color: #fff; border: 1px solid #ccc; color: #333; padding: 4px 10px; margin-left: 10px; cursor: pointer; font-size: 12px; border-radius: 2px; }
7 months ago
/* ========================================================== */
6 months ago
/* 8. 모달 (Popups) */
7 months ago
/* ========================================================== */
.modal {
position: fixed; top: 0; left: 0; width: 100%; height: 100%;
background-color: rgba(0, 0, 0, 0.5);
display: flex; justify-content: center; align-items: center; z-index: 2000;
}
6 months ago
.modal-content { background-color: #fff; padding: 2rem; width: 400px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); color: #333; border-radius:8px;}
.modal-content h3 { margin-top: 0; margin-bottom: 2rem; }
.modal-body input { width: 100%; padding: 10px; border: 1px solid #ccc; }
.modal-actions { display: flex; justify-content: center; gap: 20px; margin-top:20px; }
.modal-actions button { width: 100px; padding: 8px 0; font-weight: bold; cursor: pointer; border:1px solid #999; background:#fff; }
7 months ago
.btn-modal-confirm:hover, .btn-modal-cancel:hover { background-color: #eee; }
6 months ago
/* 이미지 뷰어 모달 */
.modal-image { margin: auto; display: block; max-width: 90%; max-height: 90%; border-radius: 5px; animation-name: zoom; animation-duration: 0.4s; }
@keyframes zoom { from {transform:scale(0)} to {transform:scale(1)} }
6 months ago
.close-viewer { position: absolute; top: 20px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; transition: 0.3s; cursor: pointer; z-index: 2001; }