/* static/style.css */
:root { 
    --skt-red: #E60000; 
    --bg-dark: #0f0f0f; 
    --panel-bg: #1a1a1a; 
}

body { 
    background-color: var(--bg-dark); 
    color: #e0e0e0; 
    font-family: 'Malgun Gothic', sans-serif; 
    margin: 0; 
    padding: 20px; 
}

.container { 
    max-width: 1400px; 
    margin: 0 auto; 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
}

header { 
    border-bottom: 3px solid var(--skt-red); 
    padding-bottom: 10px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.control-panel { 
    background: var(--panel-bg); 
    padding: 20px; 
    border-radius: 10px; 
    border: 1px solid #333; 
    display: flex; 
    flex-wrap: wrap; 
    gap: 12px; 
    align-items: center; 
}

.dashboard { 
    display: grid; 
    grid-template-columns: 2.8fr 1.2fr; 
    gap: 20px; 
}

.scoreboard { 
    background: #000; 
    padding: 15px; 
    text-align: center; 
    border-radius: 10px; 
    border: 1px solid #444; 
}

.score-val { 
    font-family: 'Consolas', monospace; 
    font-size: 50px; 
    font-weight: bold; 
    color: #fff; 
}

.video-wrapper { 
    position: relative; 
    background: #000; 
    border-radius: 10px; 
    overflow: hidden; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.6); 
}

canvas { 
    width: 100%; 
    height: auto; 
    display: block; 
}

video { 
    display: none; 
}

.log-container { 
    background: #151515; 
    padding: 15px; 
    border-radius: 10px; 
    height: 750px; 
    overflow-y: auto; 
    border: 1px solid #333; 
}

.log-entry { 
    background: #222; 
    padding: 15px; 
    border-radius: 8px; 
    margin-bottom: 12px; 
    border-left: 5px solid var(--skt-red); 
    font-size: 14px; 
    line-height: 1.6; 
    animation: slideIn 0.3s ease-out; 
}

@keyframes slideIn { 
    from { opacity: 0; transform: translateX(10px); } 
    to { opacity: 1; transform: translateX(0); } 
}

button, select, input { 
    padding: 10px 15px; 
    border-radius: 5px; 
    border: 1px solid #444; 
    background: #2a2a2a; 
    color: white; 
    font-weight: bold; 
    cursor: pointer; 
}

/* 입력창 비활성화 시 서버 제어 상태를 시각화하기 위한 스타일 보정 */
input:disabled {
    background: #222;
    color: #666;
    border: 1px solid #333;
    cursor: not-allowed;
}

.btn-red { 
    background: var(--skt-red); 
    border: none; 
}

.btn-gray { 
    background: #444; 
    border: none; 
}

#roiModal { 
    display: none; 
    position: fixed; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    background: #222; 
    padding: 25px; 
    border-radius: 15px; 
    border: 2px solid var(--skt-red); 
    z-index: 1000; 
    box-shadow: 0 0 100px #000; 
    text-align: center; 
}

#roiPreview { 
    cursor: crosshair; 
    border: 1px solid #444; 
    max-width: 800px; 
    height: auto; 
}

.overlay-dim { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.9); 
    z-index: 999; 
}
