/* style.css - Merged & Updated (Resizable Sidebar Added) */ /* ========================================================== */ /* 1. 기본 및 공통 스타일 (Base) */ /* ========================================================== */ body { 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; } /* 버튼 기본 스타일 (공통 Reset) */ button { cursor: pointer; border-radius: 4px; border: 1px solid #555; background-color: #3a3a3a; color: #e0e0e0; padding: 5px 10px; font-family: inherit; } /* ========================================================== */ /* 2. 로그인 페이지 스타일 */ /* ========================================================== */ .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; position: relative; } .page-title { position: absolute; 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); } .login-container { background: rgba(255, 255, 255, 0.95); padding: 2rem 3rem; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); width: 400px; box-sizing: border-box; z-index: 20; color: #333; } .login-container h1 { font-size: 2.2rem; color: #333; margin-bottom: 0.5rem; font-weight: bold; text-align: center; } .login-subtext { font-size: 1rem; color: #666; margin: 0 0 2.5rem 0; text-align: center; } .input-group { margin-bottom: 1rem; position: relative; text-align: left; } .input-group input { 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; } .input-group .icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 1.2rem; color: #666; } .login-button { width: auto; min-width: 150px; padding: 0.8rem 2.5rem; background-color: #5a67d8; color: white; border: none; font-size: 1rem; font-weight: bold; display: block; margin: 1.5rem auto 0 auto; } .login-button:hover { background-color: #434190; } .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; color: #333; } /* ========================================================== */ /* 3. 헤더 및 네비게이션 (Header) */ /* ========================================================== */ header { background-color: #333; padding: 0 1rem; height: 50px; flex-shrink: 0; border-bottom: 1px solid #444; } .tabs { display: flex; justify-content: space-between; align-items: center; height: 100%; } .tab-button { background: none; border: none; color: #aaa; padding: 0 1.5rem; height: 50px; font-size: 1rem; font-weight: bold; cursor: pointer; } .tab-button.active { color: white; border-bottom: 3px solid #5a67d8; background: rgba(255,255,255,0.05); } .logout-button { background-color: #d9534f; color: white; border: none; padding: 0.3rem 1rem; border-radius: 4px; font-weight: bold; cursor: pointer; } /* ========================================================== */ /* 4. 메인 컨텐츠 영역 (Main Layout) */ /* ========================================================== */ main { 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; /* 좌측 메뉴 크기 고정 */ } .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 */ } .filter-push-right { margin-left: auto; /* Flex 컨테이너에서 우측 끝으로 밀어냄 */ margin-right: 10px; font-weight: bold; color: #ffd700; /* 눈에 띄게 노란색 계열 강조 (선택 사항) */ } /* 상단 필터 바 */ .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 { flex-grow: 1; position: relative; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; background-color: #000; /* 비디오 배경은 보통 검정 */ overflow: hidden; } .video-placeholder-text { position: absolute; color: #555; font-size: 1.2rem; z-index: 0; pointer-events: none; } /* [추가/수정] 캔버스와 BBox 컨테이너를 꽉 차게 설정 */ #frame { display: block; width: 100%; height: 100%; object-fit: contain; /* 비율 유지하며 꽉 차게 */ } #bbox-container { position: absolute; pointer-events: none; z-index: 5; top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; } .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; /* 푸터 크기 고정 */ } .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; } #resolution-display { font-size: 1.5em; color: #FFF; font-weight: bold; margin-left: 15px; line-height: 1; } /* 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; /* 드래그 가능함을 알리는 강조색 */ } /* 5-3. 우측 사이드바 (정보 패널) */ .mission-right { width: 300px; /* 기본 너비 */ min-width: 150px; /* 최소 너비 */ max-width: 800px; /* 최대 너비 */ background-color: #444; /* border-left: 1px solid #666; -> Resizer에 border를 주었으므로 제거 */ display: flex; flex-direction: column; flex-shrink: 0; /* 자동 수축 방지 */ } .right-header { height: 40px; display: flex; border-bottom: 1px solid #666; flex-shrink: 0; } .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; } /* [신규] 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. 설정 탭 - AI 모델 & 관심 인물 관리 (Settings) */ /* ========================================================== */ .toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; padding: 1rem; } .section-title { font-size: 1.2rem; font-weight: bold; margin-right: 10px; color: #fff; } .right-actions { margin-left: auto; display: flex; gap: 10px; } .model-table { width: 100%; border-collapse: collapse; background: #2a2a2a; } .model-table th, .model-table td { border: 1px solid #444; padding: 0.8rem 1rem; vertical-align: middle; } .model-table th { background-color: #333; text-align: center; color: #ddd;} .model-table td { text-align: center; color: #ccc; } #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; } .hidden-file-input { display: none; } .hidden { display: none !important; } /* 버튼 스타일 (설정 페이지) */ .btn-browse { cursor: pointer; border-radius: 4px; border: 1px solid #666; padding: 5px 10px; font-size: 14px; background-color: #4f4f4f; color: #e0e0e0; } .btn-browse:hover { background-color: #5a5a5a; } .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; } /* ========================================================== */ /* 8. 모달 (Popups) */ /* ========================================================== */ .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; } .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; } .btn-modal-confirm:hover, .btn-modal-cancel:hover { background-color: #eee; } /* 이미지 뷰어 모달 */ .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)} } .close-viewer { position: absolute; top: 20px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; transition: 0.3s; cursor: pointer; z-index: 2001; }